Lines Matching refs:i

1064     MS_U32 i = 0;  in HAL_CA_BGC_SetSec()  local
1138 for(i = 0 ; i < 0x20 ; i ++) in HAL_CA_BGC_SetSec()
1140 if(HAL_CA_BGC_Ctrl(BGC_CMD_TYPE_GOLDEN, pstSecCfg->u8Golden[i]) == FALSE) in HAL_CA_BGC_SetSec()
1154 for(i = 0 ; i < 0x4 ; i ++) in HAL_CA_BGC_SetSec()
1156 if(HAL_CA_BGC_Ctrl(BGC_CMD_TYPE_SET_PASSWD, pstSecCfg->u8ResetPassword[i]) == FALSE) in HAL_CA_BGC_SetSec()
1193 MS_U32 i = 0; in HAL_CA_BGC_ResetSec() local
1216 for(i = 0 ; i < 0x4 ; i ++) in HAL_CA_BGC_ResetSec()
1218 if(HAL_CA_BGC_Ctrl(BGC_CMD_TYPE_RESET_PASSWD, pu8RstPSWD[i]) == FALSE) in HAL_CA_BGC_ResetSec()
1285 int i; in HAL_CA_OTP_Write() local
1300 for(i = 0; i < 4; i++) { in HAL_CA_OTP_Write()
1301 if(_HAL_CA_OTP_Write_Real(addr + i, (value >> (i * 8)) & 0xff) == FALSE) in HAL_CA_OTP_Write()
1693 MS_U32 i, u32Addr; in HAL_CA_OTP_SetDeviceId() local
1697 for(i = 0; i < sizeof(did) && i < u32Size; i++) in HAL_CA_OTP_SetDeviceId()
1699 p[i] = pu8Did[i]; in HAL_CA_OTP_SetDeviceId()
1703 for(i = 0; i < Did_Size; i++) in HAL_CA_OTP_SetDeviceId()
1705 if(HAL_CA_OTP_Write(u32Addr,did[i]) == FALSE) in HAL_CA_OTP_SetDeviceId()
1712 for(i = Did_Size; i < (2*Did_Size); i++) in HAL_CA_OTP_SetDeviceId()
1714 if(HAL_CA_OTP_Write(u32Addr,did[i]) == FALSE) in HAL_CA_OTP_SetDeviceId()
1721 for(i = (2*Did_Size); i < (3*Did_Size); i++) in HAL_CA_OTP_SetDeviceId()
1723 if(HAL_CA_OTP_Write(u32Addr,did[i]) == FALSE) in HAL_CA_OTP_SetDeviceId()
1730 for(i = (3*Did_Size); i < (4*Did_Size); i++) in HAL_CA_OTP_SetDeviceId()
1732 if(HAL_CA_OTP_Write(u32Addr,did[i]) == FALSE) in HAL_CA_OTP_SetDeviceId()
1746 MS_U32 i, u32Addr; in HAL_CA_OTP_GetDeviceId() local
1750 for(i = 0; i < Did_Size; i++) in HAL_CA_OTP_GetDeviceId()
1752 did[i] = HAL_CA_OTP_Read(u32Addr); in HAL_CA_OTP_GetDeviceId()
1756 for(i = Did_Size; i < (2*Did_Size) ; i++) in HAL_CA_OTP_GetDeviceId()
1758 did[i] = HAL_CA_OTP_Read(u32Addr); in HAL_CA_OTP_GetDeviceId()
1762 for(i = (2*Did_Size) ; i < (3*Did_Size) ; i++) in HAL_CA_OTP_GetDeviceId()
1764 did[i] = HAL_CA_OTP_Read(u32Addr); in HAL_CA_OTP_GetDeviceId()
1768 for(i = (3*Did_Size); i < (4*Did_Size) ; i++) in HAL_CA_OTP_GetDeviceId()
1770 did[i] = HAL_CA_OTP_Read(u32Addr); in HAL_CA_OTP_GetDeviceId()
1774 for(i = 0; i < sizeof(did) && i < u32Size; i++) in HAL_CA_OTP_GetDeviceId()
1776 pu8Did[i] = p[i]; in HAL_CA_OTP_GetDeviceId()
2087 MS_U8 i = 0; in HAL_CA_STR_SetMAC() local
2089 for(i = 0; i < (u32STRMACSize/2); i++) { in HAL_CA_STR_SetMAC()
2090 REG16_PM(REG_STR_AUTH_RESULT + i*4) = (pu8STRMAC[i*2 + 1]<<8 |pu8STRMAC[i*2]); in HAL_CA_STR_SetMAC()
2121 MS_U32 i, j, u32Addr; in HAL_CA_OTP_SetSecretKey() local
2161 for(i = 0; i < sizeof(secret_key) && i < u32Size; i++) in HAL_CA_OTP_SetSecretKey()
2163 p[i] = pu8SecretKey[(j-1)-i]; // Array reverse, for user easy viewing in HAL_CA_OTP_SetSecretKey()
2166 for(i = 0; i < 4; i++) in HAL_CA_OTP_SetSecretKey()
2168 if(HAL_CA_OTP_Write(u32Addr,secret_key[i]) == FALSE) in HAL_CA_OTP_SetSecretKey()
2180 MS_U32 i, j, u32Addr; in HAL_CA_OTP_GetSecretKey() local
2212 for(i = 0; i < 4; i++) in HAL_CA_OTP_GetSecretKey()
2214 secret_key[i] = HAL_CA_OTP_Read(u32Addr); in HAL_CA_OTP_GetSecretKey()
2227 for(i = 0; i < sizeof(secret_key) && i < u32Size; i++) in HAL_CA_OTP_GetSecretKey()
2229 pu8SecretKey[i] = p[(j-1)-i]; // Array reverse, for user easy viewing in HAL_CA_OTP_GetSecretKey()
2238 MS_U32 i, u32Addr; in HAL_CA_OTP_SetRSAKey() local
2252 for(i = 0; i < sizeof(RSA_key) && i < u32Size; i++) in HAL_CA_OTP_SetRSAKey()
2254 p[i] = pu8RSAKey[i]; in HAL_CA_OTP_SetRSAKey()
2256 for(i = 0; i < 64; i++) in HAL_CA_OTP_SetRSAKey()
2258 if(HAL_CA_OTP_Write(u32Addr,RSA_key[i]) == FALSE) in HAL_CA_OTP_SetRSAKey()
2270 MS_U32 i, u32Addr; in HAL_CA_OTP_GetRSAKey() local
2284 for(i = 0; i < 64; i++) in HAL_CA_OTP_GetRSAKey()
2286 RSA_key[i] = HAL_CA_OTP_Read(u32Addr); in HAL_CA_OTP_GetRSAKey()
2289 for(i = 0; i < sizeof(RSA_key) && i < u32Size; i++) in HAL_CA_OTP_GetRSAKey()
2291 pu8RSAKey[i] = p[i]; in HAL_CA_OTP_GetRSAKey()
2302 MS_U32 i, j, u32Addr; in HAL_CA_OTP_SetDebugPortPassword() local
2328 for(i = 0; i < sizeof(pwd) && i < u32Size; i++) in HAL_CA_OTP_SetDebugPortPassword()
2330 p[i] = pu8Password[(j-1)-i]; // Array reverse, for user easy viewing in HAL_CA_OTP_SetDebugPortPassword()
2334 for(i = 0; i < 4; i++) in HAL_CA_OTP_SetDebugPortPassword()
2336 if(HAL_CA_OTP_Write(u32Addr,pwd[i]) == FALSE) in HAL_CA_OTP_SetDebugPortPassword()
2349 MS_U32 i, j, u32Addr; in HAL_CA_OTP_GetDebugPortPassword() local
2366 for(i = 0; i < 4; i++) in HAL_CA_OTP_GetDebugPortPassword()
2368 pwd[i] = HAL_CA_OTP_Read(u32Addr); in HAL_CA_OTP_GetDebugPortPassword()
2379 for(i = 0; i < sizeof(pwd) &&i < u32Size; i++) in HAL_CA_OTP_GetDebugPortPassword()
2381 pu8Password[i] = p[(j-1)-i]; // Array reverse, for user easy viewing in HAL_CA_OTP_GetDebugPortPassword()
2388 MS_U32 i, u32Addr; in HAL_CA_OTP_WriteReserved() local
2392 for(i = 0; i < sizeof(u32rdata) && i < u32Size; i++) in HAL_CA_OTP_WriteReserved()
2394 p[i] = pu8RData[i]; in HAL_CA_OTP_WriteReserved()
2398 for(i = 0; i <u32ReservedSize; i++) in HAL_CA_OTP_WriteReserved()
2400 if(HAL_CA_OTP_Write(u32Addr,u32rdata[i]) == FALSE) in HAL_CA_OTP_WriteReserved()
2408 for(i = u32ReservedSize; i < (2*u32ReservedSize); i++) in HAL_CA_OTP_WriteReserved()
2410 if(HAL_CA_OTP_Write(u32Addr,u32rdata[i]) == FALSE) in HAL_CA_OTP_WriteReserved()
2417 for(i = (2*u32ReservedSize); i < (3*u32ReservedSize); i++) in HAL_CA_OTP_WriteReserved()
2419 if(HAL_CA_OTP_Write(u32Addr,u32rdata[i]) == FALSE) in HAL_CA_OTP_WriteReserved()
2426 for(i = (3*u32ReservedSize); i < (4*u32ReservedSize); i++) in HAL_CA_OTP_WriteReserved()
2428 if(HAL_CA_OTP_Write(u32Addr,u32rdata[i]) == FALSE) in HAL_CA_OTP_WriteReserved()
2440 MS_U32 i, u32Addr; in HAL_CA_OTP_ReadReserved() local
2445 for(i = 0; i < u32ReservedSize; i++) in HAL_CA_OTP_ReadReserved()
2447 u32rdata[i] = HAL_CA_OTP_Read(u32Addr); in HAL_CA_OTP_ReadReserved()
2451 for(i = u32ReservedSize; i < (2*u32ReservedSize); i++) in HAL_CA_OTP_ReadReserved()
2453 u32rdata[i] = HAL_CA_OTP_Read(u32Addr); in HAL_CA_OTP_ReadReserved()
2457 for(i = (2*u32ReservedSize); i < (3*u32ReservedSize); i++) in HAL_CA_OTP_ReadReserved()
2459 u32rdata[i] = HAL_CA_OTP_Read(u32Addr); in HAL_CA_OTP_ReadReserved()
2463 for(i = (3*u32ReservedSize); i < (4*u32ReservedSize); i++) in HAL_CA_OTP_ReadReserved()
2465 u32rdata[i] = HAL_CA_OTP_Read(u32Addr); in HAL_CA_OTP_ReadReserved()
2469 for(i = 0; i < sizeof(u32rdata) && i < u32Size; i++) in HAL_CA_OTP_ReadReserved()
2471 pu8RData[i] = p[i]; in HAL_CA_OTP_ReadReserved()