/trusted-firmware-m-3.4.0/bl1/bl1_1/shared_lib/otp/ |
D | otp_default.c | 28 enum tfm_plat_err_t plat_err; in bl1_otp_init() local 30 plat_err = tfm_plat_otp_init(); in bl1_otp_init() 31 fih_rc = fih_int_encode_zero_equality(plat_err); in bl1_otp_init() 33 plat_err = tfm_plat_init_nv_counter(); in bl1_otp_init() 34 fih_rc = fih_int_encode_zero_equality(plat_err); in bl1_otp_init() 42 enum tfm_plat_err_t plat_err; in bl1_otp_read_bl1_2_image_hash() local 44 plat_err = tfm_plat_otp_read(PLAT_OTP_ID_BL1_2_IMAGE_HASH, BL1_2_HASH_SIZE, in bl1_otp_read_bl1_2_image_hash() 46 fih_rc = fih_int_encode_zero_equality(plat_err); in bl1_otp_read_bl1_2_image_hash() 54 enum tfm_plat_err_t plat_err; in bl1_otp_read_bl2_image_hash() local 56 plat_err = tfm_plat_otp_read(PLAT_OTP_ID_BL2_IMAGE_HASH, BL2_HASH_SIZE, in bl1_otp_read_bl2_image_hash() [all …]
|
/trusted-firmware-m-3.4.0/platform/ext/target/arm/rss/common/ |
D | tfm_hal_platform.c | 19 enum tfm_plat_err_t plat_err = TFM_PLAT_ERR_SYSTEM_ERR; in tfm_hal_platform_init() local 21 plat_err = enable_fault_handlers(); in tfm_hal_platform_init() 22 if (plat_err != TFM_PLAT_ERR_SUCCESS) { in tfm_hal_platform_init() 26 plat_err = system_reset_cfg(); in tfm_hal_platform_init() 27 if (plat_err != TFM_PLAT_ERR_SUCCESS) { in tfm_hal_platform_init() 31 plat_err = init_debug(); in tfm_hal_platform_init() 32 if (plat_err != TFM_PLAT_ERR_SUCCESS) { in tfm_hal_platform_init() 39 plat_err = nvic_interrupt_target_state_cfg(); in tfm_hal_platform_init() 40 if (plat_err != TFM_PLAT_ERR_SUCCESS) { in tfm_hal_platform_init() 44 plat_err = nvic_interrupt_enable(); in tfm_hal_platform_init() [all …]
|
D | crypto_keys.c | 367 enum tfm_plat_err_t plat_err; in tfm_plat_load_builtin_keys() local 376 plat_err = tfm_plat_get_huk(buf, sizeof(buf), &key_len, &key_bits, in tfm_plat_load_builtin_keys() 378 if (plat_err != TFM_PLAT_ERR_SUCCESS) { in tfm_plat_load_builtin_keys() 379 return plat_err; in tfm_plat_load_builtin_keys() 393 plat_err = tfm_plat_get_iak(buf, sizeof(buf), &key_len, &key_bits, in tfm_plat_load_builtin_keys() 395 if (plat_err != TFM_PLAT_ERR_SUCCESS) { in tfm_plat_load_builtin_keys() 411 plat_err = tfm_plat_get_dak_seed(buf, sizeof(buf), &key_len, &key_bits, in tfm_plat_load_builtin_keys() 413 if (plat_err != TFM_PLAT_ERR_SUCCESS) { in tfm_plat_load_builtin_keys() 414 return plat_err; in tfm_plat_load_builtin_keys() 429 plat_err = tfm_plat_get_host_s_rotpk(buf, sizeof(buf), &key_len, &key_bits, in tfm_plat_load_builtin_keys() [all …]
|
/trusted-firmware-m-3.4.0/platform/ext/target/arm/mps3/corstone310/common/ |
D | tfm_hal_platform.c | 20 enum tfm_plat_err_t plat_err = TFM_PLAT_ERR_SYSTEM_ERR; in tfm_hal_platform_init() local 23 plat_err = enable_fault_handlers(); in tfm_hal_platform_init() 24 if (plat_err != TFM_PLAT_ERR_SUCCESS) { in tfm_hal_platform_init() 28 plat_err = system_reset_cfg(); in tfm_hal_platform_init() 29 if (plat_err != TFM_PLAT_ERR_SUCCESS) { in tfm_hal_platform_init() 33 plat_err = init_debug(); in tfm_hal_platform_init() 34 if (plat_err != TFM_PLAT_ERR_SUCCESS) { in tfm_hal_platform_init() 48 plat_err = nvic_interrupt_target_state_cfg(); in tfm_hal_platform_init() 49 if (plat_err != TFM_PLAT_ERR_SUCCESS) { in tfm_hal_platform_init() 53 plat_err = nvic_interrupt_enable(); in tfm_hal_platform_init() [all …]
|
/trusted-firmware-m-3.4.0/platform/ext/target/arm/mps2/an519/ |
D | tfm_hal_platform.c | 18 enum tfm_plat_err_t plat_err = TFM_PLAT_ERR_SYSTEM_ERR; in tfm_hal_platform_init() local 20 plat_err = enable_fault_handlers(); in tfm_hal_platform_init() 21 if (plat_err != TFM_PLAT_ERR_SUCCESS) { in tfm_hal_platform_init() 25 plat_err = system_reset_cfg(); in tfm_hal_platform_init() 26 if (plat_err != TFM_PLAT_ERR_SUCCESS) { in tfm_hal_platform_init() 30 plat_err = init_debug(); in tfm_hal_platform_init() 31 if (plat_err != TFM_PLAT_ERR_SUCCESS) { in tfm_hal_platform_init() 38 plat_err = nvic_interrupt_target_state_cfg(); in tfm_hal_platform_init() 39 if (plat_err != TFM_PLAT_ERR_SUCCESS) { in tfm_hal_platform_init() 43 plat_err = nvic_interrupt_enable(); in tfm_hal_platform_init() [all …]
|
/trusted-firmware-m-3.4.0/platform/ext/target/arm/mps3/an524/ |
D | tfm_hal_platform.c | 18 enum tfm_plat_err_t plat_err = TFM_PLAT_ERR_SYSTEM_ERR; in tfm_hal_platform_init() local 20 plat_err = enable_fault_handlers(); in tfm_hal_platform_init() 21 if (plat_err != TFM_PLAT_ERR_SUCCESS) { in tfm_hal_platform_init() 25 plat_err = system_reset_cfg(); in tfm_hal_platform_init() 26 if (plat_err != TFM_PLAT_ERR_SUCCESS) { in tfm_hal_platform_init() 30 plat_err = init_debug(); in tfm_hal_platform_init() 31 if (plat_err != TFM_PLAT_ERR_SUCCESS) { in tfm_hal_platform_init() 38 plat_err = nvic_interrupt_target_state_cfg(); in tfm_hal_platform_init() 39 if (plat_err != TFM_PLAT_ERR_SUCCESS) { in tfm_hal_platform_init() 43 plat_err = nvic_interrupt_enable(); in tfm_hal_platform_init() [all …]
|
/trusted-firmware-m-3.4.0/platform/ext/target/nxp/common/ |
D | tfm_hal_platform.c | 18 enum tfm_plat_err_t plat_err = TFM_PLAT_ERR_SYSTEM_ERR; in tfm_hal_platform_init() local 20 plat_err = enable_fault_handlers(); in tfm_hal_platform_init() 21 if (plat_err != TFM_PLAT_ERR_SUCCESS) { in tfm_hal_platform_init() 25 plat_err = system_reset_cfg(); in tfm_hal_platform_init() 26 if (plat_err != TFM_PLAT_ERR_SUCCESS) { in tfm_hal_platform_init() 30 plat_err = init_debug(); in tfm_hal_platform_init() 31 if (plat_err != TFM_PLAT_ERR_SUCCESS) { in tfm_hal_platform_init() 38 plat_err = nvic_interrupt_target_state_cfg(); in tfm_hal_platform_init() 39 if (plat_err != TFM_PLAT_ERR_SUCCESS) { in tfm_hal_platform_init() 43 plat_err = nvic_interrupt_enable(); in tfm_hal_platform_init() [all …]
|
/trusted-firmware-m-3.4.0/platform/ext/target/nordic_nrf/common/core/ |
D | tfm_hal_platform_common.c | 17 enum tfm_plat_err_t plat_err = TFM_PLAT_ERR_SYSTEM_ERR; in tfm_hal_platform_common_init() local 19 plat_err = enable_fault_handlers(); in tfm_hal_platform_common_init() 20 if (plat_err != TFM_PLAT_ERR_SUCCESS) { in tfm_hal_platform_common_init() 24 plat_err = system_reset_cfg(); in tfm_hal_platform_common_init() 25 if (plat_err != TFM_PLAT_ERR_SUCCESS) { in tfm_hal_platform_common_init() 29 plat_err = init_debug(); in tfm_hal_platform_common_init() 30 if (plat_err != TFM_PLAT_ERR_SUCCESS) { in tfm_hal_platform_common_init() 39 plat_err = nvic_interrupt_target_state_cfg(); in tfm_hal_platform_common_init() 40 if (plat_err != TFM_PLAT_ERR_SUCCESS) { in tfm_hal_platform_common_init() 44 plat_err = nvic_interrupt_enable(); in tfm_hal_platform_common_init() [all …]
|
/trusted-firmware-m-3.4.0/platform/ext/target/arm/musca_s1/ |
D | tfm_hal_platform.c | 24 enum tfm_plat_err_t plat_err = TFM_PLAT_ERR_SYSTEM_ERR; in tfm_hal_platform_init() local 30 plat_err = enable_fault_handlers(); in tfm_hal_platform_init() 31 if (plat_err != TFM_PLAT_ERR_SUCCESS) { in tfm_hal_platform_init() 35 plat_err = system_reset_cfg(); in tfm_hal_platform_init() 36 if (plat_err != TFM_PLAT_ERR_SUCCESS) { in tfm_hal_platform_init() 40 plat_err = init_debug(); in tfm_hal_platform_init() 41 if (plat_err != TFM_PLAT_ERR_SUCCESS) { in tfm_hal_platform_init() 48 plat_err = nvic_interrupt_target_state_cfg(); in tfm_hal_platform_init() 49 if (plat_err != TFM_PLAT_ERR_SUCCESS) { in tfm_hal_platform_init() 53 plat_err = nvic_interrupt_enable(); in tfm_hal_platform_init() [all …]
|
/trusted-firmware-m-3.4.0/platform/ext/target/arm/mps3/an547/ |
D | tfm_hal_platform.c | 19 enum tfm_plat_err_t plat_err = TFM_PLAT_ERR_SYSTEM_ERR; in tfm_hal_platform_init() local 22 plat_err = enable_fault_handlers(); in tfm_hal_platform_init() 23 if (plat_err != TFM_PLAT_ERR_SUCCESS) { in tfm_hal_platform_init() 27 plat_err = system_reset_cfg(); in tfm_hal_platform_init() 28 if (plat_err != TFM_PLAT_ERR_SUCCESS) { in tfm_hal_platform_init() 32 plat_err = init_debug(); in tfm_hal_platform_init() 33 if (plat_err != TFM_PLAT_ERR_SUCCESS) { in tfm_hal_platform_init() 48 plat_err = nvic_interrupt_target_state_cfg(); in tfm_hal_platform_init() 49 if (plat_err != TFM_PLAT_ERR_SUCCESS) { in tfm_hal_platform_init() 53 plat_err = nvic_interrupt_enable(); in tfm_hal_platform_init() [all …]
|
/trusted-firmware-m-3.4.0/platform/ext/target/arm/mps3/an552/ |
D | tfm_hal_platform.c | 23 enum tfm_plat_err_t plat_err = TFM_PLAT_ERR_SYSTEM_ERR; in tfm_hal_platform_init() local 26 plat_err = enable_fault_handlers(); in tfm_hal_platform_init() 27 if (plat_err != TFM_PLAT_ERR_SUCCESS) { in tfm_hal_platform_init() 31 plat_err = system_reset_cfg(); in tfm_hal_platform_init() 32 if (plat_err != TFM_PLAT_ERR_SUCCESS) { in tfm_hal_platform_init() 36 plat_err = init_debug(); in tfm_hal_platform_init() 37 if (plat_err != TFM_PLAT_ERR_SUCCESS) { in tfm_hal_platform_init() 52 plat_err = nvic_interrupt_target_state_cfg(); in tfm_hal_platform_init() 53 if (plat_err != TFM_PLAT_ERR_SUCCESS) { in tfm_hal_platform_init() 57 plat_err = nvic_interrupt_enable(); in tfm_hal_platform_init() [all …]
|
/trusted-firmware-m-3.4.0/platform/ext/target/nuvoton/common/ |
D | tfm_hal_platform.c | 22 enum tfm_plat_err_t plat_err = TFM_PLAT_ERR_SYSTEM_ERR; in tfm_hal_platform_init() local 27 plat_err = enable_fault_handlers(); in tfm_hal_platform_init() 28 if (plat_err != TFM_PLAT_ERR_SUCCESS) { in tfm_hal_platform_init() 32 plat_err = system_reset_cfg(); in tfm_hal_platform_init() 33 if (plat_err != TFM_PLAT_ERR_SUCCESS) { in tfm_hal_platform_init() 43 plat_err = init_debug(); in tfm_hal_platform_init() 44 if (plat_err != TFM_PLAT_ERR_SUCCESS) { in tfm_hal_platform_init() 52 plat_err = nvic_interrupt_target_state_cfg(); in tfm_hal_platform_init() 53 if (plat_err != TFM_PLAT_ERR_SUCCESS) { in tfm_hal_platform_init() 57 plat_err = nvic_interrupt_enable(); in tfm_hal_platform_init() [all …]
|
/trusted-firmware-m-3.4.0/platform/ext/target/arm/musca_b1/ |
D | tfm_hal_platform.c | 20 enum tfm_plat_err_t plat_err = TFM_PLAT_ERR_SYSTEM_ERR; in tfm_hal_platform_init() local 22 plat_err = enable_fault_handlers(); in tfm_hal_platform_init() 23 if (plat_err != TFM_PLAT_ERR_SUCCESS) { in tfm_hal_platform_init() 27 plat_err = system_reset_cfg(); in tfm_hal_platform_init() 28 if (plat_err != TFM_PLAT_ERR_SUCCESS) { in tfm_hal_platform_init() 32 plat_err = init_debug(); in tfm_hal_platform_init() 33 if (plat_err != TFM_PLAT_ERR_SUCCESS) { in tfm_hal_platform_init() 40 plat_err = nvic_interrupt_target_state_cfg(); in tfm_hal_platform_init() 41 if (plat_err != TFM_PLAT_ERR_SUCCESS) { in tfm_hal_platform_init() 45 plat_err = nvic_interrupt_enable(); in tfm_hal_platform_init() [all …]
|
/trusted-firmware-m-3.4.0/platform/ext/target/arm/mps2/an521/ |
D | tfm_hal_platform.c | 21 enum tfm_plat_err_t plat_err = TFM_PLAT_ERR_SYSTEM_ERR; in tfm_hal_platform_init() local 24 plat_err = enable_fault_handlers(); in tfm_hal_platform_init() 25 if (plat_err != TFM_PLAT_ERR_SUCCESS) { in tfm_hal_platform_init() 29 plat_err = system_reset_cfg(); in tfm_hal_platform_init() 30 if (plat_err != TFM_PLAT_ERR_SUCCESS) { in tfm_hal_platform_init() 42 plat_err = nvic_interrupt_target_state_cfg(); in tfm_hal_platform_init() 43 if (plat_err != TFM_PLAT_ERR_SUCCESS) { in tfm_hal_platform_init() 47 plat_err = nvic_interrupt_enable(); in tfm_hal_platform_init() 48 if (plat_err != TFM_PLAT_ERR_SUCCESS) { in tfm_hal_platform_init()
|
/trusted-firmware-m-3.4.0/platform/ext/target/cypress/psoc64/ |
D | tfm_hal_platform.c | 53 enum tfm_plat_err_t plat_err = TFM_PLAT_ERR_SYSTEM_ERR; in tfm_hal_platform_init() local 68 plat_err = nvic_interrupt_target_state_cfg(); in tfm_hal_platform_init() 69 if (plat_err != TFM_PLAT_ERR_SUCCESS) { in tfm_hal_platform_init() 73 plat_err = nvic_interrupt_enable(); in tfm_hal_platform_init() 74 if (plat_err != TFM_PLAT_ERR_SUCCESS) { in tfm_hal_platform_init()
|
/trusted-firmware-m-3.4.0/secure_fw/spm/cmsis_psa/ |
D | main.c | 26 enum tfm_plat_err_t plat_err = TFM_PLAT_ERR_SYSTEM_ERR; in tfm_core_init() local 49 plat_err = tfm_plat_otp_init(); in tfm_core_init() 50 if (plat_err != TFM_PLAT_ERR_SUCCESS) { in tfm_core_init() 56 plat_err = tfm_plat_provisioning_perform(); in tfm_core_init() 57 if (plat_err != TFM_PLAT_ERR_SUCCESS) { in tfm_core_init()
|
/trusted-firmware-m-3.4.0/platform/ext/target/arm/corstone1000/ |
D | boot_hal_bl2.c | 122 enum tfm_plat_err_t plat_err; in boot_platform_post_init() local 131 plat_err = tfm_plat_otp_init(); in boot_platform_post_init() 132 if (plat_err != TFM_PLAT_ERR_SUCCESS) { in boot_platform_post_init() 140 plat_err = tfm_plat_otp_read(PLAT_OTP_ID_SECURE_DEBUG_PK, 32, secure_debug_rotpk); in boot_platform_post_init() 141 if (plat_err != TFM_PLAT_ERR_SUCCESS) { in boot_platform_post_init() 142 return plat_err; in boot_platform_post_init()
|
/trusted-firmware-m-3.4.0/bl1/bl1_1/lib/ |
D | image_otp.c | 16 enum tfm_plat_err_t plat_err; in bl1_read_bl1_2_image() local 18 plat_err = tfm_plat_otp_read(PLAT_OTP_ID_BL1_2_IMAGE, BL1_2_CODE_SIZE, in bl1_read_bl1_2_image() 20 fih_rc = fih_int_encode_zero_equality(plat_err); in bl1_read_bl1_2_image()
|
/trusted-firmware-m-3.4.0/secure_fw/partitions/crypto/ |
D | tfm_mbedcrypto_builtin_keys.c | 22 enum tfm_plat_err_t plat_err; in mbedtls_psa_platform_get_builtin_key() local 24 plat_err = tfm_plat_builtin_key_get_lifetime_and_slot(key_id, lifetime, in mbedtls_psa_platform_get_builtin_key() 26 if (plat_err != TFM_PLAT_ERR_SUCCESS) { in mbedtls_psa_platform_get_builtin_key()
|
/trusted-firmware-m-3.4.0/bl2/ext/mcuboot/ |
D | bl2_main.c | 93 enum tfm_plat_err_t plat_err; in main() local 113 plat_err = tfm_plat_otp_init(); in main() 114 if (plat_err != TFM_PLAT_ERR_SUCCESS) { in main() 120 plat_err = tfm_plat_provisioning_perform(); in main() 121 if (plat_err != TFM_PLAT_ERR_SUCCESS) { in main()
|
/trusted-firmware-m-3.4.0/platform/ext/target/stm/common/stm32u5xx/secure/ |
D | tfm_hal_platform.c | 18 enum tfm_plat_err_t plat_err = TFM_PLAT_ERR_SYSTEM_ERR; in tfm_hal_platform_init() local 23 plat_err = nvic_interrupt_target_state_cfg(); in tfm_hal_platform_init() 24 if (plat_err != TFM_PLAT_ERR_SUCCESS) { in tfm_hal_platform_init()
|
/trusted-firmware-m-3.4.0/platform/ext/target/stm/common/stm32l5xx/secure/ |
D | tfm_hal_platform.c | 18 enum tfm_plat_err_t plat_err = TFM_PLAT_ERR_SYSTEM_ERR; in tfm_hal_platform_init() local 23 plat_err = nvic_interrupt_target_state_cfg(); in tfm_hal_platform_init() 24 if (plat_err != TFM_PLAT_ERR_SUCCESS) { in tfm_hal_platform_init()
|
/trusted-firmware-m-3.4.0/platform/ext/common/template/ |
D | crypto_keys.c | 183 enum tfm_plat_err_t plat_err; in tfm_plat_load_builtin_keys() local 191 plat_err = tfm_plat_get_huk(buf, sizeof(buf), &key_len, &key_bits, in tfm_plat_load_builtin_keys() 193 if (plat_err != TFM_PLAT_ERR_SUCCESS) { in tfm_plat_load_builtin_keys() 194 return plat_err; in tfm_plat_load_builtin_keys() 208 plat_err = tfm_plat_get_iak(buf, sizeof(buf), &key_len, &key_bits, in tfm_plat_load_builtin_keys() 210 if (plat_err != TFM_PLAT_ERR_SUCCESS) { in tfm_plat_load_builtin_keys()
|
D | crypto_nv_seed.c | 14 enum tfm_plat_err_t plat_err; in tfm_plat_crypto_provision_entropy_seed() local 24 plat_err = tfm_plat_otp_read(PLAT_OTP_ID_ENTROPY_SEED, sizeof(buf), buf); in tfm_plat_crypto_provision_entropy_seed() 25 if(plat_err != TFM_PLAT_ERR_SUCCESS) { in tfm_plat_crypto_provision_entropy_seed()
|
/trusted-firmware-m-3.4.0/platform/ext/target/arm/rss/common/rss_comms/ |
D | rss_comms.c | 25 enum tfm_plat_err_t plat_err; in message_dispatch() local 67 plat_err = comms_permissions_service_check(spm_params.handle, in message_dispatch() 71 if (plat_err != TFM_PLAT_ERR_SUCCESS) { in message_dispatch()
|