aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/staging/tidspbridge/pmgr
diff options
context:
space:
mode:
authorRene Sapiens <rene.sapiens@ti.com>2010-07-09 22:24:08 -0400
committerGreg Kroah-Hartman <gregkh@suse.de>2010-07-22 13:45:37 -0400
commit5a09ddeae940ceea68a8b2dada71bc0cc609c894 (patch)
tree8e6087df2c2caea536cb150f24492bba885c95db /drivers/staging/tidspbridge/pmgr
parent5e2eae576b750c2e40bda5966437dbc6b12d479e (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: ======================================== validBit to valid_bit victimEntryNum to victim_entry_num virtualAddr to virtual_addr xType to xtype actualValue to actual_value EASIL1_MMUMMU_IRQSTATUSReadRegister32 to easil1_mmummu_irqstatus_read_register32 EASIL1_MMUMMU_LOCKBaseValueWrite32 to easil1_mmummu_lock_base_value_write32 easiNum to easi_num expectedValue to expected_value invalidValue to invalid_value L1_base to l1_base L2_base to l2_base lower16Bits to lower16_bits lower8Bits to lower8_bits lowerMiddle8Bits to lower_middle8_bits lowerUpper8Bits to lower_upper8_bits maxValidValue to max_valid_value minValidValue to min_valid_value newValue to new_value returnCodeIfMismatch to return_code_if_mismatch spyCodeIfMisMatch to spy_code_if_mis_match upper16Bits to upper16_bits upper8Bits to upper8_bits ======================================== Signed-off-by: Rene Sapiens <rene.sapiens@ti.com> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
Diffstat (limited to 'drivers/staging/tidspbridge/pmgr')
-rw-r--r--drivers/staging/tidspbridge/pmgr/cmm.c14
1 files changed, 7 insertions, 7 deletions
diff --git a/drivers/staging/tidspbridge/pmgr/cmm.c b/drivers/staging/tidspbridge/pmgr/cmm.c
index 2381984e559..d054e5389eb 100644
--- a/drivers/staging/tidspbridge/pmgr/cmm.c
+++ b/drivers/staging/tidspbridge/pmgr/cmm.c
@@ -1103,7 +1103,7 @@ int cmm_xlator_info(struct cmm_xlatorobject *xlator, IN OUT u8 ** paddr,
1103 * ======== cmm_xlator_translate ======== 1103 * ======== cmm_xlator_translate ========
1104 */ 1104 */
1105void *cmm_xlator_translate(struct cmm_xlatorobject *xlator, void *paddr, 1105void *cmm_xlator_translate(struct cmm_xlatorobject *xlator, void *paddr,
1106 enum cmm_xlatetype xType) 1106 enum cmm_xlatetype xtype)
1107{ 1107{
1108 u32 dw_addr_xlate = 0; 1108 u32 dw_addr_xlate = 0;
1109 struct cmm_xlator *xlator_obj = (struct cmm_xlator *)xlator; 1109 struct cmm_xlator *xlator_obj = (struct cmm_xlator *)xlator;
@@ -1113,7 +1113,7 @@ void *cmm_xlator_translate(struct cmm_xlatorobject *xlator, void *paddr,
1113 1113
1114 DBC_REQUIRE(refs > 0); 1114 DBC_REQUIRE(refs > 0);
1115 DBC_REQUIRE(paddr != NULL); 1115 DBC_REQUIRE(paddr != NULL);
1116 DBC_REQUIRE((xType >= CMM_VA2PA) && (xType <= CMM_DSPPA2PA)); 1116 DBC_REQUIRE((xtype >= CMM_VA2PA) && (xtype <= CMM_DSPPA2PA));
1117 1117
1118 if (!xlator_obj) 1118 if (!xlator_obj)
1119 goto loop_cont; 1119 goto loop_cont;
@@ -1125,9 +1125,9 @@ void *cmm_xlator_translate(struct cmm_xlatorobject *xlator, void *paddr,
1125 if (!allocator) 1125 if (!allocator)
1126 goto loop_cont; 1126 goto loop_cont;
1127 1127
1128 if ((xType == CMM_VA2DSPPA) || (xType == CMM_VA2PA) || 1128 if ((xtype == CMM_VA2DSPPA) || (xtype == CMM_VA2PA) ||
1129 (xType == CMM_PA2VA)) { 1129 (xtype == CMM_PA2VA)) {
1130 if (xType == CMM_PA2VA) { 1130 if (xtype == CMM_PA2VA) {
1131 /* Gpp Va = Va Base + offset */ 1131 /* Gpp Va = Va Base + offset */
1132 dw_offset = (u8 *) paddr - (u8 *) (allocator->shm_base - 1132 dw_offset = (u8 *) paddr - (u8 *) (allocator->shm_base -
1133 allocator-> 1133 allocator->
@@ -1152,14 +1152,14 @@ void *cmm_xlator_translate(struct cmm_xlatorobject *xlator, void *paddr,
1152 dw_addr_xlate = (u32) paddr; 1152 dw_addr_xlate = (u32) paddr;
1153 } 1153 }
1154 /*Now convert address to proper target physical address if needed */ 1154 /*Now convert address to proper target physical address if needed */
1155 if ((xType == CMM_VA2DSPPA) || (xType == CMM_PA2DSPPA)) { 1155 if ((xtype == CMM_VA2DSPPA) || (xtype == CMM_PA2DSPPA)) {
1156 /* Got Gpp Pa now, convert to DSP Pa */ 1156 /* Got Gpp Pa now, convert to DSP Pa */
1157 dw_addr_xlate = 1157 dw_addr_xlate =
1158 GPPPA2DSPPA((allocator->shm_base - allocator->ul_dsp_size), 1158 GPPPA2DSPPA((allocator->shm_base - allocator->ul_dsp_size),
1159 dw_addr_xlate, 1159 dw_addr_xlate,
1160 allocator->dw_dsp_phys_addr_offset * 1160 allocator->dw_dsp_phys_addr_offset *
1161 allocator->c_factor); 1161 allocator->c_factor);
1162 } else if (xType == CMM_DSPPA2PA) { 1162 } else if (xtype == CMM_DSPPA2PA) {
1163 /* Got DSP Pa, convert to GPP Pa */ 1163 /* Got DSP Pa, convert to GPP Pa */
1164 dw_addr_xlate = 1164 dw_addr_xlate =
1165 DSPPA2GPPPA(allocator->shm_base - allocator->ul_dsp_size, 1165 DSPPA2GPPPA(allocator->shm_base - allocator->ul_dsp_size,