aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRene Sapiens <rene.sapiens@ti.com>2010-07-09 22:24:04 -0400
committerGreg Kroah-Hartman <gregkh@suse.de>2010-07-22 13:45:36 -0400
commit383b834522b11eec607dbe422835dcf5812730c3 (patch)
tree195f0be11cc94701884e34485d5111c3770f373f
parent13b18c29ec01068dce4b266cc179d4e90e79d0e9 (diff)
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: ======================================== pstrFxn to str_fxn pstrLibName to str_lib_name pstrSect to str_sect pstrSym to str_sym pstrZLFileName to str_zl_file_name pstrZLFile to str_zl_file pszCoffPath to sz_coff_path pszMode to sz_mode pszName to sz_name pszSectName to sz_sect_name pszUuid to sz_uuid pszZlDllName to sz_zl_dll_name puAddr to addr pulAddr to addr pulBufSize to buff_size pulBytes to nbytes ======================================== Signed-off-by: Rene Sapiens <rene.sapiens@ti.com> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
-rw-r--r--drivers/staging/tidspbridge/gen/uuidutil.c40
-rw-r--r--drivers/staging/tidspbridge/include/dspbridge/cfg.h8
-rw-r--r--drivers/staging/tidspbridge/include/dspbridge/cod.h50
-rw-r--r--drivers/staging/tidspbridge/include/dspbridge/dbdcd.h24
-rw-r--r--drivers/staging/tidspbridge/include/dspbridge/dblldefs.h4
-rw-r--r--drivers/staging/tidspbridge/include/dspbridge/dev.h6
-rw-r--r--drivers/staging/tidspbridge/include/dspbridge/nldr.h2
-rw-r--r--drivers/staging/tidspbridge/include/dspbridge/nldrdefs.h10
-rw-r--r--drivers/staging/tidspbridge/include/dspbridge/strm.h10
-rw-r--r--drivers/staging/tidspbridge/include/dspbridge/uuidutil.h16
-rw-r--r--drivers/staging/tidspbridge/pmgr/cod.c64
-rw-r--r--drivers/staging/tidspbridge/pmgr/dev.c6
-rw-r--r--drivers/staging/tidspbridge/rmgr/dbdcd.c32
-rw-r--r--drivers/staging/tidspbridge/rmgr/nldr.c20
-rw-r--r--drivers/staging/tidspbridge/rmgr/strm.c14
15 files changed, 153 insertions, 153 deletions
diff --git a/drivers/staging/tidspbridge/gen/uuidutil.c b/drivers/staging/tidspbridge/gen/uuidutil.c
index 070761bf62b..840da427faf 100644
--- a/drivers/staging/tidspbridge/gen/uuidutil.c
+++ b/drivers/staging/tidspbridge/gen/uuidutil.c
@@ -36,14 +36,14 @@
36 * Note: snprintf format specifier is: 36 * Note: snprintf format specifier is:
37 * %[flags] [width] [.precision] [{h | l | I64 | L}]type 37 * %[flags] [width] [.precision] [{h | l | I64 | L}]type
38 */ 38 */
39void uuid_uuid_to_string(IN struct dsp_uuid *uuid_obj, OUT char *pszUuid, 39void uuid_uuid_to_string(IN struct dsp_uuid *uuid_obj, OUT char *sz_uuid,
40 IN s32 size) 40 IN s32 size)
41{ 41{
42 s32 i; /* return result from snprintf. */ 42 s32 i; /* return result from snprintf. */
43 43
44 DBC_REQUIRE(uuid_obj && pszUuid); 44 DBC_REQUIRE(uuid_obj && sz_uuid);
45 45
46 i = snprintf(pszUuid, size, 46 i = snprintf(sz_uuid, size,
47 "%.8X_%.4X_%.4X_%.2X%.2X_%.2X%.2X%.2X%.2X%.2X%.2X", 47 "%.8X_%.4X_%.4X_%.2X%.2X_%.2X%.2X%.2X%.2X%.2X%.2X",
48 uuid_obj->ul_data1, uuid_obj->us_data2, uuid_obj->us_data3, 48 uuid_obj->ul_data1, uuid_obj->us_data2, uuid_obj->us_data3,
49 uuid_obj->uc_data4, uuid_obj->uc_data5, 49 uuid_obj->uc_data4, uuid_obj->uc_data5,
@@ -75,39 +75,39 @@ static s32 uuid_hex_to_bin(char *buf, s32 len)
75 * Purpose: 75 * Purpose:
76 * Converts a string to a struct dsp_uuid. 76 * Converts a string to a struct dsp_uuid.
77 */ 77 */
78void uuid_uuid_from_string(IN char *pszUuid, OUT struct dsp_uuid *uuid_obj) 78void uuid_uuid_from_string(IN char *sz_uuid, OUT struct dsp_uuid *uuid_obj)
79{ 79{
80 s32 j; 80 s32 j;
81 81
82 uuid_obj->ul_data1 = uuid_hex_to_bin(pszUuid, 8); 82 uuid_obj->ul_data1 = uuid_hex_to_bin(sz_uuid, 8);
83 pszUuid += 8; 83 sz_uuid += 8;
84 84
85 /* Step over underscore */ 85 /* Step over underscore */
86 pszUuid++; 86 sz_uuid++;
87 87
88 uuid_obj->us_data2 = (u16) uuid_hex_to_bin(pszUuid, 4); 88 uuid_obj->us_data2 = (u16) uuid_hex_to_bin(sz_uuid, 4);
89 pszUuid += 4; 89 sz_uuid += 4;
90 90
91 /* Step over underscore */ 91 /* Step over underscore */
92 pszUuid++; 92 sz_uuid++;
93 93
94 uuid_obj->us_data3 = (u16) uuid_hex_to_bin(pszUuid, 4); 94 uuid_obj->us_data3 = (u16) uuid_hex_to_bin(sz_uuid, 4);
95 pszUuid += 4; 95 sz_uuid += 4;
96 96
97 /* Step over underscore */ 97 /* Step over underscore */
98 pszUuid++; 98 sz_uuid++;
99 99
100 uuid_obj->uc_data4 = (u8) uuid_hex_to_bin(pszUuid, 2); 100 uuid_obj->uc_data4 = (u8) uuid_hex_to_bin(sz_uuid, 2);
101 pszUuid += 2; 101 sz_uuid += 2;
102 102
103 uuid_obj->uc_data5 = (u8) uuid_hex_to_bin(pszUuid, 2); 103 uuid_obj->uc_data5 = (u8) uuid_hex_to_bin(sz_uuid, 2);
104 pszUuid += 2; 104 sz_uuid += 2;
105 105
106 /* Step over underscore */ 106 /* Step over underscore */
107 pszUuid++; 107 sz_uuid++;
108 108
109 for (j = 0; j < 6; j++) { 109 for (j = 0; j < 6; j++) {
110 uuid_obj->uc_data6[j] = (u8) uuid_hex_to_bin(pszUuid, 2); 110 uuid_obj->uc_data6[j] = (u8) uuid_hex_to_bin(sz_uuid, 2);
111 pszUuid += 2; 111 sz_uuid += 2;
112 } 112 }
113} 113}
diff --git a/drivers/staging/tidspbridge/include/dspbridge/cfg.h b/drivers/staging/tidspbridge/include/dspbridge/cfg.h
index 98cadb17cfa..1422ed053e6 100644
--- a/drivers/staging/tidspbridge/include/dspbridge/cfg.h
+++ b/drivers/staging/tidspbridge/include/dspbridge/cfg.h
@@ -155,20 +155,20 @@ extern void cfg_get_perf_value(OUT bool *enable_perf);
155 * Parameters: 155 * Parameters:
156 * dev_node_obj: Handle to the dev_node who's driver we are querying. 156 * dev_node_obj: Handle to the dev_node who's driver we are querying.
157 * buf_size: Size of buffer. 157 * buf_size: Size of buffer.
158 * pstrZLFileName: Ptr to character buf to hold ZLFileName. 158 * str_zl_file_name: Ptr to character buf to hold ZLFileName.
159 * Returns: 159 * Returns:
160 * 0: Success. 160 * 0: Success.
161 * -EFAULT: pstrZLFileName is invalid or dev_node_obj is invalid. 161 * -EFAULT: str_zl_file_name is invalid or dev_node_obj is invalid.
162 * -ENODATA: couldn't find the ZLFileName. 162 * -ENODATA: couldn't find the ZLFileName.
163 * Requires: 163 * Requires:
164 * CFG initialized. 164 * CFG initialized.
165 * Ensures: 165 * Ensures:
166 * 0: Not more than buf_size bytes were copied into 166 * 0: Not more than buf_size bytes were copied into
167 * pstrZLFileName, and *pstrZLFileName contains ZLFileName 167 * str_zl_file_name, and *str_zl_file_name contains ZLFileName
168 * for this devnode. 168 * for this devnode.
169 */ 169 */
170extern int cfg_get_zl_file(IN struct cfg_devnode *dev_node_obj, 170extern int cfg_get_zl_file(IN struct cfg_devnode *dev_node_obj,
171 IN u32 buf_size, OUT char *pstrZLFileName); 171 IN u32 buf_size, OUT char *str_zl_file_name);
172 172
173/* 173/*
174 * ======== cfg_init ======== 174 * ======== cfg_init ========
diff --git a/drivers/staging/tidspbridge/include/dspbridge/cod.h b/drivers/staging/tidspbridge/include/dspbridge/cod.h
index f8cbb21c182..c84761e608a 100644
--- a/drivers/staging/tidspbridge/include/dspbridge/cod.h
+++ b/drivers/staging/tidspbridge/include/dspbridge/cod.h
@@ -78,7 +78,7 @@ extern void cod_close(struct cod_libraryobj *lib);
78 * using the cod_get_sym_value() function. 78 * using the cod_get_sym_value() function.
79 * Parameters: 79 * Parameters:
80 * manager: created manager object 80 * manager: created manager object
81 * pstrZLFile: ZL DLL filename, of length < COD_MAXPATHLENGTH. 81 * str_zl_file: ZL DLL filename, of length < COD_MAXPATHLENGTH.
82 * attrs: attributes to be used by this object. A NULL value 82 * attrs: attributes to be used by this object. A NULL value
83 * will cause default attrs to be used. 83 * will cause default attrs to be used.
84 * Returns: 84 * Returns:
@@ -88,11 +88,11 @@ extern void cod_close(struct cod_libraryobj *lib);
88 * non default values of attrs. 88 * non default values of attrs.
89 * Requires: 89 * Requires:
90 * COD module initialized. 90 * COD module initialized.
91 * pstrZLFile != NULL 91 * str_zl_file != NULL
92 * Ensures: 92 * Ensures:
93 */ 93 */
94extern int cod_create(OUT struct cod_manager **manager, 94extern int cod_create(OUT struct cod_manager **manager,
95 char *pstrZLFile, 95 char *str_zl_file,
96 IN OPTIONAL CONST struct cod_attrs *attrs); 96 IN OPTIONAL CONST struct cod_attrs *attrs);
97 97
98/* 98/*
@@ -149,7 +149,7 @@ extern int cod_get_base_lib(struct cod_manager *cod_mgr_obj,
149 * Get the name of the base image DBL library. 149 * Get the name of the base image DBL library.
150 * Parameters: 150 * Parameters:
151 * cod_mgr_obj: handle of manager to be deleted 151 * cod_mgr_obj: handle of manager to be deleted
152 * pszName: location to store library name on output. 152 * sz_name: location to store library name on output.
153 * usize: size of name buffer. 153 * usize: size of name buffer.
154 * Returns: 154 * Returns:
155 * 0: Success. 155 * 0: Success.
@@ -157,11 +157,11 @@ extern int cod_get_base_lib(struct cod_manager *cod_mgr_obj,
157 * Requires: 157 * Requires:
158 * COD module initialized. 158 * COD module initialized.
159 * valid cod_mgr_obj. 159 * valid cod_mgr_obj.
160 * pszName != NULL. 160 * sz_name != NULL.
161 * Ensures: 161 * Ensures:
162 */ 162 */
163extern int cod_get_base_name(struct cod_manager *cod_mgr_obj, 163extern int cod_get_base_name(struct cod_manager *cod_mgr_obj,
164 char *pszName, u32 usize); 164 char *sz_name, u32 usize);
165 165
166/* 166/*
167 * ======== cod_get_entry ======== 167 * ======== cod_get_entry ========
@@ -206,8 +206,8 @@ extern int cod_get_loader(struct cod_manager *cod_mgr_obj,
206 * given the section name. 206 * given the section name.
207 * Parameters: 207 * Parameters:
208 * lib Library handle returned from cod_open(). 208 * lib Library handle returned from cod_open().
209 * pstrSect: name of the section, with or without leading "." 209 * str_sect: name of the section, with or without leading "."
210 * puAddr: Location to store address. 210 * addr: Location to store address.
211 * puLen: Location to store length. 211 * puLen: Location to store length.
212 * Returns: 212 * Returns:
213 * 0: Success 213 * 0: Success
@@ -216,18 +216,18 @@ extern int cod_get_loader(struct cod_manager *cod_mgr_obj,
216 * Requires: 216 * Requires:
217 * COD module initialized. 217 * COD module initialized.
218 * valid cod_mgr_obj. 218 * valid cod_mgr_obj.
219 * pstrSect != NULL; 219 * str_sect != NULL;
220 * puAddr != NULL; 220 * addr != NULL;
221 * puLen != NULL; 221 * puLen != NULL;
222 * Ensures: 222 * Ensures:
223 * 0: *puAddr and *puLen contain the address and length of the 223 * 0: *addr and *puLen contain the address and length of the
224 * section. 224 * section.
225 * else: *puAddr == 0 and *puLen == 0; 225 * else: *addr == 0 and *puLen == 0;
226 * 226 *
227 */ 227 */
228extern int cod_get_section(struct cod_libraryobj *lib, 228extern int cod_get_section(struct cod_libraryobj *lib,
229 IN char *pstrSect, 229 IN char *str_sect,
230 OUT u32 *puAddr, OUT u32 *puLen); 230 OUT u32 *addr, OUT u32 *puLen);
231 231
232/* 232/*
233 * ======== cod_get_sym_value ======== 233 * ======== cod_get_sym_value ========
@@ -246,12 +246,12 @@ extern int cod_get_section(struct cod_libraryobj *lib,
246 * Requires: 246 * Requires:
247 * COD module initialized. 247 * COD module initialized.
248 * Valid cod_mgr_obj. 248 * Valid cod_mgr_obj.
249 * pstrSym != NULL. 249 * str_sym != NULL.
250 * pul_value != NULL. 250 * pul_value != NULL.
251 * Ensures: 251 * Ensures:
252 */ 252 */
253extern int cod_get_sym_value(struct cod_manager *cod_mgr_obj, 253extern int cod_get_sym_value(struct cod_manager *cod_mgr_obj,
254 IN char *pstrSym, OUT u32 * pul_value); 254 IN char *str_sym, OUT u32 * pul_value);
255 255
256/* 256/*
257 * ======== cod_init ======== 257 * ======== cod_init ========
@@ -304,7 +304,7 @@ extern int cod_load_base(struct cod_manager *cod_mgr_obj,
304 * Open a library for reading sections. Does not load or set the base. 304 * Open a library for reading sections. Does not load or set the base.
305 * Parameters: 305 * Parameters:
306 * hmgr: manager to load the code with 306 * hmgr: manager to load the code with
307 * pszCoffPath: Coff file to open. 307 * sz_coff_path: Coff file to open.
308 * flags: COD_NOLOAD (don't load symbols) or COD_SYMB (load 308 * flags: COD_NOLOAD (don't load symbols) or COD_SYMB (load
309 * symbols). 309 * symbols).
310 * lib_obj: Handle returned that can be used in calls to cod_close 310 * lib_obj: Handle returned that can be used in calls to cod_close
@@ -316,11 +316,11 @@ extern int cod_load_base(struct cod_manager *cod_mgr_obj,
316 * COD module initialized. 316 * COD module initialized.
317 * hmgr is valid. 317 * hmgr is valid.
318 * flags == COD_NOLOAD || flags == COD_SYMB. 318 * flags == COD_NOLOAD || flags == COD_SYMB.
319 * pszCoffPath != NULL. 319 * sz_coff_path != NULL.
320 * Ensures: 320 * Ensures:
321 */ 321 */
322extern int cod_open(struct cod_manager *hmgr, 322extern int cod_open(struct cod_manager *hmgr,
323 IN char *pszCoffPath, 323 IN char *sz_coff_path,
324 u32 flags, OUT struct cod_libraryobj **lib_obj); 324 u32 flags, OUT struct cod_libraryobj **lib_obj);
325 325
326/* 326/*
@@ -329,7 +329,7 @@ extern int cod_open(struct cod_manager *hmgr,
329 * Open base image for reading sections. Does not load the base. 329 * Open base image for reading sections. Does not load the base.
330 * Parameters: 330 * Parameters:
331 * hmgr: manager to load the code with 331 * hmgr: manager to load the code with
332 * pszCoffPath: Coff file to open. 332 * sz_coff_path: Coff file to open.
333 * flags: Specifies whether to load symbols. 333 * flags: Specifies whether to load symbols.
334 * Returns: 334 * Returns:
335 * 0: Success. 335 * 0: Success.
@@ -337,10 +337,10 @@ extern int cod_open(struct cod_manager *hmgr,
337 * Requires: 337 * Requires:
338 * COD module initialized. 338 * COD module initialized.
339 * hmgr is valid. 339 * hmgr is valid.
340 * pszCoffPath != NULL. 340 * sz_coff_path != NULL.
341 * Ensures: 341 * Ensures:
342 */ 342 */
343extern int cod_open_base(struct cod_manager *hmgr, IN char *pszCoffPath, 343extern int cod_open_base(struct cod_manager *hmgr, IN char *sz_coff_path,
344 dbll_flags flags); 344 dbll_flags flags);
345 345
346/* 346/*
@@ -349,7 +349,7 @@ extern int cod_open_base(struct cod_manager *hmgr, IN char *pszCoffPath,
349 * Retrieve the content of a code section given the section name. 349 * Retrieve the content of a code section given the section name.
350 * Parameters: 350 * Parameters:
351 * cod_mgr_obj - manager in which to search for the symbol 351 * cod_mgr_obj - manager in which to search for the symbol
352 * pstrSect - name of the section, with or without leading "." 352 * str_sect - name of the section, with or without leading "."
353 * str_content - buffer to store content of the section. 353 * str_content - buffer to store content of the section.
354 * Returns: 354 * Returns:
355 * 0: on success, error code on failure 355 * 0: on success, error code on failure
@@ -357,13 +357,13 @@ extern int cod_open_base(struct cod_manager *hmgr, IN char *pszCoffPath,
357 * Requires: 357 * Requires:
358 * COD module initialized. 358 * COD module initialized.
359 * valid cod_mgr_obj. 359 * valid cod_mgr_obj.
360 * pstrSect != NULL; 360 * str_sect != NULL;
361 * str_content != NULL; 361 * str_content != NULL;
362 * Ensures: 362 * Ensures:
363 * 0: *str_content stores the content of the named section. 363 * 0: *str_content stores the content of the named section.
364 */ 364 */
365extern int cod_read_section(struct cod_libraryobj *lib, 365extern int cod_read_section(struct cod_libraryobj *lib,
366 IN char *pstrSect, 366 IN char *str_sect,
367 OUT char *str_content, IN u32 content_size); 367 OUT char *str_content, IN u32 content_size);
368 368
369#endif /* COD_ */ 369#endif /* COD_ */
diff --git a/drivers/staging/tidspbridge/include/dspbridge/dbdcd.h b/drivers/staging/tidspbridge/include/dspbridge/dbdcd.h
index 8d1fc68e535..c798e72a909 100644
--- a/drivers/staging/tidspbridge/include/dspbridge/dbdcd.h
+++ b/drivers/staging/tidspbridge/include/dspbridge/dbdcd.h
@@ -30,7 +30,7 @@
30 * special COFF section called ".dcd_register" 30 * special COFF section called ".dcd_register"
31 * Parameters: 31 * Parameters:
32 * hdcd_mgr: A DCD manager handle. 32 * hdcd_mgr: A DCD manager handle.
33 * pszCoffPath: Pointer to name of COFF file containing DCD 33 * sz_coff_path: Pointer to name of COFF file containing DCD
34 * objects to be registered. 34 * objects to be registered.
35 * Returns: 35 * Returns:
36 * 0: Success. 36 * 0: Success.
@@ -45,7 +45,7 @@
45 * ".dcd_register", which is used for auto registration. 45 * ".dcd_register", which is used for auto registration.
46 */ 46 */
47extern int dcd_auto_register(IN struct dcd_manager *hdcd_mgr, 47extern int dcd_auto_register(IN struct dcd_manager *hdcd_mgr,
48 IN char *pszCoffPath); 48 IN char *sz_coff_path);
49 49
50/* 50/*
51 * ======== dcd_auto_unregister ======== 51 * ======== dcd_auto_unregister ========
@@ -54,7 +54,7 @@ extern int dcd_auto_register(IN struct dcd_manager *hdcd_mgr,
54 * special COFF section called ".dcd_register" 54 * special COFF section called ".dcd_register"
55 * Parameters: 55 * Parameters:
56 * hdcd_mgr: A DCD manager handle. 56 * hdcd_mgr: A DCD manager handle.
57 * pszCoffPath: Pointer to name of COFF file containing 57 * sz_coff_path: Pointer to name of COFF file containing
58 * DCD objects to be unregistered. 58 * DCD objects to be unregistered.
59 * Returns: 59 * Returns:
60 * 0: Success. 60 * 0: Success.
@@ -69,14 +69,14 @@ extern int dcd_auto_register(IN struct dcd_manager *hdcd_mgr,
69 * ".dcd_register", which is used for auto unregistration. 69 * ".dcd_register", which is used for auto unregistration.
70 */ 70 */
71extern int dcd_auto_unregister(IN struct dcd_manager *hdcd_mgr, 71extern int dcd_auto_unregister(IN struct dcd_manager *hdcd_mgr,
72 IN char *pszCoffPath); 72 IN char *sz_coff_path);
73 73
74/* 74/*
75 * ======== dcd_create_manager ======== 75 * ======== dcd_create_manager ========
76 * Purpose: 76 * Purpose:
77 * This function creates a DCD module manager. 77 * This function creates a DCD module manager.
78 * Parameters: 78 * Parameters:
79 * pszZlDllName: Pointer to a DLL name string. 79 * sz_zl_dll_name: Pointer to a DLL name string.
80 * dcd_mgr: A pointer to a DCD manager handle. 80 * dcd_mgr: A pointer to a DCD manager handle.
81 * Returns: 81 * Returns:
82 * 0: Success. 82 * 0: Success.
@@ -84,12 +84,12 @@ extern int dcd_auto_unregister(IN struct dcd_manager *hdcd_mgr,
84 * -EPERM: General failure. 84 * -EPERM: General failure.
85 * Requires: 85 * Requires:
86 * DCD initialized. 86 * DCD initialized.
87 * pszZlDllName is non-NULL. 87 * sz_zl_dll_name is non-NULL.
88 * dcd_mgr is non-NULL. 88 * dcd_mgr is non-NULL.
89 * Ensures: 89 * Ensures:
90 * A DCD manager handle is created. 90 * A DCD manager handle is created.
91 */ 91 */
92extern int dcd_create_manager(IN char *pszZlDllName, 92extern int dcd_create_manager(IN char *sz_zl_dll_name,
93 OUT struct dcd_manager **dcd_mgr); 93 OUT struct dcd_manager **dcd_mgr);
94 94
95/* 95/*
@@ -214,7 +214,7 @@ extern int dcd_get_num_dep_libs(IN struct dcd_manager *hdcd_mgr,
214 * hdcd_mgr: A DCD manager handle. 214 * hdcd_mgr: A DCD manager handle.
215 * uuid_obj: Pointer to a dsp_uuid that represents a unique DSP/BIOS 215 * uuid_obj: Pointer to a dsp_uuid that represents a unique DSP/BIOS
216 * Bridge object. 216 * Bridge object.
217 * pstrLibName: Buffer to hold library name. 217 * str_lib_name: Buffer to hold library name.
218 * buff_size: Contains buffer size. Set to string size on output. 218 * buff_size: Contains buffer size. Set to string size on output.
219 * phase: Which phase to load 219 * phase: Which phase to load
220 * phase_split: Are phases in multiple libraries 220 * phase_split: Are phases in multiple libraries
@@ -224,14 +224,14 @@ extern int dcd_get_num_dep_libs(IN struct dcd_manager *hdcd_mgr,
224 * Requires: 224 * Requires:
225 * DCD initialized. 225 * DCD initialized.
226 * Valid hdcd_mgr. 226 * Valid hdcd_mgr.
227 * pstrLibName != NULL. 227 * str_lib_name != NULL.
228 * uuid_obj != NULL 228 * uuid_obj != NULL
229 * buff_size != NULL. 229 * buff_size != NULL.
230 * Ensures: 230 * Ensures:
231 */ 231 */
232extern int dcd_get_library_name(IN struct dcd_manager *hdcd_mgr, 232extern int dcd_get_library_name(IN struct dcd_manager *hdcd_mgr,
233 IN struct dsp_uuid *uuid_obj, 233 IN struct dsp_uuid *uuid_obj,
234 IN OUT char *pstrLibName, 234 IN OUT char *str_lib_name,
235 IN OUT u32 *buff_size, 235 IN OUT u32 *buff_size,
236 IN enum nldr_phase phase, 236 IN enum nldr_phase phase,
237 OUT bool *phase_split); 237 OUT bool *phase_split);
@@ -276,7 +276,7 @@ extern int dcd_get_object_def(IN struct dcd_manager *hdcd_mgr,
276 * unregister nodes from the node database, and 3) add overlay nodes. 276 * unregister nodes from the node database, and 3) add overlay nodes.
277 * Parameters: 277 * Parameters:
278 * hdcd_mgr: A DCD manager handle. 278 * hdcd_mgr: A DCD manager handle.
279 * pszCoffPath: Pointer to name of COFF file containing DCD 279 * sz_coff_path: Pointer to name of COFF file containing DCD
280 * objects. 280 * objects.
281 * registerFxn: Callback fxn to be applied on each located 281 * registerFxn: Callback fxn to be applied on each located
282 * DCD object. 282 * DCD object.
@@ -295,7 +295,7 @@ extern int dcd_get_object_def(IN struct dcd_manager *hdcd_mgr,
295 * ".dcd_register", which is used for auto registration. 295 * ".dcd_register", which is used for auto registration.
296 */ 296 */
297extern int dcd_get_objects(IN struct dcd_manager *hdcd_mgr, 297extern int dcd_get_objects(IN struct dcd_manager *hdcd_mgr,
298 IN char *pszCoffPath, 298 IN char *sz_coff_path,
299 dcd_registerfxn registerFxn, void *handle); 299 dcd_registerfxn registerFxn, void *handle);
300 300
301/* 301/*
diff --git a/drivers/staging/tidspbridge/include/dspbridge/dblldefs.h b/drivers/staging/tidspbridge/include/dspbridge/dblldefs.h
index b827320e450..8446e0e661b 100644
--- a/drivers/staging/tidspbridge/include/dspbridge/dblldefs.h
+++ b/drivers/staging/tidspbridge/include/dspbridge/dblldefs.h
@@ -368,7 +368,7 @@ typedef int(*dbll_load_fxn) (struct dbll_library_obj *lib,
368 * Ensures: 368 * Ensures:
369 */ 369 */
370typedef int(*dbll_load_sect_fxn) (struct dbll_library_obj *lib, 370typedef int(*dbll_load_sect_fxn) (struct dbll_library_obj *lib,
371 char *pszSectName, 371 char *sz_sect_name,
372 struct dbll_attrs *attrs); 372 struct dbll_attrs *attrs);
373 373
374/* 374/*
@@ -471,7 +471,7 @@ typedef void (*dbll_unload_fxn) (struct dbll_library_obj *library,
471 * Ensures: 471 * Ensures:
472 */ 472 */
473typedef int(*dbll_unload_sect_fxn) (struct dbll_library_obj *lib, 473typedef int(*dbll_unload_sect_fxn) (struct dbll_library_obj *lib,
474 char *pszSectName, 474 char *sz_sect_name,
475 struct dbll_attrs *attrs); 475 struct dbll_attrs *attrs);
476 476
477struct dbll_fxns { 477struct dbll_fxns {
diff --git a/drivers/staging/tidspbridge/include/dspbridge/dev.h b/drivers/staging/tidspbridge/include/dspbridge/dev.h
index d658df521d1..0cdbcb22993 100644
--- a/drivers/staging/tidspbridge/include/dspbridge/dev.h
+++ b/drivers/staging/tidspbridge/include/dspbridge/dev.h
@@ -475,7 +475,7 @@ extern int dev_get_node_manager(struct dev_object
475 * Parameters: 475 * Parameters:
476 * hdev_obj: Handle to device object created with 476 * hdev_obj: Handle to device object created with
477 * dev_create_device(). 477 * dev_create_device().
478 * pstrSym: Name of symbol to look up. 478 * str_sym: Name of symbol to look up.
479 * pul_value: Ptr to symbol value. 479 * pul_value: Ptr to symbol value.
480 * Returns: 480 * Returns:
481 * 0: Success. 481 * 0: Success.
@@ -483,14 +483,14 @@ extern int dev_get_node_manager(struct dev_object
483 * -ESPIPE: Symbols couldn not be found or have not been loaded onto 483 * -ESPIPE: Symbols couldn not be found or have not been loaded onto
484 * the board. 484 * the board.
485 * Requires: 485 * Requires:
486 * pstrSym != NULL. 486 * str_sym != NULL.
487 * pul_value != NULL. 487 * pul_value != NULL.
488 * DEV Initialized. 488 * DEV Initialized.
489 * Ensures: 489 * Ensures:
490 * 0: *pul_value contains the symbol value; 490 * 0: *pul_value contains the symbol value;
491 */ 491 */
492extern int dev_get_symbol(struct dev_object *hdev_obj, 492extern int dev_get_symbol(struct dev_object *hdev_obj,
493 IN CONST char *pstrSym, OUT u32 * pul_value); 493 IN CONST char *str_sym, OUT u32 * pul_value);
494 494
495/* 495/*
496 * ======== dev_get_bridge_context ======== 496 * ======== dev_get_bridge_context ========
diff --git a/drivers/staging/tidspbridge/include/dspbridge/nldr.h b/drivers/staging/tidspbridge/include/dspbridge/nldr.h
index b2bfb5eb11e..986ebc80d89 100644
--- a/drivers/staging/tidspbridge/include/dspbridge/nldr.h
+++ b/drivers/staging/tidspbridge/include/dspbridge/nldr.h
@@ -39,7 +39,7 @@ extern void nldr_delete(struct nldr_object *nldr_obj);
39extern void nldr_exit(void); 39extern void nldr_exit(void);
40 40
41extern int nldr_get_fxn_addr(struct nldr_nodeobject *nldr_node_obj, 41extern int nldr_get_fxn_addr(struct nldr_nodeobject *nldr_node_obj,
42 char *pstrFxn, u32 * pulAddr); 42 char *str_fxn, u32 * addr);
43 43
44extern int nldr_get_rmm_manager(struct nldr_object *nldr, 44extern int nldr_get_rmm_manager(struct nldr_object *nldr,
45 OUT struct rmm_target_obj **rmm_mgr); 45 OUT struct rmm_target_obj **rmm_mgr);
diff --git a/drivers/staging/tidspbridge/include/dspbridge/nldrdefs.h b/drivers/staging/tidspbridge/include/dspbridge/nldrdefs.h
index e15ef678981..ed20dc0e363 100644
--- a/drivers/staging/tidspbridge/include/dspbridge/nldrdefs.h
+++ b/drivers/staging/tidspbridge/include/dspbridge/nldrdefs.h
@@ -210,21 +210,21 @@ typedef void (*nldr_freefxn) (struct nldr_nodeobject *nldr_node_obj);
210 * 210 *
211 * Parameters: 211 * Parameters:
212 * nldr_node_obj: Handle returned from nldr_allocate(). 212 * nldr_node_obj: Handle returned from nldr_allocate().
213 * pstrFxn: Name of function. 213 * str_fxn: Name of function.
214 * pulAddr: Location to store function address. 214 * addr: Location to store function address.
215 * Returns: 215 * Returns:
216 * 0: Success. 216 * 0: Success.
217 * -ESPIPE: Address of function not found. 217 * -ESPIPE: Address of function not found.
218 * Requires: 218 * Requires:
219 * nldr_init(void) called. 219 * nldr_init(void) called.
220 * Valid nldr_node_obj. 220 * Valid nldr_node_obj.
221 * pulAddr != NULL; 221 * addr != NULL;
222 * pstrFxn != NULL; 222 * str_fxn != NULL;
223 * Ensures: 223 * Ensures:
224 */ 224 */
225typedef int(*nldr_getfxnaddrfxn) (struct nldr_nodeobject 225typedef int(*nldr_getfxnaddrfxn) (struct nldr_nodeobject
226 * nldr_node_obj, 226 * nldr_node_obj,
227 char *pstrFxn, u32 * pulAddr); 227 char *str_fxn, u32 * addr);
228 228
229/* 229/*
230 * ======== nldr_init ======== 230 * ======== nldr_init ========
diff --git a/drivers/staging/tidspbridge/include/dspbridge/strm.h b/drivers/staging/tidspbridge/include/dspbridge/strm.h
index 6572442f6da..e0285187867 100644
--- a/drivers/staging/tidspbridge/include/dspbridge/strm.h
+++ b/drivers/staging/tidspbridge/include/dspbridge/strm.h
@@ -303,9 +303,9 @@ extern int strm_prepare_buffer(struct strm_object *stream_obj,
303 * Parameters: 303 * Parameters:
304 * stream_obj: Stream handle returned from strm_open(). 304 * stream_obj: Stream handle returned from strm_open().
305 * buf_ptr: Location to store pointer to reclaimed buffer. 305 * buf_ptr: Location to store pointer to reclaimed buffer.
306 * pulBytes: Location where number of bytes of data in the 306 * nbytes: Location where number of bytes of data in the
307 * buffer will be written. 307 * buffer will be written.
308 * pulBufSize: Location where actual buffer size will be written. 308 * buff_size: Location where actual buffer size will be written.
309 * pdw_arg: Location where user argument that travels with 309 * pdw_arg: Location where user argument that travels with
310 * the buffer will be written. 310 * the buffer will be written.
311 * Returns: 311 * Returns:
@@ -317,13 +317,13 @@ extern int strm_prepare_buffer(struct strm_object *stream_obj,
317 * Requires: 317 * Requires:
318 * strm_init(void) called. 318 * strm_init(void) called.
319 * buf_ptr != NULL. 319 * buf_ptr != NULL.
320 * pulBytes != NULL. 320 * nbytes != NULL.
321 * pdw_arg != NULL. 321 * pdw_arg != NULL.
322 * Ensures: 322 * Ensures:
323 */ 323 */
324extern int strm_reclaim(struct strm_object *stream_obj, 324extern int strm_reclaim(struct strm_object *stream_obj,
325 OUT u8 **buf_ptr, u32 * pulBytes, 325 OUT u8 **buf_ptr, u32 * nbytes,
326 u32 *pulBufSize, u32 *pdw_arg); 326 u32 *buff_size, u32 *pdw_arg);
327 327
328/* 328/*
329 * ======== strm_register_notify ======== 329 * ======== strm_register_notify ========
diff --git a/drivers/staging/tidspbridge/include/dspbridge/uuidutil.h b/drivers/staging/tidspbridge/include/dspbridge/uuidutil.h
index d7d096241e1..dde76c913b6 100644
--- a/drivers/staging/tidspbridge/include/dspbridge/uuidutil.h
+++ b/drivers/staging/tidspbridge/include/dspbridge/uuidutil.h
@@ -27,18 +27,18 @@
27 * Converts a dsp_uuid to an ANSI string. 27 * Converts a dsp_uuid to an ANSI string.
28 * Parameters: 28 * Parameters:
29 * uuid_obj: Pointer to a dsp_uuid object. 29 * uuid_obj: Pointer to a dsp_uuid object.
30 * pszUuid: Pointer to a buffer to receive a NULL-terminated UUID 30 * sz_uuid: Pointer to a buffer to receive a NULL-terminated UUID
31 * string. 31 * string.
32 * size: Maximum size of the pszUuid string. 32 * size: Maximum size of the sz_uuid string.
33 * Returns: 33 * Returns:
34 * Requires: 34 * Requires:
35 * uuid_obj & pszUuid are non-NULL values. 35 * uuid_obj & sz_uuid are non-NULL values.
36 * Ensures: 36 * Ensures:
37 * Lenghth of pszUuid is less than MAXUUIDLEN. 37 * Lenghth of sz_uuid is less than MAXUUIDLEN.
38 * Details: 38 * Details:
39 * UUID string limit currently set at MAXUUIDLEN. 39 * UUID string limit currently set at MAXUUIDLEN.
40 */ 40 */
41void uuid_uuid_to_string(IN struct dsp_uuid *uuid_obj, OUT char *pszUuid, 41void uuid_uuid_to_string(IN struct dsp_uuid *uuid_obj, OUT char *sz_uuid,
42 s32 size); 42 s32 size);
43 43
44/* 44/*
@@ -46,17 +46,17 @@ void uuid_uuid_to_string(IN struct dsp_uuid *uuid_obj, OUT char *pszUuid,
46 * Purpose: 46 * Purpose:
47 * Converts an ANSI string to a dsp_uuid. 47 * Converts an ANSI string to a dsp_uuid.
48 * Parameters: 48 * Parameters:
49 * pszUuid: Pointer to a string that represents a dsp_uuid object. 49 * sz_uuid: Pointer to a string that represents a dsp_uuid object.
50 * uuid_obj: Pointer to a dsp_uuid object. 50 * uuid_obj: Pointer to a dsp_uuid object.
51 * Returns: 51 * Returns:
52 * Requires: 52 * Requires:
53 * uuid_obj & pszUuid are non-NULL values. 53 * uuid_obj & sz_uuid are non-NULL values.
54 * Ensures: 54 * Ensures:
55 * Details: 55 * Details:
56 * We assume the string representation of a UUID has the following format: 56 * We assume the string representation of a UUID has the following format:
57 * "12345678_1234_1234_1234_123456789abc". 57 * "12345678_1234_1234_1234_123456789abc".
58 */ 58 */
59extern void uuid_uuid_from_string(IN char *pszUuid, 59extern void uuid_uuid_from_string(IN char *sz_uuid,
60 OUT struct dsp_uuid *uuid_obj); 60 OUT struct dsp_uuid *uuid_obj);
61 61
62#endif /* UUIDUTIL_ */ 62#endif /* UUIDUTIL_ */
diff --git a/drivers/staging/tidspbridge/pmgr/cod.c b/drivers/staging/tidspbridge/pmgr/cod.c
index e4fc065b34d..ae44beda759 100644
--- a/drivers/staging/tidspbridge/pmgr/cod.c
+++ b/drivers/staging/tidspbridge/pmgr/cod.c
@@ -109,7 +109,7 @@ static s32 cod_f_close(struct file *filp)
109 return 0; 109 return 0;
110} 110}
111 111
112static struct file *cod_f_open(CONST char *psz_file_name, CONST char *pszMode) 112static struct file *cod_f_open(CONST char *psz_file_name, CONST char *sz_mode)
113{ 113{
114 mm_segment_t fs; 114 mm_segment_t fs;
115 struct file *filp; 115 struct file *filp;
@@ -337,17 +337,17 @@ int cod_get_base_lib(struct cod_manager *cod_mgr_obj,
337/* 337/*
338 * ======== cod_get_base_name ======== 338 * ======== cod_get_base_name ========
339 */ 339 */
340int cod_get_base_name(struct cod_manager *cod_mgr_obj, char *pszName, 340int cod_get_base_name(struct cod_manager *cod_mgr_obj, char *sz_name,
341 u32 usize) 341 u32 usize)
342{ 342{
343 int status = 0; 343 int status = 0;
344 344
345 DBC_REQUIRE(refs > 0); 345 DBC_REQUIRE(refs > 0);
346 DBC_REQUIRE(IS_VALID(cod_mgr_obj)); 346 DBC_REQUIRE(IS_VALID(cod_mgr_obj));
347 DBC_REQUIRE(pszName != NULL); 347 DBC_REQUIRE(sz_name != NULL);
348 348
349 if (usize <= COD_MAXPATHLENGTH) 349 if (usize <= COD_MAXPATHLENGTH)
350 strncpy(pszName, cod_mgr_obj->sz_zl_file, usize); 350 strncpy(sz_name, cod_mgr_obj->sz_zl_file, usize);
351 else 351 else
352 status = -EPERM; 352 status = -EPERM;
353 353
@@ -396,8 +396,8 @@ int cod_get_loader(struct cod_manager *cod_mgr_obj,
396 * Retrieve the starting address and length of a section in the COFF file 396 * Retrieve the starting address and length of a section in the COFF file
397 * given the section name. 397 * given the section name.
398 */ 398 */
399int cod_get_section(struct cod_libraryobj *lib, IN char *pstrSect, 399int cod_get_section(struct cod_libraryobj *lib, IN char *str_sect,
400 OUT u32 *puAddr, OUT u32 *puLen) 400 OUT u32 *addr, OUT u32 *puLen)
401{ 401{
402 struct cod_manager *cod_mgr_obj; 402 struct cod_manager *cod_mgr_obj;
403 int status = 0; 403 int status = 0;
@@ -405,21 +405,21 @@ int cod_get_section(struct cod_libraryobj *lib, IN char *pstrSect,
405 DBC_REQUIRE(refs > 0); 405 DBC_REQUIRE(refs > 0);
406 DBC_REQUIRE(lib != NULL); 406 DBC_REQUIRE(lib != NULL);
407 DBC_REQUIRE(IS_VALID(lib->cod_mgr)); 407 DBC_REQUIRE(IS_VALID(lib->cod_mgr));
408 DBC_REQUIRE(pstrSect != NULL); 408 DBC_REQUIRE(str_sect != NULL);
409 DBC_REQUIRE(puAddr != NULL); 409 DBC_REQUIRE(addr != NULL);
410 DBC_REQUIRE(puLen != NULL); 410 DBC_REQUIRE(puLen != NULL);
411 411
412 *puAddr = 0; 412 *addr = 0;
413 *puLen = 0; 413 *puLen = 0;
414 if (lib != NULL) { 414 if (lib != NULL) {
415 cod_mgr_obj = lib->cod_mgr; 415 cod_mgr_obj = lib->cod_mgr;
416 status = cod_mgr_obj->fxns.get_sect_fxn(lib->dbll_lib, pstrSect, 416 status = cod_mgr_obj->fxns.get_sect_fxn(lib->dbll_lib, str_sect,
417 puAddr, puLen); 417 addr, puLen);
418 } else { 418 } else {
419 status = -ESPIPE; 419 status = -ESPIPE;
420 } 420 }
421 421
422 DBC_ENSURE(DSP_SUCCEEDED(status) || ((*puAddr == 0) && (*puLen == 0))); 422 DBC_ENSURE(DSP_SUCCEEDED(status) || ((*addr == 0) && (*puLen == 0)));
423 423
424 return status; 424 return status;
425} 425}
@@ -432,23 +432,23 @@ int cod_get_section(struct cod_libraryobj *lib, IN char *pstrSect,
432 * C symbol. 432 * C symbol.
433 * 433 *
434 */ 434 */
435int cod_get_sym_value(struct cod_manager *hmgr, char *pstrSym, 435int cod_get_sym_value(struct cod_manager *hmgr, char *str_sym,
436 u32 *pul_value) 436 u32 *pul_value)
437{ 437{
438 struct dbll_sym_val *dbll_sym; 438 struct dbll_sym_val *dbll_sym;
439 439
440 DBC_REQUIRE(refs > 0); 440 DBC_REQUIRE(refs > 0);
441 DBC_REQUIRE(IS_VALID(hmgr)); 441 DBC_REQUIRE(IS_VALID(hmgr));
442 DBC_REQUIRE(pstrSym != NULL); 442 DBC_REQUIRE(str_sym != NULL);
443 DBC_REQUIRE(pul_value != NULL); 443 DBC_REQUIRE(pul_value != NULL);
444 444
445 dev_dbg(bridge, "%s: hmgr: %p pstrSym: %s pul_value: %p\n", 445 dev_dbg(bridge, "%s: hmgr: %p str_sym: %s pul_value: %p\n",
446 __func__, hmgr, pstrSym, pul_value); 446 __func__, hmgr, str_sym, pul_value);
447 if (hmgr->base_lib) { 447 if (hmgr->base_lib) {
448 if (!hmgr->fxns. 448 if (!hmgr->fxns.
449 get_addr_fxn(hmgr->base_lib, pstrSym, &dbll_sym)) { 449 get_addr_fxn(hmgr->base_lib, str_sym, &dbll_sym)) {
450 if (!hmgr->fxns. 450 if (!hmgr->fxns.
451 get_c_addr_fxn(hmgr->base_lib, pstrSym, &dbll_sym)) 451 get_c_addr_fxn(hmgr->base_lib, str_sym, &dbll_sym))
452 return -ESPIPE; 452 return -ESPIPE;
453 } 453 }
454 } else { 454 } else {
@@ -550,7 +550,7 @@ int cod_load_base(struct cod_manager *hmgr, u32 num_argc, char *args[],
550 * ======== cod_open ======== 550 * ======== cod_open ========
551 * Open library for reading sections. 551 * Open library for reading sections.
552 */ 552 */
553int cod_open(struct cod_manager *hmgr, IN char *pszCoffPath, 553int cod_open(struct cod_manager *hmgr, IN char *sz_coff_path,
554 u32 flags, struct cod_libraryobj **lib_obj) 554 u32 flags, struct cod_libraryobj **lib_obj)
555{ 555{
556 int status = 0; 556 int status = 0;
@@ -558,7 +558,7 @@ int cod_open(struct cod_manager *hmgr, IN char *pszCoffPath,
558 558
559 DBC_REQUIRE(refs > 0); 559 DBC_REQUIRE(refs > 0);
560 DBC_REQUIRE(IS_VALID(hmgr)); 560 DBC_REQUIRE(IS_VALID(hmgr));
561 DBC_REQUIRE(pszCoffPath != NULL); 561 DBC_REQUIRE(sz_coff_path != NULL);
562 DBC_REQUIRE(flags == COD_NOLOAD || flags == COD_SYMB); 562 DBC_REQUIRE(flags == COD_NOLOAD || flags == COD_SYMB);
563 DBC_REQUIRE(lib_obj != NULL); 563 DBC_REQUIRE(lib_obj != NULL);
564 564
@@ -570,15 +570,15 @@ int cod_open(struct cod_manager *hmgr, IN char *pszCoffPath,
570 570
571 if (DSP_SUCCEEDED(status)) { 571 if (DSP_SUCCEEDED(status)) {
572 lib->cod_mgr = hmgr; 572 lib->cod_mgr = hmgr;
573 status = hmgr->fxns.open_fxn(hmgr->target, pszCoffPath, flags, 573 status = hmgr->fxns.open_fxn(hmgr->target, sz_coff_path, flags,
574 &lib->dbll_lib); 574 &lib->dbll_lib);
575 if (DSP_SUCCEEDED(status)) 575 if (DSP_SUCCEEDED(status))
576 *lib_obj = lib; 576 *lib_obj = lib;
577 } 577 }
578 578
579 if (DSP_FAILED(status)) 579 if (DSP_FAILED(status))
580 pr_err("%s: error status 0x%x, pszCoffPath: %s flags: 0x%x\n", 580 pr_err("%s: error status 0x%x, sz_coff_path: %s flags: 0x%x\n",
581 __func__, status, pszCoffPath, flags); 581 __func__, status, sz_coff_path, flags);
582 return status; 582 return status;
583} 583}
584 584
@@ -587,7 +587,7 @@ int cod_open(struct cod_manager *hmgr, IN char *pszCoffPath,
587 * Purpose: 587 * Purpose:
588 * Open base image for reading sections. 588 * Open base image for reading sections.
589 */ 589 */
590int cod_open_base(struct cod_manager *hmgr, IN char *pszCoffPath, 590int cod_open_base(struct cod_manager *hmgr, IN char *sz_coff_path,
591 dbll_flags flags) 591 dbll_flags flags)
592{ 592{
593 int status = 0; 593 int status = 0;
@@ -595,7 +595,7 @@ int cod_open_base(struct cod_manager *hmgr, IN char *pszCoffPath,
595 595
596 DBC_REQUIRE(refs > 0); 596 DBC_REQUIRE(refs > 0);
597 DBC_REQUIRE(IS_VALID(hmgr)); 597 DBC_REQUIRE(IS_VALID(hmgr));
598 DBC_REQUIRE(pszCoffPath != NULL); 598 DBC_REQUIRE(sz_coff_path != NULL);
599 599
600 /* if we previously opened a base image, close it now */ 600 /* if we previously opened a base image, close it now */
601 if (hmgr->base_lib) { 601 if (hmgr->base_lib) {
@@ -606,17 +606,17 @@ int cod_open_base(struct cod_manager *hmgr, IN char *pszCoffPath,
606 hmgr->fxns.close_fxn(hmgr->base_lib); 606 hmgr->fxns.close_fxn(hmgr->base_lib);
607 hmgr->base_lib = NULL; 607 hmgr->base_lib = NULL;
608 } 608 }
609 status = hmgr->fxns.open_fxn(hmgr->target, pszCoffPath, flags, &lib); 609 status = hmgr->fxns.open_fxn(hmgr->target, sz_coff_path, flags, &lib);
610 if (DSP_SUCCEEDED(status)) { 610 if (DSP_SUCCEEDED(status)) {
611 /* hang onto the library for subsequent sym table usage */ 611 /* hang onto the library for subsequent sym table usage */
612 hmgr->base_lib = lib; 612 hmgr->base_lib = lib;
613 strncpy(hmgr->sz_zl_file, pszCoffPath, COD_MAXPATHLENGTH - 1); 613 strncpy(hmgr->sz_zl_file, sz_coff_path, COD_MAXPATHLENGTH - 1);
614 hmgr->sz_zl_file[COD_MAXPATHLENGTH - 1] = '\0'; 614 hmgr->sz_zl_file[COD_MAXPATHLENGTH - 1] = '\0';
615 } 615 }
616 616
617 if (DSP_FAILED(status)) 617 if (DSP_FAILED(status))
618 pr_err("%s: error status 0x%x pszCoffPath: %s\n", __func__, 618 pr_err("%s: error status 0x%x sz_coff_path: %s\n", __func__,
619 status, pszCoffPath); 619 status, sz_coff_path);
620 return status; 620 return status;
621} 621}
622 622
@@ -625,7 +625,7 @@ int cod_open_base(struct cod_manager *hmgr, IN char *pszCoffPath,
625 * Purpose: 625 * Purpose:
626 * Retrieve the content of a code section given the section name. 626 * Retrieve the content of a code section given the section name.
627 */ 627 */
628int cod_read_section(struct cod_libraryobj *lib, IN char *pstrSect, 628int cod_read_section(struct cod_libraryobj *lib, IN char *str_sect,
629 OUT char *str_content, IN u32 content_size) 629 OUT char *str_content, IN u32 content_size)
630{ 630{
631 int status = 0; 631 int status = 0;
@@ -633,12 +633,12 @@ int cod_read_section(struct cod_libraryobj *lib, IN char *pstrSect,
633 DBC_REQUIRE(refs > 0); 633 DBC_REQUIRE(refs > 0);
634 DBC_REQUIRE(lib != NULL); 634 DBC_REQUIRE(lib != NULL);
635 DBC_REQUIRE(IS_VALID(lib->cod_mgr)); 635 DBC_REQUIRE(IS_VALID(lib->cod_mgr));
636 DBC_REQUIRE(pstrSect != NULL); 636 DBC_REQUIRE(str_sect != NULL);
637 DBC_REQUIRE(str_content != NULL); 637 DBC_REQUIRE(str_content != NULL);
638 638
639 if (lib != NULL) 639 if (lib != NULL)
640 status = 640 status =
641 lib->cod_mgr->fxns.read_sect_fxn(lib->dbll_lib, pstrSect, 641 lib->cod_mgr->fxns.read_sect_fxn(lib->dbll_lib, str_sect,
642 str_content, content_size); 642 str_content, content_size);
643 else 643 else
644 status = -ESPIPE; 644 status = -ESPIPE;
diff --git a/drivers/staging/tidspbridge/pmgr/dev.c b/drivers/staging/tidspbridge/pmgr/dev.c
index 5098f7f2d78..55e2a5e981c 100644
--- a/drivers/staging/tidspbridge/pmgr/dev.c
+++ b/drivers/staging/tidspbridge/pmgr/dev.c
@@ -691,18 +691,18 @@ int dev_get_node_manager(struct dev_object *hdev_obj,
691 * ======== dev_get_symbol ======== 691 * ======== dev_get_symbol ========
692 */ 692 */
693int dev_get_symbol(struct dev_object *hdev_obj, 693int dev_get_symbol(struct dev_object *hdev_obj,
694 IN CONST char *pstrSym, OUT u32 * pul_value) 694 IN CONST char *str_sym, OUT u32 * pul_value)
695{ 695{
696 int status = 0; 696 int status = 0;
697 struct cod_manager *cod_mgr; 697 struct cod_manager *cod_mgr;
698 698
699 DBC_REQUIRE(refs > 0); 699 DBC_REQUIRE(refs > 0);
700 DBC_REQUIRE(pstrSym != NULL && pul_value != NULL); 700 DBC_REQUIRE(str_sym != NULL && pul_value != NULL);
701 701
702 if (hdev_obj) { 702 if (hdev_obj) {
703 status = dev_get_cod_mgr(hdev_obj, &cod_mgr); 703 status = dev_get_cod_mgr(hdev_obj, &cod_mgr);
704 if (cod_mgr) 704 if (cod_mgr)
705 status = cod_get_sym_value(cod_mgr, (char *)pstrSym, 705 status = cod_get_sym_value(cod_mgr, (char *)str_sym,
706 pul_value); 706 pul_value);
707 else 707 else
708 status = -EFAULT; 708 status = -EFAULT;
diff --git a/drivers/staging/tidspbridge/rmgr/dbdcd.c b/drivers/staging/tidspbridge/rmgr/dbdcd.c
index 2f32ece4a4c..a5cef434f4b 100644
--- a/drivers/staging/tidspbridge/rmgr/dbdcd.c
+++ b/drivers/staging/tidspbridge/rmgr/dbdcd.c
@@ -81,16 +81,16 @@ static int get_dep_lib_info(IN struct dcd_manager *hdcd_mgr,
81 * Parses the supplied image and resigsters with DCD. 81 * Parses the supplied image and resigsters with DCD.
82 */ 82 */
83int dcd_auto_register(IN struct dcd_manager *hdcd_mgr, 83int dcd_auto_register(IN struct dcd_manager *hdcd_mgr,
84 IN char *pszCoffPath) 84 IN char *sz_coff_path)
85{ 85{
86 int status = 0; 86 int status = 0;
87 87
88 DBC_REQUIRE(refs > 0); 88 DBC_REQUIRE(refs > 0);
89 89
90 if (hdcd_mgr) 90 if (hdcd_mgr)
91 status = dcd_get_objects(hdcd_mgr, pszCoffPath, 91 status = dcd_get_objects(hdcd_mgr, sz_coff_path,
92 (dcd_registerfxn) dcd_register_object, 92 (dcd_registerfxn) dcd_register_object,
93 (void *)pszCoffPath); 93 (void *)sz_coff_path);
94 else 94 else
95 status = -EFAULT; 95 status = -EFAULT;
96 96
@@ -103,14 +103,14 @@ int dcd_auto_register(IN struct dcd_manager *hdcd_mgr,
103 * Parses the supplied DSP image and unresiters from DCD. 103 * Parses the supplied DSP image and unresiters from DCD.
104 */ 104 */
105int dcd_auto_unregister(IN struct dcd_manager *hdcd_mgr, 105int dcd_auto_unregister(IN struct dcd_manager *hdcd_mgr,
106 IN char *pszCoffPath) 106 IN char *sz_coff_path)
107{ 107{
108 int status = 0; 108 int status = 0;
109 109
110 DBC_REQUIRE(refs > 0); 110 DBC_REQUIRE(refs > 0);
111 111
112 if (hdcd_mgr) 112 if (hdcd_mgr)
113 status = dcd_get_objects(hdcd_mgr, pszCoffPath, 113 status = dcd_get_objects(hdcd_mgr, sz_coff_path,
114 (dcd_registerfxn) dcd_register_object, 114 (dcd_registerfxn) dcd_register_object,
115 NULL); 115 NULL);
116 else 116 else
@@ -124,7 +124,7 @@ int dcd_auto_unregister(IN struct dcd_manager *hdcd_mgr,
124 * Purpose: 124 * Purpose:
125 * Creates DCD manager. 125 * Creates DCD manager.
126 */ 126 */
127int dcd_create_manager(IN char *pszZlDllName, 127int dcd_create_manager(IN char *sz_zl_dll_name,
128 OUT struct dcd_manager **dcd_mgr) 128 OUT struct dcd_manager **dcd_mgr)
129{ 129{
130 struct cod_manager *cod_mgr; /* COD manager handle */ 130 struct cod_manager *cod_mgr; /* COD manager handle */
@@ -134,7 +134,7 @@ int dcd_create_manager(IN char *pszZlDllName,
134 DBC_REQUIRE(refs >= 0); 134 DBC_REQUIRE(refs >= 0);
135 DBC_REQUIRE(dcd_mgr); 135 DBC_REQUIRE(dcd_mgr);
136 136
137 status = cod_create(&cod_mgr, pszZlDllName, NULL); 137 status = cod_create(&cod_mgr, sz_zl_dll_name, NULL);
138 if (DSP_FAILED(status)) 138 if (DSP_FAILED(status))
139 goto func_end; 139 goto func_end;
140 140
@@ -534,7 +534,7 @@ func_end:
534 * ======== dcd_get_objects ======== 534 * ======== dcd_get_objects ========
535 */ 535 */
536int dcd_get_objects(IN struct dcd_manager *hdcd_mgr, 536int dcd_get_objects(IN struct dcd_manager *hdcd_mgr,
537 IN char *pszCoffPath, dcd_registerfxn registerFxn, 537 IN char *sz_coff_path, dcd_registerfxn registerFxn,
538 void *handle) 538 void *handle)
539{ 539{
540 struct dcd_manager *dcd_mgr_obj = hdcd_mgr; 540 struct dcd_manager *dcd_mgr_obj = hdcd_mgr;
@@ -556,7 +556,7 @@ int dcd_get_objects(IN struct dcd_manager *hdcd_mgr,
556 } 556 }
557 557
558 /* Open DSP coff file, don't load symbols. */ 558 /* Open DSP coff file, don't load symbols. */
559 status = cod_open(dcd_mgr_obj->cod_mgr, pszCoffPath, COD_NOLOAD, &lib); 559 status = cod_open(dcd_mgr_obj->cod_mgr, sz_coff_path, COD_NOLOAD, &lib);
560 if (DSP_FAILED(status)) { 560 if (DSP_FAILED(status)) {
561 status = -EACCES; 561 status = -EACCES;
562 goto func_cont; 562 goto func_cont;
@@ -572,7 +572,7 @@ int dcd_get_objects(IN struct dcd_manager *hdcd_mgr,
572 /* Allocate zeroed buffer. */ 572 /* Allocate zeroed buffer. */
573 psz_coff_buf = kzalloc(ul_len + 4, GFP_KERNEL); 573 psz_coff_buf = kzalloc(ul_len + 4, GFP_KERNEL);
574#ifdef _DB_TIOMAP 574#ifdef _DB_TIOMAP
575 if (strstr(pszCoffPath, "iva") == NULL) { 575 if (strstr(sz_coff_path, "iva") == NULL) {
576 /* Locate section by objectID and read its content. */ 576 /* Locate section by objectID and read its content. */
577 status = cod_read_section(lib, DCD_REGISTER_SECTION, 577 status = cod_read_section(lib, DCD_REGISTER_SECTION,
578 psz_coff_buf, ul_len); 578 psz_coff_buf, ul_len);
@@ -587,7 +587,7 @@ int dcd_get_objects(IN struct dcd_manager *hdcd_mgr,
587#endif 587#endif
588 if (DSP_SUCCEEDED(status)) { 588 if (DSP_SUCCEEDED(status)) {
589 /* Compress DSP buffer to conform to PC format. */ 589 /* Compress DSP buffer to conform to PC format. */
590 if (strstr(pszCoffPath, "iva") == NULL) { 590 if (strstr(sz_coff_path, "iva") == NULL) {
591 compress_buf(psz_coff_buf, ul_len, DSPWORDSIZE); 591 compress_buf(psz_coff_buf, ul_len, DSPWORDSIZE);
592 } else { 592 } else {
593 compress_buf(psz_coff_buf, ul_len, 1); 593 compress_buf(psz_coff_buf, ul_len, 1);
@@ -644,7 +644,7 @@ func_end:
644 */ 644 */
645int dcd_get_library_name(IN struct dcd_manager *hdcd_mgr, 645int dcd_get_library_name(IN struct dcd_manager *hdcd_mgr,
646 IN struct dsp_uuid *uuid_obj, 646 IN struct dsp_uuid *uuid_obj,
647 IN OUT char *pstrLibName, 647 IN OUT char *str_lib_name,
648 IN OUT u32 *buff_size, 648 IN OUT u32 *buff_size,
649 enum nldr_phase phase, OUT bool *phase_split) 649 enum nldr_phase phase, OUT bool *phase_split)
650{ 650{
@@ -656,12 +656,12 @@ int dcd_get_library_name(IN struct dcd_manager *hdcd_mgr,
656 struct dcd_key_elem *dcd_key = NULL; 656 struct dcd_key_elem *dcd_key = NULL;
657 657
658 DBC_REQUIRE(uuid_obj != NULL); 658 DBC_REQUIRE(uuid_obj != NULL);
659 DBC_REQUIRE(pstrLibName != NULL); 659 DBC_REQUIRE(str_lib_name != NULL);
660 DBC_REQUIRE(buff_size != NULL); 660 DBC_REQUIRE(buff_size != NULL);
661 DBC_REQUIRE(hdcd_mgr); 661 DBC_REQUIRE(hdcd_mgr);
662 662
663 dev_dbg(bridge, "%s: hdcd_mgr %p, uuid_obj %p, pstrLibName %p," 663 dev_dbg(bridge, "%s: hdcd_mgr %p, uuid_obj %p, str_lib_name %p,"
664 " buff_size %p\n", __func__, hdcd_mgr, uuid_obj, pstrLibName, 664 " buff_size %p\n", __func__, hdcd_mgr, uuid_obj, str_lib_name,
665 buff_size); 665 buff_size);
666 666
667 /* 667 /*
@@ -768,7 +768,7 @@ int dcd_get_library_name(IN struct dcd_manager *hdcd_mgr,
768 } 768 }
769 769
770 if (DSP_SUCCEEDED(status)) 770 if (DSP_SUCCEEDED(status))
771 memcpy(pstrLibName, dcd_key->path, strlen(dcd_key->path) + 1); 771 memcpy(str_lib_name, dcd_key->path, strlen(dcd_key->path) + 1);
772 return status; 772 return status;
773} 773}
774 774
diff --git a/drivers/staging/tidspbridge/rmgr/nldr.c b/drivers/staging/tidspbridge/rmgr/nldr.c
index 0c8a16567f0..3eb1ae3c9bf 100644
--- a/drivers/staging/tidspbridge/rmgr/nldr.c
+++ b/drivers/staging/tidspbridge/rmgr/nldr.c
@@ -682,7 +682,7 @@ void nldr_exit(void)
682 * ======== nldr_get_fxn_addr ======== 682 * ======== nldr_get_fxn_addr ========
683 */ 683 */
684int nldr_get_fxn_addr(struct nldr_nodeobject *nldr_node_obj, 684int nldr_get_fxn_addr(struct nldr_nodeobject *nldr_node_obj,
685 char *pstrFxn, u32 * pulAddr) 685 char *str_fxn, u32 * addr)
686{ 686{
687 struct dbll_sym_val *dbll_sym; 687 struct dbll_sym_val *dbll_sym;
688 struct nldr_object *nldr_obj; 688 struct nldr_object *nldr_obj;
@@ -692,8 +692,8 @@ int nldr_get_fxn_addr(struct nldr_nodeobject *nldr_node_obj,
692 struct lib_node root = { NULL, 0, NULL }; 692 struct lib_node root = { NULL, 0, NULL };
693 DBC_REQUIRE(refs > 0); 693 DBC_REQUIRE(refs > 0);
694 DBC_REQUIRE(nldr_node_obj); 694 DBC_REQUIRE(nldr_node_obj);
695 DBC_REQUIRE(pulAddr != NULL); 695 DBC_REQUIRE(addr != NULL);
696 DBC_REQUIRE(pstrFxn != NULL); 696 DBC_REQUIRE(str_fxn != NULL);
697 697
698 nldr_obj = nldr_node_obj->nldr_obj; 698 nldr_obj = nldr_node_obj->nldr_obj;
699 /* Called from node_create(), node_delete(), or node_run(). */ 699 /* Called from node_create(), node_delete(), or node_run(). */
@@ -717,10 +717,10 @@ int nldr_get_fxn_addr(struct nldr_nodeobject *nldr_node_obj,
717 root = nldr_node_obj->root; 717 root = nldr_node_obj->root;
718 } 718 }
719 status1 = 719 status1 =
720 nldr_obj->ldr_fxns.get_c_addr_fxn(root.lib, pstrFxn, &dbll_sym); 720 nldr_obj->ldr_fxns.get_c_addr_fxn(root.lib, str_fxn, &dbll_sym);
721 if (!status1) 721 if (!status1)
722 status1 = 722 status1 =
723 nldr_obj->ldr_fxns.get_addr_fxn(root.lib, pstrFxn, 723 nldr_obj->ldr_fxns.get_addr_fxn(root.lib, str_fxn,
724 &dbll_sym); 724 &dbll_sym);
725 725
726 /* If symbol not found, check dependent libraries */ 726 /* If symbol not found, check dependent libraries */
@@ -728,13 +728,13 @@ int nldr_get_fxn_addr(struct nldr_nodeobject *nldr_node_obj,
728 for (i = 0; i < root.dep_libs; i++) { 728 for (i = 0; i < root.dep_libs; i++) {
729 status1 = 729 status1 =
730 nldr_obj->ldr_fxns.get_addr_fxn(root.dep_libs_tree 730 nldr_obj->ldr_fxns.get_addr_fxn(root.dep_libs_tree
731 [i].lib, pstrFxn, 731 [i].lib, str_fxn,
732 &dbll_sym); 732 &dbll_sym);
733 if (!status1) { 733 if (!status1) {
734 status1 = 734 status1 =
735 nldr_obj->ldr_fxns. 735 nldr_obj->ldr_fxns.
736 get_c_addr_fxn(root.dep_libs_tree[i].lib, 736 get_c_addr_fxn(root.dep_libs_tree[i].lib,
737 pstrFxn, &dbll_sym); 737 str_fxn, &dbll_sym);
738 } 738 }
739 if (status1) { 739 if (status1) {
740 /* Symbol found */ 740 /* Symbol found */
@@ -748,12 +748,12 @@ int nldr_get_fxn_addr(struct nldr_nodeobject *nldr_node_obj,
748 status1 = 748 status1 =
749 nldr_obj->ldr_fxns. 749 nldr_obj->ldr_fxns.
750 get_addr_fxn(nldr_node_obj->pers_lib_table[i].lib, 750 get_addr_fxn(nldr_node_obj->pers_lib_table[i].lib,
751 pstrFxn, &dbll_sym); 751 str_fxn, &dbll_sym);
752 if (!status1) { 752 if (!status1) {
753 status1 = 753 status1 =
754 nldr_obj->ldr_fxns. 754 nldr_obj->ldr_fxns.
755 get_c_addr_fxn(nldr_node_obj->pers_lib_table 755 get_c_addr_fxn(nldr_node_obj->pers_lib_table
756 [i].lib, pstrFxn, &dbll_sym); 756 [i].lib, str_fxn, &dbll_sym);
757 } 757 }
758 if (status1) { 758 if (status1) {
759 /* Symbol found */ 759 /* Symbol found */
@@ -763,7 +763,7 @@ int nldr_get_fxn_addr(struct nldr_nodeobject *nldr_node_obj,
763 } 763 }
764 764
765 if (status1) 765 if (status1)
766 *pulAddr = dbll_sym->value; 766 *addr = dbll_sym->value;
767 else 767 else
768 status = -ESPIPE; 768 status = -ESPIPE;
769 769
diff --git a/drivers/staging/tidspbridge/rmgr/strm.c b/drivers/staging/tidspbridge/rmgr/strm.c
index f6922f48503..ad3b50cd32c 100644
--- a/drivers/staging/tidspbridge/rmgr/strm.c
+++ b/drivers/staging/tidspbridge/rmgr/strm.c
@@ -620,7 +620,7 @@ func_cont:
620 * Relcaims a buffer from a stream. 620 * Relcaims a buffer from a stream.
621 */ 621 */
622int strm_reclaim(struct strm_object *stream_obj, OUT u8 ** buf_ptr, 622int strm_reclaim(struct strm_object *stream_obj, OUT u8 ** buf_ptr,
623 u32 *pulBytes, u32 *pulBufSize, u32 *pdw_arg) 623 u32 *nbytes, u32 *buff_size, u32 *pdw_arg)
624{ 624{
625 struct bridge_drv_interface *intf_fxns; 625 struct bridge_drv_interface *intf_fxns;
626 struct chnl_ioc chnl_ioc_obj; 626 struct chnl_ioc chnl_ioc_obj;
@@ -629,7 +629,7 @@ int strm_reclaim(struct strm_object *stream_obj, OUT u8 ** buf_ptr,
629 629
630 DBC_REQUIRE(refs > 0); 630 DBC_REQUIRE(refs > 0);
631 DBC_REQUIRE(buf_ptr != NULL); 631 DBC_REQUIRE(buf_ptr != NULL);
632 DBC_REQUIRE(pulBytes != NULL); 632 DBC_REQUIRE(nbytes != NULL);
633 DBC_REQUIRE(pdw_arg != NULL); 633 DBC_REQUIRE(pdw_arg != NULL);
634 634
635 if (!stream_obj) { 635 if (!stream_obj) {
@@ -643,9 +643,9 @@ int strm_reclaim(struct strm_object *stream_obj, OUT u8 ** buf_ptr,
643 stream_obj->utimeout, 643 stream_obj->utimeout,
644 &chnl_ioc_obj); 644 &chnl_ioc_obj);
645 if (DSP_SUCCEEDED(status)) { 645 if (DSP_SUCCEEDED(status)) {
646 *pulBytes = chnl_ioc_obj.byte_size; 646 *nbytes = chnl_ioc_obj.byte_size;
647 if (pulBufSize) 647 if (buff_size)
648 *pulBufSize = chnl_ioc_obj.buf_size; 648 *buff_size = chnl_ioc_obj.buf_size;
649 649
650 *pdw_arg = chnl_ioc_obj.dw_arg; 650 *pdw_arg = chnl_ioc_obj.dw_arg;
651 if (!CHNL_IS_IO_COMPLETE(chnl_ioc_obj)) { 651 if (!CHNL_IS_IO_COMPLETE(chnl_ioc_obj)) {
@@ -692,9 +692,9 @@ func_end:
692 status == -ETIME || status == -ESRCH || 692 status == -ETIME || status == -ESRCH ||
693 status == -EPERM); 693 status == -EPERM);
694 694
695 dev_dbg(bridge, "%s: stream_obj: %p buf_ptr: %p pulBytes: %p " 695 dev_dbg(bridge, "%s: stream_obj: %p buf_ptr: %p nbytes: %p "
696 "pdw_arg: %p status 0x%x\n", __func__, stream_obj, 696 "pdw_arg: %p status 0x%x\n", __func__, stream_obj,
697 buf_ptr, pulBytes, pdw_arg, status); 697 buf_ptr, nbytes, pdw_arg, status);
698 return status; 698 return status;
699} 699}
700 700