Lines Matching refs:i

1067     MS_U32 i = 0;  in HAL_CA_BGC_SetSec()  local
1141 for(i = 0 ; i < 0x20 ; i ++) in HAL_CA_BGC_SetSec()
1143 if(HAL_CA_BGC_Ctrl(BGC_CMD_TYPE_GOLDEN, pstSecCfg->u8Golden[i]) == FALSE) in HAL_CA_BGC_SetSec()
1157 for(i = 0 ; i < 0x4 ; i ++) in HAL_CA_BGC_SetSec()
1159 if(HAL_CA_BGC_Ctrl(BGC_CMD_TYPE_SET_PASSWD, pstSecCfg->u8ResetPassword[i]) == FALSE) in HAL_CA_BGC_SetSec()
1196 MS_U32 i = 0; in HAL_CA_BGC_ResetSec() local
1219 for(i = 0 ; i < 0x4 ; i ++) in HAL_CA_BGC_ResetSec()
1221 if(HAL_CA_BGC_Ctrl(BGC_CMD_TYPE_RESET_PASSWD, pu8RstPSWD[i]) == FALSE) in HAL_CA_BGC_ResetSec()
1288 int i; in HAL_CA_OTP_Write() local
1303 for(i = 0; i < 4; i++) { in HAL_CA_OTP_Write()
1304 if(_HAL_CA_OTP_Write_Real(addr + i, (value >> (i * 8)) & 0xff) == FALSE) in HAL_CA_OTP_Write()
1695 MS_U32 i, u32Addr; in HAL_CA_OTP_SetDeviceId() local
1699 for(i = 0; i < sizeof(did) && i < u32Size; i++) in HAL_CA_OTP_SetDeviceId()
1701 p[i] = pu8Did[i]; in HAL_CA_OTP_SetDeviceId()
1705 for(i = 0; i < Did_Size; i++) in HAL_CA_OTP_SetDeviceId()
1707 if(HAL_CA_OTP_Write(u32Addr,did[i]) == FALSE) in HAL_CA_OTP_SetDeviceId()
1714 for(i = Did_Size; i < (2*Did_Size); i++) in HAL_CA_OTP_SetDeviceId()
1716 if(HAL_CA_OTP_Write(u32Addr,did[i]) == FALSE) in HAL_CA_OTP_SetDeviceId()
1723 for(i = (2*Did_Size); i < (3*Did_Size); i++) in HAL_CA_OTP_SetDeviceId()
1725 if(HAL_CA_OTP_Write(u32Addr,did[i]) == FALSE) in HAL_CA_OTP_SetDeviceId()
1732 for(i = (3*Did_Size); i < (4*Did_Size); i++) in HAL_CA_OTP_SetDeviceId()
1734 if(HAL_CA_OTP_Write(u32Addr,did[i]) == FALSE) in HAL_CA_OTP_SetDeviceId()
1748 MS_U32 i, u32Addr; in HAL_CA_OTP_GetDeviceId() local
1752 for(i = 0; i < Did_Size; i++) in HAL_CA_OTP_GetDeviceId()
1754 did[i] = HAL_CA_OTP_Read(u32Addr); in HAL_CA_OTP_GetDeviceId()
1758 for(i = Did_Size; i < (2*Did_Size) ; i++) in HAL_CA_OTP_GetDeviceId()
1760 did[i] = HAL_CA_OTP_Read(u32Addr); in HAL_CA_OTP_GetDeviceId()
1764 for(i = (2*Did_Size) ; i < (3*Did_Size) ; i++) in HAL_CA_OTP_GetDeviceId()
1766 did[i] = HAL_CA_OTP_Read(u32Addr); in HAL_CA_OTP_GetDeviceId()
1770 for(i = (3*Did_Size); i < (4*Did_Size) ; i++) in HAL_CA_OTP_GetDeviceId()
1772 did[i] = HAL_CA_OTP_Read(u32Addr); in HAL_CA_OTP_GetDeviceId()
1776 for(i = 0; i < sizeof(did) && i < u32Size; i++) in HAL_CA_OTP_GetDeviceId()
1778 pu8Did[i] = p[i]; in HAL_CA_OTP_GetDeviceId()
2083 MS_U8 i = 0; in HAL_CA_STR_SetMAC() local
2085 for(i = 0; i < (u32STRMACSize/2); i++) { in HAL_CA_STR_SetMAC()
2086 REG16_PM(REG_STR_AUTH_RESULT + i*4) = (pu8STRMAC[i*2 + 1]<<8 |pu8STRMAC[i*2]); in HAL_CA_STR_SetMAC()
2116 MS_U32 i, j, u32Addr; in HAL_CA_OTP_SetSecretKey() local
2156 for(i = 0; i < sizeof(secret_key) && i < u32Size; i++) in HAL_CA_OTP_SetSecretKey()
2158 p[i] = pu8SecretKey[(j-1)-i]; // Array reverse, for user easy viewing in HAL_CA_OTP_SetSecretKey()
2161 for(i = 0; i < 4; i++) in HAL_CA_OTP_SetSecretKey()
2163 if(HAL_CA_OTP_Write(u32Addr,secret_key[i]) == FALSE) in HAL_CA_OTP_SetSecretKey()
2175 MS_U32 i, j, u32Addr; in HAL_CA_OTP_GetSecretKey() local
2207 for(i = 0; i < 4; i++) in HAL_CA_OTP_GetSecretKey()
2209 secret_key[i] = HAL_CA_OTP_Read(u32Addr); in HAL_CA_OTP_GetSecretKey()
2222 for(i = 0; i < sizeof(secret_key) && i < u32Size; i++) in HAL_CA_OTP_GetSecretKey()
2224 pu8SecretKey[i] = p[(j-1)-i]; // Array reverse, for user easy viewing in HAL_CA_OTP_GetSecretKey()
2233 MS_U32 i, u32Addr; in HAL_CA_OTP_SetRSAKey() local
2247 for(i = 0; i < sizeof(RSA_key) && i < u32Size; i++) in HAL_CA_OTP_SetRSAKey()
2249 p[i] = pu8RSAKey[i]; in HAL_CA_OTP_SetRSAKey()
2251 for(i = 0; i < 64; i++) in HAL_CA_OTP_SetRSAKey()
2253 if(HAL_CA_OTP_Write(u32Addr,RSA_key[i]) == FALSE) in HAL_CA_OTP_SetRSAKey()
2265 MS_U32 i, u32Addr; in HAL_CA_OTP_GetRSAKey() local
2279 for(i = 0; i < 64; i++) in HAL_CA_OTP_GetRSAKey()
2281 RSA_key[i] = HAL_CA_OTP_Read(u32Addr); in HAL_CA_OTP_GetRSAKey()
2284 for(i = 0; i < sizeof(RSA_key) && i < u32Size; i++) in HAL_CA_OTP_GetRSAKey()
2286 pu8RSAKey[i] = p[i]; in HAL_CA_OTP_GetRSAKey()
2297 MS_U32 i, j, u32Addr; in HAL_CA_OTP_SetDebugPortPassword() local
2323 for(i = 0; i < sizeof(pwd) && i < u32Size; i++) in HAL_CA_OTP_SetDebugPortPassword()
2325 p[i] = pu8Password[(j-1)-i]; // Array reverse, for user easy viewing in HAL_CA_OTP_SetDebugPortPassword()
2329 for(i = 0; i < 4; i++) in HAL_CA_OTP_SetDebugPortPassword()
2331 if(HAL_CA_OTP_Write(u32Addr,pwd[i]) == FALSE) in HAL_CA_OTP_SetDebugPortPassword()
2344 MS_U32 i, j, u32Addr; in HAL_CA_OTP_GetDebugPortPassword() local
2361 for(i = 0; i < 4; i++) in HAL_CA_OTP_GetDebugPortPassword()
2363 pwd[i] = HAL_CA_OTP_Read(u32Addr); in HAL_CA_OTP_GetDebugPortPassword()
2374 for(i = 0; i < sizeof(pwd) &&i < u32Size; i++) in HAL_CA_OTP_GetDebugPortPassword()
2376 pu8Password[i] = p[(j-1)-i]; // Array reverse, for user easy viewing in HAL_CA_OTP_GetDebugPortPassword()
2390 MS_U32 i, u32Addr; in HAL_CA_OTP_WriteReserved() local
2394 for(i = 0; i < sizeof(u32rdata) && i < u32Size; i++) in HAL_CA_OTP_WriteReserved()
2396 p[i] = pu8RData[i]; in HAL_CA_OTP_WriteReserved()
2400 for(i = 0; i <u32ReservedSize; i++) in HAL_CA_OTP_WriteReserved()
2402 if(HAL_CA_OTP_Write(u32Addr,u32rdata[i]) == FALSE) in HAL_CA_OTP_WriteReserved()
2410 for(i = u32ReservedSize; i < (2*u32ReservedSize); i++) in HAL_CA_OTP_WriteReserved()
2412 if(HAL_CA_OTP_Write(u32Addr,u32rdata[i]) == FALSE) in HAL_CA_OTP_WriteReserved()
2419 for(i = (2*u32ReservedSize); i < (3*u32ReservedSize); i++) in HAL_CA_OTP_WriteReserved()
2421 if(HAL_CA_OTP_Write(u32Addr,u32rdata[i]) == FALSE) in HAL_CA_OTP_WriteReserved()
2428 for(i = (3*u32ReservedSize); i < (4*u32ReservedSize); i++) in HAL_CA_OTP_WriteReserved()
2430 if(HAL_CA_OTP_Write(u32Addr,u32rdata[i]) == FALSE) in HAL_CA_OTP_WriteReserved()
2442 MS_U32 i, u32Addr; in HAL_CA_OTP_ReadReserved() local
2447 for(i = 0; i < u32ReservedSize; i++) in HAL_CA_OTP_ReadReserved()
2449 u32rdata[i] = HAL_CA_OTP_Read(u32Addr); in HAL_CA_OTP_ReadReserved()
2453 for(i = u32ReservedSize; i < (2*u32ReservedSize); i++) in HAL_CA_OTP_ReadReserved()
2455 u32rdata[i] = HAL_CA_OTP_Read(u32Addr); in HAL_CA_OTP_ReadReserved()
2459 for(i = (2*u32ReservedSize); i < (3*u32ReservedSize); i++) in HAL_CA_OTP_ReadReserved()
2461 u32rdata[i] = HAL_CA_OTP_Read(u32Addr); in HAL_CA_OTP_ReadReserved()
2465 for(i = (3*u32ReservedSize); i < (4*u32ReservedSize); i++) in HAL_CA_OTP_ReadReserved()
2467 u32rdata[i] = HAL_CA_OTP_Read(u32Addr); in HAL_CA_OTP_ReadReserved()
2471 for(i = 0; i < sizeof(u32rdata) && i < u32Size; i++) in HAL_CA_OTP_ReadReserved()
2473 pu8RData[i] = p[i]; in HAL_CA_OTP_ReadReserved()