Commit 318b5df9 authored by Rene Sapiens's avatar Rene Sapiens Committed by Greg Kroah-Hartman
Browse files

staging: ti dspbridge: Rename words with camel case



The intention of this patch is to rename the remaining variables with camel
case. Variables will be renamed avoiding camel case and Hungarian notation.
The words to be renamed in this patch are:
========================================
puLen to len
pulEntry to entry_pt
pulFxnAddr to fxn_addr
pulId to chan_id
pulSegId to sgmt_id
pVaBuf to va_buf
pVirtualAddress to virtual_address
pwMbVal to mbx_val
pWord to word
pXlatorAttrs to xlator_attrs
registerFxn to register_fxn
rootPersistent to root_prstnt
sectionData to section_data
sectionInfo to section_info
sectionName to section_name
sectName to sec_name
========================================

Signed-off-by: default avatarRene Sapiens <rene.sapiens@ti.com>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@suse.de>
parent 383b8345
Loading
Loading
Loading
Loading
+3 −3
Original line number Diff line number Diff line
@@ -1014,12 +1014,12 @@ void io_mbox_msg(u32 msg)
 *      interrupts the DSP.
 */
void io_request_chnl(struct io_mgr *pio_mgr, struct chnl_object *pchnl,
			u8 io_mode, OUT u16 *pwMbVal)
			u8 io_mode, OUT u16 *mbx_val)
{
	struct chnl_mgr *chnl_mgr_obj;
	struct shm *sm;

	if (!pchnl || !pwMbVal)
	if (!pchnl || !mbx_val)
		goto func_end;
	chnl_mgr_obj = pio_mgr->hchnl_mgr;
	sm = pio_mgr->shared_mem;
@@ -1033,7 +1033,7 @@ void io_request_chnl(struct io_mgr *pio_mgr, struct chnl_object *pchnl,
		/* Indicate to the DSP we have a buffer available for input */
		IO_OR_VALUE(pio_mgr->hbridge_context, struct shm, sm,
			    host_free_mask, (1 << pchnl->chnl_id));
		*pwMbVal = MBX_PCPY_CLASS;
		*mbx_val = MBX_PCPY_CLASS;
	} else if (io_mode == IO_OUTPUT) {
		/*
		 * This assertion fails if CHNL_AddIOReq() was called on a
+12 −12
Original line number Diff line number Diff line
@@ -226,8 +226,8 @@ void *dload_module_open(struct dynamic_loader_stream *module,
 *
 * Parameters:
 *  minfo		Handle from dload_module_open for this module
 *	sectionName	Pointer to the string name of the section desired
 *	sectionInfo	Address of a section info structure pointer to be
 *	section_name	Pointer to the string name of the section desired
 *	section_info	Address of a section info structure pointer to be
 *			initialized
 *
 * Effect:
@@ -237,8 +237,8 @@ void *dload_module_open(struct dynamic_loader_stream *module,
 * Returns:
 *	true for success, false for section not found
 ************************************************************************* */
int dload_get_section_info(void *minfo, const char *sectionName,
			   const struct ldr_section_info **const sectionInfo)
int dload_get_section_info(void *minfo, const char *section_name,
			   const struct ldr_section_info **const section_info)
{
	struct dload_state *dlthis;
	struct ldr_section_info *shp;
@@ -250,8 +250,8 @@ int dload_get_section_info(void *minfo, const char *sectionName,

	for (sec = 0; sec < dlthis->dfile_hdr.df_no_scns; sec++) {
		shp = DOFFSEC_IS_LDRSEC(&dlthis->sect_hdrs[sec]);
		if (strcmp(sectionName, shp->name) == 0) {
			*sectionInfo = shp;
		if (strcmp(section_name, shp->name) == 0) {
			*section_info = shp;
			return true;
		}
	}
@@ -267,9 +267,9 @@ int dload_get_section_info(void *minfo, const char *sectionName,
 *
 * Parameters:
 *  minfo		Handle from dload_module_open for this module
 *	sectionInfo	Pointer to a section info structure for the desired
 *	section_info	Pointer to a section info structure for the desired
 *			section
 *	sectionData	Buffer to contain the section initialized data
 *	section_data	Buffer to contain the section initialized data
 *
 * Effect:
 *	Copies the initialized data for the specified section into the
@@ -279,8 +279,8 @@ int dload_get_section_info(void *minfo, const char *sectionName,
 *	true for success, false for section not found
 ************************************************************************* */
int dload_get_section(void *minfo,
		      const struct ldr_section_info *sectionInfo,
		      void *sectionData)
		      const struct ldr_section_info *section_info,
		      void *section_data)
{
	struct dload_state *dlthis;
	u32 pos;
@@ -289,12 +289,12 @@ int dload_get_section(void *minfo,
	struct image_packet_t ipacket;
	s32 ipsize;
	u32 checks;
	s8 *dest = (s8 *) sectionData;
	s8 *dest = (s8 *) section_data;

	dlthis = (struct dload_state *)minfo;
	if (!dlthis)
		return false;
	sptr = LDRSEC_IS_DOFFSEC(sectionInfo);
	sptr = LDRSEC_IS_DOFFSEC(section_info);
	if (sptr == NULL)
		return false;

+10 −10
Original line number Diff line number Diff line
@@ -209,17 +209,17 @@ extern bool cmm_init(void);
 *      c_factor:         Add offset if CMM_ADDTODSPPA, sub if CMM_SUBFROMDSPPA.
 *      dw_dsp_base:       DSP virtual base byte address.
 *      ul_dsp_size:       Size of DSP segment in bytes.
 *      pulSegId:        Address to store segment Id.
 *      sgmt_id:         Address to store segment Id.
 *
 *  Returns:
 *      0:         Success.
 *      -EFAULT:     Invalid hcmm_mgr handle.
 *      -EINVAL: Invalid input argument.
 *      -EPERM:       Unable to register.
 *      - On success *pulSegId is a valid SM segment ID.
 *      - On success *sgmt_id is a valid SM segment ID.
 *  Requires:
 *      ul_size > 0
 *      pulSegId != NULL
 *      sgmt_id != NULL
 *      dw_gpp_base_pa != 0
 *      c_factor = CMM_ADDTODSPPA || c_factor = CMM_SUBFROMDSPPA
 *  Ensures:
@@ -232,7 +232,7 @@ extern int cmm_register_gppsm_seg(struct cmm_object *hcmm_mgr,
					 s8 c_factor,
					 unsigned int dw_dsp_base,
					 u32 ul_dsp_size,
					 u32 *pulSegId, u32 gpp_base_ba);
					 u32 *sgmt_id, u32 gpp_base_ba);

/*
 *  ======== cmm_un_register_gppsm_seg ========
@@ -261,18 +261,18 @@ extern int cmm_un_register_gppsm_seg(struct cmm_object *hcmm_mgr,
 *      Place on the descriptor on the translator's HaQ (Host Alloc'd Queue).
 *  Parameters:
 *      xlator:    Handle to a Xlator object.
 *      pVaBuf:     Virtual address ptr(client context)
 *      va_buf:     Virtual address ptr(client context)
 *      uPaSize:    Size of SM memory to allocate.
 *  Returns:
 *      Ptr to valid physical address(Pa) of uPaSize bytes, NULL if failed.
 *  Requires:
 *      pVaBuf != 0.
 *      va_buf != 0.
 *      uPaSize != 0.
 *  Ensures:
 *
 */
extern void *cmm_xlator_alloc_buf(struct cmm_xlatorobject *xlator,
				  void *pVaBuf, u32 uPaSize);
				  void *va_buf, u32 uPaSize);

/*
 *  ======== cmm_xlator_create ========
@@ -283,7 +283,7 @@ extern void *cmm_xlator_alloc_buf(struct cmm_xlatorobject *xlator,
 *  Parameters:
 *     xlator:         Address to place handle to a new Xlator handle.
 *     hcmm_mgr:        Handle to Cmm Mgr associated with this translator.
 *     pXlatorAttrs:   Translator attributes used for the client NODE or STREAM.
 *     xlator_attrs:   Translator attributes used for the client NODE or STREAM.
 *  Returns:
 *     0:            Success.
 *     -EINVAL:    Bad input Attrs.
@@ -291,13 +291,13 @@ extern void *cmm_xlator_alloc_buf(struct cmm_xlatorobject *xlator,
 *  Requires:
 *     xlator != NULL
 *     hcmm_mgr != NULL
 *     pXlatorAttrs != NULL
 *     xlator_attrs != NULL
 *  Ensures:
 *
 */
extern int cmm_xlator_create(OUT struct cmm_xlatorobject **xlator,
				    struct cmm_object *hcmm_mgr,
				    struct cmm_xlatorattrs *pXlatorAttrs);
				    struct cmm_xlatorattrs *xlator_attrs);

/*
 *  ======== cmm_xlator_delete ========
+8 −8
Original line number Diff line number Diff line
@@ -169,17 +169,17 @@ extern int cod_get_base_name(struct cod_manager *cod_mgr_obj,
 *      Retrieve the entry point of a loaded DSP program image
 *  Parameters:
 *      cod_mgr_obj:   handle of manager to be deleted
 *      pulEntry:   pointer to location for entry point
 *      entry_pt:   pointer to location for entry point
 *  Returns:
 *      0:       Success.
 *  Requires:
 *      COD module initialized.
 *      valid cod_mgr_obj.
 *      pulEntry != NULL.
 *      entry_pt != NULL.
 *  Ensures:
 */
extern int cod_get_entry(struct cod_manager *cod_mgr_obj,
				u32 *pulEntry);
				u32 *entry_pt);

/*
 *  ======== cod_get_loader ========
@@ -208,7 +208,7 @@ extern int cod_get_loader(struct cod_manager *cod_mgr_obj,
 *      lib         Library handle returned from cod_open().
 *      str_sect:   name of the section, with or without leading "."
 *      addr:       Location to store address.
 *      puLen:      Location to store length.
 *      len:        Location to store length.
 *  Returns:
 *      0:                Success
 *      -ESPIPE:  Symbols could not be found or have not been loaded onto
@@ -218,16 +218,16 @@ extern int cod_get_loader(struct cod_manager *cod_mgr_obj,
 *      valid cod_mgr_obj.
 *      str_sect != NULL;
 *      addr != NULL;
 *      puLen != NULL;
 *      len != NULL;
 *  Ensures:
 *      0:  *addr and *puLen contain the address and length of the
 *      0:  *addr and *len contain the address and length of the
 *                 section.
 *      else:  *addr == 0 and *puLen == 0;
 *      else:  *addr == 0 and *len == 0;
 *
 */
extern int cod_get_section(struct cod_libraryobj *lib,
				  IN char *str_sect,
				  OUT u32 *addr, OUT u32 *puLen);
				  OUT u32 *addr, OUT u32 *len);

/*
 *  ======== cod_get_sym_value ========
+2 −2
Original line number Diff line number Diff line
@@ -278,7 +278,7 @@ extern int dcd_get_object_def(IN struct dcd_manager *hdcd_mgr,
 *      hdcd_mgr:                A DCD manager handle.
 *      sz_coff_path:           Pointer to name of COFF file containing DCD
 *                              objects.
 *      registerFxn:            Callback fxn to be applied on each located
 *      register_fxn:           Callback fxn to be applied on each located
 *                              DCD object.
 *      handle:                 Handle to pass to callback.
 *  Returns:
@@ -296,7 +296,7 @@ extern int dcd_get_object_def(IN struct dcd_manager *hdcd_mgr,
 */
extern int dcd_get_objects(IN struct dcd_manager *hdcd_mgr,
				  IN char *sz_coff_path,
				  dcd_registerfxn registerFxn, void *handle);
				  dcd_registerfxn register_fxn, void *handle);

/*
 *  ======== dcd_init ========
Loading