diff options
Diffstat (limited to 'drivers/staging/tidspbridge/pmgr')
-rw-r--r-- | drivers/staging/tidspbridge/pmgr/cmm.c | 14 |
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 | */ |
1105 | void *cmm_xlator_translate(struct cmm_xlatorobject *xlator, void *paddr, | 1105 | void *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, |