Home
last modified time | relevance | path

Searched refs:fih_int_encode (Results 1 – 25 of 37) sorted by relevance

12

/trusted-firmware-m-3.7.0/platform/ext/target/arm/mps2/an521/
Dtfm_hal_isolation.c178 FIH_RET(fih_int_encode(MPU_ARMV8M_ERROR)); in fih_verify_mpu_armv8m_region_enabled()
181 FIH_RET(fih_int_encode(MPU_ARMV8M_ERROR)); in fih_verify_mpu_armv8m_region_enabled()
191 FIH_RET(fih_int_encode(MPU_ARMV8M_ERROR)); in fih_verify_mpu_armv8m_region_enabled()
199 FIH_RET(fih_int_encode(MPU_ARMV8M_ERROR)); in fih_verify_mpu_armv8m_region_enabled()
202 FIH_RET(fih_int_encode(MPU_ARMV8M_OK)); in fih_verify_mpu_armv8m_region_enabled()
214 FIH_RET(fih_int_encode(MPU_ARMV8M_ERROR)); in fih_verify_mpu_armv8m_enabled()
220 FIH_RET(fih_int_encode(MPU_ARMV8M_ERROR)); in fih_verify_mpu_armv8m_enabled()
223 FIH_RET(fih_int_encode(MPU_ARMV8M_OK)); in fih_verify_mpu_armv8m_enabled()
233 if (fih_not_eq(fih_rc, fih_int_encode(ARM_DRIVER_OK))) { in tfm_hal_verify_static_boundaries()
234 FIH_RET(fih_int_encode(TFM_HAL_ERROR_GENERIC)); in tfm_hal_verify_static_boundaries()
[all …]
Dtfm_hal_platform.c23 FIH_RET(fih_int_encode(TFM_HAL_ERROR_GENERIC)); in tfm_hal_platform_init()
28 FIH_RET(fih_int_encode(TFM_HAL_ERROR_GENERIC)); in tfm_hal_platform_init()
32 if (fih_not_eq(fih_rc, fih_int_encode(TFM_PLAT_ERR_SUCCESS))) { in tfm_hal_platform_init()
33 FIH_RET(fih_int_encode(TFM_HAL_ERROR_GENERIC)); in tfm_hal_platform_init()
41 FIH_RET(fih_int_encode(TFM_HAL_ERROR_GENERIC)); in tfm_hal_platform_init()
46 FIH_RET(fih_int_encode(TFM_HAL_ERROR_GENERIC)); in tfm_hal_platform_init()
69 FIH_RET(fih_int_encode(TFM_HAL_SUCCESS)); in tfm_hal_platform_init()
Dtarget_cfg.c244 FIH_RET(fih_int_encode(TFM_PLAT_ERR_SUCCESS)); in init_debug()
411 FIH_RET(fih_int_encode(ARM_DRIVER_OK)); in sau_and_idau_cfg()
422 FIH_RET(fih_int_encode(ARM_DRIVER_ERROR)); in fih_verify_sau_and_idau_cfg()
428 FIH_RET(fih_int_encode(ARM_DRIVER_ERROR)); in fih_verify_sau_and_idau_cfg()
433 FIH_RET(fih_int_encode(ARM_DRIVER_ERROR)); in fih_verify_sau_and_idau_cfg()
438 FIH_RET(fih_int_encode(ARM_DRIVER_ERROR)); in fih_verify_sau_and_idau_cfg()
441 FIH_RET(fih_int_encode(ARM_DRIVER_OK)); in fih_verify_sau_and_idau_cfg()
458 FIH_RET(fih_int_encode(ret)); in mpc_init_cfg()
466 FIH_RET(fih_int_encode(ret)); in mpc_init_cfg()
475 FIH_RET(fih_int_encode(ret)); in mpc_init_cfg()
[all …]
/trusted-firmware-m-3.7.0/platform/ext/target/cypress/psoc64/
Dtfm_hal_isolation.c33 FIH_RET(fih_int_encode(TFM_HAL_ERROR_GENERIC)); in tfm_hal_set_up_static_boundaries()
37 FIH_RET(fih_int_encode(TFM_HAL_ERROR_GENERIC)); in tfm_hal_set_up_static_boundaries()
41 FIH_RET(fih_int_encode(TFM_HAL_ERROR_GENERIC)); in tfm_hal_set_up_static_boundaries()
46 FIH_RET(fih_int_encode(TFM_HAL_SUCCESS)); in tfm_hal_set_up_static_boundaries()
63 FIH_RET(fih_int_encode(TFM_HAL_ERROR_INVALID_INPUT)); in tfm_hal_memory_check()
80 FIH_RET(fih_int_encode(TFM_HAL_ERROR_MEM_FAULT)); in tfm_hal_memory_check()
83 FIH_RET(fih_int_encode(TFM_HAL_SUCCESS)); in tfm_hal_memory_check()
106 FIH_RET(fih_int_encode(TFM_HAL_ERROR_GENERIC)); in tfm_hal_bind_boundary()
134 FIH_RET(fih_int_encode(TFM_HAL_ERROR_GENERIC)); in tfm_hal_bind_boundary()
141 FIH_RET(fih_int_encode(TFM_HAL_SUCCESS)); in tfm_hal_bind_boundary()
[all …]
Dtfm_hal_platform.c72 FIH_RET(fih_int_encode(TFM_HAL_ERROR_GENERIC)); in tfm_hal_platform_init()
77 FIH_RET(fih_int_encode(TFM_HAL_ERROR_GENERIC)); in tfm_hal_platform_init()
80 FIH_RET(fih_int_encode(TFM_HAL_SUCCESS)); in tfm_hal_platform_init()
/trusted-firmware-m-3.7.0/secure_fw/spm/core/
Dmain.c38 if (fih_not_eq(fih_rc, fih_int_encode(TFM_HAL_SUCCESS))) { in tfm_core_init()
39 FIH_RET(fih_int_encode(SPM_ERROR_GENERIC)); in tfm_core_init()
43 if (fih_not_eq(fih_rc, fih_int_encode(TFM_HAL_SUCCESS))) { in tfm_core_init()
49 if (fih_not_eq(fih_rc, fih_int_encode(TFM_HAL_SUCCESS))) { in tfm_core_init()
50 FIH_RET(fih_int_encode(SPM_ERROR_GENERIC)); in tfm_core_init()
61 FIH_RET(fih_int_encode(SPM_ERROR_GENERIC)); in tfm_core_init()
68 FIH_RET(fih_int_encode(SPM_ERROR_GENERIC)); in tfm_core_init()
92 FIH_RET(fih_int_encode(SPM_SUCCESS)); in tfm_core_init()
109 if (fih_not_eq(fih_rc, fih_int_encode(SPM_SUCCESS))) { in main()
Dpsa_call_api.c64 if (fih_not_eq(fih_rc, fih_int_encode(PSA_SUCCESS))) { in spm_associate_call_params()
79 if (fih_not_eq(fih_rc, fih_int_encode(PSA_SUCCESS))) { in spm_associate_call_params()
119 if (fih_not_eq(fih_rc, fih_int_encode(PSA_SUCCESS))) { in spm_associate_call_params()
142 if (fih_not_eq(fih_rc, fih_int_encode(PSA_SUCCESS))) { in spm_associate_call_params()
Dtfm_svcalls.c91 if (fih_not_eq(fih_bool, fih_int_encode(false))) { in thread_mode_spm_return()
94 if (fih_not_eq(fih_rc, fih_int_encode(TFM_HAL_SUCCESS))) { in thread_mode_spm_return()
175 if (fih_not_eq(fih_bool, fih_int_encode(false))) { in prepare_to_thread_mode_spm()
177 if (fih_not_eq(fih_rc, fih_int_encode(TFM_HAL_SUCCESS))) { in prepare_to_thread_mode_spm()
230 if (fih_eq(fih_rc, fih_int_encode(PSA_SUCCESS))) { in handle_spm_svc_requests()
Dinterrupt.c71 if (fih_not_eq(fih_bool, fih_int_encode(false))) { in tfm_flih_prepare_depriv_flih()
107 if (fih_not_eq(fih_bool, fih_int_encode(false))) { in tfm_flih_return_to_isr()
182 if (fih_eq(fih_bool, fih_int_encode(false))) { in spm_handle_interrupt()
Dpsa_read_write_skip_api.c70 if (fih_not_eq(fih_rc, fih_int_encode(PSA_SUCCESS))) { in tfm_spm_partition_psa_read()
201 if (fih_not_eq(fih_rc, fih_int_encode(PSA_SUCCESS))) { in tfm_spm_partition_psa_write()
Dpsa_mmiovec_api.c83 if (fih_not_eq(fih_rc, fih_int_encode(PSA_SUCCESS))) { in tfm_spm_partition_psa_map_invec()
212 if (fih_not_eq(fih_rc, fih_int_encode(PSA_SUCCESS))) { in tfm_spm_partition_psa_map_outvec()
/trusted-firmware-m-3.7.0/platform/ext/target/nxp/common/
Dtfm_hal_isolation.c120 FIH_RET(fih_int_encode(TFM_HAL_ERROR_GENERIC)); in tfm_hal_set_up_static_boundaries()
124 FIH_RET(fih_int_encode(TFM_HAL_ERROR_GENERIC)); in tfm_hal_set_up_static_boundaries()
142 FIH_RET(fih_int_encode(TFM_HAL_ERROR_GENERIC)); in tfm_hal_set_up_static_boundaries()
149 if (fih_not_eq(fih_rc, fih_int_encode(MPU_ARMV8M_OK))) { in tfm_hal_set_up_static_boundaries()
150 FIH_RET(fih_int_encode(TFM_HAL_ERROR_GENERIC)); in tfm_hal_set_up_static_boundaries()
167 if (fih_not_eq(fih_rc, fih_int_encode(MPU_ARMV8M_OK))) { in tfm_hal_set_up_static_boundaries()
168 FIH_RET(fih_int_encode(TFM_HAL_ERROR_GENERIC)); in tfm_hal_set_up_static_boundaries()
189 if (fih_not_eq(fih_rc, fih_int_encode(MPU_ARMV8M_OK))) { in tfm_hal_set_up_static_boundaries()
190 FIH_RET(fih_int_encode(TFM_HAL_ERROR_GENERIC)); in tfm_hal_set_up_static_boundaries()
211 if (fih_not_eq(fih_rc, fih_int_encode(MPU_ARMV8M_OK))) { in tfm_hal_set_up_static_boundaries()
[all …]
Dtfm_hal_platform.c67 FIH_RET(fih_int_encode(TFM_HAL_ERROR_GENERIC)); in tfm_hal_platform_init()
72 FIH_RET(fih_int_encode(TFM_HAL_ERROR_GENERIC)); in tfm_hal_platform_init()
77 FIH_RET(fih_int_encode(TFM_HAL_ERROR_GENERIC)); in tfm_hal_platform_init()
84 FIH_RET(fih_int_encode(TFM_HAL_ERROR_GENERIC)); in tfm_hal_platform_init()
89 FIH_RET(fih_int_encode(TFM_HAL_ERROR_GENERIC)); in tfm_hal_platform_init()
92 FIH_RET(fih_int_encode(TFM_HAL_SUCCESS)); in tfm_hal_platform_init()
262 _fih_cfi_ctr = fih_int_encode(fih_int_decode(_fih_cfi_ctr) + cnt); in fih_cfi_get_and_increment()
283 _fih_cfi_ctr = fih_int_encode(fih_int_decode(_fih_cfi_ctr) - 1); in fih_cfi_decrement()
/trusted-firmware-m-3.7.0/secure_fw/spm/core/arch/
Dtfm_arch_v6m_v7m.c224 if (fih_not_eq(fih_int_encode(NVIC_GetPriority(MemoryManagement_IRQn)), in tfm_arch_verify_secure_exception_priorities()
225 fih_int_encode(MemoryManagement_IRQnLVL))) { in tfm_arch_verify_secure_exception_priorities()
228 if (fih_not_eq(fih_int_encode(NVIC_GetPriority(BusFault_IRQn)), in tfm_arch_verify_secure_exception_priorities()
229 fih_int_encode(BusFault_IRQnLVL))) { in tfm_arch_verify_secure_exception_priorities()
234 if (fih_not_eq(fih_int_encode(NVIC_GetPriority(SVCall_IRQn)), in tfm_arch_verify_secure_exception_priorities()
235 fih_int_encode(SVCall_IRQnLVL))) { in tfm_arch_verify_secure_exception_priorities()
238 if (fih_not_eq(fih_int_encode(NVIC_GetPriority(PendSV_IRQn)), in tfm_arch_verify_secure_exception_priorities()
239 fih_int_encode(PENDSV_PRIO_FOR_SCHED))) { in tfm_arch_verify_secure_exception_priorities()
Dtfm_arch_v8m_main.c252 if (fih_not_eq(fih_int_encode(NVIC_GetPriority(MemoryManagement_IRQn)), in tfm_arch_verify_secure_exception_priorities()
253 fih_int_encode(MemoryManagement_IRQnLVL))) { in tfm_arch_verify_secure_exception_priorities()
256 if (fih_not_eq(fih_int_encode(NVIC_GetPriority(BusFault_IRQn)), in tfm_arch_verify_secure_exception_priorities()
257 fih_int_encode(BusFault_IRQnLVL))) { in tfm_arch_verify_secure_exception_priorities()
260 if (fih_not_eq(fih_int_encode(NVIC_GetPriority(SecureFault_IRQn)), in tfm_arch_verify_secure_exception_priorities()
261 fih_int_encode(SecureFault_IRQnLVL))) { in tfm_arch_verify_secure_exception_priorities()
264 if (fih_not_eq(fih_int_encode(NVIC_GetPriority(SVCall_IRQn)), in tfm_arch_verify_secure_exception_priorities()
265 fih_int_encode(SVCall_IRQnLVL))) { in tfm_arch_verify_secure_exception_priorities()
268 if (fih_not_eq(fih_int_encode(NVIC_GetPriority(PendSV_IRQn)), in tfm_arch_verify_secure_exception_priorities()
269 fih_int_encode(PENDSV_PRIO_FOR_SCHED))) { in tfm_arch_verify_secure_exception_priorities()
Dtfm_arch_v8m_base.c284 if (fih_not_eq(fih_int_encode(NVIC_GetPriority(SVCall_IRQn)), in tfm_arch_verify_secure_exception_priorities()
285 fih_int_encode(SVCall_IRQnLVL))) { in tfm_arch_verify_secure_exception_priorities()
288 if (fih_not_eq(fih_int_encode(NVIC_GetPriority(PendSV_IRQn)), in tfm_arch_verify_secure_exception_priorities()
289 fih_int_encode(PENDSV_PRIO_FOR_SCHED))) { in tfm_arch_verify_secure_exception_priorities()
/trusted-firmware-m-3.7.0/platform/ext/target/stm/common/stm32u5xx/secure/
Dtfm_hal_isolation.c309 FIH_RET(fih_int_encode(TFM_HAL_SUCCESS)); in tfm_hal_set_up_static_boundaries()
315 FIH_RET(fih_int_encode(TFM_HAL_SUCCESS)); in tfm_hal_verify_static_boundaries()
370 FIH_RET(fih_int_encode(TFM_HAL_ERROR_GENERIC)); in tfm_hal_bind_boundary()
400 FIH_RET(fih_int_encode(TFM_HAL_ERROR_GENERIC)); in tfm_hal_bind_boundary()
420 FIH_RET(fih_int_encode(TFM_HAL_ERROR_GENERIC)); in tfm_hal_bind_boundary()
431 FIH_RET(fih_int_encode(TFM_HAL_SUCCESS)); in tfm_hal_bind_boundary()
447 FIH_RET(fih_int_encode(TFM_HAL_SUCCESS)); in tfm_hal_activate_boundary()
457 FIH_RET(fih_int_encode(TFM_HAL_SUCCESS)); in tfm_hal_memory_check()
461 FIH_RET(fih_int_encode(TFM_HAL_ERROR_INVALID_INPUT)); in tfm_hal_memory_check()
469 FIH_RET(fih_int_encode(TFM_HAL_ERROR_INVALID_INPUT)); in tfm_hal_memory_check()
[all …]
Dtfm_hal_platform.c25 FIH_RET(fih_int_encode(TFM_HAL_ERROR_GENERIC)); in tfm_hal_platform_init()
28 FIH_RET(fih_int_encode(TFM_HAL_SUCCESS)); in tfm_hal_platform_init()
/trusted-firmware-m-3.7.0/platform/ext/target/stm/common/stm32h5xx/secure/
Dtfm_hal_isolation.c379 FIH_RET(fih_int_encode(TFM_HAL_SUCCESS)); in tfm_hal_set_up_static_boundaries()
430 FIH_RET(fih_int_encode(TFM_HAL_ERROR_GENERIC)); in tfm_hal_bind_boundary()
460 FIH_RET(fih_int_encode(TFM_HAL_ERROR_GENERIC)); in tfm_hal_bind_boundary()
480 FIH_RET(fih_int_encode(TFM_HAL_ERROR_GENERIC)); in tfm_hal_bind_boundary()
491 FIH_RET(fih_int_encode(TFM_HAL_SUCCESS)); in tfm_hal_bind_boundary()
507 FIH_RET(fih_int_encode(TFM_HAL_SUCCESS)); in tfm_hal_activate_boundary()
517 FIH_RET(fih_int_encode(TFM_HAL_SUCCESS)); in tfm_hal_memory_check()
521 FIH_RET(fih_int_encode(TFM_HAL_ERROR_INVALID_INPUT)); in tfm_hal_memory_check()
529 FIH_RET(fih_int_encode(TFM_HAL_ERROR_INVALID_INPUT)); in tfm_hal_memory_check()
548 FIH_RET(fih_int_encode(TFM_HAL_SUCCESS)); in tfm_hal_memory_check()
[all …]
/trusted-firmware-m-3.7.0/platform/ext/target/arm/drivers/mpu/armv8m/
Dmpu_armv8m_drv.c51 FIH_RET(fih_int_encode(MPU_ARMV8M_OK)); in mpu_armv8m_enable()
76 FIH_RET(fih_int_encode(MPU_ARMV8M_ERROR)); in mpu_armv8m_region_enable()
79 FIH_RET(fih_int_encode(MPU_ARMV8M_ERROR)); in mpu_armv8m_region_enable()
120 FIH_RET(fih_int_encode(MPU_ARMV8M_OK)); in mpu_armv8m_region_enable()
144 FIH_RET(fih_int_encode(MPU_ARMV8M_OK)); in mpu_armv8m_region_disable()
/trusted-firmware-m-3.7.0/platform/ext/target/arm/mps2/an521/native_drivers/
Dmpu_armv8m_drv.c51 FIH_RET(fih_int_encode(MPU_ARMV8M_OK)); in mpu_armv8m_enable()
76 FIH_RET(fih_int_encode(MPU_ARMV8M_ERROR)); in mpu_armv8m_region_enable()
79 FIH_RET(fih_int_encode(MPU_ARMV8M_ERROR)); in mpu_armv8m_region_enable()
116 FIH_RET(fih_int_encode(MPU_ARMV8M_OK)); in mpu_armv8m_region_enable()
140 FIH_RET(fih_int_encode(MPU_ARMV8M_OK)); in mpu_armv8m_region_disable()
/trusted-firmware-m-3.7.0/lib/fih/src/
Dfih.c39 _fih_cfi_ctr = fih_int_encode(fih_int_decode(_fih_cfi_ctr) + cnt); in fih_cfi_get_and_increment()
60 _fih_cfi_ctr = fih_int_encode(fih_int_decode(_fih_cfi_ctr) - 1); in fih_cfi_decrement()
/trusted-firmware-m-3.7.0/lib/fih/inc/
Dfih.h224 fih_int fih_int_encode(int32_t x) in fih_int_encode() function
264 #define fih_int_encode(x) (x) macro
456 #define fih_int_encode(x) (x)
/trusted-firmware-m-3.7.0/bl1/bl1_2/lib/
Dimage.c38 fih_rc = fih_int_encode(FLASH_DEV_NAME_BL1.ReadData(flash_offset, out, in bl1_image_copy_to_sram()
/trusted-firmware-m-3.7.0/platform/ext/target/arm/rse/common/bringup_helpers/
Drse_bl1_2_image_otp_or_flash.c38 fih_rc = fih_int_encode(FLASH_DEV_NAME.ReadData(BL1_2_IMAGE_FLASH_OFFSET, in bl1_read_bl1_2_image()

12