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

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
...@@ -1014,12 +1014,12 @@ void io_mbox_msg(u32 msg) ...@@ -1014,12 +1014,12 @@ void io_mbox_msg(u32 msg)
* interrupts the DSP. * interrupts the DSP.
*/ */
void io_request_chnl(struct io_mgr *pio_mgr, struct chnl_object *pchnl, 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 chnl_mgr *chnl_mgr_obj;
struct shm *sm; struct shm *sm;
if (!pchnl || !pwMbVal) if (!pchnl || !mbx_val)
goto func_end; goto func_end;
chnl_mgr_obj = pio_mgr->hchnl_mgr; chnl_mgr_obj = pio_mgr->hchnl_mgr;
sm = pio_mgr->shared_mem; sm = pio_mgr->shared_mem;
...@@ -1033,7 +1033,7 @@ void io_request_chnl(struct io_mgr *pio_mgr, struct chnl_object *pchnl, ...@@ -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 */ /* Indicate to the DSP we have a buffer available for input */
IO_OR_VALUE(pio_mgr->hbridge_context, struct shm, sm, IO_OR_VALUE(pio_mgr->hbridge_context, struct shm, sm,
host_free_mask, (1 << pchnl->chnl_id)); host_free_mask, (1 << pchnl->chnl_id));
*pwMbVal = MBX_PCPY_CLASS; *mbx_val = MBX_PCPY_CLASS;
} else if (io_mode == IO_OUTPUT) { } else if (io_mode == IO_OUTPUT) {
/* /*
* This assertion fails if CHNL_AddIOReq() was called on a * This assertion fails if CHNL_AddIOReq() was called on a
......
...@@ -226,8 +226,8 @@ void *dload_module_open(struct dynamic_loader_stream *module, ...@@ -226,8 +226,8 @@ void *dload_module_open(struct dynamic_loader_stream *module,
* *
* Parameters: * Parameters:
* minfo Handle from dload_module_open for this module * minfo Handle from dload_module_open for this module
* sectionName Pointer to the string name of the section desired * section_name Pointer to the string name of the section desired
* sectionInfo Address of a section info structure pointer to be * section_info Address of a section info structure pointer to be
* initialized * initialized
* *
* Effect: * Effect:
...@@ -237,8 +237,8 @@ void *dload_module_open(struct dynamic_loader_stream *module, ...@@ -237,8 +237,8 @@ void *dload_module_open(struct dynamic_loader_stream *module,
* Returns: * Returns:
* true for success, false for section not found * true for success, false for section not found
************************************************************************* */ ************************************************************************* */
int dload_get_section_info(void *minfo, const char *sectionName, int dload_get_section_info(void *minfo, const char *section_name,
const struct ldr_section_info **const sectionInfo) const struct ldr_section_info **const section_info)
{ {
struct dload_state *dlthis; struct dload_state *dlthis;
struct ldr_section_info *shp; struct ldr_section_info *shp;
...@@ -250,8 +250,8 @@ int dload_get_section_info(void *minfo, const char *sectionName, ...@@ -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++) { for (sec = 0; sec < dlthis->dfile_hdr.df_no_scns; sec++) {
shp = DOFFSEC_IS_LDRSEC(&dlthis->sect_hdrs[sec]); shp = DOFFSEC_IS_LDRSEC(&dlthis->sect_hdrs[sec]);
if (strcmp(sectionName, shp->name) == 0) { if (strcmp(section_name, shp->name) == 0) {
*sectionInfo = shp; *section_info = shp;
return true; return true;
} }
} }
...@@ -267,9 +267,9 @@ int dload_get_section_info(void *minfo, const char *sectionName, ...@@ -267,9 +267,9 @@ int dload_get_section_info(void *minfo, const char *sectionName,
* *
* Parameters: * Parameters:
* minfo Handle from dload_module_open for this module * 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 * section
* sectionData Buffer to contain the section initialized data * section_data Buffer to contain the section initialized data
* *
* Effect: * Effect:
* Copies the initialized data for the specified section into the * Copies the initialized data for the specified section into the
...@@ -279,8 +279,8 @@ int dload_get_section_info(void *minfo, const char *sectionName, ...@@ -279,8 +279,8 @@ int dload_get_section_info(void *minfo, const char *sectionName,
* true for success, false for section not found * true for success, false for section not found
************************************************************************* */ ************************************************************************* */
int dload_get_section(void *minfo, int dload_get_section(void *minfo,
const struct ldr_section_info *sectionInfo, const struct ldr_section_info *section_info,
void *sectionData) void *section_data)
{ {
struct dload_state *dlthis; struct dload_state *dlthis;
u32 pos; u32 pos;
...@@ -289,12 +289,12 @@ int dload_get_section(void *minfo, ...@@ -289,12 +289,12 @@ int dload_get_section(void *minfo,
struct image_packet_t ipacket; struct image_packet_t ipacket;
s32 ipsize; s32 ipsize;
u32 checks; u32 checks;
s8 *dest = (s8 *) sectionData; s8 *dest = (s8 *) section_data;
dlthis = (struct dload_state *)minfo; dlthis = (struct dload_state *)minfo;
if (!dlthis) if (!dlthis)
return false; return false;
sptr = LDRSEC_IS_DOFFSEC(sectionInfo); sptr = LDRSEC_IS_DOFFSEC(section_info);
if (sptr == NULL) if (sptr == NULL)
return false; return false;
......
...@@ -209,17 +209,17 @@ extern bool cmm_init(void); ...@@ -209,17 +209,17 @@ extern bool cmm_init(void);
* c_factor: Add offset if CMM_ADDTODSPPA, sub if CMM_SUBFROMDSPPA. * c_factor: Add offset if CMM_ADDTODSPPA, sub if CMM_SUBFROMDSPPA.
* dw_dsp_base: DSP virtual base byte address. * dw_dsp_base: DSP virtual base byte address.
* ul_dsp_size: Size of DSP segment in bytes. * ul_dsp_size: Size of DSP segment in bytes.
* pulSegId: Address to store segment Id. * sgmt_id: Address to store segment Id.
* *
* Returns: * Returns:
* 0: Success. * 0: Success.
* -EFAULT: Invalid hcmm_mgr handle. * -EFAULT: Invalid hcmm_mgr handle.
* -EINVAL: Invalid input argument. * -EINVAL: Invalid input argument.
* -EPERM: Unable to register. * -EPERM: Unable to register.
* - On success *pulSegId is a valid SM segment ID. * - On success *sgmt_id is a valid SM segment ID.
* Requires: * Requires:
* ul_size > 0 * ul_size > 0
* pulSegId != NULL * sgmt_id != NULL
* dw_gpp_base_pa != 0 * dw_gpp_base_pa != 0
* c_factor = CMM_ADDTODSPPA || c_factor = CMM_SUBFROMDSPPA * c_factor = CMM_ADDTODSPPA || c_factor = CMM_SUBFROMDSPPA
* Ensures: * Ensures:
...@@ -232,7 +232,7 @@ extern int cmm_register_gppsm_seg(struct cmm_object *hcmm_mgr, ...@@ -232,7 +232,7 @@ extern int cmm_register_gppsm_seg(struct cmm_object *hcmm_mgr,
s8 c_factor, s8 c_factor,
unsigned int dw_dsp_base, unsigned int dw_dsp_base,
u32 ul_dsp_size, u32 ul_dsp_size,
u32 *pulSegId, u32 gpp_base_ba); u32 *sgmt_id, u32 gpp_base_ba);
/* /*
* ======== cmm_un_register_gppsm_seg ======== * ======== cmm_un_register_gppsm_seg ========
...@@ -261,18 +261,18 @@ extern int cmm_un_register_gppsm_seg(struct cmm_object *hcmm_mgr, ...@@ -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). * Place on the descriptor on the translator's HaQ (Host Alloc'd Queue).
* Parameters: * Parameters:
* xlator: Handle to a Xlator object. * 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. * uPaSize: Size of SM memory to allocate.
* Returns: * Returns:
* Ptr to valid physical address(Pa) of uPaSize bytes, NULL if failed. * Ptr to valid physical address(Pa) of uPaSize bytes, NULL if failed.
* Requires: * Requires:
* pVaBuf != 0. * va_buf != 0.
* uPaSize != 0. * uPaSize != 0.
* Ensures: * Ensures:
* *
*/ */
extern void *cmm_xlator_alloc_buf(struct cmm_xlatorobject *xlator, extern void *cmm_xlator_alloc_buf(struct cmm_xlatorobject *xlator,
void *pVaBuf, u32 uPaSize); void *va_buf, u32 uPaSize);
/* /*
* ======== cmm_xlator_create ======== * ======== cmm_xlator_create ========
...@@ -283,7 +283,7 @@ extern void *cmm_xlator_alloc_buf(struct cmm_xlatorobject *xlator, ...@@ -283,7 +283,7 @@ extern void *cmm_xlator_alloc_buf(struct cmm_xlatorobject *xlator,
* Parameters: * Parameters:
* xlator: Address to place handle to a new Xlator handle. * xlator: Address to place handle to a new Xlator handle.
* hcmm_mgr: Handle to Cmm Mgr associated with this translator. * 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: * Returns:
* 0: Success. * 0: Success.
* -EINVAL: Bad input Attrs. * -EINVAL: Bad input Attrs.
...@@ -291,13 +291,13 @@ extern void *cmm_xlator_alloc_buf(struct cmm_xlatorobject *xlator, ...@@ -291,13 +291,13 @@ extern void *cmm_xlator_alloc_buf(struct cmm_xlatorobject *xlator,
* Requires: * Requires:
* xlator != NULL * xlator != NULL
* hcmm_mgr != NULL * hcmm_mgr != NULL
* pXlatorAttrs != NULL * xlator_attrs != NULL
* Ensures: * Ensures:
* *
*/ */
extern int cmm_xlator_create(OUT struct cmm_xlatorobject **xlator, extern int cmm_xlator_create(OUT struct cmm_xlatorobject **xlator,
struct cmm_object *hcmm_mgr, struct cmm_object *hcmm_mgr,
struct cmm_xlatorattrs *pXlatorAttrs); struct cmm_xlatorattrs *xlator_attrs);
/* /*
* ======== cmm_xlator_delete ======== * ======== cmm_xlator_delete ========
......
...@@ -169,17 +169,17 @@ extern int cod_get_base_name(struct cod_manager *cod_mgr_obj, ...@@ -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 * Retrieve the entry point of a loaded DSP program image
* Parameters: * Parameters:
* cod_mgr_obj: handle of manager to be deleted * 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: * Returns:
* 0: Success. * 0: Success.
* Requires: * Requires:
* COD module initialized. * COD module initialized.
* valid cod_mgr_obj. * valid cod_mgr_obj.
* pulEntry != NULL. * entry_pt != NULL.
* Ensures: * Ensures:
*/ */
extern int cod_get_entry(struct cod_manager *cod_mgr_obj, extern int cod_get_entry(struct cod_manager *cod_mgr_obj,
u32 *pulEntry); u32 *entry_pt);
/* /*
* ======== cod_get_loader ======== * ======== cod_get_loader ========
...@@ -208,7 +208,7 @@ extern int cod_get_loader(struct cod_manager *cod_mgr_obj, ...@@ -208,7 +208,7 @@ extern int cod_get_loader(struct cod_manager *cod_mgr_obj,
* lib Library handle returned from cod_open(). * lib Library handle returned from cod_open().
* str_sect: name of the section, with or without leading "." * str_sect: name of the section, with or without leading "."
* addr: Location to store address. * addr: Location to store address.
* puLen: Location to store length. * len: Location to store length.
* Returns: * Returns:
* 0: Success * 0: Success
* -ESPIPE: Symbols could not be found or have not been loaded onto * -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, ...@@ -218,16 +218,16 @@ extern int cod_get_loader(struct cod_manager *cod_mgr_obj,
* valid cod_mgr_obj. * valid cod_mgr_obj.
* str_sect != NULL; * str_sect != NULL;
* addr != NULL; * addr != NULL;
* puLen != NULL; * len != NULL;
* Ensures: * Ensures:
* 0: *addr and *puLen contain the address and length of the * 0: *addr and *len contain the address and length of the
* section. * section.
* else: *addr == 0 and *puLen == 0; * else: *addr == 0 and *len == 0;
* *
*/ */
extern int cod_get_section(struct cod_libraryobj *lib, extern int cod_get_section(struct cod_libraryobj *lib,
IN char *str_sect, IN char *str_sect,
OUT u32 *addr, OUT u32 *puLen); OUT u32 *addr, OUT u32 *len);
/* /*
* ======== cod_get_sym_value ======== * ======== cod_get_sym_value ========
......
...@@ -278,7 +278,7 @@ extern int dcd_get_object_def(IN struct dcd_manager *hdcd_mgr, ...@@ -278,7 +278,7 @@ extern int dcd_get_object_def(IN struct dcd_manager *hdcd_mgr,
* hdcd_mgr: A DCD manager handle. * hdcd_mgr: A DCD manager handle.
* sz_coff_path: Pointer to name of COFF file containing DCD * sz_coff_path: Pointer to name of COFF file containing DCD
* objects. * objects.
* registerFxn: Callback fxn to be applied on each located * register_fxn: Callback fxn to be applied on each located
* DCD object. * DCD object.
* handle: Handle to pass to callback. * handle: Handle to pass to callback.
* Returns: * Returns:
...@@ -296,7 +296,7 @@ extern int dcd_get_object_def(IN struct dcd_manager *hdcd_mgr, ...@@ -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, extern int dcd_get_objects(IN struct dcd_manager *hdcd_mgr,
IN char *sz_coff_path, IN char *sz_coff_path,
dcd_registerfxn registerFxn, void *handle); dcd_registerfxn register_fxn, void *handle);
/* /*
* ======== dcd_init ======== * ======== dcd_init ========
......
...@@ -43,7 +43,7 @@ extern int dbll_load(struct dbll_library_obj *lib, ...@@ -43,7 +43,7 @@ extern int dbll_load(struct dbll_library_obj *lib,
dbll_flags flags, dbll_flags flags,
struct dbll_attrs *attrs, u32 * entry); struct dbll_attrs *attrs, u32 * entry);
extern int dbll_load_sect(struct dbll_library_obj *lib, extern int dbll_load_sect(struct dbll_library_obj *lib,
char *sectName, struct dbll_attrs *attrs); char *sec_name, struct dbll_attrs *attrs);
extern int dbll_open(struct dbll_tar_obj *target, char *file, extern int dbll_open(struct dbll_tar_obj *target, char *file,
dbll_flags flags, dbll_flags flags,
struct dbll_library_obj **lib_obj); struct dbll_library_obj **lib_obj);
...@@ -53,7 +53,7 @@ extern void dbll_set_attrs(struct dbll_tar_obj *target, ...@@ -53,7 +53,7 @@ extern void dbll_set_attrs(struct dbll_tar_obj *target,
struct dbll_attrs *pattrs); struct dbll_attrs *pattrs);
extern void dbll_unload(struct dbll_library_obj *lib, struct dbll_attrs *attrs); extern void dbll_unload(struct dbll_library_obj *lib, struct dbll_attrs *attrs);
extern int dbll_unload_sect(struct dbll_library_obj *lib, extern int dbll_unload_sect(struct dbll_library_obj *lib,
char *sectName, struct dbll_attrs *attrs); char *sect_name, struct dbll_attrs *attrs);
#ifdef CONFIG_TIDSPBRIDGE_BACKTRACE #ifdef CONFIG_TIDSPBRIDGE_BACKTRACE
bool dbll_find_dsp_symbol(struct dbll_library_obj *zl_lib, u32 address, bool dbll_find_dsp_symbol(struct dbll_library_obj *zl_lib, u32 address,
u32 offset_range, u32 *sym_addr_output, char *name_output); u32 offset_range, u32 *sym_addr_output, char *name_output);
......
...@@ -334,7 +334,7 @@ typedef bool(*dbll_init_fxn) (void); ...@@ -334,7 +334,7 @@ typedef bool(*dbll_init_fxn) (void);
* lib - Library handle returned from dbll_open(). * lib - Library handle returned from dbll_open().
* flags - Load code, data and/or symbols. * flags - Load code, data and/or symbols.
* attrs - May contain alloc, free, and write function. * attrs - May contain alloc, free, and write function.
* pulEntry - Location to store program entry on output. * entry_pt - Location to store program entry on output.
* Returns: * Returns:
* 0: Success. * 0: Success.
* -EBADF: File read failed. * -EBADF: File read failed.
...@@ -354,7 +354,7 @@ typedef int(*dbll_load_fxn) (struct dbll_library_obj *lib, ...@@ -354,7 +354,7 @@ typedef int(*dbll_load_fxn) (struct dbll_library_obj *lib,
* Load a named section from an library (for overlay support). * Load a named section from an library (for overlay support).
* Parameters: * Parameters:
* lib - Handle returned from dbll_open(). * lib - Handle returned from dbll_open().
* sectName - Name of section to load. * sec_name - Name of section to load.
* attrs - Contains write function and handle to pass to it. * attrs - Contains write function and handle to pass to it.
* Returns: * Returns:
* 0: Success. * 0: Success.
...@@ -362,7 +362,7 @@ typedef int(*dbll_load_fxn) (struct dbll_library_obj *lib, ...@@ -362,7 +362,7 @@ typedef int(*dbll_load_fxn) (struct dbll_library_obj *lib,
* -ENOSYS: Function not implemented. * -ENOSYS: Function not implemented.
* Requires: * Requires:
* Valid lib. * Valid lib.
* sectName != NULL. * sec_name != NULL.
* attrs != NULL. * attrs != NULL.
* attrs->write != NULL. * attrs->write != NULL.
* Ensures: * Ensures:
...@@ -458,7 +458,7 @@ typedef void (*dbll_unload_fxn) (struct dbll_library_obj *library, ...@@ -458,7 +458,7 @@ typedef void (*dbll_unload_fxn) (struct dbll_library_obj *library,
* Unload a named section from an library (for overlay support). * Unload a named section from an library (for overlay support).
* Parameters: * Parameters:
* lib - Handle returned from dbll_open(). * lib - Handle returned from dbll_open().
* sectName - Name of section to load. * sec_name - Name of section to load.
* attrs - Contains free() function and handle to pass to it. * attrs - Contains free() function and handle to pass to it.
* Returns: * Returns:
* 0: Success. * 0: Success.
...@@ -467,7 +467,7 @@ typedef void (*dbll_unload_fxn) (struct dbll_library_obj *library, ...@@ -467,7 +467,7 @@ typedef void (*dbll_unload_fxn) (struct dbll_library_obj *library,
* Requires: * Requires:
* DBL initialized. * DBL initialized.
* Valid lib. * Valid lib.
* sectName != NULL. * sec_name != NULL.
* Ensures: * Ensures:
*/ */
typedef int(*dbll_unload_sect_fxn) (struct dbll_library_obj *lib, typedef int(*dbll_unload_sect_fxn) (struct dbll_library_obj *lib,
......
...@@ -470,7 +470,7 @@ extern void *mem_alloc_phys_mem(IN u32 byte_size, ...@@ -470,7 +470,7 @@ extern void *mem_alloc_phys_mem(IN u32 byte_size,
* Purpose: * Purpose:
* Free the given block of physically contiguous memory. * Free the given block of physically contiguous memory.
* Parameters: * Parameters:
* pVirtualAddress: Pointer to virtual memory region allocated * virtual_address: Pointer to virtual memory region allocated
* by mem_alloc_phys_mem(). * by mem_alloc_phys_mem().
* physical_address: Pointer to physical memory region allocated * physical_address: Pointer to physical memory region allocated
* by mem_alloc_phys_mem(). * by mem_alloc_phys_mem().
...@@ -478,12 +478,12 @@ extern void *mem_alloc_phys_mem(IN u32 byte_size, ...@@ -478,12 +478,12 @@ extern void *mem_alloc_phys_mem(IN u32 byte_size,
* Returns: * Returns:
* Requires: * Requires:
* MEM initialized. * MEM initialized.
* pVirtualAddress is a valid memory address returned by * virtual_address is a valid memory address returned by
* mem_alloc_phys_mem() * mem_alloc_phys_mem()
* Ensures: * Ensures:
* pVirtualAddress is no longer a valid pointer to memory. * virtual_address is no longer a valid pointer to memory.
*/ */
extern void mem_free_phys_mem(void *pVirtualAddress, extern void mem_free_phys_mem(void *virtual_address,
u32 physical_address, u32 byte_size); u32 physical_address, u32 byte_size);
/* /*
......
...@@ -54,8 +54,8 @@ extern void *dload_module_open(struct dynamic_loader_stream ...@@ -54,8 +54,8 @@ extern void *dload_module_open(struct dynamic_loader_stream
* *
* Parameters: * Parameters:
* minfo Handle from dload_module_open for this module * minfo Handle from dload_module_open for this module
* sectionName Pointer to the string name of the section desired * section_name Pointer to the string name of the section desired
* sectionInfo Address of a section info structure pointer to be initialized * section_info Address of a section info structure pointer to be initialized
* *
* Effect: * Effect:
* Finds the specified section in the module information, and fills in * Finds the specified section in the module information, and fills in
...@@ -65,17 +65,17 @@ extern void *dload_module_open(struct dynamic_loader_stream ...@@ -65,17 +65,17 @@ extern void *dload_module_open(struct dynamic_loader_stream
* TRUE for success, FALSE for section not found * TRUE for success, FALSE for section not found
*/ */
extern int dload_get_section_info(void *minfo, extern int dload_get_section_info(void *minfo,
const char *sectionName, const char *section_name,
const struct ldr_section_info const struct ldr_section_info
**const sectionInfo); **const section_info);
/* /*
* Procedure dload_get_section * Procedure dload_get_section
* *
* Parameters: * Parameters:
* minfo Handle from dload_module_open for this module * minfo Handle from dload_module_open for this module
* sectionInfo Pointer to a section info structure for the desired section * 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: * Effect:
* Copies the initialized data for the specified section into the * Copies the initialized data for the specified section into the
...@@ -85,8 +85,8 @@ extern int dload_get_section_info(void *minfo, ...@@ -85,8 +85,8 @@ extern int dload_get_section_info(void *minfo,
* TRUE for success, FALSE for section not found * TRUE for success, FALSE for section not found
*/ */
extern int dload_get_section(void *minfo, extern int dload_get_section(void *minfo,
const struct ldr_section_info *sectionInfo, const struct ldr_section_info *section_info,
void *sectionData); void *section_data);
/* /*
* Procedure dload_module_close * Procedure dload_module_close
......
...@@ -116,7 +116,7 @@ void io_mbox_msg(u32 msg); ...@@ -116,7 +116,7 @@ void io_mbox_msg(u32 msg);
*/ */
extern void io_request_chnl(struct io_mgr *hio_mgr, extern void io_request_chnl(struct io_mgr *hio_mgr,
struct chnl_object *pchnl, struct chnl_object *pchnl,
u8 io_mode, OUT u16 *pwMbVal); u8 io_mode, OUT u16 *mbx_val);
/* /*
* ======== iosm_schedule ======== * ======== iosm_schedule ========
...@@ -190,7 +190,7 @@ extern void io_ddma_clear_chnl_desc(struct io_mgr *hio_mgr, u32 uDDMAChnlId); ...@@ -190,7 +190,7 @@ extern void io_ddma_clear_chnl_desc(struct io_mgr *hio_mgr, u32 uDDMAChnlId);
extern void io_ddma_request_chnl(struct io_mgr *hio_mgr, extern void io_ddma_request_chnl(struct io_mgr *hio_mgr,
struct chnl_object *pchnl, struct chnl_object *pchnl,
struct chnl_irp *chnl_packet_obj, struct chnl_irp *chnl_packet_obj,
OUT u16 *pwMbVal); OUT u16 *mbx_val);
/* /*
* Zero-copy IO functions * Zero-copy IO functions
...@@ -245,7 +245,7 @@ extern void io_ddzc_clear_chnl_desc(struct io_mgr *hio_mgr, u32 uChnlId); ...@@ -245,7 +245,7 @@ extern void io_ddzc_clear_chnl_desc(struct io_mgr *hio_mgr, u32 uChnlId);
extern void io_ddzc_request_chnl(struct io_mgr *hio_mgr, extern void io_ddzc_request_chnl(struct io_mgr *hio_mgr,
struct chnl_object *pchnl, struct chnl_object *pchnl,
struct chnl_irp *chnl_packet_obj, struct chnl_irp *chnl_packet_obj,
OUT u16 *pwMbVal); OUT u16 *mbx_val);
/* /*
* ======== io_sh_msetting ======== * ======== io_sh_msetting ========
......
...@@ -88,7 +88,7 @@ struct node_createargs { ...@@ -88,7 +88,7 @@ struct node_createargs {
* hnode: Node object allocated from node_allocate(). * hnode: Node object allocated from node_allocate().
* dir: Input (DSP_TONODE) or output (DSP_FROMNODE). * dir: Input (DSP_TONODE) or output (DSP_FROMNODE).
* index: Stream index. * index: Stream index.
* pulId: Location to store channel index. * chan_id: Location to store channel index.
* Returns: * Returns:
* 0: Success. * 0: Success.
* -EFAULT: Invalid hnode. * -EFAULT: Invalid hnode.
...@@ -98,11 +98,11 @@ struct node_createargs { ...@@ -98,11 +98,11 @@ struct node_createargs {
* Requires: * Requires:
* node_init(void) called. * node_init(void) called.
* Valid dir. * Valid dir.
* pulId != NULL. * chan_id != NULL.
* Ensures: * Ensures:
*/ */
extern int node_get_channel_id(struct node_object *hnode, extern int node_get_channel_id(struct node_object *hnode,
u32 dir, u32 index, OUT u32 *pulId); u32 dir, u32 index, OUT u32 *chan_id);
/* /*
* ======== node_get_strm_mgr ======== * ======== node_get_strm_mgr ========
......
...@@ -540,7 +540,7 @@ int cmm_register_gppsm_seg(struct cmm_object *hcmm_mgr, ...@@ -540,7 +540,7 @@ int cmm_register_gppsm_seg(struct cmm_object *hcmm_mgr,
u32 dw_gpp_base_pa, u32 ul_size, u32 dw_gpp_base_pa, u32 ul_size,
u32 dsp_addr_offset, s8 c_factor, u32 dsp_addr_offset, s8 c_factor,
u32 dw_dsp_base, u32 ul_dsp_size, u32 dw_dsp_base, u32 ul_dsp_size,
u32 *pulSegId, u32 dw_gpp_base_va) u32 *sgmt_id, u32 dw_gpp_base_va)
{ {
struct cmm_object *cmm_mgr_obj = (struct cmm_object *)hcmm_mgr; struct cmm_object *cmm_mgr_obj = (struct cmm_object *)hcmm_mgr;
struct cmm_allocator *psma = NULL; struct cmm_allocator *psma = NULL;
...@@ -549,7 +549,7 @@ int cmm_register_gppsm_seg(struct cmm_object *hcmm_mgr, ...@@ -549,7 +549,7 @@ int cmm_register_gppsm_seg(struct cmm_object *hcmm_mgr,
s32 slot_seg; s32 slot_seg;
DBC_REQUIRE(ul_size > 0); DBC_REQUIRE(ul_size > 0);
DBC_REQUIRE(pulSegId != NULL); DBC_REQUIRE(sgmt_id != NULL);
DBC_REQUIRE(dw_gpp_base_pa != 0); DBC_REQUIRE(dw_gpp_base_pa != 0);
DBC_REQUIRE(dw_gpp_base_va != 0); DBC_REQUIRE(dw_gpp_base_va != 0);
DBC_REQUIRE((c_factor <= CMM_ADDTODSPPA) && DBC_REQUIRE((c_factor <= CMM_ADDTODSPPA) &&
...@@ -596,7 +596,7 @@ int cmm_register_gppsm_seg(struct cmm_object *hcmm_mgr, ...@@ -596,7 +596,7 @@ int cmm_register_gppsm_seg(struct cmm_object *hcmm_mgr,
} }
if (DSP_SUCCEEDED(status)) { if (DSP_SUCCEEDED(status)) {
/* return the actual segment identifier */ /* return the actual segment identifier */
*pulSegId = (u32) slot_seg + 1; *sgmt_id = (u32) slot_seg + 1;
/* create memory free list */ /* create memory free list */
psma->free_list_head = kzalloc(sizeof(struct lst_list), psma->free_list_head = kzalloc(sizeof(struct lst_list),
GFP_KERNEL); GFP_KERNEL);
...@@ -956,7 +956,7 @@ static struct cmm_allocator *get_allocator(struct cmm_object *cmm_mgr_obj, ...@@ -956,7 +956,7 @@ static struct cmm_allocator *get_allocator(struct cmm_object *cmm_mgr_obj,
*/ */
int cmm_xlator_create(OUT struct cmm_xlatorobject **xlator, int cmm_xlator_create(OUT struct cmm_xlatorobject **xlator,
struct cmm_object *hcmm_mgr, struct cmm_object *hcmm_mgr,
struct cmm_xlatorattrs *pXlatorAttrs) struct cmm_xlatorattrs *xlator_attrs)
{ {
struct cmm_xlator *xlator_object = NULL; struct cmm_xlator *xlator_object = NULL;
int status = 0; int status = 0;
...@@ -966,14 +966,14 @@ int cmm_xlator_create(OUT struct cmm_xlatorobject **xlator, ...@@ -966,14 +966,14 @@ int cmm_xlator_create(OUT struct cmm_xlatorobject **xlator,
DBC_REQUIRE(hcmm_mgr != NULL); DBC_REQUIRE(hcmm_mgr != NULL);
*xlator = NULL; *xlator = NULL;
if (pXlatorAttrs == NULL) if (xlator_attrs == NULL)
pXlatorAttrs = &cmm_dfltxlatorattrs; /* set defaults */ xlator_attrs = &cmm_dfltxlatorattrs; /* set defaults */
xlator_object = kzalloc(sizeof(struct cmm_xlator), GFP_KERNEL); xlator_object = kzalloc(sizeof(struct cmm_xlator), GFP_KERNEL);
if (xlator_object != NULL) { if (xlator_object != NULL) {
xlator_object->hcmm_mgr = hcmm_mgr; /* ref back to CMM */ xlator_object->hcmm_mgr = hcmm_mgr; /* ref back to CMM */
/* SM seg_id */ /* SM seg_id */
xlator_object->ul_seg_id = pXlatorAttrs->ul_seg_id; xlator_object->ul_seg_id = xlator_attrs->ul_seg_id;
} else { } else {
status = -ENOMEM; status = -ENOMEM;
} }
...@@ -1007,7 +1007,7 @@ int cmm_xlator_delete(struct cmm_xlatorobject *xlator, bool force) ...@@ -1007,7 +1007,7 @@ int cmm_xlator_delete(struct cmm_xlatorobject *xlator, bool force)
/* /*
* ======== cmm_xlator_alloc_buf ======== * ======== cmm_xlator_alloc_buf ========
*/ */
void *cmm_xlator_alloc_buf(struct cmm_xlatorobject *xlator, void *pVaBuf, void *cmm_xlator_alloc_buf(struct cmm_xlatorobject *xlator, void *va_buf,
u32 uPaSize) u32 uPaSize)
{ {
struct cmm_xlator *xlator_obj = (struct cmm_xlator *)xlator; struct cmm_xlator *xlator_obj = (struct cmm_xlator *)xlator;
...@@ -1017,20 +1017,20 @@ void *cmm_xlator_alloc_buf(struct cmm_xlatorobject *xlator, void *pVaBuf, ...@@ -1017,20 +1017,20 @@ void *cmm_xlator_alloc_buf(struct cmm_xlatorobject *xlator, void *pVaBuf,
DBC_REQUIRE(refs > 0); DBC_REQUIRE(refs > 0);
DBC_REQUIRE(xlator != NULL); DBC_REQUIRE(xlator != NULL);
DBC_REQUIRE(xlator_obj->hcmm_mgr != NULL); DBC_REQUIRE(xlator_obj->hcmm_mgr != NULL);
DBC_REQUIRE(pVaBuf != NULL); DBC_REQUIRE(va_buf != NULL);
DBC_REQUIRE(uPaSize > 0); DBC_REQUIRE(uPaSize > 0);
DBC_REQUIRE(xlator_obj->ul_seg_id > 0); DBC_REQUIRE(xlator_obj->ul_seg_id > 0);
if (xlator_obj) { if (xlator_obj) {
attrs.ul_seg_id = xlator_obj->ul_seg_id; attrs.ul_seg_id = xlator_obj->ul_seg_id;
*(volatile u32 *)pVaBuf = 0; *(volatile u32 *)va_buf = 0;
/* Alloc SM */ /* Alloc SM */
pbuf = pbuf =
cmm_calloc_buf(xlator_obj->hcmm_mgr, uPaSize, &attrs, NULL); cmm_calloc_buf(xlator_obj->hcmm_mgr, uPaSize, &attrs, NULL);
if (pbuf) { if (pbuf) {
/* convert to translator(node/strm) process Virtual /* convert to translator(node/strm) process Virtual
* address */ * address */
*(volatile u32 **)pVaBuf = *(volatile u32 **)va_buf =
(u32 *) cmm_xlator_translate(xlator, (u32 *) cmm_xlator_translate(xlator,
pbuf, CMM_PA2VA); pbuf, CMM_PA2VA);
} }
......
...@@ -360,13 +360,13 @@ int cod_get_base_name(struct cod_manager *cod_mgr_obj, char *sz_name, ...@@ -360,13 +360,13 @@ int cod_get_base_name(struct cod_manager *cod_mgr_obj, char *sz_name,
* Retrieve the entry point of a loaded DSP program image * Retrieve the entry point of a loaded DSP program image
* *
*/ */
int cod_get_entry(struct cod_manager *cod_mgr_obj, u32 *pulEntry) int cod_get_entry(struct cod_manager *cod_mgr_obj, u32 *entry_pt)
{ {
DBC_REQUIRE(refs > 0); DBC_REQUIRE(refs > 0);
DBC_REQUIRE(IS_VALID(cod_mgr_obj)); DBC_REQUIRE(IS_VALID(cod_mgr_obj));
DBC_REQUIRE(pulEntry != NULL); DBC_REQUIRE(entry_pt != NULL);
*pulEntry = cod_mgr_obj->ul_entry; *entry_pt = cod_mgr_obj->ul_entry;
return 0; return 0;
} }
...@@ -397,7 +397,7 @@ int cod_get_loader(struct cod_manager *cod_mgr_obj, ...@@ -397,7 +397,7 @@ int cod_get_loader(struct cod_manager *cod_mgr_obj,
* given the section name. * given the section name.
*/ */
int cod_get_section(struct cod_libraryobj *lib, IN char *str_sect, int cod_get_section(struct cod_libraryobj *lib, IN char *str_sect,
OUT u32 *addr, OUT u32 *puLen) OUT u32 *addr, OUT u32 *len)
{ {
struct cod_manager *cod_mgr_obj; struct cod_manager *cod_mgr_obj;
int status = 0; int status = 0;
...@@ -407,19 +407,19 @@ int cod_get_section(struct cod_libraryobj *lib, IN char *str_sect, ...@@ -407,19 +407,19 @@ int cod_get_section(struct cod_libraryobj *lib, IN char *str_sect,
DBC_REQUIRE(IS_VALID(lib->cod_mgr)); DBC_REQUIRE(IS_VALID(lib->cod_mgr));
DBC_REQUIRE(str_sect != NULL); DBC_REQUIRE(str_sect != NULL);
DBC_REQUIRE(addr != NULL); DBC_REQUIRE(addr != NULL);
DBC_REQUIRE(puLen != NULL); DBC_REQUIRE(len != NULL);
*addr = 0; *addr = 0;
*puLen = 0; *len = 0;
if (lib != NULL) { if (lib != NULL) {
cod_mgr_obj = lib->cod_mgr; cod_mgr_obj = lib->cod_mgr;
status = cod_mgr_obj->fxns.get_sect_fxn(lib->dbll_lib, str_sect, status = cod_mgr_obj->fxns.get_sect_fxn(lib->dbll_lib, str_sect,
addr, puLen); addr, len);
} else { } else {
status = -ESPIPE; status = -ESPIPE;
} }
DBC_ENSURE(DSP_SUCCEEDED(status) || ((*addr == 0) && (*puLen == 0))); DBC_ENSURE(DSP_SUCCEEDED(status) || ((*addr == 0) && (*len == 0)));
return status; return status;
} }
......
...@@ -573,7 +573,7 @@ int dbll_load(struct dbll_library_obj *lib, dbll_flags flags, ...@@ -573,7 +573,7 @@ int dbll_load(struct dbll_library_obj *lib, dbll_flags flags,
* ======== dbll_load_sect ======== * ======== dbll_load_sect ========
* Not supported for COFF. * Not supported for COFF.
*/ */
int dbll_load_sect(struct dbll_library_obj *zl_lib, char *sectName, int dbll_load_sect(struct dbll_library_obj *zl_lib, char *sec_name,
struct dbll_attrs *attrs) struct dbll_attrs *attrs)
{ {
DBC_REQUIRE(zl_lib); DBC_REQUIRE(zl_lib);
...@@ -853,11 +853,11 @@ void dbll_unload(struct dbll_library_obj *lib, struct dbll_attrs *attrs) ...@@ -853,11 +853,11 @@ void dbll_unload(struct dbll_library_obj *lib, struct dbll_attrs *attrs)
* ======== dbll_unload_sect ======== * ======== dbll_unload_sect ========
* Not supported for COFF. * Not supported for COFF.
*/ */
int dbll_unload_sect(struct dbll_library_obj *lib, char *sectName, int dbll_unload_sect(struct dbll_library_obj *lib, char *sec_name,
struct dbll_attrs *attrs) struct dbll_attrs *attrs)
{ {
DBC_REQUIRE(refs > 0); DBC_REQUIRE(refs > 0);
DBC_REQUIRE(sectName != NULL); DBC_REQUIRE(sec_name != NULL);
return -ENOSYS; return -ENOSYS;
} }
......
...@@ -66,7 +66,7 @@ static int get_attrs_from_buf(char *psz_buf, u32 ul_buf_size, ...@@ -66,7 +66,7 @@ static int get_attrs_from_buf(char *psz_buf, u32 ul_buf_size,
enum dsp_dcdobjtype obj_type, enum dsp_dcdobjtype obj_type,
struct dcd_genericobj *gen_obj); struct dcd_genericobj *gen_obj);
static void compress_buf(char *psz_buf, u32 ul_buf_size, s32 char_size); static void compress_buf(char *psz_buf, u32 ul_buf_size, s32 char_size);
static char dsp_char2_gpp_char(char *pWord, s32 dsp_char_size); static char dsp_char2_gpp_char(char *word, s32 dsp_char_size);
static int get_dep_lib_info(IN struct dcd_manager *hdcd_mgr, static int get_dep_lib_info(IN struct dcd_manager *hdcd_mgr,
IN struct dsp_uuid *uuid_obj, IN struct dsp_uuid *uuid_obj,
IN OUT u16 *num_libs, IN OUT u16 *num_libs,
...@@ -534,7 +534,7 @@ int dcd_get_object_def(IN struct dcd_manager *hdcd_mgr, ...@@ -534,7 +534,7 @@ int dcd_get_object_def(IN struct dcd_manager *hdcd_mgr,
* ======== dcd_get_objects ======== * ======== dcd_get_objects ========
*/ */
int dcd_get_objects(IN struct dcd_manager *hdcd_mgr, int dcd_get_objects(IN struct dcd_manager *hdcd_mgr,
IN char *sz_coff_path, dcd_registerfxn registerFxn, IN char *sz_coff_path, dcd_registerfxn register_fxn,
void *handle) void *handle)
{ {
struct dcd_manager *dcd_mgr_obj = hdcd_mgr; struct dcd_manager *dcd_mgr_obj = hdcd_mgr;
...@@ -608,7 +608,7 @@ int dcd_get_objects(IN struct dcd_manager *hdcd_mgr, ...@@ -608,7 +608,7 @@ int dcd_get_objects(IN struct dcd_manager *hdcd_mgr,
object_type = atoi(token); object_type = atoi(token);
/* /*
* Apply registerFxn to the found DCD object. * Apply register_fxn to the found DCD object.
* Possible actions include: * Possible actions include:
* *
* 1) Register found DCD object. * 1) Register found DCD object.
...@@ -616,7 +616,7 @@ int dcd_get_objects(IN struct dcd_manager *hdcd_mgr, ...@@ -616,7 +616,7 @@ int dcd_get_objects(IN struct dcd_manager *hdcd_mgr,
* 3) Add overlay node. * 3) Add overlay node.
*/ */
status = status =
registerFxn(&dsp_uuid_obj, object_type, handle); register_fxn(&dsp_uuid_obj, object_type, handle);
if (DSP_FAILED(status)) { if (DSP_FAILED(status)) {
/* if error occurs, break from while loop. */ /* if error occurs, break from while loop. */
break; break;
...@@ -1376,13 +1376,13 @@ static void compress_buf(char *psz_buf, u32 ul_buf_size, s32 char_size) ...@@ -1376,13 +1376,13 @@ static void compress_buf(char *psz_buf, u32 ul_buf_size, s32 char_size)
* Purpose: * Purpose:
* Convert DSP char to host GPP char in a portable manner * Convert DSP char to host GPP char in a portable manner
*/ */
static char dsp_char2_gpp_char(char *pWord, s32 dsp_char_size) static char dsp_char2_gpp_char(char *word, s32 dsp_char_size)
{ {
char ch = '\0'; char ch = '\0';
char *ch_src; char *ch_src;
s32 i; s32 i;
for (ch_src = pWord, i = dsp_char_size; i > 0; i--) for (ch_src = word, i = dsp_char_size; i > 0; i--)
ch |= *ch_src++; ch |= *ch_src++;
return ch; return ch;
......
...@@ -1037,12 +1037,12 @@ void *mem_alloc_phys_mem(u32 byte_size, u32 ulAlign, OUT u32 * physical_address) ...@@ -1037,12 +1037,12 @@ void *mem_alloc_phys_mem(u32 byte_size, u32 ulAlign, OUT u32 * physical_address)
* Purpose: * Purpose:
* Free the given block of physically contiguous memory. * Free the given block of physically contiguous memory.
*/ */
void mem_free_phys_mem(void *pVirtualAddress, u32 physical_address, void mem_free_phys_mem(void *virtual_address, u32 physical_address,
u32 byte_size) u32 byte_size)
{ {
DBC_REQUIRE(pVirtualAddress != NULL); DBC_REQUIRE(virtual_address != NULL);
if (!ext_phys_mem_pool_enabled) if (!ext_phys_mem_pool_enabled)
dma_free_coherent(NULL, byte_size, pVirtualAddress, dma_free_coherent(NULL, byte_size, virtual_address,
physical_address); physical_address);
} }
...@@ -299,7 +299,7 @@ static bool get_symbol_value(void *handle, void *parg, void *rmm_handle, ...@@ -299,7 +299,7 @@ static bool get_symbol_value(void *handle, void *parg, void *rmm_handle,
char *symName, struct dbll_sym_val **sym); char *symName, struct dbll_sym_val **sym);
static int load_lib(struct nldr_nodeobject *nldr_node_obj, static int load_lib(struct nldr_nodeobject *nldr_node_obj,
struct lib_node *root, struct dsp_uuid uuid, struct lib_node *root, struct dsp_uuid uuid,
bool rootPersistent, bool root_prstnt,
struct dbll_library_obj **lib_path, struct dbll_library_obj **lib_path,
enum nldr_phase phase, u16 depth); enum nldr_phase phase, u16 depth);
static int load_ovly(struct nldr_nodeobject *nldr_node_obj, static int load_ovly(struct nldr_nodeobject *nldr_node_obj,
...@@ -1243,7 +1243,7 @@ static bool get_symbol_value(void *handle, void *parg, void *rmm_handle, ...@@ -1243,7 +1243,7 @@ static bool get_symbol_value(void *handle, void *parg, void *rmm_handle,
*/ */
static int load_lib(struct nldr_nodeobject *nldr_node_obj, static int load_lib(struct nldr_nodeobject *nldr_node_obj,
struct lib_node *root, struct dsp_uuid uuid, struct lib_node *root, struct dsp_uuid uuid,
bool rootPersistent, bool root_prstnt,
struct dbll_library_obj **lib_path, struct dbll_library_obj **lib_path,
enum nldr_phase phase, u16 depth) enum nldr_phase phase, u16 depth)
{ {
...@@ -1300,7 +1300,7 @@ static int load_lib(struct nldr_nodeobject *nldr_node_obj, ...@@ -1300,7 +1300,7 @@ static int load_lib(struct nldr_nodeobject *nldr_node_obj,
kfree(psz_file_name); kfree(psz_file_name);
/* Check to see if library not already loaded */ /* Check to see if library not already loaded */
if (DSP_SUCCEEDED(status) && rootPersistent) { if (DSP_SUCCEEDED(status) && root_prstnt) {
lib_status = lib_status =
find_in_persistent_lib_array(nldr_node_obj, root->lib); find_in_persistent_lib_array(nldr_node_obj, root->lib);
/* Close library */ /* Close library */
...@@ -1374,7 +1374,7 @@ static int load_lib(struct nldr_nodeobject *nldr_node_obj, ...@@ -1374,7 +1374,7 @@ static int load_lib(struct nldr_nodeobject *nldr_node_obj,
/* If root library is NOT persistent, and dep library /* If root library is NOT persistent, and dep library
* is, then record it. If root library IS persistent, * is, then record it. If root library IS persistent,
* the deplib is already included */ * the deplib is already included */
if (!rootPersistent && persistent_dep_libs[i] && if (!root_prstnt && persistent_dep_libs[i] &&
*nldr_node_obj->pf_phase_split) { *nldr_node_obj->pf_phase_split) {
if ((nldr_node_obj->pers_libs) >= MAXLIBS) { if ((nldr_node_obj->pers_libs) >= MAXLIBS) {
status = -EILSEQ; status = -EILSEQ;
...@@ -1386,7 +1386,7 @@ static int load_lib(struct nldr_nodeobject *nldr_node_obj, ...@@ -1386,7 +1386,7 @@ static int load_lib(struct nldr_nodeobject *nldr_node_obj,
&nldr_node_obj->pers_lib_table &nldr_node_obj->pers_lib_table
[nldr_node_obj->pers_libs]; [nldr_node_obj->pers_libs];
} else { } else {
if (rootPersistent) if (root_prstnt)
persistent_dep_libs[i] = true; persistent_dep_libs[i] = true;
/* Allocate library within phase */ /* Allocate library within phase */
...@@ -1400,7 +1400,7 @@ static int load_lib(struct nldr_nodeobject *nldr_node_obj, ...@@ -1400,7 +1400,7 @@ static int load_lib(struct nldr_nodeobject *nldr_node_obj,
if (DSP_SUCCEEDED(status)) { if (DSP_SUCCEEDED(status)) {
if ((status != 0) && if ((status != 0) &&
!rootPersistent && persistent_dep_libs[i] && !root_prstnt && persistent_dep_libs[i] &&
*nldr_node_obj->pf_phase_split) { *nldr_node_obj->pf_phase_split) {
(nldr_node_obj->pers_libs)++; (nldr_node_obj->pers_libs)++;
} else { } else {
......
...@@ -248,7 +248,7 @@ static void fill_stream_def(struct node_object *hnode, ...@@ -248,7 +248,7 @@ static void fill_stream_def(struct node_object *hnode,
struct node_strmdef *pstrm_def, struct node_strmdef *pstrm_def,
struct dsp_strmattr *pattrs); struct dsp_strmattr *pattrs);
static void free_stream(struct node_mgr *hnode_mgr, struct stream_chnl stream); static void free_stream(struct node_mgr *hnode_mgr, struct stream_chnl stream);
static int get_fxn_address(struct node_object *hnode, u32 * pulFxnAddr, static int get_fxn_address(struct node_object *hnode, u32 * fxn_addr,
u32 uPhase); u32 uPhase);
static int get_node_props(struct dcd_manager *hdcd_mgr, static int get_node_props(struct dcd_manager *hdcd_mgr,
struct node_object *hnode, struct node_object *hnode,
...@@ -1762,13 +1762,13 @@ int node_get_attr(struct node_object *hnode, ...@@ -1762,13 +1762,13 @@ int node_get_attr(struct node_object *hnode,
* host and a node. * host and a node.
*/ */
int node_get_channel_id(struct node_object *hnode, u32 dir, u32 index, int node_get_channel_id(struct node_object *hnode, u32 dir, u32 index,
OUT u32 *pulId) OUT u32 *chan_id)
{ {
enum node_type node_type; enum node_type node_type;
int status = -EINVAL; int status = -EINVAL;
DBC_REQUIRE(refs > 0); DBC_REQUIRE(refs > 0);
DBC_REQUIRE(dir == DSP_TONODE || dir == DSP_FROMNODE); DBC_REQUIRE(dir == DSP_TONODE || dir == DSP_FROMNODE);
DBC_REQUIRE(pulId != NULL); DBC_REQUIRE(chan_id != NULL);
if (!hnode) { if (!hnode) {
status = -EFAULT; status = -EFAULT;
...@@ -1782,7 +1782,7 @@ int node_get_channel_id(struct node_object *hnode, u32 dir, u32 index, ...@@ -1782,7 +1782,7 @@ int node_get_channel_id(struct node_object *hnode, u32 dir, u32 index,
if (dir == DSP_TONODE) { if (dir == DSP_TONODE) {
if (index < MAX_INPUTS(hnode)) { if (index < MAX_INPUTS(hnode)) {
if (hnode->inputs[index].type == HOSTCONNECT) { if (hnode->inputs[index].type == HOSTCONNECT) {
*pulId = hnode->inputs[index].dev_id; *chan_id = hnode->inputs[index].dev_id;
status = 0; status = 0;
} }
} }
...@@ -1790,7 +1790,7 @@ int node_get_channel_id(struct node_object *hnode, u32 dir, u32 index, ...@@ -1790,7 +1790,7 @@ int node_get_channel_id(struct node_object *hnode, u32 dir, u32 index,
DBC_ASSERT(dir == DSP_FROMNODE); DBC_ASSERT(dir == DSP_FROMNODE);
if (index < MAX_OUTPUTS(hnode)) { if (index < MAX_OUTPUTS(hnode)) {
if (hnode->outputs[index].type == HOSTCONNECT) { if (hnode->outputs[index].type == HOSTCONNECT) {
*pulId = hnode->outputs[index].dev_id; *chan_id = hnode->outputs[index].dev_id;
status = 0; status = 0;
} }
} }
...@@ -2819,7 +2819,7 @@ static void free_stream(struct node_mgr *hnode_mgr, struct stream_chnl stream) ...@@ -2819,7 +2819,7 @@ static void free_stream(struct node_mgr *hnode_mgr, struct stream_chnl stream)
* Purpose: * Purpose:
* Retrieves the address for create, execute or delete phase for a node. * Retrieves the address for create, execute or delete phase for a node.
*/ */
static int get_fxn_address(struct node_object *hnode, u32 * pulFxnAddr, static int get_fxn_address(struct node_object *hnode, u32 * fxn_addr,
u32 uPhase) u32 uPhase)
{ {
char *pstr_fxn_name = NULL; char *pstr_fxn_name = NULL;
...@@ -2850,7 +2850,7 @@ static int get_fxn_address(struct node_object *hnode, u32 * pulFxnAddr, ...@@ -2850,7 +2850,7 @@ static int get_fxn_address(struct node_object *hnode, u32 * pulFxnAddr,
status = status =
hnode_mgr->nldr_fxns.pfn_get_fxn_addr(hnode->nldr_node_obj, hnode_mgr->nldr_fxns.pfn_get_fxn_addr(hnode->nldr_node_obj,
pstr_fxn_name, pulFxnAddr); pstr_fxn_name, fxn_addr);
return status; return status;
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment