staging: ti dspbridge: Rename words with camel case
authorRene Sapiens <rene.sapiens@ti.com>
Sat, 10 Jul 2010 02:24:02 +0000 (21:24 -0500)
committerGreg Kroah-Hartman <gregkh@suse.de>
Thu, 22 Jul 2010 17:45:35 +0000 (10:45 -0700)
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:
========================================
pMemStatBuf to mem_stat_buf
pMgrAttrs to mgr_attrts
pMgrInfo to mgr_info
pNodeEnv to node_env
pNodeId to node_uuid
pNodeInfo to node_info
pNumLibs to num_libs
pNumPersLibs to num_pers_libs
pObjDef to obj_def
pObjUuid to obj_uuid
poolPhysBase to pool_phys_base
poolSize to pool_size
pPctxt to pctxt
ppDevContext to dev_cntxt
ppDrvInterface to drv_intf
pPersistentDepLibs to prstnt_dep_libs
pPhyAddr to phy_addr
========================================

Signed-off-by: Rene Sapiens <rene.sapiens@ti.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
26 files changed:
drivers/staging/tidspbridge/core/chnl_sm.c
drivers/staging/tidspbridge/core/io_sm.c
drivers/staging/tidspbridge/core/tiomap3430.c
drivers/staging/tidspbridge/include/dspbridge/chnl.h
drivers/staging/tidspbridge/include/dspbridge/cmm.h
drivers/staging/tidspbridge/include/dspbridge/dbdcd.h
drivers/staging/tidspbridge/include/dspbridge/disp.h
drivers/staging/tidspbridge/include/dspbridge/dmm.h
drivers/staging/tidspbridge/include/dspbridge/drv.h
drivers/staging/tidspbridge/include/dspbridge/dspchnl.h
drivers/staging/tidspbridge/include/dspbridge/dspdefs.h
drivers/staging/tidspbridge/include/dspbridge/dspio.h
drivers/staging/tidspbridge/include/dspbridge/io.h
drivers/staging/tidspbridge/include/dspbridge/node.h
drivers/staging/tidspbridge/include/dspbridge/nodepriv.h
drivers/staging/tidspbridge/include/dspbridge/resourcecleanup.h
drivers/staging/tidspbridge/include/dspbridge/rmm.h
drivers/staging/tidspbridge/pmgr/chnl.c
drivers/staging/tidspbridge/pmgr/cmm.c
drivers/staging/tidspbridge/pmgr/dmm.c
drivers/staging/tidspbridge/pmgr/io.c
drivers/staging/tidspbridge/rmgr/dbdcd.c
drivers/staging/tidspbridge/rmgr/disp.c
drivers/staging/tidspbridge/rmgr/drv.c
drivers/staging/tidspbridge/rmgr/node.c
drivers/staging/tidspbridge/rmgr/rmm.c

