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()
1628 MS_U32 i, u32Addr; in HAL_CA_OTP_SetDeviceId() local
1632 for(i = 0; i < sizeof(did) && i < u32Size; i++) in HAL_CA_OTP_SetDeviceId()
1634 p[i] = pu8Did[i]; in HAL_CA_OTP_SetDeviceId()
1638 for(i = 0; i < Did_Size; i++) in HAL_CA_OTP_SetDeviceId()
1640 if(HAL_CA_OTP_Write(u32Addr,did[i]) == FALSE) in HAL_CA_OTP_SetDeviceId()
1647 for(i = Did_Size; i < (2*Did_Size); i++) in HAL_CA_OTP_SetDeviceId()
1649 if(HAL_CA_OTP_Write(u32Addr,did[i]) == FALSE) in HAL_CA_OTP_SetDeviceId()
1656 for(i = (2*Did_Size); i < (3*Did_Size); i++) in HAL_CA_OTP_SetDeviceId()
1658 if(HAL_CA_OTP_Write(u32Addr,did[i]) == FALSE) in HAL_CA_OTP_SetDeviceId()
1665 for(i = (3*Did_Size); i < (4*Did_Size); i++) in HAL_CA_OTP_SetDeviceId()
1667 if(HAL_CA_OTP_Write(u32Addr,did[i]) == FALSE) in HAL_CA_OTP_SetDeviceId()
1681 MS_U32 i, u32Addr; in HAL_CA_OTP_GetDeviceId() local
1685 for(i = 0; i < Did_Size; i++) in HAL_CA_OTP_GetDeviceId()
1687 did[i] = HAL_CA_OTP_Read(u32Addr); in HAL_CA_OTP_GetDeviceId()
1691 for(i = Did_Size; i < (2*Did_Size) ; i++) in HAL_CA_OTP_GetDeviceId()
1693 did[i] = HAL_CA_OTP_Read(u32Addr); in HAL_CA_OTP_GetDeviceId()
1697 for(i = (2*Did_Size) ; i < (3*Did_Size) ; i++) in HAL_CA_OTP_GetDeviceId()
1699 did[i] = HAL_CA_OTP_Read(u32Addr); in HAL_CA_OTP_GetDeviceId()
1703 for(i = (3*Did_Size); i < (4*Did_Size) ; i++) in HAL_CA_OTP_GetDeviceId()
1705 did[i] = HAL_CA_OTP_Read(u32Addr); in HAL_CA_OTP_GetDeviceId()
1709 for(i = 0; i < sizeof(did) && i < u32Size; i++) in HAL_CA_OTP_GetDeviceId()
1711 pu8Did[i] = p[i]; in HAL_CA_OTP_GetDeviceId()
2019 MS_U8 i = 0; in HAL_CA_STR_SetMAC() local
2021 for(i = 0; i < (u32STRMACSize/2); i++) { in HAL_CA_STR_SetMAC()
2022 REG16_PM(REG_STR_AUTH_RESULT + i*4) = (pu8STRMAC[i*2 + 1]<<8 |pu8STRMAC[i*2]); in HAL_CA_STR_SetMAC()
2052 MS_U32 i, j, u32Addr; in HAL_CA_OTP_SetSecretKey() local
2092 for(i = 0; i < sizeof(secret_key) && i < u32Size; i++) in HAL_CA_OTP_SetSecretKey()
2094 p[i] = pu8SecretKey[(j-1)-i]; // Array reverse, for user easy viewing in HAL_CA_OTP_SetSecretKey()
2097 for(i = 0; i < 4; i++) in HAL_CA_OTP_SetSecretKey()
2099 if(HAL_CA_OTP_Write(u32Addr,secret_key[i]) == FALSE) in HAL_CA_OTP_SetSecretKey()
2111 MS_U32 i, j, u32Addr; in HAL_CA_OTP_GetSecretKey() local
2143 for(i = 0; i < 4; i++) in HAL_CA_OTP_GetSecretKey()
2145 secret_key[i] = HAL_CA_OTP_Read(u32Addr); in HAL_CA_OTP_GetSecretKey()
2158 for(i = 0; i < sizeof(secret_key) && i < u32Size; i++) in HAL_CA_OTP_GetSecretKey()
2160 pu8SecretKey[i] = p[(j-1)-i]; // Array reverse, for user easy viewing in HAL_CA_OTP_GetSecretKey()
2169 MS_U32 i, u32Addr; in HAL_CA_OTP_SetRSAKey() local
2183 for(i = 0; i < sizeof(RSA_key) && i < u32Size; i++) in HAL_CA_OTP_SetRSAKey()
2185 p[i] = pu8RSAKey[i]; in HAL_CA_OTP_SetRSAKey()
2187 for(i = 0; i < 64; i++) in HAL_CA_OTP_SetRSAKey()
2189 if(HAL_CA_OTP_Write(u32Addr,RSA_key[i]) == FALSE) in HAL_CA_OTP_SetRSAKey()
2201 MS_U32 i, u32Addr; in HAL_CA_OTP_GetRSAKey() local
2215 for(i = 0; i < 64; i++) in HAL_CA_OTP_GetRSAKey()
2217 RSA_key[i] = HAL_CA_OTP_Read(u32Addr); in HAL_CA_OTP_GetRSAKey()
2220 for(i = 0; i < sizeof(RSA_key) && i < u32Size; i++) in HAL_CA_OTP_GetRSAKey()
2222 pu8RSAKey[i] = p[i]; in HAL_CA_OTP_GetRSAKey()
2233 MS_U32 i, j, u32Addr; in HAL_CA_OTP_SetDebugPortPassword() local
2259 for(i = 0; i < sizeof(pwd) && i < u32Size; i++) in HAL_CA_OTP_SetDebugPortPassword()
2261 p[i] = pu8Password[(j-1)-i]; // Array reverse, for user easy viewing in HAL_CA_OTP_SetDebugPortPassword()
2265 for(i = 0; i < 4; i++) in HAL_CA_OTP_SetDebugPortPassword()
2267 if(HAL_CA_OTP_Write(u32Addr,pwd[i]) == FALSE) in HAL_CA_OTP_SetDebugPortPassword()
2280 MS_U32 i, j, u32Addr; in HAL_CA_OTP_GetDebugPortPassword() local
2297 for(i = 0; i < 4; i++) in HAL_CA_OTP_GetDebugPortPassword()
2299 pwd[i] = HAL_CA_OTP_Read(u32Addr); in HAL_CA_OTP_GetDebugPortPassword()
2310 for(i = 0; i < sizeof(pwd) &&i < u32Size; i++) in HAL_CA_OTP_GetDebugPortPassword()
2312 pu8Password[i] = p[(j-1)-i]; // Array reverse, for user easy viewing in HAL_CA_OTP_GetDebugPortPassword()
2326 MS_U32 i, u32Addr; in HAL_CA_OTP_WriteReserved() local
2330 for(i = 0; i < sizeof(u32rdata) && i < u32Size; i++) in HAL_CA_OTP_WriteReserved()
2332 p[i] = pu8RData[i]; in HAL_CA_OTP_WriteReserved()
2336 for(i = 0; i <u32ReservedSize; i++) in HAL_CA_OTP_WriteReserved()
2338 if(HAL_CA_OTP_Write(u32Addr,u32rdata[i]) == FALSE) in HAL_CA_OTP_WriteReserved()
2346 for(i = u32ReservedSize; i < (2*u32ReservedSize); i++) in HAL_CA_OTP_WriteReserved()
2348 if(HAL_CA_OTP_Write(u32Addr,u32rdata[i]) == FALSE) in HAL_CA_OTP_WriteReserved()
2355 for(i = (2*u32ReservedSize); i < (3*u32ReservedSize); i++) in HAL_CA_OTP_WriteReserved()
2357 if(HAL_CA_OTP_Write(u32Addr,u32rdata[i]) == FALSE) in HAL_CA_OTP_WriteReserved()
2364 for(i = (3*u32ReservedSize); i < (4*u32ReservedSize); i++) in HAL_CA_OTP_WriteReserved()
2366 if(HAL_CA_OTP_Write(u32Addr,u32rdata[i]) == FALSE) in HAL_CA_OTP_WriteReserved()
2378 MS_U32 i, u32Addr; in HAL_CA_OTP_ReadReserved() local
2383 for(i = 0; i < u32ReservedSize; i++) in HAL_CA_OTP_ReadReserved()
2385 u32rdata[i] = HAL_CA_OTP_Read(u32Addr); in HAL_CA_OTP_ReadReserved()
2389 for(i = u32ReservedSize; i < (2*u32ReservedSize); i++) in HAL_CA_OTP_ReadReserved()
2391 u32rdata[i] = HAL_CA_OTP_Read(u32Addr); in HAL_CA_OTP_ReadReserved()
2395 for(i = (2*u32ReservedSize); i < (3*u32ReservedSize); i++) in HAL_CA_OTP_ReadReserved()
2397 u32rdata[i] = HAL_CA_OTP_Read(u32Addr); in HAL_CA_OTP_ReadReserved()
2401 for(i = (3*u32ReservedSize); i < (4*u32ReservedSize); i++) in HAL_CA_OTP_ReadReserved()
2403 u32rdata[i] = HAL_CA_OTP_Read(u32Addr); in HAL_CA_OTP_ReadReserved()
2407 for(i = 0; i < sizeof(u32rdata) && i < u32Size; i++) in HAL_CA_OTP_ReadReserved()
2409 pu8RData[i] = p[i]; in HAL_CA_OTP_ReadReserved()