Commit aa09b091 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:
========================================
pArb to arb
pbAlreadyAttached to already_attached
pBaseAddr to base_addr
pbHostBuf to host_buff
pBufVa to buf_va
pChnlInfo to channel_info
pConfig to config_param
pContent to content
pContext to context
pdcdProps to dcd_prop
pDepLibUuids to dep_lib_uuids
pDevNodeString to dev_node_strg
pDispAttrs to disp_attrs
pDsp to dsp
pdwAutoStart to auto_start
pdwChnl to chnl
========================================
Signed-off-by: default avatarRene Sapiens <rene.sapiens@ti.com>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@suse.de>
parent 95870a88
...@@ -80,7 +80,7 @@ static void free_chirp_list(struct lst_list *pList); ...@@ -80,7 +80,7 @@ static void free_chirp_list(struct lst_list *pList);
static struct chnl_irp *make_new_chirp(void); static struct chnl_irp *make_new_chirp(void);
static int search_free_channel(struct chnl_mgr *chnl_mgr_obj, static int search_free_channel(struct chnl_mgr *chnl_mgr_obj,
OUT u32 *pdwChnl); OUT u32 *chnl);
/* /*
* ======== bridge_chnl_add_io_req ======== * ======== bridge_chnl_add_io_req ========
...@@ -996,7 +996,7 @@ static struct chnl_irp *make_new_chirp(void) ...@@ -996,7 +996,7 @@ static struct chnl_irp *make_new_chirp(void)
* Search for a free channel slot in the array of channel pointers. * Search for a free channel slot in the array of channel pointers.
*/ */
static int search_free_channel(struct chnl_mgr *chnl_mgr_obj, static int search_free_channel(struct chnl_mgr *chnl_mgr_obj,
OUT u32 *pdwChnl) OUT u32 *chnl)
{ {
int status = -ENOSR; int status = -ENOSR;
u32 i; u32 i;
...@@ -1006,7 +1006,7 @@ static int search_free_channel(struct chnl_mgr *chnl_mgr_obj, ...@@ -1006,7 +1006,7 @@ static int search_free_channel(struct chnl_mgr *chnl_mgr_obj,
for (i = 0; i < chnl_mgr_obj->max_channels; i++) { for (i = 0; i < chnl_mgr_obj->max_channels; i++) {
if (chnl_mgr_obj->ap_channel[i] == NULL) { if (chnl_mgr_obj->ap_channel[i] == NULL) {
status = 0; status = 0;
*pdwChnl = i; *chnl = i;
break; break;
} }
} }
......
...@@ -76,7 +76,7 @@ ...@@ -76,7 +76,7 @@
/* Forward Declarations: */ /* Forward Declarations: */
static int bridge_brd_monitor(struct bridge_dev_context *dev_context); static int bridge_brd_monitor(struct bridge_dev_context *dev_context);
static int bridge_brd_read(struct bridge_dev_context *dev_context, static int bridge_brd_read(struct bridge_dev_context *dev_context,
OUT u8 *pbHostBuf, OUT u8 *host_buff,
u32 dsp_addr, u32 ul_num_bytes, u32 dsp_addr, u32 ul_num_bytes,
u32 ulMemType); u32 ulMemType);
static int bridge_brd_start(struct bridge_dev_context *dev_context, static int bridge_brd_start(struct bridge_dev_context *dev_context,
...@@ -85,7 +85,7 @@ static int bridge_brd_status(struct bridge_dev_context *dev_context, ...@@ -85,7 +85,7 @@ static int bridge_brd_status(struct bridge_dev_context *dev_context,
int *pdwState); int *pdwState);
static int bridge_brd_stop(struct bridge_dev_context *dev_context); static int bridge_brd_stop(struct bridge_dev_context *dev_context);
static int bridge_brd_write(struct bridge_dev_context *dev_context, static int bridge_brd_write(struct bridge_dev_context *dev_context,
IN u8 *pbHostBuf, IN u8 *host_buff,
u32 dsp_addr, u32 ul_num_bytes, u32 dsp_addr, u32 ul_num_bytes,
u32 ulMemType); u32 ulMemType);
static int bridge_brd_set_state(struct bridge_dev_context *dev_ctxt, static int bridge_brd_set_state(struct bridge_dev_context *dev_ctxt,
...@@ -94,7 +94,7 @@ static int bridge_brd_mem_copy(struct bridge_dev_context *dev_ctxt, ...@@ -94,7 +94,7 @@ static int bridge_brd_mem_copy(struct bridge_dev_context *dev_ctxt,
u32 ulDspDestAddr, u32 ulDspSrcAddr, u32 ulDspDestAddr, u32 ulDspSrcAddr,
u32 ul_num_bytes, u32 ulMemType); u32 ul_num_bytes, u32 ulMemType);
static int bridge_brd_mem_write(struct bridge_dev_context *dev_context, static int bridge_brd_mem_write(struct bridge_dev_context *dev_context,
IN u8 *pbHostBuf, u32 dsp_addr, IN u8 *host_buff, u32 dsp_addr,
u32 ul_num_bytes, u32 ulMemType); u32 ul_num_bytes, u32 ulMemType);
static int bridge_brd_mem_map(struct bridge_dev_context *dev_ctxt, static int bridge_brd_mem_map(struct bridge_dev_context *dev_ctxt,
u32 ul_mpu_addr, u32 ulVirtAddr, u32 ul_mpu_addr, u32 ulVirtAddr,
...@@ -105,7 +105,7 @@ static int bridge_brd_mem_un_map(struct bridge_dev_context *dev_ctxt, ...@@ -105,7 +105,7 @@ static int bridge_brd_mem_un_map(struct bridge_dev_context *dev_ctxt,
static int bridge_dev_create(OUT struct bridge_dev_context static int bridge_dev_create(OUT struct bridge_dev_context
**ppDevContext, **ppDevContext,
struct dev_object *hdev_obj, struct dev_object *hdev_obj,
IN struct cfg_hostres *pConfig); IN struct cfg_hostres *config_param);
static int bridge_dev_ctrl(struct bridge_dev_context *dev_context, static int bridge_dev_ctrl(struct bridge_dev_context *dev_context,
u32 dw_cmd, IN OUT void *pargs); u32 dw_cmd, IN OUT void *pargs);
static int bridge_dev_destroy(struct bridge_dev_context *dev_context); static int bridge_dev_destroy(struct bridge_dev_context *dev_context);
...@@ -304,7 +304,7 @@ static int bridge_brd_monitor(struct bridge_dev_context *dev_ctxt) ...@@ -304,7 +304,7 @@ static int bridge_brd_monitor(struct bridge_dev_context *dev_ctxt)
* Reads buffers for DSP memory. * Reads buffers for DSP memory.
*/ */
static int bridge_brd_read(struct bridge_dev_context *dev_ctxt, static int bridge_brd_read(struct bridge_dev_context *dev_ctxt,
OUT u8 *pbHostBuf, u32 dsp_addr, OUT u8 *host_buff, u32 dsp_addr,
u32 ul_num_bytes, u32 ulMemType) u32 ul_num_bytes, u32 ulMemType)
{ {
int status = 0; int status = 0;
...@@ -321,12 +321,12 @@ static int bridge_brd_read(struct bridge_dev_context *dev_ctxt, ...@@ -321,12 +321,12 @@ static int bridge_brd_read(struct bridge_dev_context *dev_ctxt,
dev_context->dw_internal_size) { dev_context->dw_internal_size) {
offset = dsp_addr - dev_context->dw_dsp_start_add; offset = dsp_addr - dev_context->dw_dsp_start_add;
} else { } else {
status = read_ext_dsp_data(dev_context, pbHostBuf, dsp_addr, status = read_ext_dsp_data(dev_context, host_buff, dsp_addr,
ul_num_bytes, ulMemType); ul_num_bytes, ulMemType);
return status; return status;
} }
/* copy the data from DSP memory, */ /* copy the data from DSP memory, */
memcpy(pbHostBuf, (void *)(dsp_base_addr + offset), ul_num_bytes); memcpy(host_buff, (void *)(dsp_base_addr + offset), ul_num_bytes);
return status; return status;
} }
...@@ -765,7 +765,7 @@ static int bridge_brd_status(struct bridge_dev_context *dev_ctxt, ...@@ -765,7 +765,7 @@ static int bridge_brd_status(struct bridge_dev_context *dev_ctxt,
* Copies the buffers to DSP internal or external memory. * Copies the buffers to DSP internal or external memory.
*/ */
static int bridge_brd_write(struct bridge_dev_context *dev_ctxt, static int bridge_brd_write(struct bridge_dev_context *dev_ctxt,
IN u8 *pbHostBuf, u32 dsp_addr, IN u8 *host_buff, u32 dsp_addr,
u32 ul_num_bytes, u32 ulMemType) u32 ul_num_bytes, u32 ulMemType)
{ {
int status = 0; int status = 0;
...@@ -777,10 +777,10 @@ static int bridge_brd_write(struct bridge_dev_context *dev_ctxt, ...@@ -777,10 +777,10 @@ static int bridge_brd_write(struct bridge_dev_context *dev_ctxt,
} }
if ((dsp_addr - dev_context->dw_dsp_start_add) < if ((dsp_addr - dev_context->dw_dsp_start_add) <
dev_context->dw_internal_size) { dev_context->dw_internal_size) {
status = write_dsp_data(dev_ctxt, pbHostBuf, dsp_addr, status = write_dsp_data(dev_ctxt, host_buff, dsp_addr,
ul_num_bytes, ulMemType); ul_num_bytes, ulMemType);
} else { } else {
status = write_ext_dsp_data(dev_context, pbHostBuf, dsp_addr, status = write_ext_dsp_data(dev_context, host_buff, dsp_addr,
ul_num_bytes, ulMemType, false); ul_num_bytes, ulMemType, false);
} }
...@@ -794,12 +794,12 @@ static int bridge_brd_write(struct bridge_dev_context *dev_ctxt, ...@@ -794,12 +794,12 @@ static int bridge_brd_write(struct bridge_dev_context *dev_ctxt,
static int bridge_dev_create(OUT struct bridge_dev_context static int bridge_dev_create(OUT struct bridge_dev_context
**ppDevContext, **ppDevContext,
struct dev_object *hdev_obj, struct dev_object *hdev_obj,
IN struct cfg_hostres *pConfig) IN struct cfg_hostres *config_param)
{ {
int status = 0; int status = 0;
struct bridge_dev_context *dev_context = NULL; struct bridge_dev_context *dev_context = NULL;
s32 entry_ndx; s32 entry_ndx;
struct cfg_hostres *resources = pConfig; struct cfg_hostres *resources = config_param;
struct pg_table_attrs *pt_attrs; struct pg_table_attrs *pt_attrs;
u32 pg_tbl_pa; u32 pg_tbl_pa;
u32 pg_tbl_va; u32 pg_tbl_va;
...@@ -825,10 +825,10 @@ static int bridge_dev_create(OUT struct bridge_dev_context ...@@ -825,10 +825,10 @@ static int bridge_dev_create(OUT struct bridge_dev_context
dev_context->atlb_entry[entry_ndx].ul_dsp_va = 0; dev_context->atlb_entry[entry_ndx].ul_dsp_va = 0;
} }
dev_context->dw_dsp_base_addr = (u32) MEM_LINEAR_ADDRESS((void *) dev_context->dw_dsp_base_addr = (u32) MEM_LINEAR_ADDRESS((void *)
(pConfig-> (config_param->
dw_mem_base dw_mem_base
[3]), [3]),
pConfig-> config_param->
dw_mem_length dw_mem_length
[3]); [3]);
if (!dev_context->dw_dsp_base_addr) if (!dev_context->dw_dsp_base_addr)
...@@ -1147,7 +1147,7 @@ static int bridge_brd_mem_copy(struct bridge_dev_context *dev_ctxt, ...@@ -1147,7 +1147,7 @@ static int bridge_brd_mem_copy(struct bridge_dev_context *dev_ctxt,
/* Mem Write does not halt the DSP to write unlike bridge_brd_write */ /* Mem Write does not halt the DSP to write unlike bridge_brd_write */
static int bridge_brd_mem_write(struct bridge_dev_context *dev_ctxt, static int bridge_brd_mem_write(struct bridge_dev_context *dev_ctxt,
IN u8 *pbHostBuf, u32 dsp_addr, IN u8 *host_buff, u32 dsp_addr,
u32 ul_num_bytes, u32 ulMemType) u32 ul_num_bytes, u32 ulMemType)
{ {
int status = 0; int status = 0;
...@@ -1161,16 +1161,16 @@ static int bridge_brd_mem_write(struct bridge_dev_context *dev_ctxt, ...@@ -1161,16 +1161,16 @@ static int bridge_brd_mem_write(struct bridge_dev_context *dev_ctxt,
if (dsp_addr < (dev_context->dw_dsp_start_add + if (dsp_addr < (dev_context->dw_dsp_start_add +
dev_context->dw_internal_size)) { dev_context->dw_internal_size)) {
status = status =
write_dsp_data(dev_ctxt, pbHostBuf, dsp_addr, write_dsp_data(dev_ctxt, host_buff, dsp_addr,
ul_bytes, ulMemType); ul_bytes, ulMemType);
} else { } else {
status = write_ext_dsp_data(dev_ctxt, pbHostBuf, status = write_ext_dsp_data(dev_ctxt, host_buff,
dsp_addr, ul_bytes, dsp_addr, ul_bytes,
ulMemType, true); ulMemType, true);
} }
ul_remain_bytes -= ul_bytes; ul_remain_bytes -= ul_bytes;
dsp_addr += ul_bytes; dsp_addr += ul_bytes;
pbHostBuf = pbHostBuf + ul_bytes; host_buff = host_buff + ul_bytes;
} }
return status; return status;
} }
......
...@@ -51,7 +51,7 @@ bool symbols_reloaded = true; ...@@ -51,7 +51,7 @@ bool symbols_reloaded = true;
* Copies DSP external memory buffers to the host side buffers. * Copies DSP external memory buffers to the host side buffers.
*/ */
int read_ext_dsp_data(struct bridge_dev_context *dev_ctxt, int read_ext_dsp_data(struct bridge_dev_context *dev_ctxt,
OUT u8 *pbHostBuf, u32 dsp_addr, OUT u8 *host_buff, u32 dsp_addr,
u32 ul_num_bytes, u32 ulMemType) u32 ul_num_bytes, u32 ulMemType)
{ {
int status = 0; int status = 0;
...@@ -168,7 +168,7 @@ int read_ext_dsp_data(struct bridge_dev_context *dev_ctxt, ...@@ -168,7 +168,7 @@ int read_ext_dsp_data(struct bridge_dev_context *dev_ctxt,
offset = dsp_addr - ul_ext_base; offset = dsp_addr - ul_ext_base;
if (DSP_SUCCEEDED(status)) if (DSP_SUCCEEDED(status))
memcpy(pbHostBuf, (u8 *) dw_base_addr + offset, ul_num_bytes); memcpy(host_buff, (u8 *) dw_base_addr + offset, ul_num_bytes);
return status; return status;
} }
...@@ -179,7 +179,7 @@ int read_ext_dsp_data(struct bridge_dev_context *dev_ctxt, ...@@ -179,7 +179,7 @@ int read_ext_dsp_data(struct bridge_dev_context *dev_ctxt,
* Copies buffers to the DSP internal/external memory. * Copies buffers to the DSP internal/external memory.
*/ */
int write_dsp_data(struct bridge_dev_context *dev_ctxt, int write_dsp_data(struct bridge_dev_context *dev_ctxt,
IN u8 *pbHostBuf, u32 dsp_addr, u32 ul_num_bytes, IN u8 *host_buff, u32 dsp_addr, u32 ul_num_bytes,
u32 ulMemType) u32 ulMemType)
{ {
u32 offset; u32 offset;
...@@ -211,9 +211,9 @@ int write_dsp_data(struct bridge_dev_context *dev_ctxt, ...@@ -211,9 +211,9 @@ int write_dsp_data(struct bridge_dev_context *dev_ctxt,
return -EPERM; return -EPERM;
} }
if (ul_num_bytes) if (ul_num_bytes)
memcpy((u8 *) (dw_base_addr + offset), pbHostBuf, ul_num_bytes); memcpy((u8 *) (dw_base_addr + offset), host_buff, ul_num_bytes);
else else
*((u32 *) pbHostBuf) = dw_base_addr + offset; *((u32 *) host_buff) = dw_base_addr + offset;
return status; return status;
} }
...@@ -225,7 +225,7 @@ int write_dsp_data(struct bridge_dev_context *dev_ctxt, ...@@ -225,7 +225,7 @@ int write_dsp_data(struct bridge_dev_context *dev_ctxt,
* *
*/ */
int write_ext_dsp_data(struct bridge_dev_context *dev_context, int write_ext_dsp_data(struct bridge_dev_context *dev_context,
IN u8 *pbHostBuf, u32 dsp_addr, IN u8 *host_buff, u32 dsp_addr,
u32 ul_num_bytes, u32 ulMemType, u32 ul_num_bytes, u32 ulMemType,
bool dynamic_load) bool dynamic_load)
{ {
...@@ -371,10 +371,10 @@ int write_ext_dsp_data(struct bridge_dev_context *dev_context, ...@@ -371,10 +371,10 @@ int write_ext_dsp_data(struct bridge_dev_context *dev_context,
} }
if (DSP_SUCCEEDED(ret)) { if (DSP_SUCCEEDED(ret)) {
if (ul_num_bytes) if (ul_num_bytes)
memcpy((u8 *) dw_base_addr + dw_offset, pbHostBuf, memcpy((u8 *) dw_base_addr + dw_offset, host_buff,
ul_num_bytes); ul_num_bytes);
else else
*((u32 *) pbHostBuf) = dw_base_addr + dw_offset; *((u32 *) host_buff) = dw_base_addr + dw_offset;
} }
/* Unmap here to force remap for other Ext loads */ /* Unmap here to force remap for other Ext loads */
if ((dynamic_load || trace_load) && dev_context->dw_dsp_ext_base_addr) { if ((dynamic_load || trace_load) && dev_context->dw_dsp_ext_base_addr) {
......
...@@ -48,14 +48,14 @@ ...@@ -48,14 +48,14 @@
* is configured by the combination of DSP MMU and shm Memory manager in the CDB * is configured by the combination of DSP MMU and shm Memory manager in the CDB
*/ */
extern int read_ext_dsp_data(struct bridge_dev_context *dev_context, extern int read_ext_dsp_data(struct bridge_dev_context *dev_context,
OUT u8 *pbHostBuf, u32 dsp_addr, OUT u8 *host_buff, u32 dsp_addr,
u32 ul_num_bytes, u32 ulMemType); u32 ul_num_bytes, u32 ulMemType);
/* /*
* ======== write_dsp_data ======== * ======== write_dsp_data ========
*/ */
extern int write_dsp_data(struct bridge_dev_context *dev_context, extern int write_dsp_data(struct bridge_dev_context *dev_context,
OUT u8 *pbHostBuf, u32 dsp_addr, OUT u8 *host_buff, u32 dsp_addr,
u32 ul_num_bytes, u32 ulMemType); u32 ul_num_bytes, u32 ulMemType);
/* /*
...@@ -65,7 +65,7 @@ extern int write_dsp_data(struct bridge_dev_context *dev_context, ...@@ -65,7 +65,7 @@ extern int write_dsp_data(struct bridge_dev_context *dev_context,
* shm Memory manager in the CDB * shm Memory manager in the CDB
*/ */
extern int write_ext_dsp_data(struct bridge_dev_context *dev_context, extern int write_ext_dsp_data(struct bridge_dev_context *dev_context,
IN u8 *pbHostBuf, u32 dsp_addr, IN u8 *host_buff, u32 dsp_addr,
u32 ul_num_bytes, u32 ulMemType, u32 ul_num_bytes, u32 ulMemType,
bool dynamic_load); bool dynamic_load);
......
...@@ -40,7 +40,7 @@ extern void cfg_exit(void); ...@@ -40,7 +40,7 @@ extern void cfg_exit(void);
* Retreive the autostart mask, if any, for this board. * Retreive the autostart mask, if any, for this board.
* Parameters: * Parameters:
* dev_node_obj: Handle to the dev_node who's driver we are querying. * dev_node_obj: Handle to the dev_node who's driver we are querying.
* pdwAutoStart: Ptr to location for 32 bit autostart mask. * auto_start: Ptr to location for 32 bit autostart mask.
* Returns: * Returns:
* 0: Success. * 0: Success.
* -EFAULT: dev_node_obj is invalid. * -EFAULT: dev_node_obj is invalid.
...@@ -48,10 +48,10 @@ extern void cfg_exit(void); ...@@ -48,10 +48,10 @@ extern void cfg_exit(void);
* Requires: * Requires:
* CFG initialized. * CFG initialized.
* Ensures: * Ensures:
* 0: *pdwAutoStart contains autostart mask for this devnode. * 0: *auto_start contains autostart mask for this devnode.
*/ */
extern int cfg_get_auto_start(IN struct cfg_devnode *dev_node_obj, extern int cfg_get_auto_start(IN struct cfg_devnode *dev_node_obj,
OUT u32 *pdwAutoStart); OUT u32 *auto_start);
/* /*
* ======== cfg_get_cd_version ======== * ======== cfg_get_cd_version ========
......
...@@ -325,7 +325,7 @@ extern int cmm_xlator_delete(struct cmm_xlatorobject *xlator, ...@@ -325,7 +325,7 @@ extern int cmm_xlator_delete(struct cmm_xlatorobject *xlator,
* Does not free client process VM. * Does not free client process VM.
* Parameters: * Parameters:
* xlator: handle to translator. * xlator: handle to translator.
* pBufVa Virtual address of PA to free. * buf_va Virtual address of PA to free.
* Returns: * Returns:
* 0: Success. * 0: Success.
* -EFAULT: Bad translator handle. * -EFAULT: Bad translator handle.
...@@ -334,7 +334,7 @@ extern int cmm_xlator_delete(struct cmm_xlatorobject *xlator, ...@@ -334,7 +334,7 @@ extern int cmm_xlator_delete(struct cmm_xlatorobject *xlator,
* *
*/ */
extern int cmm_xlator_free_buf(struct cmm_xlatorobject *xlator, extern int cmm_xlator_free_buf(struct cmm_xlatorobject *xlator,
void *pBufVa); void *buf_va);
/* /*
* ======== cmm_xlator_info ======== * ======== cmm_xlator_info ========
......
...@@ -279,7 +279,7 @@ extern bool cod_init(void); ...@@ -279,7 +279,7 @@ extern bool cod_init(void);
* num_argc: number of arguments in the args array * num_argc: number of arguments in the args array
* args: array of strings for arguments to DSP program * args: array of strings for arguments to DSP program
* write_fxn: board-specific function to write data to DSP system * write_fxn: board-specific function to write data to DSP system
* pArb: arbitrary pointer to be passed as first arg to write_fxn * arb: arbitrary pointer to be passed as first arg to write_fxn
* envp: array of environment strings for DSP exec. * envp: array of environment strings for DSP exec.
* Returns: * Returns:
* 0: Success. * 0: Success.
...@@ -295,7 +295,7 @@ extern bool cod_init(void); ...@@ -295,7 +295,7 @@ extern bool cod_init(void);
*/ */
extern int cod_load_base(struct cod_manager *cod_mgr_obj, extern int cod_load_base(struct cod_manager *cod_mgr_obj,
u32 num_argc, char *args[], u32 num_argc, char *args[],
cod_writefxn pfn_write, void *pArb, cod_writefxn pfn_write, void *arb,
char *envp[]); char *envp[]);
/* /*
......
...@@ -154,7 +154,7 @@ extern void dcd_exit(void); ...@@ -154,7 +154,7 @@ extern void dcd_exit(void);
* hdcd_mgr: A DCD manager handle. * hdcd_mgr: A DCD manager handle.
* uuid_obj: Pointer to a dsp_uuid for a library. * uuid_obj: Pointer to a dsp_uuid for a library.
* num_libs: Size of uuid array (number of library uuids). * num_libs: Size of uuid array (number of library uuids).
* pDepLibUuids: Array of dependent library uuids to be filled in. * dep_lib_uuids: Array of dependent library uuids to be filled in.
* pPersistentDepLibs: Array indicating if corresponding lib is persistent. * pPersistentDepLibs: Array indicating if corresponding lib is persistent.
* phase: phase to obtain correct input library * phase: phase to obtain correct input library
* Returns: * Returns:
...@@ -166,13 +166,13 @@ extern void dcd_exit(void); ...@@ -166,13 +166,13 @@ extern void dcd_exit(void);
* DCD initialized. * DCD initialized.
* Valid hdcd_mgr. * Valid hdcd_mgr.
* uuid_obj != NULL * uuid_obj != NULL
* pDepLibUuids != NULL. * dep_lib_uuids != NULL.
* Ensures: * Ensures:
*/ */
extern int dcd_get_dep_libs(IN struct dcd_manager *hdcd_mgr, extern int dcd_get_dep_libs(IN struct dcd_manager *hdcd_mgr,
IN struct dsp_uuid *uuid_obj, IN struct dsp_uuid *uuid_obj,
u16 num_libs, u16 num_libs,
OUT struct dsp_uuid *pDepLibUuids, OUT struct dsp_uuid *dep_lib_uuids,
OUT bool *pPersistentDepLibs, OUT bool *pPersistentDepLibs,
IN enum nldr_phase phase); IN enum nldr_phase phase);
......
...@@ -37,10 +37,10 @@ ...@@ -37,10 +37,10 @@
* ======== dev_brd_write_fxn ======== * ======== dev_brd_write_fxn ========
* Purpose: * Purpose:
* Exported function to be used as the COD write function. This function * Exported function to be used as the COD write function. This function
* is passed a handle to a DEV_hObject by ZL in pArb, then calls the * is passed a handle to a DEV_hObject by ZL in arb, then calls the
* device's bridge_brd_write() function. * device's bridge_brd_write() function.
* Parameters: * Parameters:
* pArb: Handle to a Device Object. * arb: Handle to a Device Object.
* dev_ctxt: Handle to Bridge driver defined device info. * dev_ctxt: Handle to Bridge driver defined device info.
* dsp_addr: Address on DSP board (Destination). * dsp_addr: Address on DSP board (Destination).
* pHostBuf: Pointer to host buffer (Source). * pHostBuf: Pointer to host buffer (Source).
...@@ -48,13 +48,13 @@ ...@@ -48,13 +48,13 @@
* ulMemType: Memory space on DSP to which to transfer. * ulMemType: Memory space on DSP to which to transfer.
* Returns: * Returns:
* Number of bytes written. Returns 0 if the DEV_hObject passed in via * Number of bytes written. Returns 0 if the DEV_hObject passed in via
* pArb is invalid. * arb is invalid.
* Requires: * Requires:
* DEV Initialized. * DEV Initialized.
* pHostBuf != NULL * pHostBuf != NULL
* Ensures: * Ensures:
*/ */
extern u32 dev_brd_write_fxn(void *pArb, extern u32 dev_brd_write_fxn(void *arb,
u32 ulDspAddr, u32 ulDspAddr,
void *pHostBuf, u32 ul_num_bytes, u32 mem_space); void *pHostBuf, u32 ul_num_bytes, u32 mem_space);
...@@ -585,7 +585,7 @@ extern int dev_is_locked(IN struct dev_object *hdev_obj); ...@@ -585,7 +585,7 @@ extern int dev_is_locked(IN struct dev_object *hdev_obj);
extern int dev_insert_proc_object(IN struct dev_object extern int dev_insert_proc_object(IN struct dev_object
*hdev_obj, *hdev_obj,
IN u32 proc_obj, IN u32 proc_obj,
OUT bool *pbAlreadyAttached); OUT bool *already_attached);
/* /*
* ======== dev_remove_proc_object ======== * ======== dev_remove_proc_object ========
...@@ -595,7 +595,7 @@ extern int dev_insert_proc_object(IN struct dev_object ...@@ -595,7 +595,7 @@ extern int dev_insert_proc_object(IN struct dev_object
* Parameters: * Parameters:
* p_proc_object: Ptr to ProcObject to insert. * p_proc_object: Ptr to ProcObject to insert.
* dev_obj: Ptr to Dev Object where the list is. * dev_obj: Ptr to Dev Object where the list is.
* pbAlreadyAttached: Ptr to return the bool * already_attached: Ptr to return the bool
* Returns: * Returns:
* 0: If successful. * 0: If successful.
* -EPERM Failure to Remove the PROC Object from the list * -EPERM Failure to Remove the PROC Object from the list
...@@ -604,7 +604,7 @@ extern int dev_insert_proc_object(IN struct dev_object ...@@ -604,7 +604,7 @@ extern int dev_insert_proc_object(IN struct dev_object
* proc_obj != 0 * proc_obj != 0
* dev_obj->proc_list != NULL * dev_obj->proc_list != NULL
* !LST_IS_EMPTY(dev_obj->proc_list) * !LST_IS_EMPTY(dev_obj->proc_list)
* pbAlreadyAttached !=NULL * already_attached !=NULL
* Ensures: * Ensures:
* Details: * Details:
* List will be deleted when the DEV is destroyed. * List will be deleted when the DEV is destroyed.
......
...@@ -34,14 +34,14 @@ ...@@ -34,14 +34,14 @@
* Parameters: * Parameters:
* phDispObject: Location to store node dispatcher object on output. * phDispObject: Location to store node dispatcher object on output.
* hdev_obj: Device for this processor. * hdev_obj: Device for this processor.
* pDispAttrs: Node dispatcher attributes. * disp_attrs: Node dispatcher attributes.
* Returns: * Returns:
* 0: Success; * 0: Success;
* -ENOMEM: Insufficient memory for requested resources. * -ENOMEM: Insufficient memory for requested resources.
* -EPERM: Unable to create dispatcher. * -EPERM: Unable to create dispatcher.
* Requires: * Requires:
* disp_init(void) called. * disp_init(void) called.
* pDispAttrs != NULL. * disp_attrs != NULL.
* hdev_obj != NULL. * hdev_obj != NULL.
* phDispObject != NULL. * phDispObject != NULL.
* Ensures: * Ensures:
...@@ -50,7 +50,7 @@ ...@@ -50,7 +50,7 @@
*/ */
extern int disp_create(OUT struct disp_object **phDispObject, extern int disp_create(OUT struct disp_object **phDispObject,
struct dev_object *hdev_obj, struct dev_object *hdev_obj,
IN CONST struct disp_attr *pDispAttrs); IN CONST struct disp_attr *disp_attrs);
/* /*
* ======== disp_delete ======== * ======== disp_delete ========
......
...@@ -382,7 +382,7 @@ extern int drv_remove_dev_object(struct drv_object *hdrv_obj, ...@@ -382,7 +382,7 @@ extern int drv_remove_dev_object(struct drv_object *hdrv_obj,
* Assigns the Resources or Releases them. * Assigns the Resources or Releases them.
* Parameters: * Parameters:
* dw_context: Path to the driver Registry Key. * dw_context: Path to the driver Registry Key.
* pDevNodeString: Ptr to dev_node String stored in the Device Ext. * dev_node_strg: Ptr to dev_node String stored in the Device Ext.
* Returns: * Returns:
* TRUE if success; FALSE otherwise. * TRUE if success; FALSE otherwise.
* Requires: * Requires:
...@@ -394,7 +394,7 @@ extern int drv_remove_dev_object(struct drv_object *hdrv_obj, ...@@ -394,7 +394,7 @@ extern int drv_remove_dev_object(struct drv_object *hdrv_obj,
* later used by the CFG module. * later used by the CFG module.
*/ */
extern int drv_request_resources(IN u32 dw_context, extern int drv_request_resources(IN u32 dw_context,
OUT u32 *pDevNodeString); OUT u32 *dev_node_strg);
/* /*
* ======== drv_release_resources ======== * ======== drv_release_resources ========
...@@ -509,14 +509,14 @@ extern void mem_free_phys_mem(void *pVirtualAddress, ...@@ -509,14 +509,14 @@ extern void mem_free_phys_mem(void *pVirtualAddress,
* Purpose: * Purpose:
* Unmap the linear address mapped in MEM_LINEAR_ADDRESS. * Unmap the linear address mapped in MEM_LINEAR_ADDRESS.
* Parameters: * Parameters:
* pBaseAddr: Ptr to mapped memory (as returned by MEM_LINEAR_ADDRESS()). * base_addr: Ptr to mapped memory (as returned by MEM_LINEAR_ADDRESS()).
* Returns: * Returns:
* Requires: * Requires:
* - MEM initialized. * - MEM initialized.
* - pBaseAddr is a valid linear address mapped in MEM_LINEAR_ADDRESS. * - base_addr is a valid linear address mapped in MEM_LINEAR_ADDRESS.
* Ensures: * Ensures:
* - pBaseAddr no longer points to a valid linear address. * - base_addr no longer points to a valid linear address.
*/ */
#define MEM_UNMAP_LINEAR_ADDRESS(pBaseAddr) {} #define MEM_UNMAP_LINEAR_ADDRESS(base_addr) {}
#endif /* DRV_ */ #endif /* DRV_ */
...@@ -560,7 +560,7 @@ typedef int(*fxn_chnl_flushio) (struct chnl_object *chnl_obj, ...@@ -560,7 +560,7 @@ typedef int(*fxn_chnl_flushio) (struct chnl_object *chnl_obj,
* if (pInfo != NULL). * if (pInfo != NULL).
*/ */
typedef int(*fxn_chnl_getinfo) (struct chnl_object *chnl_obj, typedef int(*fxn_chnl_getinfo) (struct chnl_object *chnl_obj,
OUT struct chnl_info *pChnlInfo); OUT struct chnl_info *channel_info);
/* /*
* ======== bridge_chnl_get_mgr_info ======== * ======== bridge_chnl_get_mgr_info ========
...@@ -649,7 +649,7 @@ typedef int(*fxn_chnl_registernotify) ...@@ -649,7 +649,7 @@ typedef int(*fxn_chnl_registernotify)
* Parameters: * Parameters:
* phDevContext: Ptr to location to store a Bridge device context. * phDevContext: Ptr to location to store a Bridge device context.
* hdev_obj: Handle to a Device Object, created and managed by DSP API. * hdev_obj: Handle to a Device Object, created and managed by DSP API.
* pConfig: Ptr to configuration parameters provided by the * config_param: Ptr to configuration parameters provided by the
* Configuration Manager during device loading. * Configuration Manager during device loading.
* pDspConfig: DSP resources, as specified in the registry key for this * pDspConfig: DSP resources, as specified in the registry key for this
* device. * device.
...@@ -659,9 +659,9 @@ typedef int(*fxn_chnl_registernotify) ...@@ -659,9 +659,9 @@ typedef int(*fxn_chnl_registernotify)
* Requires: * Requires:
* phDevContext != NULL; * phDevContext != NULL;
* hdev_obj != NULL; * hdev_obj != NULL;
* pConfig != NULL; * config_param != NULL;
* pDspConfig != NULL; * pDspConfig != NULL;
* Fields in pConfig and pDspConfig contain valid values. * Fields in config_param and pDspConfig contain valid values.
* Ensures: * Ensures:
* 0: All Bridge driver specific DSP resource and other * 0: All Bridge driver specific DSP resource and other
* board context has been allocated. * board context has been allocated.
...@@ -683,7 +683,7 @@ typedef int(*fxn_dev_create) (OUT struct bridge_dev_context ...@@ -683,7 +683,7 @@ typedef int(*fxn_dev_create) (OUT struct bridge_dev_context
struct dev_object struct dev_object
* hdev_obj, * hdev_obj,
IN struct cfg_hostres IN struct cfg_hostres
* pConfig); * config_param);
/* /*
* ======== bridge_dev_ctrl ======== * ======== bridge_dev_ctrl ========
......
...@@ -34,12 +34,12 @@ ...@@ -34,12 +34,12 @@
((((s32)&(((type *)0)->field)) / wordsize) + (u32)base) ((((s32)&(((type *)0)->field)) / wordsize) + (u32)base)
/* Access can be different SM access word size (e.g. 16/32 bit words) */ /* Access can be different SM access word size (e.g. 16/32 bit words) */
#define IO_SET_VALUE(pContext, type, base, field, value) (base->field = value) #define IO_SET_VALUE(context, type, base, field, value) (base->field = value)
#define IO_GET_VALUE(pContext, type, base, field) (base->field) #define IO_GET_VALUE(context, type, base, field) (base->field)
#define IO_OR_VALUE(pContext, type, base, field, value) (base->field |= value) #define IO_OR_VALUE(context, type, base, field, value) (base->field |= value)
#define IO_AND_VALUE(pContext, type, base, field, value) (base->field &= value) #define IO_AND_VALUE(context, type, base, field, value) (base->field &= value)
#define IO_SET_LONG(pContext, type, base, field, value) (base->field = value) #define IO_SET_LONG(context, type, base, field, value) (base->field = value)
#define IO_GET_LONG(pContext, type, base, field) (base->field) #define IO_GET_LONG(context, type, base, field) (base->field)
#ifdef CONFIG_TIDSPBRIDGE_DVFS #ifdef CONFIG_TIDSPBRIDGE_DVFS
/* The maximum number of OPPs that are supported */ /* The maximum number of OPPs that are supported */
...@@ -144,7 +144,7 @@ extern void iosm_schedule(struct io_mgr *hio_mgr); ...@@ -144,7 +144,7 @@ extern void iosm_schedule(struct io_mgr *hio_mgr);
* uDDMAChnlId: DDMA channel identifier. * uDDMAChnlId: DDMA channel identifier.
* uNumDesc: Number of buffer descriptors(equals # of IOReqs & * uNumDesc: Number of buffer descriptors(equals # of IOReqs &
* Chirps) * Chirps)
* pDsp: Dsp address; * dsp: Dsp address;
* Returns: * Returns:
* Requires: * Requires:
* uDDMAChnlId < DDMA_MAXDDMACHNLS * uDDMAChnlId < DDMA_MAXDDMACHNLS
...@@ -155,7 +155,7 @@ extern void iosm_schedule(struct io_mgr *hio_mgr); ...@@ -155,7 +155,7 @@ extern void iosm_schedule(struct io_mgr *hio_mgr);
* Ensures: * Ensures:
*/ */
extern void io_ddma_init_chnl_desc(struct io_mgr *hio_mgr, u32 uDDMAChnlId, extern void io_ddma_init_chnl_desc(struct io_mgr *hio_mgr, u32 uDDMAChnlId,
u32 uNumDesc, void *pDsp); u32 uNumDesc, void *dsp);
/* /*
* ======== io_ddma_clear_chnl_desc ======== * ======== io_ddma_clear_chnl_desc ========
......
...@@ -1044,19 +1044,19 @@ void *cmm_xlator_alloc_buf(struct cmm_xlatorobject *xlator, void *pVaBuf, ...@@ -1044,19 +1044,19 @@ void *cmm_xlator_alloc_buf(struct cmm_xlatorobject *xlator, void *pVaBuf,
* Free the given SM buffer and descriptor. * Free the given SM buffer and descriptor.
* Does not free virtual memory. * Does not free virtual memory.
*/ */
int cmm_xlator_free_buf(struct cmm_xlatorobject *xlator, void *pBufVa) int cmm_xlator_free_buf(struct cmm_xlatorobject *xlator, void *buf_va)
{ {
struct cmm_xlator *xlator_obj = (struct cmm_xlator *)xlator; struct cmm_xlator *xlator_obj = (struct cmm_xlator *)xlator;
int status = -EPERM; int status = -EPERM;
void *buf_pa = NULL; void *buf_pa = NULL;
DBC_REQUIRE(refs > 0); DBC_REQUIRE(refs > 0);
DBC_REQUIRE(pBufVa != NULL); DBC_REQUIRE(buf_va != NULL);
DBC_REQUIRE(xlator_obj->ul_seg_id > 0); DBC_REQUIRE(xlator_obj->ul_seg_id > 0);
if (xlator_obj) { if (xlator_obj) {
/* convert Va to Pa so we can free it. */ /* convert Va to Pa so we can free it. */
buf_pa = cmm_xlator_translate(xlator, pBufVa, CMM_VA2PA); buf_pa = cmm_xlator_translate(xlator, buf_va, CMM_VA2PA);
if (buf_pa) { if (buf_pa) {
status = cmm_free_buf(xlator_obj->hcmm_mgr, buf_pa, status = cmm_free_buf(xlator_obj->hcmm_mgr, buf_pa,
xlator_obj->ul_seg_id); xlator_obj->ul_seg_id);
......
...@@ -493,7 +493,7 @@ bool cod_init(void) ...@@ -493,7 +493,7 @@ bool cod_init(void)
* terminating args arrays, if num_argc is very large. * terminating args arrays, if num_argc is very large.
*/ */
int cod_load_base(struct cod_manager *hmgr, u32 num_argc, char *args[], int cod_load_base(struct cod_manager *hmgr, u32 num_argc, char *args[],
cod_writefxn pfn_write, void *pArb, char *envp[]) cod_writefxn pfn_write, void *arb, char *envp[])
{ {
dbll_flags flags; dbll_flags flags;
struct dbll_attrs save_attrs; struct dbll_attrs save_attrs;
...@@ -525,7 +525,7 @@ int cod_load_base(struct cod_manager *hmgr, u32 num_argc, char *args[], ...@@ -525,7 +525,7 @@ int cod_load_base(struct cod_manager *hmgr, u32 num_argc, char *args[],
new_attrs = save_attrs; new_attrs = save_attrs;
new_attrs.write = (dbll_write_fxn) pfn_write; new_attrs.write = (dbll_write_fxn) pfn_write;
new_attrs.input_params = pArb; new_attrs.input_params = arb;
new_attrs.alloc = (dbll_alloc_fxn) no_op; new_attrs.alloc = (dbll_alloc_fxn) no_op;
new_attrs.free = (dbll_free_fxn) no_op; new_attrs.free = (dbll_free_fxn) no_op;
new_attrs.log_write = NULL; new_attrs.log_write = NULL;
......
...@@ -728,7 +728,7 @@ int dbll_open(struct dbll_tar_obj *target, char *file, dbll_flags flags, ...@@ -728,7 +728,7 @@ int dbll_open(struct dbll_tar_obj *target, char *file, dbll_flags flags,
* Get the content of a COFF section. * Get the content of a COFF section.
*/ */
int dbll_read_sect(struct dbll_library_obj *lib, char *name, int dbll_read_sect(struct dbll_library_obj *lib, char *name,
char *pContent, u32 size) char *content, u32 size)
{ {
struct dbll_library_obj *zl_lib = (struct dbll_library_obj *)lib; struct dbll_library_obj *zl_lib = (struct dbll_library_obj *)lib;
bool opened_doff = false; bool opened_doff = false;
...@@ -740,7 +740,7 @@ int dbll_read_sect(struct dbll_library_obj *lib, char *name, ...@@ -740,7 +740,7 @@ int dbll_read_sect(struct dbll_library_obj *lib, char *name,
DBC_REQUIRE(refs > 0); DBC_REQUIRE(refs > 0);
DBC_REQUIRE(zl_lib); DBC_REQUIRE(zl_lib);
DBC_REQUIRE(name != NULL); DBC_REQUIRE(name != NULL);
DBC_REQUIRE(pContent != NULL); DBC_REQUIRE(content != NULL);
DBC_REQUIRE(size != 0); DBC_REQUIRE(size != 0);
/* If DOFF file is not open, we open it. */ /* If DOFF file is not open, we open it. */
...@@ -780,7 +780,7 @@ int dbll_read_sect(struct dbll_library_obj *lib, char *name, ...@@ -780,7 +780,7 @@ int dbll_read_sect(struct dbll_library_obj *lib, char *name,
if (ul_sect_size > size) { if (ul_sect_size > size) {
status = -EPERM; status = -EPERM;
} else { } else {
if (!dload_get_section(zl_lib->desc, sect, pContent)) if (!dload_get_section(zl_lib->desc, sect, content))
status = -EBADF; status = -EBADF;
} }
...@@ -790,8 +790,8 @@ int dbll_read_sect(struct dbll_library_obj *lib, char *name, ...@@ -790,8 +790,8 @@ int dbll_read_sect(struct dbll_library_obj *lib, char *name,
opened_doff = false; opened_doff = false;
} }
dev_dbg(bridge, "%s: lib: %p name: %s pContent: %p size: 0x%x, " dev_dbg(bridge, "%s: lib: %p name: %s content: %p size: 0x%x, "
"status 0x%x\n", __func__, lib, name, pContent, size, status); "status 0x%x\n", __func__, lib, name, content, size, status);
return status; return status;
} }
......
...@@ -100,10 +100,10 @@ static void store_interface_fxns(struct bridge_drv_interface *drv_fxns, ...@@ -100,10 +100,10 @@ static void store_interface_fxns(struct bridge_drv_interface *drv_fxns,
* is passed a handle to a DEV_hObject, then calls the * is passed a handle to a DEV_hObject, then calls the
* device's bridge_brd_write() function. * device's bridge_brd_write() function.
*/ */
u32 dev_brd_write_fxn(void *pArb, u32 ulDspAddr, void *pHostBuf, u32 dev_brd_write_fxn(void *arb, u32 ulDspAddr, void *pHostBuf,
u32 ul_num_bytes, u32 mem_space) u32 ul_num_bytes, u32 mem_space)
{ {
struct dev_object *dev_obj = (struct dev_object *)pArb; struct dev_object *dev_obj = (struct dev_object *)arb;
u32 ul_written = 0; u32 ul_written = 0;
int status; int status;
...@@ -961,20 +961,20 @@ static int init_cod_mgr(struct dev_object *dev_obj) ...@@ -961,20 +961,20 @@ static int init_cod_mgr(struct dev_object *dev_obj)
* Parameters: * Parameters:
* p_proc_object: Ptr to ProcObject to insert. * p_proc_object: Ptr to ProcObject to insert.
* dev_obj: Ptr to Dev Object where the list is. * dev_obj: Ptr to Dev Object where the list is.
* pbAlreadyAttached: Ptr to return the bool * already_attached: Ptr to return the bool
* Returns: * Returns:
* 0: If successful. * 0: If successful.
* Requires: * Requires:
* List Exists * List Exists
* hdev_obj is Valid handle * hdev_obj is Valid handle
* DEV Initialized * DEV Initialized
* pbAlreadyAttached != NULL * already_attached != NULL
* proc_obj != 0 * proc_obj != 0
* Ensures: * Ensures:
* 0 and List is not Empty. * 0 and List is not Empty.
*/ */
int dev_insert_proc_object(struct dev_object *hdev_obj, int dev_insert_proc_object(struct dev_object *hdev_obj,
u32 proc_obj, OUT bool *pbAlreadyAttached) u32 proc_obj, OUT bool *already_attached)
{ {
int status = 0; int status = 0;
struct dev_object *dev_obj = (struct dev_object *)hdev_obj; struct dev_object *dev_obj = (struct dev_object *)hdev_obj;
...@@ -983,9 +983,9 @@ int dev_insert_proc_object(struct dev_object *hdev_obj, ...@@ -983,9 +983,9 @@ int dev_insert_proc_object(struct dev_object *hdev_obj,
DBC_REQUIRE(dev_obj); DBC_REQUIRE(dev_obj);
DBC_REQUIRE(proc_obj != 0); DBC_REQUIRE(proc_obj != 0);
DBC_REQUIRE(dev_obj->proc_list != NULL); DBC_REQUIRE(dev_obj->proc_list != NULL);
DBC_REQUIRE(pbAlreadyAttached != NULL); DBC_REQUIRE(already_attached != NULL);
if (!LST_IS_EMPTY(dev_obj->proc_list)) if (!LST_IS_EMPTY(dev_obj->proc_list))
*pbAlreadyAttached = true; *already_attached = true;
/* Add DevObject to tail. */ /* Add DevObject to tail. */
lst_put_tail(dev_obj->proc_list, (struct list_head *)proc_obj); lst_put_tail(dev_obj->proc_list, (struct list_head *)proc_obj);
......
...@@ -71,7 +71,7 @@ static int get_dep_lib_info(IN struct dcd_manager *hdcd_mgr, ...@@ -71,7 +71,7 @@ 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 *pNumLibs, IN OUT u16 *pNumLibs,
OPTIONAL OUT u16 *pNumPersLibs, OPTIONAL OUT u16 *pNumPersLibs,
OPTIONAL OUT struct dsp_uuid *pDepLibUuids, OPTIONAL OUT struct dsp_uuid *dep_lib_uuids,
OPTIONAL OUT bool *pPersistentDepLibs, OPTIONAL OUT bool *pPersistentDepLibs,
IN enum nldr_phase phase); IN enum nldr_phase phase);
...@@ -327,7 +327,7 @@ void dcd_exit(void) ...@@ -327,7 +327,7 @@ void dcd_exit(void)
*/ */
int dcd_get_dep_libs(IN struct dcd_manager *hdcd_mgr, int dcd_get_dep_libs(IN struct dcd_manager *hdcd_mgr,
IN struct dsp_uuid *uuid_obj, IN struct dsp_uuid *uuid_obj,
u16 num_libs, OUT struct dsp_uuid *pDepLibUuids, u16 num_libs, OUT struct dsp_uuid *dep_lib_uuids,
OUT bool *pPersistentDepLibs, OUT bool *pPersistentDepLibs,
IN enum nldr_phase phase) IN enum nldr_phase phase)
{ {
...@@ -336,11 +336,11 @@ int dcd_get_dep_libs(IN struct dcd_manager *hdcd_mgr, ...@@ -336,11 +336,11 @@ int dcd_get_dep_libs(IN struct dcd_manager *hdcd_mgr,
DBC_REQUIRE(refs > 0); DBC_REQUIRE(refs > 0);
DBC_REQUIRE(hdcd_mgr); DBC_REQUIRE(hdcd_mgr);
DBC_REQUIRE(uuid_obj != NULL); DBC_REQUIRE(uuid_obj != NULL);
DBC_REQUIRE(pDepLibUuids != NULL); DBC_REQUIRE(dep_lib_uuids != NULL);
DBC_REQUIRE(pPersistentDepLibs != NULL); DBC_REQUIRE(pPersistentDepLibs != NULL);
status = status =
get_dep_lib_info(hdcd_mgr, uuid_obj, &num_libs, NULL, pDepLibUuids, get_dep_lib_info(hdcd_mgr, uuid_obj, &num_libs, NULL, dep_lib_uuids,
pPersistentDepLibs, phase); pPersistentDepLibs, phase);
return status; return status;
...@@ -1393,7 +1393,7 @@ static int get_dep_lib_info(IN struct dcd_manager *hdcd_mgr, ...@@ -1393,7 +1393,7 @@ 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 *pNumLibs, IN OUT u16 *pNumLibs,
OPTIONAL OUT u16 *pNumPersLibs, OPTIONAL OUT u16 *pNumPersLibs,
OPTIONAL OUT struct dsp_uuid *pDepLibUuids, OPTIONAL OUT struct dsp_uuid *dep_lib_uuids,
OPTIONAL OUT bool *pPersistentDepLibs, OPTIONAL OUT bool *pPersistentDepLibs,
enum nldr_phase phase) enum nldr_phase phase)
{ {
...@@ -1407,7 +1407,7 @@ static int get_dep_lib_info(IN struct dcd_manager *hdcd_mgr, ...@@ -1407,7 +1407,7 @@ static int get_dep_lib_info(IN struct dcd_manager *hdcd_mgr,
u32 dw_data_size = COD_MAXPATHLENGTH; u32 dw_data_size = COD_MAXPATHLENGTH;
char seps[] = ", "; char seps[] = ", ";
char *token = NULL; char *token = NULL;
bool get_uuids = (pDepLibUuids != NULL); bool get_uuids = (dep_lib_uuids != NULL);
u16 dep_libs = 0; u16 dep_libs = 0;
int status = 0; int status = 0;
...@@ -1476,7 +1476,7 @@ static int get_dep_lib_info(IN struct dcd_manager *hdcd_mgr, ...@@ -1476,7 +1476,7 @@ static int get_dep_lib_info(IN struct dcd_manager *hdcd_mgr,
} else { } else {
/* Retrieve UUID string. */ /* Retrieve UUID string. */
uuid_uuid_from_string(token, uuid_uuid_from_string(token,
&(pDepLibUuids &(dep_lib_uuids
[dep_libs])); [dep_libs]));
/* Is this library persistent? */ /* Is this library persistent? */
token = strsep(&psz_cur, seps); token = strsep(&psz_cur, seps);
......
...@@ -89,7 +89,7 @@ static int send_message(struct disp_object *disp_obj, u32 timeout, ...@@ -89,7 +89,7 @@ static int send_message(struct disp_object *disp_obj, u32 timeout,
*/ */
int disp_create(OUT struct disp_object **phDispObject, int disp_create(OUT struct disp_object **phDispObject,
struct dev_object *hdev_obj, struct dev_object *hdev_obj,
IN CONST struct disp_attr *pDispAttrs) IN CONST struct disp_attr *disp_attrs)
{ {
struct disp_object *disp_obj; struct disp_object *disp_obj;
struct bridge_drv_interface *intf_fxns; struct bridge_drv_interface *intf_fxns;
...@@ -100,7 +100,7 @@ int disp_create(OUT struct disp_object **phDispObject, ...@@ -100,7 +100,7 @@ int disp_create(OUT struct disp_object **phDispObject,
DBC_REQUIRE(refs > 0); DBC_REQUIRE(refs > 0);
DBC_REQUIRE(phDispObject != NULL); DBC_REQUIRE(phDispObject != NULL);
DBC_REQUIRE(pDispAttrs != NULL); DBC_REQUIRE(disp_attrs != NULL);
DBC_REQUIRE(hdev_obj != NULL); DBC_REQUIRE(hdev_obj != NULL);
*phDispObject = NULL; *phDispObject = NULL;
...@@ -142,14 +142,14 @@ int disp_create(OUT struct disp_object **phDispObject, ...@@ -142,14 +142,14 @@ int disp_create(OUT struct disp_object **phDispObject,
/* Open channels for communicating with the RMS */ /* Open channels for communicating with the RMS */
chnl_attr_obj.uio_reqs = CHNLIOREQS; chnl_attr_obj.uio_reqs = CHNLIOREQS;
chnl_attr_obj.event_obj = NULL; chnl_attr_obj.event_obj = NULL;
ul_chnl_id = pDispAttrs->ul_chnl_offset + CHNLTORMSOFFSET; ul_chnl_id = disp_attrs->ul_chnl_offset + CHNLTORMSOFFSET;
status = (*intf_fxns->pfn_chnl_open) (&(disp_obj->chnl_to_dsp), status = (*intf_fxns->pfn_chnl_open) (&(disp_obj->chnl_to_dsp),
disp_obj->hchnl_mgr, disp_obj->hchnl_mgr,
CHNL_MODETODSP, ul_chnl_id, CHNL_MODETODSP, ul_chnl_id,
&chnl_attr_obj); &chnl_attr_obj);
if (DSP_SUCCEEDED(status)) { if (DSP_SUCCEEDED(status)) {
ul_chnl_id = pDispAttrs->ul_chnl_offset + CHNLFROMRMSOFFSET; ul_chnl_id = disp_attrs->ul_chnl_offset + CHNLFROMRMSOFFSET;
status = status =
(*intf_fxns->pfn_chnl_open) (&(disp_obj->chnl_from_dsp), (*intf_fxns->pfn_chnl_open) (&(disp_obj->chnl_from_dsp),
disp_obj->hchnl_mgr, disp_obj->hchnl_mgr,
...@@ -158,7 +158,7 @@ int disp_create(OUT struct disp_object **phDispObject, ...@@ -158,7 +158,7 @@ int disp_create(OUT struct disp_object **phDispObject,
} }
if (DSP_SUCCEEDED(status)) { if (DSP_SUCCEEDED(status)) {
/* Allocate buffer for commands, replies */ /* Allocate buffer for commands, replies */
disp_obj->ul_bufsize = pDispAttrs->ul_chnl_buf_size; disp_obj->ul_bufsize = disp_attrs->ul_chnl_buf_size;
disp_obj->ul_bufsize_rms = RMS_COMMANDBUFSIZE; disp_obj->ul_bufsize_rms = RMS_COMMANDBUFSIZE;
disp_obj->pbuf = kzalloc(disp_obj->ul_bufsize, GFP_KERNEL); disp_obj->pbuf = kzalloc(disp_obj->ul_bufsize, GFP_KERNEL);
if (disp_obj->pbuf == NULL) if (disp_obj->pbuf == NULL)
......
...@@ -730,14 +730,14 @@ int drv_remove_dev_object(struct drv_object *driver_obj, ...@@ -730,14 +730,14 @@ int drv_remove_dev_object(struct drv_object *driver_obj,
* Purpose: * Purpose:
* Requests resources from the OS. * Requests resources from the OS.
*/ */
int drv_request_resources(u32 dw_context, u32 *pDevNodeString) int drv_request_resources(u32 dw_context, u32 *dev_node_strg)
{ {
int status = 0; int status = 0;
struct drv_object *pdrv_object; struct drv_object *pdrv_object;
struct drv_ext *pszdev_node; struct drv_ext *pszdev_node;
DBC_REQUIRE(dw_context != 0); DBC_REQUIRE(dw_context != 0);
DBC_REQUIRE(pDevNodeString != NULL); DBC_REQUIRE(dev_node_strg != NULL);
/* /*
* Allocate memory to hold the string. This will live untill * Allocate memory to hold the string. This will live untill
...@@ -754,22 +754,22 @@ int drv_request_resources(u32 dw_context, u32 *pDevNodeString) ...@@ -754,22 +754,22 @@ int drv_request_resources(u32 dw_context, u32 *pDevNodeString)
(char *)dw_context, MAXREGPATHLENGTH - 1); (char *)dw_context, MAXREGPATHLENGTH - 1);
pszdev_node->sz_string[MAXREGPATHLENGTH - 1] = '\0'; pszdev_node->sz_string[MAXREGPATHLENGTH - 1] = '\0';
/* Update the Driver Object List */ /* Update the Driver Object List */
*pDevNodeString = (u32) pszdev_node->sz_string; *dev_node_strg = (u32) pszdev_node->sz_string;
lst_put_tail(pdrv_object->dev_node_string, lst_put_tail(pdrv_object->dev_node_string,
(struct list_head *)pszdev_node); (struct list_head *)pszdev_node);
} else { } else {
status = -ENOMEM; status = -ENOMEM;
*pDevNodeString = 0; *dev_node_strg = 0;
} }
} else { } else {
dev_dbg(bridge, "%s: Failed to get Driver Object from Registry", dev_dbg(bridge, "%s: Failed to get Driver Object from Registry",
__func__); __func__);
*pDevNodeString = 0; *dev_node_strg = 0;
} }
DBC_ENSURE((DSP_SUCCEEDED(status) && pDevNodeString != NULL && DBC_ENSURE((DSP_SUCCEEDED(status) && dev_node_strg != NULL &&
!LST_IS_EMPTY(pdrv_object->dev_node_string)) || !LST_IS_EMPTY(pdrv_object->dev_node_string)) ||
(DSP_FAILED(status) && *pDevNodeString == 0)); (DSP_FAILED(status) && *dev_node_strg == 0));
return status; return status;
} }
......
...@@ -253,7 +253,7 @@ static int get_fxn_address(struct node_object *hnode, u32 * pulFxnAddr, ...@@ -253,7 +253,7 @@ static int get_fxn_address(struct node_object *hnode, u32 * pulFxnAddr,
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,
CONST struct dsp_uuid *pNodeId, CONST struct dsp_uuid *pNodeId,
struct dcd_genericobj *pdcdProps); struct dcd_genericobj *dcd_prop);
static int get_proc_props(struct node_mgr *hnode_mgr, static int get_proc_props(struct node_mgr *hnode_mgr,
struct dev_object *hdev_obj); struct dev_object *hdev_obj);
static int get_rms_fxns(struct node_mgr *hnode_mgr); static int get_rms_fxns(struct node_mgr *hnode_mgr);
...@@ -2891,19 +2891,19 @@ void get_node_info(struct node_object *hnode, struct dsp_nodeinfo *pNodeInfo) ...@@ -2891,19 +2891,19 @@ void get_node_info(struct node_object *hnode, struct dsp_nodeinfo *pNodeInfo)
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,
CONST struct dsp_uuid *pNodeId, CONST struct dsp_uuid *pNodeId,
struct dcd_genericobj *pdcdProps) struct dcd_genericobj *dcd_prop)
{ {
u32 len; u32 len;
struct node_msgargs *pmsg_args; struct node_msgargs *pmsg_args;
struct node_taskargs *task_arg_obj; struct node_taskargs *task_arg_obj;
enum node_type node_type = NODE_TASK; enum node_type node_type = NODE_TASK;
struct dsp_ndbprops *pndb_props = struct dsp_ndbprops *pndb_props =
&(pdcdProps->obj_data.node_obj.ndb_props); &(dcd_prop->obj_data.node_obj.ndb_props);
int status = 0; int status = 0;
char sz_uuid[MAXUUIDLEN]; char sz_uuid[MAXUUIDLEN];
status = dcd_get_object_def(hdcd_mgr, (struct dsp_uuid *)pNodeId, status = dcd_get_object_def(hdcd_mgr, (struct dsp_uuid *)pNodeId,
DSP_DCDNODETYPE, pdcdProps); DSP_DCDNODETYPE, dcd_prop);
if (DSP_SUCCEEDED(status)) { if (DSP_SUCCEEDED(status)) {
hnode->ntype = node_type = pndb_props->ntype; hnode->ntype = node_type = pndb_props->ntype;
...@@ -2917,9 +2917,9 @@ static int get_node_props(struct dcd_manager *hdcd_mgr, ...@@ -2917,9 +2917,9 @@ static int get_node_props(struct dcd_manager *hdcd_mgr,
if (node_type != NODE_DEVICE) { if (node_type != NODE_DEVICE) {
pmsg_args = &(hnode->create_args.asa.node_msg_args); pmsg_args = &(hnode->create_args.asa.node_msg_args);
pmsg_args->seg_id = pmsg_args->seg_id =
pdcdProps->obj_data.node_obj.msg_segid; dcd_prop->obj_data.node_obj.msg_segid;
pmsg_args->notify_type = pmsg_args->notify_type =
pdcdProps->obj_data.node_obj.msg_notify_type; dcd_prop->obj_data.node_obj.msg_notify_type;
pmsg_args->max_msgs = pndb_props->message_depth; pmsg_args->max_msgs = pndb_props->message_depth;
dev_dbg(bridge, "(node) Max Number of Messages: 0x%x\n", dev_dbg(bridge, "(node) Max Number of Messages: 0x%x\n",
pmsg_args->max_msgs); pmsg_args->max_msgs);
......
...@@ -50,22 +50,22 @@ void cfg_exit(void) ...@@ -50,22 +50,22 @@ void cfg_exit(void)
* Retreive the autostart mask, if any, for this board. * Retreive the autostart mask, if any, for this board.
*/ */
int cfg_get_auto_start(struct cfg_devnode *dev_node_obj, int cfg_get_auto_start(struct cfg_devnode *dev_node_obj,
OUT u32 *pdwAutoStart) OUT u32 *auto_start)
{ {
int status = 0; int status = 0;
u32 dw_buf_size; u32 dw_buf_size;
struct drv_data *drv_datap = dev_get_drvdata(bridge); struct drv_data *drv_datap = dev_get_drvdata(bridge);
dw_buf_size = sizeof(*pdwAutoStart); dw_buf_size = sizeof(*auto_start);
if (!dev_node_obj) if (!dev_node_obj)
status = -EFAULT; status = -EFAULT;
if (!pdwAutoStart || !drv_datap) if (!auto_start || !drv_datap)
status = -EFAULT; status = -EFAULT;
if (DSP_SUCCEEDED(status)) if (DSP_SUCCEEDED(status))
*pdwAutoStart = (drv_datap->base_img) ? 1 : 0; *auto_start = (drv_datap->base_img) ? 1 : 0;
DBC_ENSURE((status == 0 && DBC_ENSURE((status == 0 &&
(*pdwAutoStart == 0 || *pdwAutoStart == 1)) (*auto_start == 0 || *auto_start == 1))
|| status != 0); || status != 0);
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