PUCHAR read_buff = NULL;
UINT NOB = 0;
UINT buff_size = 0;
- UINT ReadBytes = 0;
+ UINT read_bytes = 0;
UINT ReadOffset = 0;
INT status = STATUS_FAILURE;
void __user *OutPutBuff;
while (NOB) {
if (NOB > ad->uiSectorSize)
- ReadBytes = ad->uiSectorSize;
+ read_bytes = ad->uiSectorSize;
else
- ReadBytes = NOB;
+ read_bytes = NOB;
/* Reading the data from Flash 2.x */
status = BcmFlash2xBulkRead(ad, (PUINT)read_buff,
- flash_2x_read.Section, ReadOffset, ReadBytes);
+ flash_2x_read.Section, ReadOffset, read_bytes);
if (status) {
BCM_DEBUG_PRINT(ad,
DBG_TYPE_OTHERS, OSAL_DBG, DBG_LVL_ALL,
}
BCM_DEBUG_PRINT_BUFFER(ad, DBG_TYPE_OTHERS, OSAL_DBG,
- DBG_LVL_ALL, read_buff, ReadBytes);
+ DBG_LVL_ALL, read_buff, read_bytes);
- status = copy_to_user(OutPutBuff, read_buff, ReadBytes);
+ status = copy_to_user(OutPutBuff, read_buff, read_bytes);
if (status) {
BCM_DEBUG_PRINT(ad,
DBG_TYPE_OTHERS, OSAL_DBG, DBG_LVL_ALL,
kfree(read_buff);
return -EFAULT;
}
- NOB = NOB - ReadBytes;
+ NOB = NOB - read_bytes;
if (NOB) {
- ReadOffset = ReadOffset + ReadBytes;
- OutPutBuff = OutPutBuff + ReadBytes;
+ ReadOffset = ReadOffset + read_bytes;
+ OutPutBuff = OutPutBuff + read_bytes;
}
}
unsigned int NOB;
INT buff_size;
INT ReadOffset = 0;
- UINT ReadBytes = 0;
+ UINT read_bytes = 0;
PUCHAR read_buff;
void __user *OutPutBuff;
INT status = STATUS_FAILURE;
while (NOB) {
if (NOB > DEFAULT_BUFF_SIZE)
- ReadBytes = DEFAULT_BUFF_SIZE;
+ read_bytes = DEFAULT_BUFF_SIZE;
else
- ReadBytes = NOB;
+ read_bytes = NOB;
/* Reading the data from Flash 2.x */
status = BeceemNVMRead(ad, (PUINT)read_buff,
- ReadOffset, ReadBytes);
+ ReadOffset, read_bytes);
if (status) {
BCM_DEBUG_PRINT(ad, DBG_TYPE_PRINTK, 0, 0,
"Flash 2x read err with status :%d",
}
BCM_DEBUG_PRINT_BUFFER(ad, DBG_TYPE_OTHERS, OSAL_DBG,
- DBG_LVL_ALL, read_buff, ReadBytes);
+ DBG_LVL_ALL, read_buff, read_bytes);
- status = copy_to_user(OutPutBuff, read_buff, ReadBytes);
+ status = copy_to_user(OutPutBuff, read_buff, read_bytes);
if (status) {
BCM_DEBUG_PRINT(ad, DBG_TYPE_PRINTK, 0, 0,
"Copy to use failed with status :%d",
kfree(read_buff);
return -EFAULT;
}
- NOB = NOB - ReadBytes;
+ NOB = NOB - read_bytes;
if (NOB) {
- ReadOffset = ReadOffset + ReadBytes;
- OutPutBuff = OutPutBuff + ReadBytes;
+ ReadOffset = ReadOffset + read_bytes;
+ OutPutBuff = OutPutBuff + read_bytes;
}
}
ad->bFlashRawRead = false;