index 4c61a31..97eeda9 100644 (file)
@@ -382,7 +382,7 @@ func_cont:
  */
 int bridge_chnl_create(OUT struct chnl_mgr **channel_mgr,
                              struct dev_object *hdev_obj,
-                             IN CONST struct chnl_mgrattrs *pMgrAttrs)
+                             IN CONST struct chnl_mgrattrs *mgr_attrts)
 {
        int status = 0;
        struct chnl_mgr *chnl_mgr_obj = NULL;
@@ -390,10 +390,10 @@ int bridge_chnl_create(OUT struct chnl_mgr **channel_mgr,
 
        /* Check DBC requirements: */
        DBC_REQUIRE(channel_mgr != NULL);
-       DBC_REQUIRE(pMgrAttrs != NULL);
-       DBC_REQUIRE(pMgrAttrs->max_channels > 0);
-       DBC_REQUIRE(pMgrAttrs->max_channels <= CHNL_MAXCHANNELS);
-       DBC_REQUIRE(pMgrAttrs->word_size != 0);
+       DBC_REQUIRE(mgr_attrts != NULL);
+       DBC_REQUIRE(mgr_attrts->max_channels > 0);
+       DBC_REQUIRE(mgr_attrts->max_channels <= CHNL_MAXCHANNELS);
+       DBC_REQUIRE(mgr_attrts->word_size != 0);
 
        /* Allocate channel manager object */
        chnl_mgr_obj = kzalloc(sizeof(struct chnl_mgr), GFP_KERNEL);
@@ -401,10 +401,10 @@ int bridge_chnl_create(OUT struct chnl_mgr **channel_mgr,
                /*
                 * The max_channels attr must equal the # of supported chnls for
                 * each transport(# chnls for PCPY = DDMA = ZCPY): i.e.
-                *      pMgrAttrs->max_channels = CHNL_MAXCHANNELS =
+                *      mgr_attrts->max_channels = CHNL_MAXCHANNELS =
                 *                       DDMA_MAXDDMACHNLS = DDMA_MAXZCPYCHNLS.
                 */
-               DBC_ASSERT(pMgrAttrs->max_channels == CHNL_MAXCHANNELS);
+               DBC_ASSERT(mgr_attrts->max_channels == CHNL_MAXCHANNELS);
                max_channels = CHNL_MAXCHANNELS + CHNL_MAXCHANNELS * CHNL_PCPY;
                /* Create array of channels */
                chnl_mgr_obj->ap_channel = kzalloc(sizeof(struct chnl_object *)
@@ -412,7 +412,7 @@ int bridge_chnl_create(OUT struct chnl_mgr **channel_mgr,
                if (chnl_mgr_obj->ap_channel) {
                        /* Initialize chnl_mgr object */
                        chnl_mgr_obj->dw_type = CHNL_TYPESM;
-                       chnl_mgr_obj->word_size = pMgrAttrs->word_size;
+                       chnl_mgr_obj->word_size = mgr_attrts->word_size;
                        /* Total # chnls supported */
                        chnl_mgr_obj->max_channels = max_channels;
                        chnl_mgr_obj->open_channels = 0;
@@ -710,22 +710,22 @@ func_end:
  *      Retrieve information related to the channel manager.
  */
 int bridge_chnl_get_mgr_info(struct chnl_mgr *hchnl_mgr, u32 uChnlID,
-                                OUT struct chnl_mgrinfo *pMgrInfo)
+                                OUT struct chnl_mgrinfo *mgr_info)
 {
        int status = 0;
        struct chnl_mgr *chnl_mgr_obj = (struct chnl_mgr *)hchnl_mgr;
 
-       if (pMgrInfo != NULL) {
+       if (mgr_info != NULL) {
                if (uChnlID <= CHNL_MAXCHANNELS) {
                        if (hchnl_mgr) {
                                /* Return the requested information: */
-                               pMgrInfo->chnl_obj =
+                               mgr_info->chnl_obj =
                                    chnl_mgr_obj->ap_channel[uChnlID];
-                               pMgrInfo->open_channels =
+                               mgr_info->open_channels =
                                    chnl_mgr_obj->open_channels;
-                               pMgrInfo->dw_type = chnl_mgr_obj->dw_type;
+                               mgr_info->dw_type = chnl_mgr_obj->dw_type;
                                /* total # of chnls */
-                               pMgrInfo->max_channels =
+                               mgr_info->max_channels =
                                    chnl_mgr_obj->max_channels;
                        } else {
                                status = -EFAULT;
index 7f34510..5090ff1 100644 (file)
@@ -163,7 +163,7 @@ static int register_shm_segs(struct io_mgr *hio_mgr,
  */
 int bridge_io_create(OUT struct io_mgr **io_man,
                            struct dev_object *hdev_obj,
-                           IN CONST struct io_attrs *pMgrAttrs)
+                           IN CONST struct io_attrs *mgr_attrts)
 {
        int status = 0;
        struct io_mgr *pio_mgr = NULL;
@@ -174,7 +174,7 @@ int bridge_io_create(OUT struct io_mgr **io_man,
        u8 dev_type;
 
        /* Check requirements */
-       if (!io_man || !pMgrAttrs || pMgrAttrs->word_size == 0) {
+       if (!io_man || !mgr_attrts || mgr_attrts->word_size == 0) {
                status = -EFAULT;
                goto func_end;
        }
@@ -214,7 +214,7 @@ int bridge_io_create(OUT struct io_mgr **io_man,
        pio_mgr->pmsg = NULL;
 #endif
        pio_mgr->hchnl_mgr = hchnl_mgr;
-       pio_mgr->word_size = pMgrAttrs->word_size;
+       pio_mgr->word_size = mgr_attrts->word_size;
        pio_mgr->shared_mem = shared_mem;
 
        if (dev_type == DSP_UNIT) {
@@ -233,7 +233,7 @@ int bridge_io_create(OUT struct io_mgr **io_man,
 
        if (DSP_SUCCEEDED(status)) {
                pio_mgr->hbridge_context = hbridge_context;
-               pio_mgr->shared_irq = pMgrAttrs->irq_shared;
+               pio_mgr->shared_irq = mgr_attrts->irq_shared;
                if (dsp_wdt_init())
                        status = -EPERM;
        } else {
index dc20cad..e759349 100644 (file)
@@ -103,7 +103,7 @@ static int bridge_brd_mem_map(struct bridge_dev_context *dev_ctxt,
 static int bridge_brd_mem_un_map(struct bridge_dev_context *dev_ctxt,
                                     u32 ulVirtAddr, u32 ul_num_bytes);
 static int bridge_dev_create(OUT struct bridge_dev_context
-                                       **ppDevContext,
+                                       **dev_cntxt,
                                        struct dev_object *hdev_obj,
                                        IN struct cfg_hostres *config_param);
 static int bridge_dev_ctrl(struct bridge_dev_context *dev_context,
@@ -236,7 +236,7 @@ static void bad_page_dump(u32 pa, struct page *pg)
  *  purpose:
  *      Bridge Driver entry point.
  */
-void bridge_drv_entry(OUT struct bridge_drv_interface **ppDrvInterface,
+void bridge_drv_entry(OUT struct bridge_drv_interface **drv_intf,
                   IN CONST char *driver_file_name)
 {
 
@@ -245,7 +245,7 @@ void bridge_drv_entry(OUT struct bridge_drv_interface **ppDrvInterface,
        io_sm_init();           /* Initialization of io_sm module */
 
        if (strcmp(driver_file_name, "UMA") == 0)
-               *ppDrvInterface = &drv_interface_fxns;
+               *drv_intf = &drv_interface_fxns;
        else
                dev_dbg(bridge, "%s Unknown Bridge file name", __func__);
 
@@ -792,7 +792,7 @@ static int bridge_brd_write(struct bridge_dev_context *dev_ctxt,
  *      Creates a driver object. Puts DSP in self loop.
  */
 static int bridge_dev_create(OUT struct bridge_dev_context
-                                       **ppDevContext,
+                                       **dev_cntxt,
                                        struct dev_object *hdev_obj,
                                        IN struct cfg_hostres *config_param)
 {
@@ -930,7 +930,7 @@ static int bridge_dev_create(OUT struct bridge_dev_context
                dev_context->dw_brd_state = BRD_STOPPED;
                dev_context->resources = resources;
                /* Return ptr to our device state to the DSP API for storage */
-               *ppDevContext = dev_context;
+               *dev_cntxt = dev_context;
        } else {
                if (pt_attrs != NULL) {
                        kfree(pt_attrs->pg_info);
index 7b0352e..4c2020c 100644 (file)
@@ -53,11 +53,11 @@ extern int chnl_close(struct chnl_object *chnl_obj);
  *  Parameters:
  *      channel_mgr:    Location to store a channel manager object on output.
  *      hdev_obj:     Handle to a device object.
- *      pMgrAttrs:      Channel manager attributes.
- *      pMgrAttrs->max_channels:   Max channels
- *      pMgrAttrs->birq:        Channel's I/O IRQ number.
- *      pMgrAttrs->irq_shared:     TRUE if the IRQ is shareable.
- *      pMgrAttrs->word_size:   DSP Word size in equivalent PC bytes..
+ *      mgr_attrts:      Channel manager attributes.
+ *      mgr_attrts->max_channels:   Max channels
+ *      mgr_attrts->birq:        Channel's I/O IRQ number.
+ *      mgr_attrts->irq_shared:     TRUE if the IRQ is shareable.
+ *      mgr_attrts->word_size:   DSP Word size in equivalent PC bytes..
  *  Returns:
  *      0:                Success;
  *      -EFAULT:            hdev_obj is invalid.
@@ -71,7 +71,7 @@ extern int chnl_close(struct chnl_object *chnl_obj);
  *  Requires:
  *      chnl_init(void) called.
  *      channel_mgr != NULL.
- *      pMgrAttrs != NULL.
+ *      mgr_attrts != NULL.
  *  Ensures:
  *      0:                Subsequent calls to chnl_create() for the same
  *                              board without an intervening call to
@@ -79,7 +79,7 @@ extern int chnl_close(struct chnl_object *chnl_obj);
  */
 extern int chnl_create(OUT struct chnl_mgr **channel_mgr,
                              struct dev_object *hdev_obj,
-                             IN CONST struct chnl_mgrattrs *pMgrAttrs);
+                             IN CONST struct chnl_mgrattrs *mgr_attrts);
 
 /*
  *  ======== chnl_destroy ========
index 22d053b..9d773aa 100644 (file)
@@ -72,7 +72,7 @@ extern void *cmm_calloc_buf(struct cmm_object *hcmm_mgr,
  *      ph_cmm_mgr:    Location to store a communication manager handle on
  *                     output.
  *      hdev_obj: Handle to a device object.
- *      pMgrAttrs:  Comm mem manager attributes.
+ *      mgr_attrts: Comm mem manager attributes.
  *  Returns:
  *      0:        Success;
  *      -ENOMEM:    Insufficient memory for requested resources.
@@ -81,13 +81,13 @@ extern void *cmm_calloc_buf(struct cmm_object *hcmm_mgr,
  *  Requires:
  *      cmm_init(void) called.
  *      ph_cmm_mgr != NULL.
- *      pMgrAttrs->ul_min_block_size >= 4 bytes.
+ *      mgr_attrts->ul_min_block_size >= 4 bytes.
  *  Ensures:
  *
  */
 extern int cmm_create(OUT struct cmm_object **ph_cmm_mgr,
                             struct dev_object *hdev_obj,
-                            IN CONST struct cmm_mgrattrs *pMgrAttrs);
+                            IN CONST struct cmm_mgrattrs *mgr_attrts);
 
 /*
  *  ======== cmm_destroy ========
index 8c06272..8d1fc68 100644 (file)
@@ -155,7 +155,7 @@ extern void dcd_exit(void);
  *      uuid_obj: Pointer to a dsp_uuid for a library.
  *      num_libs: Size of uuid array (number of library uuids).
  *      dep_lib_uuids: Array of dependent library uuids to be filled in.
- *      pPersistentDepLibs: Array indicating if corresponding lib is persistent.
+ *      prstnt_dep_libs:    Array indicating if corresponding lib is persistent.
  *      phase: phase to obtain correct input library
  *  Returns:
  *      0: Success.
@@ -173,7 +173,7 @@ extern int dcd_get_dep_libs(IN struct dcd_manager *hdcd_mgr,
                                   IN struct dsp_uuid *uuid_obj,
                                   u16 num_libs,
                                   OUT struct dsp_uuid *dep_lib_uuids,
-                                  OUT bool *pPersistentDepLibs,
+                                  OUT bool *prstnt_dep_libs,
                                   IN enum nldr_phase phase);
 
 /*
@@ -184,8 +184,8 @@ extern int dcd_get_dep_libs(IN struct dcd_manager *hdcd_mgr,
  *  Parameters:
  *      hdcd_mgr:        A DCD manager handle.
  *      uuid_obj:          Pointer to a dsp_uuid for a library.
- *      pNumLibs:       Size of uuid array (number of library uuids).
- *      pNumPersLibs:   number of persistent dependent library.
+ *      num_libs:       Size of uuid array (number of library uuids).
+ *      num_pers_libs:  number of persistent dependent library.
  *      phase:          Phase to obtain correct input library
  *  Returns:
  *      0: Success.
@@ -196,13 +196,13 @@ extern int dcd_get_dep_libs(IN struct dcd_manager *hdcd_mgr,
  *      DCD initialized.
  *      Valid hdcd_mgr.
  *      uuid_obj != NULL
- *      pNumLibs != NULL.
+ *      num_libs != NULL.
  *  Ensures:
  */
 extern int dcd_get_num_dep_libs(IN struct dcd_manager *hdcd_mgr,
                                       IN struct dsp_uuid *uuid_obj,
-                                      OUT u16 *pNumLibs,
-                                      OUT u16 *pNumPersLibs,
+                                      OUT u16 *num_libs,
+                                      OUT u16 *num_pers_libs,
                                       IN enum nldr_phase phase);
 
 /*
@@ -247,7 +247,7 @@ extern int dcd_get_library_name(IN struct dcd_manager *hdcd_mgr,
  *                          DSP/BIOS Bridge object.
  *      obj_type:            The type of DSP/BIOS Bridge object to be
  *                          referenced (node, processor, etc).
- *      pObjDef:            Pointer to an object definition structure. A
+ *      obj_def:            Pointer to an object definition structure. A
  *                          union of various possible DCD object types.
  *  Returns:
  *      0: Success.
@@ -257,14 +257,14 @@ extern int dcd_get_library_name(IN struct dcd_manager *hdcd_mgr,
  *      -EFAULT:        Invalid DCD_HMANAGER handle.
  *  Requires:
  *      DCD initialized.
- *      pObjUuid is non-NULL.
- *      pObjDef is non-NULL.
+ *      obj_uuid is non-NULL.
+ *      obj_def is non-NULL.
  *  Ensures:
  */
 extern int dcd_get_object_def(IN struct dcd_manager *hdcd_mgr,
-                                    IN struct dsp_uuid *pObjUuid,
+                                    IN struct dsp_uuid *obj_uuid,
                                     IN enum dsp_dcdobjtype obj_type,
-                                    OUT struct dcd_genericobj *pObjDef);
+                                    OUT struct dcd_genericobj *obj_def);
 
 /*
  *  ======== dcd_get_objects ========
index 03467bb..9f694a4 100644 (file)
@@ -128,7 +128,7 @@ extern int disp_node_change_priority(struct disp_object
  *      ul_fxn_addr:      Address or RMS create node function.
  *      ul_create_fxn:    Address of node's create function.
  *      pargs:          Arguments to pass to RMS node create function.
- *      pNodeEnv:       Location to store node environment pointer on
+ *      node_env:       Location to store node environment pointer on
  *                      output.
  *  Returns:
  *      0:        Success.
@@ -139,7 +139,7 @@ extern int disp_node_change_priority(struct disp_object
  *      Valid disp_obj.
  *      pargs != NULL.
  *      hnode != NULL.
- *      pNodeEnv != NULL.
+ *      node_env != NULL.
  *      node_get_type(hnode) != NODE_DEVICE.
  *  Ensures:
  */
@@ -148,7 +148,7 @@ extern int disp_node_create(struct disp_object *disp_obj,
                                   u32 ul_fxn_addr,
                                   u32 ul_create_fxn,
                                   IN CONST struct node_createargs
-                                  *pargs, OUT nodeenv *pNodeEnv);
+                                  *pargs, OUT nodeenv *node_env);
 
 /*
  *  ======== disp_node_delete ========
index 9be892f..8c9a3d4 100644 (file)
@@ -59,7 +59,7 @@ extern int dmm_delete_tables(struct dmm_object *dmm_mgr);
 
 extern int dmm_create(OUT struct dmm_object **dmm_manager,
                             struct dev_object *hdev_obj,
-                            IN CONST struct dmm_mgrattrs *pMgrAttrs);
+                            IN CONST struct dmm_mgrattrs *mgr_attrts);
 
 extern bool dmm_init(void);
 
index 2f9d8d8..604c15b 100644 (file)
@@ -430,15 +430,15 @@ void bridge_recover_schedule(void);
  *      allocations.
  *      physical address based on the page frame address.
  *  Parameters:
- *      poolPhysBase  starting address of the physical memory pool.
- *      poolSize      size of the physical memory pool.
+ *      pool_phys_base  starting address of the physical memory pool.
+ *      pool_size      size of the physical memory pool.
  *  Returns:
  *      none.
  *  Requires:
  *      - MEM initialized.
  *      - valid physical address for the base and size > 0
  */
-extern void mem_ext_phys_pool_init(IN u32 poolPhysBase, IN u32 poolSize);
+extern void mem_ext_phys_pool_init(IN u32 pool_phys_base, IN u32 pool_size);
 
 /*
  *  ======== mem_ext_phys_pool_release ========
@@ -502,7 +502,7 @@ extern void mem_free_phys_mem(void *pVirtualAddress,
  *      If valid linear address is returned, be sure to call
  *      MEM_UNMAP_LINEAR_ADDRESS().
  */
-#define MEM_LINEAR_ADDRESS(pPhyAddr, byte_size) pPhyAddr
+#define MEM_LINEAR_ADDRESS(phy_addr, byte_size) phy_addr
 
 /*
  *  ======== MEM_UNMAP_LINEAR_ADDRESS ========
index a4e0c84..cb7e18b 100644 (file)
@@ -27,7 +27,7 @@
 extern int bridge_chnl_create(OUT struct chnl_mgr **channel_mgr,
                                     struct dev_object *hdev_obj,
                                     IN CONST struct chnl_mgrattrs
-                                    *pMgrAttrs);
+                                    *mgr_attrts);
 
 extern int bridge_chnl_destroy(struct chnl_mgr *hchnl_mgr);
 
@@ -58,7 +58,7 @@ extern int bridge_chnl_get_info(struct chnl_object *chnl_obj,
 
 extern int bridge_chnl_get_mgr_info(struct chnl_mgr *hchnl_mgr,
                                        u32 uChnlID, OUT struct chnl_mgrinfo
-                                       *pMgrInfo);
+                                       *mgr_info);
 
 extern int bridge_chnl_idle(struct chnl_object *chnl_obj,
                                   u32 timeout, bool flush_data);
index e3c7232..04df01d 100644 (file)
@@ -300,13 +300,13 @@ typedef int(*fxn_brd_write) (struct bridge_dev_context *dev_ctxt,
  *  Parameters:
  *      channel_mgr:    Location to store a channel manager object on output.
  *      hdev_obj:     Handle to a device object.
- *      pMgrAttrs:      Channel manager attributes.
- *      pMgrAttrs->max_channels: Max channels
- *      pMgrAttrs->birq:      Channel's I/O IRQ number.
- *      pMgrAttrs->irq_shared:   TRUE if the IRQ is shareable.
- *      pMgrAttrs->word_size: DSP Word size in equivalent PC bytes..
- *      pMgrAttrs->shm_base:  Base physical address of shared memory, if any.
- *      pMgrAttrs->usm_length: Bytes of shared memory block.
+ *      mgr_attrts:      Channel manager attributes.
+ *      mgr_attrts->max_channels: Max channels
+ *      mgr_attrts->birq:      Channel's I/O IRQ number.
+ *      mgr_attrts->irq_shared:   TRUE if the IRQ is shareable.
+ *      mgr_attrts->word_size: DSP Word size in equivalent PC bytes..
+ *      mgr_attrts->shm_base:  Base physical address of shared memory, if any.
+ *      mgr_attrts->usm_length: Bytes of shared memory block.
  *  Returns:
  *      0:            Success;
  *      -ENOMEM:        Insufficient memory for requested resources.
@@ -314,8 +314,8 @@ typedef int(*fxn_brd_write) (struct bridge_dev_context *dev_ctxt,
  *      -EFAULT:    Couldn't map physical address to a virtual one.
  *  Requires:
  *      channel_mgr != NULL.
- *      pMgrAttrs != NULL
- *      pMgrAttrs field are all valid:
+ *      mgr_attrts != NULL
+ *      mgr_attrts field are all valid:
  *          0 < max_channels <= CHNL_MAXCHANNELS.
  *          birq <= 15.
  *          word_size > 0.
@@ -328,7 +328,7 @@ typedef int(*fxn_chnl_create) (OUT struct chnl_mgr
                                      struct dev_object
                                      * hdev_obj,
                                      IN CONST struct
-                                     chnl_mgrattrs * pMgrAttrs);
+                                     chnl_mgrattrs * mgr_attrts);
 
 /*
  *  ======== bridge_chnl_destroy ========
@@ -570,20 +570,20 @@ typedef int(*fxn_chnl_getinfo) (struct chnl_object *chnl_obj,
  *  Parameters:
  *      hchnl_mgr:           Handle to a valid channel manager, or NULL.
  *      uChnlID:            Channel ID.
- *      pMgrInfo:           Location to store channel manager info.
+ *      mgr_info:           Location to store channel manager info.
  *  Returns:
  *      0:            Success;
- *      -EFAULT: Invalid hchnl_mgr or pMgrInfo.
+ *      -EFAULT: Invalid hchnl_mgr or mgr_info.
  *      -ECHRNG:   Invalid channel ID.
  *  Requires:
  *  Ensures:
- *      0:            pMgrInfo points to a filled in chnl_mgrinfo
- *                          struct, if (pMgrInfo != NULL).
+ *      0:            mgr_info points to a filled in chnl_mgrinfo
+ *                          struct, if (mgr_info != NULL).
  */
 typedef int(*fxn_chnl_getmgrinfo) (struct chnl_mgr
                                          * hchnl_mgr,
                                          u32 uChnlID,
-                                         OUT struct chnl_mgrinfo *pMgrInfo);
+                                         OUT struct chnl_mgrinfo *mgr_info);
 
 /*
  *  ======== bridge_chnl_idle ========
@@ -740,13 +740,13 @@ typedef int(*fxn_dev_destroy) (struct bridge_dev_context *dev_ctxt);
  *      hdev_obj != NULL;
  *      Channel manager already created;
  *      Message manager already created;
- *      pMgrAttrs != NULL;
+ *      mgr_attrts != NULL;
  *      io_man != NULL;
  *  Ensures:
  */
 typedef int(*fxn_io_create) (OUT struct io_mgr **io_man,
                                    struct dev_object *hdev_obj,
-                                   IN CONST struct io_attrs *pMgrAttrs);
+                                   IN CONST struct io_attrs *mgr_attrts);
 
 /*
  *  ======== bridge_io_destroy ========
@@ -1036,19 +1036,19 @@ struct bridge_drv_interface {
  *      compatibility, and then copy the interface functions into its own
  *      memory space.
  *  Parameters:
- *      ppDrvInterface  Pointer to a location to receive a pointer to the
+ *      drv_intf  Pointer to a location to receive a pointer to the
  *                      Bridge driver interface.
  *  Returns:
  *  Requires:
  *      The code segment this function resides in must expect to be discarded
  *      after completion.
  *  Ensures:
- *      ppDrvInterface pointer initialized to Bridge driver's function
+ *      drv_intf pointer initialized to Bridge driver's function
  *      interface. No system resources are acquired by this function.
  *  Details:
  *      Called during the Device_Init phase.
  */
-void bridge_drv_entry(OUT struct bridge_drv_interface **ppDrvInterface,
+void bridge_drv_entry(OUT struct bridge_drv_interface **drv_intf,
                   IN CONST char *driver_file_name);
 
 #endif /* DSPDEFS_ */
index 7b33563..93dc592 100644 (file)
@@ -28,7 +28,7 @@
 
 extern int bridge_io_create(OUT struct io_mgr **io_man,
                                   struct dev_object *hdev_obj,
-                                  IN CONST struct io_attrs *pMgrAttrs);
+                                  IN CONST struct io_attrs *mgr_attrts);
 
 extern int bridge_io_destroy(struct io_mgr *hio_mgr);
 
index aa24535..b8670ca 100644 (file)
  *      channel_mgr:            Location to store a channel manager object on
  *                              output.
  *      hdev_obj:             Handle to a device object.
- *      pMgrAttrs:              IO manager attributes.
- *      pMgrAttrs->birq:        I/O IRQ number.
- *      pMgrAttrs->irq_shared:     TRUE if the IRQ is shareable.
- *      pMgrAttrs->word_size:   DSP Word size in equivalent PC bytes..
+ *      mgr_attrts:              IO manager attributes.
+ *      mgr_attrts->birq:        I/O IRQ number.
+ *      mgr_attrts->irq_shared:     TRUE if the IRQ is shareable.
+ *      mgr_attrts->word_size:   DSP Word size in equivalent PC bytes..
  *  Returns:
  *      0:                Success;
  *      -ENOMEM:            Insufficient memory for requested resources.
  *  Requires:
  *      io_init(void) called.
  *      io_man != NULL.
- *      pMgrAttrs != NULL.
+ *      mgr_attrts != NULL.
  *  Ensures:
  */
 extern int io_create(OUT struct io_mgr **io_man,
                            struct dev_object *hdev_obj,
-                           IN CONST struct io_attrs *pMgrAttrs);
+                           IN CONST struct io_attrs *mgr_attrts);
 
 /*
  *  ======== io_destroy ========
index 70f3e89..e87708d 100644 (file)
@@ -32,7 +32,7 @@
  *      Allocate GPP resources to manage a node on the DSP.
  *  Parameters:
  *      hprocessor:         Handle of processor that is allocating the node.
- *      pNodeId:            Pointer to a dsp_uuid for the node.
+ *      node_uuid:          Pointer to a dsp_uuid for the node.
  *      pargs:              Optional arguments to be passed to the node.
  *      attr_in:            Optional pointer to node attributes (priority,
  *                          timeout...)
  *  Requires:
  *      node_init(void) called.
  *      hprocessor != NULL.
- *      pNodeId != NULL.
+ *      node_uuid != NULL.
  *      ph_node != NULL.
  *  Ensures:
  *      0:            IsValidNode(*ph_node).
  *      error:              *ph_node == NULL.
  */
 extern int node_allocate(struct proc_object *hprocessor,
-                               IN CONST struct dsp_uuid *pNodeId,
+                               IN CONST struct dsp_uuid *node_uuid,
                                OPTIONAL IN CONST struct dsp_cbdata
                                *pargs, OPTIONAL IN CONST struct dsp_nodeattrin
                                *attr_in,
@@ -554,7 +554,7 @@ extern int node_terminate(struct node_object *hnode,
  *
  */
 extern int node_get_uuid_props(void *hprocessor,
-                                     IN CONST struct dsp_uuid *pNodeId,
+                                     IN CONST struct dsp_uuid *node_uuid,
                                      OUT struct dsp_ndbprops
                                      *node_props);
 
index 0dc6dc7..0b45094 100644 (file)
@@ -163,7 +163,7 @@ extern enum node_type node_get_type(struct node_object *hnode);
  *  Ensures:
  */
 extern void get_node_info(struct node_object *hnode,
-                         struct dsp_nodeinfo *pNodeInfo);
+                         struct dsp_nodeinfo *node_info);
 
 /*
  *  ======== node_get_load_type ========
index 6c78f2d..48aebff 100644 (file)
@@ -17,7 +17,7 @@
 #include <dspbridge/nodepriv.h>
 #include <dspbridge/drv.h>
 
-extern int drv_get_proc_ctxt_list(struct process_context **pPctxt,
+extern int drv_get_proc_ctxt_list(struct process_context **pctxt,
                                         struct drv_object *hdrv_obj);
 
 extern int drv_insert_proc_context(struct drv_object *driver_obj,
@@ -29,7 +29,7 @@ extern int drv_remove_all_node_res_elements(void *ctxt);
 
 extern int drv_proc_set_pid(void *ctxt, s32 process);
 
-extern int drv_remove_all_resources(void *pPctxt);
+extern int drv_remove_all_resources(void *pctxt);
 
 extern int drv_remove_proc_context(struct drv_object *driver_obj,
                                          void *pr_ctxt);
@@ -50,7 +50,7 @@ extern int drv_proc_update_strm_res(u32 num_bufs, void *strm_res);
 
 extern int drv_proc_insert_strm_res_element(void *stream_obj,
                                                   void *strm_res,
-                                                  void *pPctxt);
+                                                  void *pctxt);
 
 extern int drv_get_strm_res_element(void *stream_obj, void *strm_res,
                                           void *ctxt);
index 468d8d8..f6b78d7 100644 (file)
@@ -166,7 +166,7 @@ extern bool rmm_init(void);
  *
  *  Parameters:
  *      segid:       Segment ID of the dynamic loading segment.
- *      pMemStatBuf: Pointer to allocated buffer into which memory stats are
+ *      mem_stat_buf: Pointer to allocated buffer into which memory stats are
  *                   placed.
  *  Returns:
  *      TRUE:   Success.
@@ -176,6 +176,6 @@ extern bool rmm_init(void);
  *  Ensures:
  */
 extern bool rmm_stat(struct rmm_target_obj *target, enum dsp_memtype segid,
-                    struct dsp_memstat *pMemStatBuf);
+                    struct dsp_memstat *mem_stat_buf);
 
 #endif /* RMM_ */
index 0ba5039..7da17c8 100644 (file)
@@ -53,7 +53,7 @@ static u32 refs;
  */
 int chnl_create(OUT struct chnl_mgr **channel_mgr,
                       struct dev_object *hdev_obj,
-                      IN CONST struct chnl_mgrattrs *pMgrAttrs)
+                      IN CONST struct chnl_mgrattrs *mgr_attrts)
 {
        int status;
        struct chnl_mgr *hchnl_mgr;
@@ -61,20 +61,20 @@ int chnl_create(OUT struct chnl_mgr **channel_mgr,
 
        DBC_REQUIRE(refs > 0);
        DBC_REQUIRE(channel_mgr != NULL);
-       DBC_REQUIRE(pMgrAttrs != NULL);
+       DBC_REQUIRE(mgr_attrts != NULL);
 
        *channel_mgr = NULL;
 
        /* Validate args: */
-       if ((0 < pMgrAttrs->max_channels) &&
-           (pMgrAttrs->max_channels <= CHNL_MAXCHANNELS))
+       if ((0 < mgr_attrts->max_channels) &&
+           (mgr_attrts->max_channels <= CHNL_MAXCHANNELS))
                status = 0;
-       else if (pMgrAttrs->max_channels == 0)
+       else if (mgr_attrts->max_channels == 0)
                status = -EINVAL;
        else
                status = -ECHRNG;
 
-       if (pMgrAttrs->word_size == 0)
+       if (mgr_attrts->word_size == 0)
                status = -EINVAL;
 
        if (DSP_SUCCEEDED(status)) {
@@ -89,7 +89,7 @@ int chnl_create(OUT struct chnl_mgr **channel_mgr,
                dev_get_intf_fxns(hdev_obj, &intf_fxns);
                /* Let Bridge channel module finish the create: */
                status = (*intf_fxns->pfn_chnl_create) (&hchnl_mgr, hdev_obj,
-                                                       pMgrAttrs);
+                                                       mgr_attrts);
                if (DSP_SUCCEEDED(status)) {
                        /* Fill in DSP API channel module's fields of the
                         * chnl_mgr structure */
index ffe724a..8fd9c26 100644 (file)
@@ -242,7 +242,7 @@ void *cmm_calloc_buf(struct cmm_object *hcmm_mgr, u32 usize,
  */
 int cmm_create(OUT struct cmm_object **ph_cmm_mgr,
                      struct dev_object *hdev_obj,
-                     IN CONST struct cmm_mgrattrs *pMgrAttrs)
+                     IN CONST struct cmm_mgrattrs *mgr_attrts)
 {
        struct cmm_object *cmm_obj = NULL;
        int status = 0;
@@ -255,13 +255,13 @@ int cmm_create(OUT struct cmm_object **ph_cmm_mgr,
        /* create, zero, and tag a cmm mgr object */
        cmm_obj = kzalloc(sizeof(struct cmm_object), GFP_KERNEL);
        if (cmm_obj != NULL) {
-               if (pMgrAttrs == NULL)
-                       pMgrAttrs = &cmm_dfltmgrattrs;  /* set defaults */
+               if (mgr_attrts == NULL)
+                       mgr_attrts = &cmm_dfltmgrattrs; /* set defaults */
 
                /* 4 bytes minimum */
-               DBC_ASSERT(pMgrAttrs->ul_min_block_size >= 4);
+               DBC_ASSERT(mgr_attrts->ul_min_block_size >= 4);
                /* save away smallest block allocation for this cmm mgr */
-               cmm_obj->ul_min_block_size = pMgrAttrs->ul_min_block_size;
+               cmm_obj->ul_min_block_size = mgr_attrts->ul_min_block_size;
                /* save away the systems memory page size */
                sys_info.dw_page_size = PAGE_SIZE;
                sys_info.dw_allocation_granularity = PAGE_SIZE;
index 96af2cc..c661e58 100644 (file)
@@ -119,7 +119,7 @@ int dmm_create_tables(struct dmm_object *dmm_mgr, u32 addr, u32 size)
  */
 int dmm_create(OUT struct dmm_object **dmm_manager,
                      struct dev_object *hdev_obj,
-                     IN CONST struct dmm_mgrattrs *pMgrAttrs)
+                     IN CONST struct dmm_mgrattrs *mgr_attrts)
 {
        struct dmm_object *dmm_obj = NULL;
        int status = 0;
index fdd3390..6585050 100644 (file)
@@ -47,7 +47,7 @@ static u32 refs;
  *      CHNL and msg_ctrl
  */
 int io_create(OUT struct io_mgr **io_man, struct dev_object *hdev_obj,
-                    IN CONST struct io_attrs *pMgrAttrs)
+                    IN CONST struct io_attrs *mgr_attrts)
 {
        struct bridge_drv_interface *intf_fxns;
        struct io_mgr *hio_mgr = NULL;
@@ -56,15 +56,15 @@ int io_create(OUT struct io_mgr **io_man, struct dev_object *hdev_obj,
 
        DBC_REQUIRE(refs > 0);
        DBC_REQUIRE(io_man != NULL);
-       DBC_REQUIRE(pMgrAttrs != NULL);
+       DBC_REQUIRE(mgr_attrts != NULL);
 
        *io_man = NULL;
 
        /* A memory base of 0 implies no memory base: */
-       if ((pMgrAttrs->shm_base != 0) && (pMgrAttrs->usm_length == 0))
+       if ((mgr_attrts->shm_base != 0) && (mgr_attrts->usm_length == 0))
                status = -EINVAL;
 
-       if (pMgrAttrs->word_size == 0)
+       if (mgr_attrts->word_size == 0)
                status = -EINVAL;
 
        if (DSP_SUCCEEDED(status)) {
@@ -72,7 +72,7 @@ int io_create(OUT struct io_mgr **io_man, struct dev_object *hdev_obj,
 
                /* Let Bridge channel module finish the create: */
                status = (*intf_fxns->pfn_io_create) (&hio_mgr, hdev_obj,
-                                                     pMgrAttrs);
+                                                     mgr_attrts);
 
                if (DSP_SUCCEEDED(status)) {
                        pio_mgr = (struct io_mgr_ *)hio_mgr;
index 595f9ec..2f32ece 100644 (file)
@@ -69,10 +69,10 @@ 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 int get_dep_lib_info(IN struct dcd_manager *hdcd_mgr,
                                   IN struct dsp_uuid *uuid_obj,
-                                  IN OUT u16 *pNumLibs,
-                                  OPTIONAL OUT u16 *pNumPersLibs,
+                                  IN OUT u16 *num_libs,
+                                  OPTIONAL OUT u16 *num_pers_libs,
                                   OPTIONAL OUT struct dsp_uuid *dep_lib_uuids,
-                                  OPTIONAL OUT bool *pPersistentDepLibs,
+                                  OPTIONAL OUT bool *prstnt_dep_libs,
                                   IN enum nldr_phase phase);
 
 /*
@@ -328,7 +328,7 @@ void dcd_exit(void)
 int dcd_get_dep_libs(IN struct dcd_manager *hdcd_mgr,
                            IN struct dsp_uuid *uuid_obj,
                            u16 num_libs, OUT struct dsp_uuid *dep_lib_uuids,
-                           OUT bool *pPersistentDepLibs,
+                           OUT bool *prstnt_dep_libs,
                            IN enum nldr_phase phase)
 {
        int status = 0;
@@ -337,11 +337,11 @@ int dcd_get_dep_libs(IN struct dcd_manager *hdcd_mgr,
        DBC_REQUIRE(hdcd_mgr);
        DBC_REQUIRE(uuid_obj != NULL);
        DBC_REQUIRE(dep_lib_uuids != NULL);
-       DBC_REQUIRE(pPersistentDepLibs != NULL);
+       DBC_REQUIRE(prstnt_dep_libs != NULL);
 
        status =
            get_dep_lib_info(hdcd_mgr, uuid_obj, &num_libs, NULL, dep_lib_uuids,
-                            pPersistentDepLibs, phase);
+                            prstnt_dep_libs, phase);
 
        return status;
 }
@@ -351,18 +351,18 @@ int dcd_get_dep_libs(IN struct dcd_manager *hdcd_mgr,
  */
 int dcd_get_num_dep_libs(IN struct dcd_manager *hdcd_mgr,
                                IN struct dsp_uuid *uuid_obj,
-                               OUT u16 *pNumLibs, OUT u16 *pNumPersLibs,
+                               OUT u16 *num_libs, OUT u16 *num_pers_libs,
                                IN enum nldr_phase phase)
 {
        int status = 0;
 
        DBC_REQUIRE(refs > 0);
        DBC_REQUIRE(hdcd_mgr);
-       DBC_REQUIRE(pNumLibs != NULL);
-       DBC_REQUIRE(pNumPersLibs != NULL);
+       DBC_REQUIRE(num_libs != NULL);
+       DBC_REQUIRE(num_pers_libs != NULL);
        DBC_REQUIRE(uuid_obj != NULL);
 
-       status = get_dep_lib_info(hdcd_mgr, uuid_obj, pNumLibs, pNumPersLibs,
+       status = get_dep_lib_info(hdcd_mgr, uuid_obj, num_libs, num_pers_libs,
                                  NULL, NULL, phase);
 
        return status;
@@ -375,9 +375,9 @@ int dcd_get_num_dep_libs(IN struct dcd_manager *hdcd_mgr,
  *      object type.
  */
 int dcd_get_object_def(IN struct dcd_manager *hdcd_mgr,
-                             IN struct dsp_uuid *pObjUuid,
+                             IN struct dsp_uuid *obj_uuid,
                              IN enum dsp_dcdobjtype obj_type,
-                             OUT struct dcd_genericobj *pObjDef)
+                             OUT struct dcd_genericobj *obj_def)
 {
        struct dcd_manager *dcd_mgr_obj = hdcd_mgr;     /* ptr to DCD mgr */
        struct cod_libraryobj *lib = NULL;
@@ -394,8 +394,8 @@ int dcd_get_object_def(IN struct dcd_manager *hdcd_mgr,
        char sz_obj_type[MAX_INT2CHAR_LENGTH];  /* str. rep. of obj_type. */
 
        DBC_REQUIRE(refs > 0);
-       DBC_REQUIRE(pObjDef != NULL);
-       DBC_REQUIRE(pObjUuid != NULL);
+       DBC_REQUIRE(obj_def != NULL);
+       DBC_REQUIRE(obj_uuid != NULL);
 
        sz_uuid = kzalloc(MAXUUIDLEN, GFP_KERNEL);
        if (!sz_uuid) {
@@ -436,7 +436,7 @@ int dcd_get_object_def(IN struct dcd_manager *hdcd_mgr,
                }
 
                /* Create UUID value to set in registry. */
-               uuid_uuid_to_string(pObjUuid, sz_uuid, MAXUUIDLEN);
+               uuid_uuid_to_string(obj_uuid, sz_uuid, MAXUUIDLEN);
 
                if ((strlen(sz_reg_key) + MAXUUIDLEN) < DCD_MAXPATHLENGTH)
                        strncat(sz_reg_key, sz_uuid, MAXUUIDLEN);
@@ -512,7 +512,7 @@ int dcd_get_object_def(IN struct dcd_manager *hdcd_mgr,
 
                /* Parse the content of the COFF buffer. */
                status =
-                   get_attrs_from_buf(psz_coff_buf, ul_len, obj_type, pObjDef);
+                   get_attrs_from_buf(psz_coff_buf, ul_len, obj_type, obj_def);
                if (DSP_FAILED(status))
                        status = -EACCES;
        } else {
@@ -1393,10 +1393,10 @@ static char dsp_char2_gpp_char(char *pWord, s32 dsp_char_size)
  */
 static int get_dep_lib_info(IN struct dcd_manager *hdcd_mgr,
                                   IN struct dsp_uuid *uuid_obj,
-                                  IN OUT u16 *pNumLibs,
-                                  OPTIONAL OUT u16 *pNumPersLibs,
+                                  IN OUT u16 *num_libs,
+                                  OPTIONAL OUT u16 *num_pers_libs,
                                   OPTIONAL OUT struct dsp_uuid *dep_lib_uuids,
-                                  OPTIONAL OUT bool *pPersistentDepLibs,
+                                  OPTIONAL OUT bool *prstnt_dep_libs,
                                   enum nldr_phase phase)
 {
        struct dcd_manager *dcd_mgr_obj = hdcd_mgr;
@@ -1416,14 +1416,14 @@ static int get_dep_lib_info(IN struct dcd_manager *hdcd_mgr,
        DBC_REQUIRE(refs > 0);
 
        DBC_REQUIRE(hdcd_mgr);
-       DBC_REQUIRE(pNumLibs != NULL);
+       DBC_REQUIRE(num_libs != NULL);
        DBC_REQUIRE(uuid_obj != NULL);
 
        /*  Initialize to 0 dependent libraries, if only counting number of
         *  dependent libraries */
        if (!get_uuids) {
-               *pNumLibs = 0;
-               *pNumPersLibs = 0;
+               *num_libs = 0;
+               *num_pers_libs = 0;
        }
 
        /* Allocate a buffer for file name */
@@ -1472,7 +1472,7 @@ static int get_dep_lib_info(IN struct dcd_manager *hdcd_mgr,
        psz_cur = psz_coff_buf;
        while ((token = strsep(&psz_cur, seps)) && *token != '\0') {
                if (get_uuids) {
-                       if (dep_libs >= *pNumLibs) {
+                       if (dep_libs >= *num_libs) {
                                /* Gone beyond the limit */
                                break;
                        } else {
@@ -1482,17 +1482,17 @@ static int get_dep_lib_info(IN struct dcd_manager *hdcd_mgr,
                                                        [dep_libs]));
                                /* Is this library persistent? */
                                token = strsep(&psz_cur, seps);
-                               pPersistentDepLibs[dep_libs] = atoi(token);
+                               prstnt_dep_libs[dep_libs] = atoi(token);
                                dep_libs++;
                        }
                } else {
                        /* Advanc to next token */
                        token = strsep(&psz_cur, seps);
                        if (atoi(token))
-                               (*pNumPersLibs)++;
+                               (*num_pers_libs)++;
 
                        /* Just counting number of dependent libraries */
-                       (*pNumLibs)++;
+                       (*num_libs)++;
                }
        }
 func_cont:
index 9ebdf1e..d2cb558 100644 (file)
@@ -252,7 +252,7 @@ int disp_node_create(struct disp_object *disp_obj,
                            struct node_object *hnode, u32 ulRMSFxn,
                            u32 ul_create_fxn,
                            IN CONST struct node_createargs *pargs,
-                           OUT nodeenv *pNodeEnv)
+                           OUT nodeenv *node_env)
 {
        struct node_msgargs node_msg_args;
        struct node_taskargs task_arg_obj;
@@ -282,7 +282,7 @@ int disp_node_create(struct disp_object *disp_obj,
        DBC_REQUIRE(disp_obj);
        DBC_REQUIRE(hnode != NULL);
        DBC_REQUIRE(node_get_type(hnode) != NODE_DEVICE);
-       DBC_REQUIRE(pNodeEnv != NULL);
+       DBC_REQUIRE(node_env != NULL);
 
        status = dev_get_dev_type(disp_obj->hdev_obj, &dev_type);
 
@@ -461,7 +461,7 @@ int disp_node_create(struct disp_object *disp_obj,
                ul_bytes = total * sizeof(rms_word);
                DBC_ASSERT(ul_bytes < (RMS_COMMANDBUFSIZE * sizeof(rms_word)));
                status = send_message(disp_obj, node_get_timeout(hnode),
-                                     ul_bytes, pNodeEnv);
+                                     ul_bytes, node_env);
                if (DSP_SUCCEEDED(status)) {
                        /*
                         * Message successfully received from RMS.
index b08341b..ef147b7 100644 (file)
@@ -936,21 +936,21 @@ int drv_request_bridge_res_dsp(void **phost_resources)
        return status;
 }
 
-void mem_ext_phys_pool_init(u32 poolPhysBase, u32 poolSize)
+void mem_ext_phys_pool_init(u32 pool_phys_base, u32 pool_size)
 {
        u32 pool_virt_base;
 
        /* get the virtual address for the physical memory pool passed */
-       pool_virt_base = (u32) ioremap(poolPhysBase, poolSize);
+       pool_virt_base = (u32) ioremap(pool_phys_base, pool_size);
 
        if ((void **)pool_virt_base == NULL) {
                pr_err("%s: external physical memory map failed\n", __func__);
                ext_phys_mem_pool_enabled = false;
        } else {
-               ext_mem_pool.phys_mem_base = poolPhysBase;
-               ext_mem_pool.phys_mem_size = poolSize;
+               ext_mem_pool.phys_mem_base = pool_phys_base;
+               ext_mem_pool.phys_mem_size = pool_size;
                ext_mem_pool.virt_mem_base = pool_virt_base;
-               ext_mem_pool.next_phys_alloc_ptr = poolPhysBase;
+               ext_mem_pool.next_phys_alloc_ptr = pool_phys_base;
                ext_phys_mem_pool_enabled = true;
        }
 }
index 5e586d4..91a5d8c 100644 (file)
@@ -252,7 +252,7 @@ static int get_fxn_address(struct node_object *hnode, u32 * pulFxnAddr,
                                  u32 uPhase);
 static int get_node_props(struct dcd_manager *hdcd_mgr,
                                 struct node_object *hnode,
-                                CONST struct dsp_uuid *pNodeId,
+                                CONST struct dsp_uuid *node_uuid,
                                 struct dcd_genericobj *dcd_prop);
 static int get_proc_props(struct node_mgr *hnode_mgr,
                                 struct dev_object *hdev_obj);
@@ -291,7 +291,7 @@ enum node_state node_get_state(void *hnode)
  *      Allocate GPP resources to manage a node on the DSP.
  */
 int node_allocate(struct proc_object *hprocessor,
-                        IN CONST struct dsp_uuid *pNodeId,
+                        IN CONST struct dsp_uuid *node_uuid,
                         OPTIONAL IN CONST struct dsp_cbdata *pargs,
                         OPTIONAL IN CONST struct dsp_nodeattrin *attr_in,
                         OUT struct node_object **ph_node,
@@ -328,7 +328,7 @@ int node_allocate(struct proc_object *hprocessor,
        DBC_REQUIRE(refs > 0);
        DBC_REQUIRE(hprocessor != NULL);
        DBC_REQUIRE(ph_node != NULL);
-       DBC_REQUIRE(pNodeId != NULL);
+       DBC_REQUIRE(node_uuid != NULL);
 
        *ph_node = NULL;
 
@@ -393,12 +393,12 @@ int node_allocate(struct proc_object *hprocessor,
        mutex_lock(&hnode_mgr->node_mgr_lock);
 
        /* Get dsp_ndbprops from node database */
-       status = get_node_props(hnode_mgr->hdcd_mgr, pnode, pNodeId,
+       status = get_node_props(hnode_mgr->hdcd_mgr, pnode, node_uuid,
                                &(pnode->dcd_props));
        if (DSP_FAILED(status))
                goto func_cont;
 
-       pnode->node_uuid = *pNodeId;
+       pnode->node_uuid = *node_uuid;
        pnode->hprocessor = hprocessor;
        pnode->ntype = pnode->dcd_props.obj_data.node_obj.ndb_props.ntype;
        pnode->utimeout = pnode->dcd_props.obj_data.node_obj.ndb_props.utimeout;
@@ -675,9 +675,9 @@ func_cont:
        DBC_ENSURE((DSP_FAILED(status) && (*ph_node == NULL)) ||
                        (DSP_SUCCEEDED(status) && *ph_node));
 func_end:
-       dev_dbg(bridge, "%s: hprocessor: %p pNodeId: %p pargs: %p attr_in: %p "
-               "ph_node: %p status: 0x%x\n", __func__, hprocessor,
-               pNodeId, pargs, attr_in, ph_node, status);
+       dev_dbg(bridge, "%s: hprocessor: %p node_uuid: %p pargs: %p attr_in:"
+               " %p ph_node: %p status: 0x%x\n", __func__, hprocessor,
+               node_uuid, pargs, attr_in, ph_node, status);
        return status;
 }
 
@@ -2860,26 +2860,26 @@ static int get_fxn_address(struct node_object *hnode, u32 * pulFxnAddr,
  *  Purpose:
  *      Retrieves the node information.
  */
-void get_node_info(struct node_object *hnode, struct dsp_nodeinfo *pNodeInfo)
+void get_node_info(struct node_object *hnode, struct dsp_nodeinfo *node_info)
 {
        u32 i;
 
        DBC_REQUIRE(hnode);
-       DBC_REQUIRE(pNodeInfo != NULL);
+       DBC_REQUIRE(node_info != NULL);
 
-       pNodeInfo->cb_struct = sizeof(struct dsp_nodeinfo);
-       pNodeInfo->nb_node_database_props =
+       node_info->cb_struct = sizeof(struct dsp_nodeinfo);
+       node_info->nb_node_database_props =
            hnode->dcd_props.obj_data.node_obj.ndb_props;
-       pNodeInfo->execution_priority = hnode->prio;
-       pNodeInfo->device_owner = hnode->device_owner;
-       pNodeInfo->number_streams = hnode->num_inputs + hnode->num_outputs;
-       pNodeInfo->node_env = hnode->node_env;
+       node_info->execution_priority = hnode->prio;
+       node_info->device_owner = hnode->device_owner;
+       node_info->number_streams = hnode->num_inputs + hnode->num_outputs;
+       node_info->node_env = hnode->node_env;
 
-       pNodeInfo->ns_execution_state = node_get_state(hnode);
+       node_info->ns_execution_state = node_get_state(hnode);
 
        /* Copy stream connect data */
        for (i = 0; i < hnode->num_inputs + hnode->num_outputs; i++)
-               pNodeInfo->sc_stream_connection[i] = hnode->stream_connect[i];
+               node_info->sc_stream_connection[i] = hnode->stream_connect[i];
 
 }
 
@@ -2890,7 +2890,7 @@ void get_node_info(struct node_object *hnode, struct dsp_nodeinfo *pNodeInfo)
  */
 static int get_node_props(struct dcd_manager *hdcd_mgr,
                                 struct node_object *hnode,
-                                CONST struct dsp_uuid *pNodeId,
+                                CONST struct dsp_uuid *node_uuid,
                                 struct dcd_genericobj *dcd_prop)
 {
        u32 len;
@@ -2902,14 +2902,14 @@ static int get_node_props(struct dcd_manager *hdcd_mgr,
        int status = 0;
        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 *)node_uuid,
                                    DSP_DCDNODETYPE, dcd_prop);
 
        if (DSP_SUCCEEDED(status)) {
                hnode->ntype = node_type = pndb_props->ntype;
 
                /* Create UUID value to set in registry. */
-               uuid_uuid_to_string((struct dsp_uuid *)pNodeId, sz_uuid,
+               uuid_uuid_to_string((struct dsp_uuid *)node_uuid, sz_uuid,
                                    MAXUUIDLEN);
                dev_dbg(bridge, "(node) UUID: %s\n", sz_uuid);
 
@@ -3006,7 +3006,7 @@ static int get_proc_props(struct node_mgr *hnode_mgr,
  *      Fetch Node UUID properties from DCD/DOF file.
  */
 int node_get_uuid_props(void *hprocessor,
-                              IN CONST struct dsp_uuid *pNodeId,
+                              IN CONST struct dsp_uuid *node_uuid,
                               OUT struct dsp_ndbprops *node_props)
 {
        struct node_mgr *hnode_mgr = NULL;
@@ -3017,9 +3017,9 @@ int node_get_uuid_props(void *hprocessor,
 
        DBC_REQUIRE(refs > 0);
        DBC_REQUIRE(hprocessor != NULL);
-       DBC_REQUIRE(pNodeId != NULL);
+       DBC_REQUIRE(node_uuid != NULL);
 
-       if (hprocessor == NULL || pNodeId == NULL) {
+       if (hprocessor == NULL || node_uuid == NULL) {
                status = -EFAULT;
                goto func_end;
        }
@@ -3057,7 +3057,7 @@ int node_get_uuid_props(void *hprocessor,
        dcd_node_props.pstr_i_alg_name = NULL;
 
        status = dcd_get_object_def(hnode_mgr->hdcd_mgr,
-               (struct dsp_uuid *)pNodeId, DSP_DCDNODETYPE,
+               (struct dsp_uuid *)node_uuid, DSP_DCDNODETYPE,
                (struct dcd_genericobj *)&dcd_node_props);
 
        if (DSP_SUCCEEDED(status)) {
index 96c61dd..0354b0f 100644 (file)
@@ -369,7 +369,7 @@ bool rmm_init(void)
  *  ======== rmm_stat ========
  */
 bool rmm_stat(struct rmm_target_obj *target, enum dsp_memtype segid,
-             struct dsp_memstat *pMemStatBuf)
+             struct dsp_memstat *mem_stat_buf)
 {
        struct rmm_header *head;
        bool ret = false;
@@ -377,7 +377,7 @@ bool rmm_stat(struct rmm_target_obj *target, enum dsp_memtype segid,
        u32 total_free_size = 0;
        u32 free_blocks = 0;
 
-       DBC_REQUIRE(pMemStatBuf != NULL);
+       DBC_REQUIRE(mem_stat_buf != NULL);
        DBC_ASSERT(target != NULL);
 
        if ((u32) segid < target->num_segs) {
@@ -392,19 +392,19 @@ bool rmm_stat(struct rmm_target_obj *target, enum dsp_memtype segid,
                }
 
                /* ul_size */
-               pMemStatBuf->ul_size = target->seg_tab[segid].length;
+               mem_stat_buf->ul_size = target->seg_tab[segid].length;
 
                /* ul_num_free_blocks */
-               pMemStatBuf->ul_num_free_blocks = free_blocks;
+               mem_stat_buf->ul_num_free_blocks = free_blocks;
 
                /* ul_total_free_size */
-               pMemStatBuf->ul_total_free_size = total_free_size;
+               mem_stat_buf->ul_total_free_size = total_free_size;
 
                /* ul_len_max_free_block */
-               pMemStatBuf->ul_len_max_free_block = max_free_size;
+               mem_stat_buf->ul_len_max_free_block = max_free_size;
 
                /* ul_num_alloc_blocks */
-               pMemStatBuf->ul_num_alloc_blocks =
+               mem_stat_buf->ul_num_alloc_blocks =
                    target->seg_tab[segid].number;
 
                ret = true;