/trusted-firmware-m-3.7.0/platform/ext/target/arm/mps2/an521/ |
D | tfm_hal_isolation.c | 178 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 …]
|
D | tfm_hal_platform.c | 23 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()
|
D | target_cfg.c | 244 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/ |
D | tfm_hal_isolation.c | 33 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 …]
|
D | tfm_hal_platform.c | 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() 80 FIH_RET(fih_int_encode(TFM_HAL_SUCCESS)); in tfm_hal_platform_init()
|
/trusted-firmware-m-3.7.0/secure_fw/spm/core/ |
D | main.c | 38 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()
|
D | psa_call_api.c | 64 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()
|
D | tfm_svcalls.c | 91 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()
|
D | interrupt.c | 71 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()
|
D | psa_read_write_skip_api.c | 70 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()
|
D | psa_mmiovec_api.c | 83 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/ |
D | tfm_hal_isolation.c | 120 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 …]
|
D | tfm_hal_platform.c | 67 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/ |
D | tfm_arch_v6m_v7m.c | 224 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()
|
D | tfm_arch_v8m_main.c | 252 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()
|
D | tfm_arch_v8m_base.c | 284 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/ |
D | tfm_hal_isolation.c | 309 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 …]
|
D | tfm_hal_platform.c | 25 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/ |
D | tfm_hal_isolation.c | 379 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/ |
D | mpu_armv8m_drv.c | 51 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/ |
D | mpu_armv8m_drv.c | 51 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/ |
D | fih.c | 39 _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/ |
D | fih.h | 224 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/ |
D | image.c | 38 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/ |
D | rse_bl1_2_image_otp_or_flash.c | 38 fih_rc = fih_int_encode(FLASH_DEV_NAME.ReadData(BL1_2_IMAGE_FLASH_OFFSET, in bl1_read_bl1_2_image()
|