/trusted-firmware-m-3.6.0/platform/ext/target/nuvoton/m2351/bsp/Library/StdDriver/src/ |
D | crypto.c | 101 uint32_t i, wcnt; in PRNG_Read() local 105 for(i = 0U; i < wcnt; i++) in PRNG_Read() 107 u32RandKey[i] = crpt->PRNG_KEY[i]; in PRNG_Read() 179 uint32_t i, wcnt, key_reg_addr; in AES_SetKey() local 184 for(i = 0U; i < wcnt; i++) in AES_SetKey() 186 outpw(key_reg_addr, au32Keys[i]); in AES_SetKey() 200 uint32_t i, key_reg_addr; in AES_SetInitVect() local 204 for(i = 0U; i < 4U; i++) in AES_SetInitVect() 206 outpw(key_reg_addr, au32IV[i]); in AES_SetInitVect() 301 uint32_t i, reg_addr; in TDES_SetKey() local [all …]
|
/trusted-firmware-m-3.6.0/lib/ext/cryptocell-312-runtime/codesafe/src/crypto_api/common/ |
D | cc_common_math.c | 55 uint32_t i; in CC_CommonIncMsbUnsignedCounter() local 61 for (i = 0 ; i < CounterSize ; i++) in CC_CommonIncMsbUnsignedCounter() 62 CounterBuff_ptr[i] = CC_COMMON_REVERSE32( CounterBuff_ptr[i] ); in CC_CommonIncMsbUnsignedCounter() 82 i = CounterSize - 2; in CC_CommonIncMsbUnsignedCounter() 85 curretCounterWordVal = CounterBuff_ptr[i]; in CC_CommonIncMsbUnsignedCounter() 88 CounterBuff_ptr[i]++; in CC_CommonIncMsbUnsignedCounter() 92 if ((curretCounterWordVal < CounterBuff_ptr[i]) || (i == 0)){ in CC_CommonIncMsbUnsignedCounter() 95 i--; in CC_CommonIncMsbUnsignedCounter() 104 for (i = 0 ; i < CounterSize ; i++) in CC_CommonIncMsbUnsignedCounter() 105 CounterBuff_ptr[i] = CC_COMMON_REVERSE32( CounterBuff_ptr[i] ); in CC_CommonIncMsbUnsignedCounter() [all …]
|
D | cc_common_conv_endian.c | 53 uint32_t i; in CC_CommonReverseMemcpy() local 66 for (i = 0 ; i < size ; i++) in CC_CommonReverseMemcpy() 67 dst_ptr[i] = src_ptr[size - 1 - i]; in CC_CommonReverseMemcpy() 74 for (i = 0; i < size / 2; i++) { in CC_CommonReverseMemcpy() 75 temp = src_ptr[i]; in CC_CommonReverseMemcpy() 76 src_ptr[i] = src_ptr[size - 1 - i]; in CC_CommonReverseMemcpy() 77 src_ptr[size - 1 - i] = temp; in CC_CommonReverseMemcpy() 114 uint32_t i, tmp; in CC_CommonInPlaceConvertBytesWordsAndArrayEndianness() local 129 for (i = 0; ((i < sizeWords/2) && (sizeWords >= 2)); i++) { in CC_CommonInPlaceConvertBytesWordsAndArrayEndianness() 131 tmp = CC_COMMON_REVERSE32(buf_ptr[i]); in CC_CommonInPlaceConvertBytesWordsAndArrayEndianness() [all …]
|
/trusted-firmware-m-3.6.0/platform/ext/target/nuvoton/m2354/bsp/Library/StdDriver/src/ |
D | crypto.c | 107 uint32_t i, wcnt; in PRNG_Read() local 111 for(i = 0U; i < wcnt; i++) in PRNG_Read() 113 u32RandKey[i] = crpt->PRNG_KEY[i]; in PRNG_Read() 187 uint32_t i, wcnt, key_reg_addr; in AES_SetKey() local 194 for(i = 0U; i < wcnt; i++) in AES_SetKey() 196 outpw(key_reg_addr, au32Keys[i]); in AES_SetKey() 232 uint32_t i, key_reg_addr; in AES_SetInitVect() local 238 for(i = 0U; i < 4U; i++) in AES_SetInitVect() 240 outpw(key_reg_addr, au32IV[i]); in AES_SetInitVect() 327 uint32_t i, wcnt, reg_addr; in SHA_Read() local [all …]
|
D | tamper.c | 109 uint32_t i; in TAMPER_StaticTamperEnable() local 118 for(i = 0UL; i < (uint32_t)TAMPER_MAX_TAMPER_PIN_NUM; i++) in TAMPER_StaticTamperEnable() 120 if(u32TamperSelect & (0x1UL << i)) in TAMPER_StaticTamperEnable() 122 …TAMPER_TIOCTL_TAMP0EN_Msk | TAMPER_TIOCTL_TAMP0LV_Msk | TAMPER_TIOCTL_TAMP0DBEN_Msk) << (i * 4UL)); in TAMPER_StaticTamperEnable() 123 u32Reg |= (u32TmpReg << (i * 4UL)); in TAMPER_StaticTamperEnable() 147 uint32_t i; in TAMPER_StaticTamperDisable() local 155 for(i = 0UL; i < (uint32_t)TAMPER_MAX_TAMPER_PIN_NUM; i++) in TAMPER_StaticTamperDisable() 157 if(u32TamperSelect & (0x1UL << i)) in TAMPER_StaticTamperDisable() 159 u32Reg &= ~(u32TmpReg << (i * 4UL)); in TAMPER_StaticTamperDisable() 192 uint32_t i; in TAMPER_DynamicTamperEnable() local [all …]
|
/trusted-firmware-m-3.6.0/platform/ext/target/nuvoton/common/bsp/StdDriver/src/ |
D | rng.c | 54 int32_t i; in RNG_Open() local 66 i = 0; in RNG_Open() 69 if(i++ > timeout) in RNG_Open() 83 i = 0; in RNG_Open() 86 if(i++ > timeout) in RNG_Open() 94 i = 0; in RNG_Open() 97 if(i++ > timeout) in RNG_Open() 108 i = 0; in RNG_Open() 111 if(i++ > timeout) in RNG_Open() 121 i = 0; in RNG_Open() [all …]
|
/trusted-firmware-m-3.6.0/lib/ext/cryptocell-312-runtime/codesafe/src/crypto_api/cc3x_sym/driver/ |
D | sw_hash_common.c | 53 uint32_t i; in HASH_COMMON_IncMsbUnsignedCounter() local 58 for (i = 0 ; i < CounterSize ; i++) in HASH_COMMON_IncMsbUnsignedCounter() 59 CounterBuff_ptr[i] = CC_COMMON_REVERSE32( CounterBuff_ptr[i] ); in HASH_COMMON_IncMsbUnsignedCounter() 79 i = CounterSize - 2; in HASH_COMMON_IncMsbUnsignedCounter() 82 curretCounterWordVal = CounterBuff_ptr[i]; in HASH_COMMON_IncMsbUnsignedCounter() 85 CounterBuff_ptr[i]++; in HASH_COMMON_IncMsbUnsignedCounter() 89 if ((curretCounterWordVal < CounterBuff_ptr[i]) || (i == 0)) { in HASH_COMMON_IncMsbUnsignedCounter() 92 i--; in HASH_COMMON_IncMsbUnsignedCounter() 101 for (i = 0 ; i < CounterSize ; i++) in HASH_COMMON_IncMsbUnsignedCounter() 102 CounterBuff_ptr[i] = CC_COMMON_REVERSE32( CounterBuff_ptr[i] ); in HASH_COMMON_IncMsbUnsignedCounter() [all …]
|
/trusted-firmware-m-3.6.0/lib/ext/cryptocell-312-runtime/host/src/tests/common/ |
D | test_log.h | 34 unsigned int i = 0;\ 36 for (i=0; i< size; i++) {\ 37 if (!(i%4)) {\ 40 TEST_PRINTF_MESSAGE(" 0x%08X ", (unsigned int)(*((unsigned int *)buff+i)));\ 46 unsigned int i = 0;\ 48 for (i=0; i< size; i++) {\ 49 if (!(i%16)) {\ 52 TEST_PRINTF_MESSAGE("0x%02X ", (unsigned char)(*((unsigned char *)buff+i)));\ 86 unsigned int i = 0;\ 88 for (i=0; i< size; i++) {\ [all …]
|
D | tests_hw_access.c | 154 unsigned int i = 0; in testBurnOtp() local 168 for (i = 0; i < TEST_OTP_SIZE_IN_WORDS; i++) { in testBurnOtp() 169 TEST_PRINTF("writing Otp [%d] 0x%X", i, otp[i]); in testBurnOtp() 170 WRITE_OTP(i, otp[i]); in testBurnOtp() 176 for (i = 0; i < TEST_OTP_SIZE_IN_WORDS; i++) { in testBurnOtp() 177 tempOtp = READ_OTP(i); in testBurnOtp() 178 TEST_PRINTF_ERROR("tempOtp [%d] 0x%X", i, tempOtp); in testBurnOtp() 201 unsigned int i = 0; in testClearOtp() local 206 for (i = 0; i < TEST_OTP_SIZE_IN_WORDS; i++) { in testClearOtp() 207 WRITE_OTP(i, 0); in testClearOtp() [all …]
|
/trusted-firmware-m-3.6.0/lib/ext/cryptocell-312-runtime/utils/src/common/ |
D | common_util_log.h | 25 uint32_t i=0;\ 28 for (i=0; i<size; i++){\ 29 if (!(i%16)) {\ 32 fprintf(stderr, " 0x%02X ", *((uint8_t *)buff_addr + i));\ 37 uint32_t i=0;\ 40 for (i=0; i<wordSize; i++){\ 41 if (!(i%4)) {\ 44 fprintf(stderr, " 0x%08lX ", *((unsigned long *)buff_addr + i));\ 56 uint32_t i = 0;\ 61 while ((i+3)<buffSize) {\ [all …]
|
/trusted-firmware-m-3.6.0/platform/ext/target/arm/corstone1000/partition/ |
D | partition.c | 32 int i, j, len; in dump_entries() local 35 for (i = 0; i < num; i++) { in dump_entries() 36 len = snprintf(name, EFI_NAMELEN, "%s", list.list[i].name); in dump_entries() 41 VERBOSE("%d: %s %x%x %d", i + 1, name, in dump_entries() 42 (uint32_t)(list.list[i].start >> 32), in dump_entries() 43 (uint32_t)list.list[i].start, in dump_entries() 44 (uint32_t)(list.list[i].start + list.list[i].length - 4)); in dump_entries() 168 int i; in load_mbr_entries() local 172 for (i = 0; i < list.entry_count; i++) { in load_mbr_entries() 173 load_mbr_entry(image_handle, &mbr_entry, i); in load_mbr_entries() [all …]
|
/trusted-firmware-m-3.6.0/secure_fw/partitions/crypto/ |
D | crypto_init.c | 66 uint32_t i; in tfm_crypto_init_iovecs() local 69 for (i = 1; i < in_len; i++) { in tfm_crypto_init_iovecs() 70 in_vec[i].len = msg->in_size[i]; in tfm_crypto_init_iovecs() 71 if (in_vec[i].len != 0) { in tfm_crypto_init_iovecs() 72 in_vec[i].base = psa_map_invec(msg->handle, i); in tfm_crypto_init_iovecs() 74 in_vec[i].base = NULL; in tfm_crypto_init_iovecs() 78 for (i = 0; i < out_len; i++) { in tfm_crypto_init_iovecs() 79 out_vec[i].len = msg->out_size[i]; in tfm_crypto_init_iovecs() 80 if (out_vec[i].len != 0) { in tfm_crypto_init_iovecs() 81 out_vec[i].base = psa_map_outvec(msg->handle, i); in tfm_crypto_init_iovecs() [all …]
|
/trusted-firmware-m-3.6.0/secure_fw/spm/core/ |
D | psa_call_api.c | 28 int i, j; in spm_associate_call_params() local 93 for (i = 0; i + 1 < ivec_num; i++) { in spm_associate_call_params() 94 for (j = i + 1; j < ivec_num; j++) { in spm_associate_call_params() 96 (char *) ivecs_local[i].base || in spm_associate_call_params() 98 (char *) ivecs_local[i].base + ivecs_local[i].len)) { in spm_associate_call_params() 113 for (i = 0; i < ivec_num; i++) { in spm_associate_call_params() 115 curr_partition->boundary, (uintptr_t)ivecs_local[i].base, in spm_associate_call_params() 116 ivecs_local[i].len, TFM_HAL_ACCESS_READABLE | ns_access); in spm_associate_call_params() 121 p_connection->msg.in_size[i] = ivecs_local[i].len; in spm_associate_call_params() 122 p_connection->invec_base[i] = ivecs_local[i].base; in spm_associate_call_params() [all …]
|
/trusted-firmware-m-3.6.0/platform/ext/target/arm/rss/common/rss_comms/ |
D | rss_comms_protocol_embed.c | 19 uint32_t i; in rss_protocol_embed_deserialize_msg() local 36 for (i = 0; i < req->in_len; ++i) { in rss_protocol_embed_deserialize_msg() 37 req->in_vec[i].base = req->param_copy_buf + payload_size; in rss_protocol_embed_deserialize_msg() 38 req->in_vec[i].len = msg->io_size[i]; in rss_protocol_embed_deserialize_msg() 39 payload_size += msg->io_size[i]; in rss_protocol_embed_deserialize_msg() 53 for (i = 0; i < req->out_len; ++i) { in rss_protocol_embed_deserialize_msg() 54 req->out_vec[i].base = req->param_copy_buf + payload_size; in rss_protocol_embed_deserialize_msg() 55 req->out_vec[i].len = msg->io_size[req->in_len + i]; in rss_protocol_embed_deserialize_msg() 56 payload_size += msg->io_size[req->in_len + i]; in rss_protocol_embed_deserialize_msg() 73 uint32_t i; in rss_protocol_embed_serialize_reply() local [all …]
|
/trusted-firmware-m-3.6.0/platform/ext/target/stm/common/hal/accelerator/ |
D | gcm_alt.c | 59 #define GET_UINT32_BE(n,b,i) \ argument 61 (n) = ( (uint32_t) (b)[(i) ] << 24 ) \ 62 | ( (uint32_t) (b)[(i) + 1] << 16 ) \ 63 | ( (uint32_t) (b)[(i) + 2] << 8 ) \ 64 | ( (uint32_t) (b)[(i) + 3] ); \ 69 #define PUT_UINT32_BE(n,b,i) \ argument 71 (b)[(i) ] = (unsigned char) ( (n) >> 24 ); \ 72 (b)[(i) + 1] = (unsigned char) ( (n) >> 16 ); \ 73 (b)[(i) + 2] = (unsigned char) ( (n) >> 8 ); \ 74 (b)[(i) + 3] = (unsigned char) ( (n) ); \ [all …]
|
/trusted-firmware-m-3.6.0/bl2/src/ |
D | flash_map.c | 71 int i; in flash_area_driver_init() local 73 for (i = 0; i < flash_driver_entry_num; i++) { in flash_area_driver_init() 74 if (flash_driver[i]->Initialize(NULL) != ARM_DRIVER_OK) in flash_area_driver_init() 86 int i; in flash_area_open() local 90 for (i = 0; i < flash_map_entry_num; i++) { in flash_area_open() 91 if (id == flash_map[i].fa_id) { in flash_area_open() 95 if (i == flash_map_entry_num) { in flash_area_open() 99 *area = &flash_map[i]; in flash_area_open() 125 uint8_t data_width, i = 0, j; in flash_area_read() local 177 for (i = 0; i < read_length; i++) { in flash_area_read() [all …]
|
/trusted-firmware-m-3.6.0/platform/ext/target/stm/common/stm32u5xx/hal/Src/ |
D | stm32u5xx_hal_gtzc.c | 342 uint32_t i; in HAL_GTZC_TZSC_GetConfigPeriphAttributes() local 361 for (i = 0U; i < 32U; i++) in HAL_GTZC_TZSC_GetConfigPeriphAttributes() 363 if (((reg_value & (1UL << i)) >> i) != 0U) in HAL_GTZC_TZSC_GetConfigPeriphAttributes() 365 PeriphAttributes[i] = GTZC_TZSC_PERIPH_SEC; in HAL_GTZC_TZSC_GetConfigPeriphAttributes() 369 PeriphAttributes[i] = GTZC_TZSC_PERIPH_NSEC; in HAL_GTZC_TZSC_GetConfigPeriphAttributes() 374 for (i = 32U; i < 64U; i++) in HAL_GTZC_TZSC_GetConfigPeriphAttributes() 376 if (((reg_value & (1UL << (i - 32U))) >> (i - 32U)) != 0U) in HAL_GTZC_TZSC_GetConfigPeriphAttributes() 378 PeriphAttributes[i] = GTZC_TZSC_PERIPH_SEC; in HAL_GTZC_TZSC_GetConfigPeriphAttributes() 382 PeriphAttributes[i] = GTZC_TZSC_PERIPH_NSEC; in HAL_GTZC_TZSC_GetConfigPeriphAttributes() 387 for (i = 64U; i < 96U; i++) in HAL_GTZC_TZSC_GetConfigPeriphAttributes() [all …]
|
/trusted-firmware-m-3.6.0/lib/ext/cryptocell-312-runtime/host/src/tests/TestAL/pal/linux/ |
D | test_pal_log.c | 112 unsigned int i = 0; in Test_PalPrintByteBuff() local 116 for (i = 0; i < size; i++) { in Test_PalPrintByteBuff() 117 if (!(i%16)) in Test_PalPrintByteBuff() 120 (unsigned char)(*((unsigned char *)buff+i))); in Test_PalPrintByteBuff() 130 unsigned int i = 0; in Test_PalFprintByteBuff() local 134 for (i = 0; i < size; i++) { in Test_PalFprintByteBuff() 135 if (!(i%16)) in Test_PalFprintByteBuff() 138 (unsigned char)(*((unsigned char *)buff+i))); in Test_PalFprintByteBuff() 147 int i = 0; in Test_PalFprintfByteBuffMax() local 154 for (i = 0; i < minSize; i++) { in Test_PalFprintfByteBuffMax() [all …]
|
/trusted-firmware-m-3.6.0/platform/ext/target/stm/common/stm32h5xx/hal/Src/ |
D | stm32h5xx_hal_gtzc.c | 351 uint32_t i; in HAL_GTZC_TZSC_GetConfigPeriphAttributes() local 371 for (i = 0U; i < 32U; i++) in HAL_GTZC_TZSC_GetConfigPeriphAttributes() 373 if(((reg_value & (1UL << i)) >> i) != 0U) in HAL_GTZC_TZSC_GetConfigPeriphAttributes() 375 PeriphAttributes[i] = GTZC_TZSC_PERIPH_SEC; in HAL_GTZC_TZSC_GetConfigPeriphAttributes() 379 PeriphAttributes[i] = GTZC_TZSC_PERIPH_NSEC; in HAL_GTZC_TZSC_GetConfigPeriphAttributes() 384 for (i = 32U; i < 64U; i++) in HAL_GTZC_TZSC_GetConfigPeriphAttributes() 386 if(((reg_value & (1UL << (i - 32U))) >> (i - 32U)) != 0U) in HAL_GTZC_TZSC_GetConfigPeriphAttributes() 388 PeriphAttributes[i] = GTZC_TZSC_PERIPH_SEC; in HAL_GTZC_TZSC_GetConfigPeriphAttributes() 392 PeriphAttributes[i] = GTZC_TZSC_PERIPH_NSEC; in HAL_GTZC_TZSC_GetConfigPeriphAttributes() 397 for (i = 64U; i < GTZC_TZSC_PERIPH_NUMBER; i++) in HAL_GTZC_TZSC_GetConfigPeriphAttributes() [all …]
|
/trusted-firmware-m-3.6.0/lib/ext/cryptocell-312-runtime/codesafe/src/secure_boot_debug/crypto_driver/reg/ |
D | crypto_driver.c | 48 int32_t i = 0; in SBROM_CryptoInitDriver() local 72 for (i=0; i<4; i++){ in SBROM_CryptoInitDriver() 74 SB_HAL_WRITE_REGISTER(address, keyPtr[i]); in SBROM_CryptoInitDriver() 84 for (i=0; i<4; i++){ in SBROM_CryptoInitDriver() 97 for (i=0; i<4; i++){ in SBROM_CryptoInitDriver() 98 SB_HAL_WRITE_REGISTER(address, ivPtr[i]); in SBROM_CryptoInitDriver() 122 for (i=0; i<2; i++){ in SBROM_CryptoInitDriver() 132 for (i=HASH_DIGEST_SIZE_IN_WORDS-1; i>=0; i--){ in SBROM_CryptoInitDriver() 133 SB_HAL_WRITE_REGISTER(address, HASH_LARVAL_SHA256[i]); in SBROM_CryptoInitDriver() 263 int32_t i = 0; in SBROM_CryptoFinishDriver() local [all …]
|
/trusted-firmware-m-3.6.0/lib/ext/cryptocell-312-runtime/host/src/tests/proj/cc3x/cc312_r1/ |
D | test_proj_otp.c | 31 uint32_t i = 0; in Test_ProjWriteOtpField() local 33 for (i = 0; i < sizeWords; i++) { in Test_ProjWriteOtpField() 34 Test_ProjWriteOtpWord(offsetInWords + i, buff[i]); in Test_ProjWriteOtpField() 176 uint32_t i = 0; in Test_ProjBurnOtpPlain() local 181 for (i = 0; i < TEST_OTP_SIZE_IN_WORDS; i++) { in Test_ProjBurnOtpPlain() 182 Test_ProjWriteOtpWord(i, 0); in Test_ProjBurnOtpPlain() 190 for (i = 0; i < TEST_OTP_SIZE_IN_WORDS; i++) { in Test_ProjBurnOtpPlain() 191 TEST_PRINTF("writing Otp [0x%X] 0x%X", i, otpBuf[i]); in Test_ProjBurnOtpPlain() 192 Test_ProjWriteOtpWord(i, otpBuf[i]); in Test_ProjBurnOtpPlain() 214 uint32_t i = 0; in Test_ProjBurnOtp() local [all …]
|
/trusted-firmware-m-3.6.0/lib/ext/cryptocell-312-runtime/host/src/tests/integration_cc3x/runtime_integration_test/ |
D | run_integration_otp.c | 55 int i = 0;\ 59 for (i = 0; i< buffWordSize; i++) {\ 62 if (!(*(wordBuf+i) & (mask << j))) {\ 117 unsigned int i = 0; in runIt_burnOtp() local 124 for (i = 0; i < TEST_OTP_SIZE_IN_WORDS; i++) in runIt_burnOtp() 126 RUNIT_WRITE_OTP(i, otpBuf[i]); in runIt_burnOtp() 127 RUNIT_PRINT_DBG("0x%02x: 0x%08X\n", i, otpBuf[i]); in runIt_burnOtp()
|
/trusted-firmware-m-3.6.0/platform/ext/accelerator/cc312/psa-adac/ |
D | adac_crypto_cc312_hash.c | 22 for (size_t i = 0; i < la; i++) { in hash_check() local 23 chk |= (uint8_t) (a[i] ^ b[i]); in hash_check() 62 for (size_t i = 0; (i < input_count) && (status == PSA_SUCCESS); i++) { in psa_adac_hash_multiple() local 63 status = mbedtls_sha256_update(&ctx, inputs[i], input_sizes[i]) == 0 ? in psa_adac_hash_multiple() 84 for (size_t i = 0; (i < input_count) && (status == PSA_SUCCESS); i++) { in psa_adac_hash_multiple() local 85 status = mbedtls_sha512_update_ret(&ctx, inputs[i], input_sizes[i]) == 0 ? in psa_adac_hash_multiple() 143 for (size_t i = 0; i < hash_count; i++) { in psa_adac_hash_verify_multiple() local 144 status = hash_check(hash[i], hash_size[i], computed_hash, len); in psa_adac_hash_verify_multiple()
|
/trusted-firmware-m-3.6.0/platform/ext/target/stm/common/stm32h5xx/bl2/ |
D | low_level_security.c | 700 uint32_t i; in LL_SECU_CheckStaticProtections() local 821 for (i = (start/4); i <= (end/4); i++) in LL_SECU_CheckStaticProtections() 823 val |= (1 << i); in LL_SECU_CheckStaticProtections() 946 for (i = 0U; i < NB_PRODUCT_STATE; i++) in LL_SECU_CheckStaticProtections() 948 if (ProductStatePrioList[i] == TFM_OB_PRODUCT_STATE_VALUE) in LL_SECU_CheckStaticProtections() 953 if (i >= NB_PRODUCT_STATE) in LL_SECU_CheckStaticProtections() 958 for (; i < NB_PRODUCT_STATE; i++) in LL_SECU_CheckStaticProtections() 960 if (ProductStatePrioList[i] == flash_option_bytes_bank1.ProductState) in LL_SECU_CheckStaticProtections() 965 if (i >= NB_PRODUCT_STATE) in LL_SECU_CheckStaticProtections() 1232 uint32_t i = 0U; in sau_init_cfg() local [all …]
|
/trusted-firmware-m-3.6.0/platform/ext/target/stm/common/stm32l5xx/hal/Src/ |
D | stm32l5xx_hal_gtzc.c | 321 uint32_t i; in HAL_GTZC_TZSC_GetConfigPeriphAttributes() local 339 for (i = 0U; i < 32U; i++) in HAL_GTZC_TZSC_GetConfigPeriphAttributes() 341 if (((reg_value & (1UL << i)) >> i) != 0U) in HAL_GTZC_TZSC_GetConfigPeriphAttributes() 343 PeriphAttributes[i] = GTZC_TZSC_PERIPH_SEC; in HAL_GTZC_TZSC_GetConfigPeriphAttributes() 347 PeriphAttributes[i] = GTZC_TZSC_PERIPH_NSEC; in HAL_GTZC_TZSC_GetConfigPeriphAttributes() 352 for (/*i = 32U*/; i < GTZC_TZSC_PERIPH_NUMBER; i++) in HAL_GTZC_TZSC_GetConfigPeriphAttributes() 354 if (((reg_value & (1UL << (i - 32U))) >> (i - 32U)) != 0U) in HAL_GTZC_TZSC_GetConfigPeriphAttributes() 356 PeriphAttributes[i] = GTZC_TZSC_PERIPH_SEC; in HAL_GTZC_TZSC_GetConfigPeriphAttributes() 360 PeriphAttributes[i] = GTZC_TZSC_PERIPH_NSEC; in HAL_GTZC_TZSC_GetConfigPeriphAttributes() 368 for (i = 0U; i < 32U; i++) in HAL_GTZC_TZSC_GetConfigPeriphAttributes() [all …]
|