aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/staging/bcm/nvm.c
diff options
context:
space:
mode:
authorLucas De Marchi <lucas.demarchi@profusion.mobi>2011-03-30 21:57:33 -0400
committerLucas De Marchi <lucas.demarchi@profusion.mobi>2011-03-31 10:26:23 -0400
commit25985edcedea6396277003854657b5f3cb31a628 (patch)
treef026e810210a2ee7290caeb737c23cb6472b7c38 /drivers/staging/bcm/nvm.c
parent6aba74f2791287ec407e0f92487a725a25908067 (diff)
Fix common misspellings
Fixes generated by 'codespell' and manually reviewed. Signed-off-by: Lucas De Marchi <lucas.demarchi@profusion.mobi>
Diffstat (limited to 'drivers/staging/bcm/nvm.c')
-rw-r--r--drivers/staging/bcm/nvm.c54
1 files changed, 27 insertions, 27 deletions
diff --git a/drivers/staging/bcm/nvm.c b/drivers/staging/bcm/nvm.c
index c7292373a65..4da5b7b54a1 100644
--- a/drivers/staging/bcm/nvm.c
+++ b/drivers/staging/bcm/nvm.c
@@ -313,7 +313,7 @@ INT ReadMacAddressFromNVM(PMINI_ADAPTER Adapter)
313// uiNumBytes - Number of bytes to be read from the EEPROM. 313// uiNumBytes - Number of bytes to be read from the EEPROM.
314// 314//
315// Returns: 315// Returns:
316// OSAL_STATUS_SUCCESS - if EEPROM read is successfull. 316// OSAL_STATUS_SUCCESS - if EEPROM read is successful.
317// <FAILURE> - if failed. 317// <FAILURE> - if failed.
318//----------------------------------------------------------------------------- 318//-----------------------------------------------------------------------------
319 319
@@ -431,7 +431,7 @@ INT BeceemEEPROMBulkRead(
431// uiNumBytes - Number of bytes to be read from the FLASH. 431// uiNumBytes - Number of bytes to be read from the FLASH.
432// 432//
433// Returns: 433// Returns:
434// OSAL_STATUS_SUCCESS - if FLASH read is successfull. 434// OSAL_STATUS_SUCCESS - if FLASH read is successful.
435// <FAILURE> - if failed. 435// <FAILURE> - if failed.
436//----------------------------------------------------------------------------- 436//-----------------------------------------------------------------------------
437 437
@@ -1174,7 +1174,7 @@ static INT BeceemFlashBulkWrite(
1174 if(NULL == pTempBuff) 1174 if(NULL == pTempBuff)
1175 goto BeceemFlashBulkWrite_EXIT; 1175 goto BeceemFlashBulkWrite_EXIT;
1176// 1176//
1177// check if the data to be written is overlapped accross sectors 1177// check if the data to be written is overlapped across sectors
1178// 1178//
1179 if(uiOffset+uiNumBytes < uiSectBoundary) 1179 if(uiOffset+uiNumBytes < uiSectBoundary)
1180 { 1180 {
@@ -1390,7 +1390,7 @@ static INT BeceemFlashBulkWriteStatus(
1390 goto BeceemFlashBulkWriteStatus_EXIT; 1390 goto BeceemFlashBulkWriteStatus_EXIT;
1391 1391
1392// 1392//
1393// check if the data to be written is overlapped accross sectors 1393// check if the data to be written is overlapped across sectors
1394// 1394//
1395 if(uiOffset+uiNumBytes < uiSectBoundary) 1395 if(uiOffset+uiNumBytes < uiSectBoundary)
1396 { 1396 {
@@ -2020,7 +2020,7 @@ INT BeceemEEPROMBulkWrite(
2020// uiNumBytes - Number of bytes to be read from the NVM. 2020// uiNumBytes - Number of bytes to be read from the NVM.
2021// 2021//
2022// Returns: 2022// Returns:
2023// OSAL_STATUS_SUCCESS - if NVM read is successfull. 2023// OSAL_STATUS_SUCCESS - if NVM read is successful.
2024// <FAILURE> - if failed. 2024// <FAILURE> - if failed.
2025//----------------------------------------------------------------------------- 2025//-----------------------------------------------------------------------------
2026 2026
@@ -2083,7 +2083,7 @@ INT BeceemNVMRead(
2083// uiNumBytes - Number of bytes to be written.. 2083// uiNumBytes - Number of bytes to be written..
2084// 2084//
2085// Returns: 2085// Returns:
2086// OSAL_STATUS_SUCCESS - if NVM write is successfull. 2086// OSAL_STATUS_SUCCESS - if NVM write is successful.
2087// <FAILURE> - if failed. 2087// <FAILURE> - if failed.
2088//----------------------------------------------------------------------------- 2088//-----------------------------------------------------------------------------
2089 2089
@@ -2218,7 +2218,7 @@ INT BeceemNVMWrite(
2218// uiSectorSize - sector size 2218// uiSectorSize - sector size
2219// 2219//
2220// Returns: 2220// Returns:
2221// OSAL_STATUS_SUCCESS - if NVM write is successfull. 2221// OSAL_STATUS_SUCCESS - if NVM write is successful.
2222// <FAILURE> - if failed. 2222// <FAILURE> - if failed.
2223//----------------------------------------------------------------------------- 2223//-----------------------------------------------------------------------------
2224 2224
@@ -2430,7 +2430,7 @@ INT BcmInitNVM(PMINI_ADAPTER ps_adapter)
2430*Input Parameter: 2430*Input Parameter:
2431* Adapter data structure 2431* Adapter data structure
2432*Return Value : 2432*Return Value :
2433* 0. means sucess; 2433* 0. means success;
2434*/ 2434*/
2435/***************************************************************************/ 2435/***************************************************************************/
2436 2436
@@ -2998,7 +2998,7 @@ INT BcmGetSectionValStartOffset(PMINI_ADAPTER Adapter, FLASH2X_SECTION_VAL eFlas
2998 /* 2998 /*
2999 * Considering all the section for which end offset can be calculated or directly given 2999 * Considering all the section for which end offset can be calculated or directly given
3000 * in CS Structure. if matching case does not exist, return STATUS_FAILURE indicating section 3000 * in CS Structure. if matching case does not exist, return STATUS_FAILURE indicating section
3001 * endoffset can't be calculated or given in CS Stucture. 3001 * endoffset can't be calculated or given in CS Structure.
3002 */ 3002 */
3003 3003
3004 INT SectStartOffset = 0 ; 3004 INT SectStartOffset = 0 ;
@@ -3173,7 +3173,7 @@ INT BcmGetSectionValEndOffset(PMINI_ADAPTER Adapter, FLASH2X_SECTION_VAL eFlash2
3173* @uiNumBytes : Number of Bytes for Read 3173* @uiNumBytes : Number of Bytes for Read
3174* 3174*
3175* Return value:- 3175* Return value:-
3176* return true on sucess and STATUS_FAILURE on fail. 3176* return true on success and STATUS_FAILURE on fail.
3177*/ 3177*/
3178 3178
3179INT BcmFlash2xBulkRead( 3179INT BcmFlash2xBulkRead(
@@ -3241,7 +3241,7 @@ INT BcmFlash2xBulkRead(
3241* @uiNumBytes : Number of Bytes for Write 3241* @uiNumBytes : Number of Bytes for Write
3242* 3242*
3243* Return value:- 3243* Return value:-
3244* return true on sucess and STATUS_FAILURE on fail. 3244* return true on success and STATUS_FAILURE on fail.
3245* 3245*
3246*/ 3246*/
3247 3247
@@ -3308,7 +3308,7 @@ INT BcmFlash2xBulkWrite(
3308* @Adapter :-Drivers private Data Structure 3308* @Adapter :-Drivers private Data Structure
3309* 3309*
3310* Return Value:- 3310* Return Value:-
3311* Return STATUS_SUCESS if get sucess in setting the right DSD else negaive error code 3311* Return STATUS_SUCESS if get success in setting the right DSD else negaive error code
3312* 3312*
3313**/ 3313**/
3314static INT BcmGetActiveDSD(PMINI_ADAPTER Adapter) 3314static INT BcmGetActiveDSD(PMINI_ADAPTER Adapter)
@@ -3384,7 +3384,7 @@ static INT BcmGetActiveISO(PMINI_ADAPTER Adapter)
3384* @uiOffset : Offset provided in the Flash 3384* @uiOffset : Offset provided in the Flash
3385* 3385*
3386* Return Value:- 3386* Return Value:-
3387* Sucess:-TRUE , offset is writable 3387* Success:-TRUE , offset is writable
3388* Failure:-FALSE, offset is RO 3388* Failure:-FALSE, offset is RO
3389* 3389*
3390**/ 3390**/
@@ -3441,7 +3441,7 @@ static INT BcmDumpFlash2xSectionBitMap(PFLASH2X_BITMAP psFlash2xBitMap)
3441 @Adapter:-Driver private Data Structure 3441 @Adapter:-Driver private Data Structure
3442* 3442*
3443* Return value:- 3443* Return value:-
3444* Sucess:- STATUS_SUCESS 3444* Success:- STATUS_SUCESS
3445* Failure:- negative error code 3445* Failure:- negative error code
3446**/ 3446**/
3447 3447
@@ -3783,7 +3783,7 @@ INT BcmSetActiveSection(PMINI_ADAPTER Adapter, FLASH2X_SECTION_VAL eFlash2xSectV
3783 // This is a SPECIAL Case which will only happen if the current highest priority ISO has priority value = 0x7FFFFFFF. 3783 // This is a SPECIAL Case which will only happen if the current highest priority ISO has priority value = 0x7FFFFFFF.
3784 // We will write 1 to the current Highest priority ISO And then shall increase the priority of the requested ISO 3784 // We will write 1 to the current Highest priority ISO And then shall increase the priority of the requested ISO
3785 // by user 3785 // by user
3786 BCM_DEBUG_PRINT(Adapter,DBG_TYPE_OTHERS, NVM_RW, DBG_LVL_ALL, "SectImagePriority wraparound happend, eFlash2xSectVal: 0x%x\n",eFlash2xSectVal); 3786 BCM_DEBUG_PRINT(Adapter,DBG_TYPE_OTHERS, NVM_RW, DBG_LVL_ALL, "SectImagePriority wraparound happened, eFlash2xSectVal: 0x%x\n",eFlash2xSectVal);
3787 SectImagePriority = htonl(0x1); 3787 SectImagePriority = htonl(0x1);
3788 Status = BcmFlash2xBulkWrite(Adapter, 3788 Status = BcmFlash2xBulkWrite(Adapter,
3789 &SectImagePriority, 3789 &SectImagePriority,
@@ -3853,7 +3853,7 @@ INT BcmSetActiveSection(PMINI_ADAPTER Adapter, FLASH2X_SECTION_VAL eFlash2xSectV
3853 // This is a SPECIAL Case which will only happen if the current highest priority DSD has priority value = 0x7FFFFFFF. 3853 // This is a SPECIAL Case which will only happen if the current highest priority DSD has priority value = 0x7FFFFFFF.
3854 // We will write 1 to the current Highest priority DSD And then shall increase the priority of the requested DSD 3854 // We will write 1 to the current Highest priority DSD And then shall increase the priority of the requested DSD
3855 // by user 3855 // by user
3856 BCM_DEBUG_PRINT(Adapter,DBG_TYPE_PRINTK, NVM_RW, DBG_LVL_ALL, "SectImagePriority wraparound happend, eFlash2xSectVal: 0x%x\n",eFlash2xSectVal); 3856 BCM_DEBUG_PRINT(Adapter,DBG_TYPE_PRINTK, NVM_RW, DBG_LVL_ALL, "SectImagePriority wraparound happened, eFlash2xSectVal: 0x%x\n",eFlash2xSectVal);
3857 SectImagePriority = htonl(0x1); 3857 SectImagePriority = htonl(0x1);
3858 3858
3859 Status = BcmFlash2xBulkWrite(Adapter, 3859 Status = BcmFlash2xBulkWrite(Adapter,
@@ -4119,7 +4119,7 @@ INT BcmCopyISO(PMINI_ADAPTER Adapter, FLASH2X_COPY_SECTION sCopySectStrut)
4119 MAX_RW_SIZE); 4119 MAX_RW_SIZE);
4120 IsThisHeaderSector = FALSE ; 4120 IsThisHeaderSector = FALSE ;
4121 } 4121 }
4122 //substracting the written Data 4122 //subtracting the written Data
4123 uiTotalDataToCopy = uiTotalDataToCopy - Adapter->uiSectorSize ; 4123 uiTotalDataToCopy = uiTotalDataToCopy - Adapter->uiSectorSize ;
4124 } 4124 }
4125 4125
@@ -4250,7 +4250,7 @@ INT BcmCopyISO(PMINI_ADAPTER Adapter, FLASH2X_COPY_SECTION sCopySectStrut)
4250 IsThisHeaderSector = FALSE ; 4250 IsThisHeaderSector = FALSE ;
4251 } 4251 }
4252 4252
4253 //substracting the written Data 4253 //subtracting the written Data
4254 uiTotalDataToCopy = uiTotalDataToCopy - Adapter->uiSectorSize ; 4254 uiTotalDataToCopy = uiTotalDataToCopy - Adapter->uiSectorSize ;
4255 } 4255 }
4256 4256
@@ -4268,7 +4268,7 @@ BcmFlash2xCorruptSig : this API is used to corrupt the written sig in Bcm Header
4268@eFlash2xSectionVal :- Flash section val which has header 4268@eFlash2xSectionVal :- Flash section val which has header
4269 4269
4270Return Value :- 4270Return Value :-
4271 Sucess :- If Section is present and writable, corrupt the sig and return STATUS_SUCCESS 4271 Success :- If Section is present and writable, corrupt the sig and return STATUS_SUCCESS
4272 Failure :-Return negative error code 4272 Failure :-Return negative error code
4273 4273
4274 4274
@@ -4301,7 +4301,7 @@ BcmFlash2xWriteSig :-this API is used to Write the sig if requested Section has
4301@eFlashSectionVal :- Flash section val which has header 4301@eFlashSectionVal :- Flash section val which has header
4302 4302
4303Return Value :- 4303Return Value :-
4304 Sucess :- If Section is present and writable write the sig and return STATUS_SUCCESS 4304 Success :- If Section is present and writable write the sig and return STATUS_SUCCESS
4305 Failure :-Return negative error code 4305 Failure :-Return negative error code
4306 4306
4307**/ 4307**/
@@ -4504,7 +4504,7 @@ BcmCopySection :- This API is used to copy the One section in another. Both sect
4504 in case of numofBytes equal zero complete section will be copied. 4504 in case of numofBytes equal zero complete section will be copied.
4505 4505
4506Return Values- 4506Return Values-
4507 Sucess : Return STATUS_SUCCESS 4507 Success : Return STATUS_SUCCESS
4508 Faillure :- return negative error code 4508 Faillure :- return negative error code
4509 4509
4510**/ 4510**/
@@ -4621,7 +4621,7 @@ SaveHeaderIfPresent :- This API is use to Protect the Header in case of Header S
4621@uiOffset :- Flash offset that has to be written. 4621@uiOffset :- Flash offset that has to be written.
4622 4622
4623Return value :- 4623Return value :-
4624 Sucess :- On sucess return STATUS_SUCCESS 4624 Success :- On success return STATUS_SUCCESS
4625 Faillure :- Return negative error code 4625 Faillure :- Return negative error code
4626 4626
4627**/ 4627**/
@@ -4634,7 +4634,7 @@ INT SaveHeaderIfPresent(PMINI_ADAPTER Adapter, PUCHAR pBuff, UINT uiOffset)
4634 UINT uiSectAlignAddr = 0; 4634 UINT uiSectAlignAddr = 0;
4635 UINT sig = 0; 4635 UINT sig = 0;
4636 4636
4637 //making the offset sector alligned 4637 //making the offset sector aligned
4638 uiSectAlignAddr = uiOffset & ~(Adapter->uiSectorSize - 1); 4638 uiSectAlignAddr = uiOffset & ~(Adapter->uiSectorSize - 1);
4639 4639
4640 4640
@@ -4643,7 +4643,7 @@ INT SaveHeaderIfPresent(PMINI_ADAPTER Adapter, PUCHAR pBuff, UINT uiOffset)
4643 (uiSectAlignAddr == BcmGetSectionValEndOffset(Adapter,DSD0)- Adapter->uiSectorSize)) 4643 (uiSectAlignAddr == BcmGetSectionValEndOffset(Adapter,DSD0)- Adapter->uiSectorSize))
4644 { 4644 {
4645 4645
4646 //offset from the sector boundry having the header map 4646 //offset from the sector boundary having the header map
4647 offsetToProtect = Adapter->psFlash2xCSInfo->OffsetFromDSDStartForDSDHeader % Adapter->uiSectorSize; 4647 offsetToProtect = Adapter->psFlash2xCSInfo->OffsetFromDSDStartForDSDHeader % Adapter->uiSectorSize;
4648 HeaderSizeToProtect = sizeof(DSD_HEADER); 4648 HeaderSizeToProtect = sizeof(DSD_HEADER);
4649 bHasHeader = TRUE ; 4649 bHasHeader = TRUE ;
@@ -4697,7 +4697,7 @@ BcmDoChipSelect : This will selcet the appropriate chip for writing.
4697@Adapater :- Bcm Driver Private Data Structure 4697@Adapater :- Bcm Driver Private Data Structure
4698 4698
4699OutPut:- 4699OutPut:-
4700 Select the Appropriate chip and retrn status Sucess 4700 Select the Appropriate chip and retrn status Success
4701**/ 4701**/
4702static INT BcmDoChipSelect(PMINI_ADAPTER Adapter, UINT offset) 4702static INT BcmDoChipSelect(PMINI_ADAPTER Adapter, UINT offset)
4703{ 4703{
@@ -5086,7 +5086,7 @@ static INT CorruptDSDSig(PMINI_ADAPTER Adapter, FLASH2X_SECTION_VAL eFlash2xSect
5086 { 5086 {
5087 if(IsSectionWritable(Adapter,eFlash2xSectionVal) != TRUE) 5087 if(IsSectionWritable(Adapter,eFlash2xSectionVal) != TRUE)
5088 { 5088 {
5089 BCM_DEBUG_PRINT(Adapter,DBG_TYPE_PRINTK, 0, 0,"Section is not Writable...Hence cant Corrupt signature"); 5089 BCM_DEBUG_PRINT(Adapter,DBG_TYPE_PRINTK, 0, 0,"Section is not Writable...Hence can't Corrupt signature");
5090 return SECTOR_IS_NOT_WRITABLE; 5090 return SECTOR_IS_NOT_WRITABLE;
5091 } 5091 }
5092 } 5092 }
@@ -5155,7 +5155,7 @@ static INT CorruptISOSig(PMINI_ADAPTER Adapter, FLASH2X_SECTION_VAL eFlash2xSect
5155 5155
5156 if(IsSectionWritable(Adapter,eFlash2xSectionVal) != TRUE) 5156 if(IsSectionWritable(Adapter,eFlash2xSectionVal) != TRUE)
5157 { 5157 {
5158 BCM_DEBUG_PRINT(Adapter,DBG_TYPE_PRINTK, 0, 0,"Section is not Writable...Hence cant Corrupt signature"); 5158 BCM_DEBUG_PRINT(Adapter,DBG_TYPE_PRINTK, 0, 0,"Section is not Writable...Hence can't Corrupt signature");
5159 return SECTOR_IS_NOT_WRITABLE; 5159 return SECTOR_IS_NOT_WRITABLE;
5160 } 5160 }
5161 5161