Home
last modified time | relevance | path

Searched refs:plat_err (Results 1 – 25 of 34) sorted by relevance

12

/trusted-firmware-m-3.6.0/platform/ext/target/arm/mps3/an524/
Dtfm_hal_platform.c18 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.6.0/platform/ext/target/arm/rss/common/
Dtfm_hal_platform.c26 enum tfm_plat_err_t plat_err = TFM_PLAT_ERR_SYSTEM_ERR; in tfm_hal_platform_init() local
31 plat_err = enable_fault_handlers(); in tfm_hal_platform_init()
32 if (plat_err != TFM_PLAT_ERR_SUCCESS) { in tfm_hal_platform_init()
36 plat_err = system_reset_cfg(); in tfm_hal_platform_init()
37 if (plat_err != TFM_PLAT_ERR_SUCCESS) { in tfm_hal_platform_init()
41 plat_err = init_debug(); in tfm_hal_platform_init()
42 if (plat_err != TFM_PLAT_ERR_SUCCESS) { in tfm_hal_platform_init()
49 plat_err = nvic_interrupt_target_state_cfg(); in tfm_hal_platform_init()
50 if (plat_err != TFM_PLAT_ERR_SUCCESS) { in tfm_hal_platform_init()
54 plat_err = nvic_interrupt_enable(); in tfm_hal_platform_init()
[all …]
/trusted-firmware-m-3.6.0/platform/ext/target/arm/mps3/corstone310/common/
Dtfm_hal_platform.c23 enum tfm_plat_err_t plat_err = TFM_PLAT_ERR_SYSTEM_ERR; in tfm_hal_platform_init() local
29 plat_err = enable_fault_handlers(); in tfm_hal_platform_init()
30 if (plat_err != TFM_PLAT_ERR_SUCCESS) { in tfm_hal_platform_init()
34 plat_err = system_reset_cfg(); in tfm_hal_platform_init()
35 if (plat_err != TFM_PLAT_ERR_SUCCESS) { in tfm_hal_platform_init()
39 plat_err = init_debug(); in tfm_hal_platform_init()
40 if (plat_err != TFM_PLAT_ERR_SUCCESS) { in tfm_hal_platform_init()
54 plat_err = nvic_interrupt_target_state_cfg(); in tfm_hal_platform_init()
55 if (plat_err != TFM_PLAT_ERR_SUCCESS) { in tfm_hal_platform_init()
59 plat_err = nvic_interrupt_enable(); in tfm_hal_platform_init()
[all …]
/trusted-firmware-m-3.6.0/platform/ext/target/nuvoton/common/
Dtfm_hal_platform.c18 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.6.0/platform/ext/target/arm/mps2/an519/
Dtfm_hal_platform.c18 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.6.0/platform/ext/target/nordic_nrf/common/core/
Dtfm_hal_platform_common.c17 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 …]
Dtfm_hal_its_encryption.c187 int plat_err = NRF_CC3XX_PLATFORM_ERROR_INTERNAL; in tfm_hal_its_aead_encrypt() local
207 plat_err = nrf_cc3xx_platform_derived_key_encrypt(&platform_ctx, in tfm_hal_its_aead_encrypt()
214 if (plat_err != NRF_CC3XX_PLATFORM_SUCCESS) { in tfm_hal_its_aead_encrypt()
232 int plat_err = NRF_CC3XX_PLATFORM_ERROR_INTERNAL; in tfm_hal_its_aead_decrypt() local
252 plat_err = nrf_cc3xx_platform_derived_key_decrypt(&platform_ctx, in tfm_hal_its_aead_decrypt()
258 if (plat_err != NRF_CC3XX_PLATFORM_SUCCESS) { in tfm_hal_its_aead_decrypt()
/trusted-firmware-m-3.6.0/platform/ext/target/arm/musca_s1/
Dtfm_hal_platform.c24 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.6.0/platform/ext/target/arm/mps3/corstone300/common/
Dtfm_hal_platform.c23 enum tfm_plat_err_t plat_err = TFM_PLAT_ERR_SYSTEM_ERR; in tfm_hal_platform_init() local
29 plat_err = enable_fault_handlers(); in tfm_hal_platform_init()
30 if (plat_err != TFM_PLAT_ERR_SUCCESS) { in tfm_hal_platform_init()
34 plat_err = system_reset_cfg(); in tfm_hal_platform_init()
35 if (plat_err != TFM_PLAT_ERR_SUCCESS) { in tfm_hal_platform_init()
39 plat_err = init_debug(); in tfm_hal_platform_init()
40 if (plat_err != TFM_PLAT_ERR_SUCCESS) { in tfm_hal_platform_init()
55 plat_err = nvic_interrupt_target_state_cfg(); in tfm_hal_platform_init()
56 if (plat_err != TFM_PLAT_ERR_SUCCESS) { in tfm_hal_platform_init()
60 plat_err = nvic_interrupt_enable(); in tfm_hal_platform_init()
[all …]
/trusted-firmware-m-3.6.0/platform/ext/target/arm/musca_b1/
Dtfm_hal_platform.c20 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.6.0/bl1/bl1_1/shared_lib/otp/
Dotp_default.c28 enum tfm_plat_err_t plat_err; in bl1_otp_read_key() local
32 plat_err = tfm_plat_otp_read(PLAT_OTP_ID_HUK, 32, key_buf); in bl1_otp_read_key()
33 fih_rc = fih_int_encode_zero_equality(plat_err); in bl1_otp_read_key()
36 plat_err = tfm_plat_otp_read(PLAT_OTP_ID_GUK, GUK_SIZE, key_buf); in bl1_otp_read_key()
37 fih_rc = fih_int_encode_zero_equality(plat_err); in bl1_otp_read_key()
40 plat_err = tfm_plat_otp_read(PLAT_OTP_ID_KEY_BL2_ENCRYPTION, 32, in bl1_otp_read_key()
42 fih_rc = fih_int_encode_zero_equality(plat_err); in bl1_otp_read_key()
45 plat_err = tfm_plat_otp_read(PLAT_OTP_ID_BL1_ROTPK_0, 56, key_buf); in bl1_otp_read_key()
46 fih_rc = fih_int_encode_zero_equality(plat_err); in bl1_otp_read_key()
/trusted-firmware-m-3.6.0/platform/ext/target/arm/mps2/an521/
Dtfm_hal_platform.c18 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()
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()
45 if (plat_err != TFM_PLAT_ERR_SUCCESS) { in tfm_hal_platform_init()
/trusted-firmware-m-3.6.0/bl1/bl1_1/lib/
Dimage_otp.c16 enum tfm_plat_err_t plat_err; in bl1_read_bl1_2_image() local
19 plat_err = tfm_plat_otp_read(PLAT_OTP_ID_BL1_2_IMAGE_LEN, sizeof(bl1_2_len), in bl1_read_bl1_2_image()
21 fih_rc = fih_int_encode_zero_equality(plat_err); in bl1_read_bl1_2_image()
26 plat_err = tfm_plat_otp_read(PLAT_OTP_ID_BL1_2_IMAGE, bl1_2_len, image); in bl1_read_bl1_2_image()
27 fih_rc = fih_int_encode_zero_equality(plat_err); in bl1_read_bl1_2_image()
/trusted-firmware-m-3.6.0/platform/ext/target/cypress/psoc64/
Dtfm_hal_platform.c53 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.6.0/platform/ext/target/nxp/common/
Dtfm_hal_platform.c59 enum tfm_plat_err_t plat_err = TFM_PLAT_ERR_SYSTEM_ERR; in tfm_hal_platform_init() local
65 plat_err = enable_fault_handlers(); in tfm_hal_platform_init()
66 if (plat_err != TFM_PLAT_ERR_SUCCESS) { in tfm_hal_platform_init()
70 plat_err = system_reset_cfg(); in tfm_hal_platform_init()
71 if (plat_err != TFM_PLAT_ERR_SUCCESS) { in tfm_hal_platform_init()
75 plat_err = init_debug(); in tfm_hal_platform_init()
76 if (plat_err != TFM_PLAT_ERR_SUCCESS) { in tfm_hal_platform_init()
82 plat_err = nvic_interrupt_target_state_cfg(); in tfm_hal_platform_init()
83 if (plat_err != TFM_PLAT_ERR_SUCCESS) { in tfm_hal_platform_init()
87 plat_err = nvic_interrupt_enable(); in tfm_hal_platform_init()
[all …]
/trusted-firmware-m-3.6.0/platform/ext/target/arm/musca_b1/bl2/
Dboot_hal_bl2.c25 enum tfm_plat_err_t plat_err; in boot_platform_post_init() local
38 plat_err = tfm_plat_otp_read(PLAT_OTP_ID_SECURE_DEBUG_PK, 32, rotpk_p256); in boot_platform_post_init()
39 if (plat_err != TFM_PLAT_ERR_SUCCESS) { in boot_platform_post_init()
40 return plat_err; in boot_platform_post_init()
/trusted-firmware-m-3.6.0/secure_fw/spm/core/
Dmain.c29 enum tfm_plat_err_t plat_err = TFM_PLAT_ERR_SYSTEM_ERR; in tfm_core_init() local
52 plat_err = tfm_plat_otp_init(); in tfm_core_init()
53 if (plat_err != TFM_PLAT_ERR_SUCCESS) { in tfm_core_init()
59 plat_err = tfm_plat_provisioning_perform(); in tfm_core_init()
60 if (plat_err != TFM_PLAT_ERR_SUCCESS) { in tfm_core_init()
/trusted-firmware-m-3.6.0/platform/ext/target/stm/common/stm32l5xx/secure/
Dtfm_hal_platform.c18 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.6.0/platform/ext/target/stm/common/stm32h5xx/secure/
Dtfm_hal_platform.c18 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.6.0/platform/ext/target/stm/common/stm32u5xx/secure/
Dtfm_hal_platform.c18 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.6.0/bl1/bl1_2/
Dmain.c77 enum tfm_plat_err_t plat_err; in image_hash_check() local
81 plat_err = tfm_plat_otp_read(PLAT_OTP_ID_BL2_IMAGE_HASH, BL2_HASH_SIZE, in image_hash_check()
83 fih_rc = fih_int_encode_zero_equality(plat_err); in image_hash_check()
98 enum tfm_plat_err_t plat_err; in is_image_security_counter_valid() local
100 plat_err = tfm_plat_read_nv_counter(PLAT_NV_COUNTER_BL1_0, in is_image_security_counter_valid()
103 fih_rc = fih_int_encode_zero_equality(plat_err); in is_image_security_counter_valid()
147 enum tfm_plat_err_t plat_err; in validate_image_at_addr() local
161 plat_err = tfm_plat_set_nv_counter(PLAT_NV_COUNTER_BL1_0, in validate_image_at_addr()
163 fih_rc = fih_int_encode_zero_equality(plat_err); in validate_image_at_addr()
/trusted-firmware-m-3.6.0/bl2/ext/mcuboot/
Dbl2_main.c97 enum tfm_plat_err_t plat_err; in main() local
117 plat_err = tfm_plat_otp_init(); in main()
118 if (plat_err != TFM_PLAT_ERR_SUCCESS) { in main()
124 plat_err = tfm_plat_provisioning_perform(); in main()
125 if (plat_err != TFM_PLAT_ERR_SUCCESS) { in main()
/trusted-firmware-m-3.6.0/platform/ext/target/arm/corstone1000/bl2/
Dboot_hal_bl2.c171 enum tfm_plat_err_t plat_err; in boot_platform_post_init() local
180 plat_err = tfm_plat_otp_init(); in boot_platform_post_init()
181 if (plat_err != TFM_PLAT_ERR_SUCCESS) { in boot_platform_post_init()
189 plat_err = tfm_plat_otp_read(PLAT_OTP_ID_SECURE_DEBUG_PK, 32, secure_debug_rotpk); in boot_platform_post_init()
190 if (plat_err != TFM_PLAT_ERR_SUCCESS) { in boot_platform_post_init()
191 return plat_err; in boot_platform_post_init()
/trusted-firmware-m-3.6.0/platform/ext/common/template/
Dcrypto_nv_seed.c14 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.6.0/platform/ext/target/arm/rss/common/bl1/
Dboot_hal_bl1_2.c84 enum tfm_plat_err_t plat_err; in boot_platform_init() local
92 plat_err = tfm_plat_init_nv_counter(); in boot_platform_init()
93 if (plat_err != TFM_PLAT_ERR_SUCCESS) { in boot_platform_init()
245 enum tfm_plat_err_t plat_err; in setup_kmu_slot_from_otp() local
253 plat_err = tfm_plat_otp_read(otp_id, sizeof(key), (uint8_t*)key); in setup_kmu_slot_from_otp()
254 if (plat_err != TFM_PLAT_ERR_SUCCESS) { in setup_kmu_slot_from_otp()

12