Home
last modified time | relevance | path

Searched refs:IS_ENABLED (Results 1 – 25 of 136) sorted by relevance

123456

/optee_os/core/arch/arm/plat-imx/
H A Dimx-common.c59 if (IS_ENABLED(CFG_MX7ULP)) in imx_get_digprog()
61 else if (IS_ENABLED(CFG_MX8QX)) in imx_get_digprog()
63 else if (IS_ENABLED(CFG_MX8QM)) in imx_get_digprog()
65 else if (IS_ENABLED(CFG_MX8DXL)) in imx_get_digprog()
67 else if (IS_ENABLED(CFG_MX8ULP)) in imx_get_digprog()
69 else if (IS_ENABLED(CFG_MX93)) in imx_get_digprog()
71 else if (IS_ENABLED(CFG_MX91)) in imx_get_digprog()
73 else if (IS_ENABLED(CFG_MX95)) in imx_get_digprog()
75 else if (IS_ENABLED(CFG_MX943)) in imx_get_digprog()
95 if (IS_ENABLED(CFG_MX7)) in imx_soc_rev_minor()
H A Dtzc380.c42 if (IS_ENABLED(CFG_MX8M)) in imx_tzc_auto_configure()
58 if (IS_ENABLED(CFG_MX6Q) || IS_ENABLED(CFG_MX6D) || in imx_configure_tzasc()
59 IS_ENABLED(CFG_MX6DL)) { in imx_configure_tzasc()
/optee_os/core/arch/arm/kernel/
H A Dboot.c175 IS_ENABLED(CFG_CRYPTO_AES_ARM_CE)) { in check_crypto_extensions()
181 IS_ENABLED(CFG_CRYPTO_SHA1_ARM_CE)) { in check_crypto_extensions()
187 IS_ENABLED(CFG_CRYPTO_SHA256_ARM_CE)) { in check_crypto_extensions()
193 if (IS_ENABLED(CFG_ARM64_core)) { in check_crypto_extensions()
195 IS_ENABLED(CFG_CRYPTO_SHA512_ARM_CE)) { in check_crypto_extensions()
201 IS_ENABLED(CFG_CRYPTO_SHA3_ARM_CE)) { in check_crypto_extensions()
207 IS_ENABLED(CFG_CRYPTO_SM3_ARM_CE)) { in check_crypto_extensions()
213 IS_ENABLED(CFG_CRYPTO_SM4_ARM_CE)) { in check_crypto_extensions()
682 static_assert(IS_ENABLED(CFG_CORE_FFA) || in add_optee_dt_node()
822 if (!IS_ENABLED(CFG_CORE_FFA) && add_optee_dt_node(dt)) in update_external_dt()
[all …]
H A Dgeneric_timer.c12 if (IS_ENABLED(CFG_CORE_SEL2_SPMC)) in timer_disable()
21 if (IS_ENABLED(CFG_CORE_SEL2_SPMC)) { in timer_set_next()
/optee_os/core/pta/
H A Dscmi.c57 if (IS_ENABLED(CFG_SCMI_MSG_SMT)) { in cmd_process_smt_channel()
69 if (IS_ENABLED(CFG_SCMI_SCPFW)) in cmd_process_smt_channel()
88 if (IS_ENABLED(CFG_SCMI_MSG_SMT)) { in cmd_process_smt_message()
130 if (IS_ENABLED(CFG_SCMI_MSG_DRIVERS)) { in cmd_process_msg_channel()
133 if (!IS_ENABLED(CFG_SCMI_MSG_SHM_MSG)) in cmd_process_msg_channel()
148 if (IS_ENABLED(CFG_SCMI_SCPFW)) { in cmd_process_msg_channel()
180 if (IS_ENABLED(CFG_SCMI_MSG_DRIVERS)) { in cmd_get_channel_handle()
193 if (IS_ENABLED(CFG_SCMI_SCPFW)) { in cmd_get_channel_handle()
214 if (IS_ENABLED(CFG_SCMI_MSG_DRIVERS) || IS_ENABLED(CFG_SCMI_SCPFW)) in pta_scmi_open_session()
H A Ddevice.c73 if (IS_ENABLED(CFG_EARLY_TA)) in get_devices()
95 bool rpmb_needs_supp = !IS_ENABLED(CFG_RPMB_ANNOUNCE_PROBE_CAP); in invoke_command()
103 if (IS_ENABLED(CFG_REE_FS) || in invoke_command()
104 (IS_ENABLED(CFG_RPMB_FS) && rpmb_needs_supp)) in invoke_command()
108 if (!IS_ENABLED(CFG_REE_FS)) { in invoke_command()
/optee_os/core/arch/riscv/plat-virt/
H A Dmain.c79 if (IS_ENABLED(CFG_RISCV_PLIC)) in interrupt_main_handler()
81 else if (IS_ENABLED(CFG_RISCV_APLIC)) in interrupt_main_handler()
83 else if (IS_ENABLED(CFG_RISCV_APLIC_MSI) && in interrupt_main_handler()
84 IS_ENABLED(CFG_RISCV_IMSIC)) in interrupt_main_handler()
/optee_os/core/arch/arm/tee/
H A Dentry_fast.c88 bool res_shm_en = IS_ENABLED(CFG_CORE_RESERVED_SHM); in tee_entry_exchange_capabilities()
124 if (IS_ENABLED(CFG_NS_VIRTUALIZATION)) in tee_entry_exchange_capabilities()
127 IS_ENABLED(CFG_NS_VIRTUALIZATION) ? "en" : "dis"); in tee_entry_exchange_capabilities()
131 if (IS_ENABLED(CFG_CORE_ASYNC_NOTIF)) { in tee_entry_exchange_capabilities()
136 IS_ENABLED(CFG_CORE_ASYNC_NOTIF) ? "en" : "dis"); in tee_entry_exchange_capabilities()
138 if (IS_ENABLED(CFG_SECURE_DATA_PATH)) { in tee_entry_exchange_capabilities()
139 if (IS_ENABLED(CFG_CORE_DYN_PROTMEM)) in tee_entry_exchange_capabilities()
148 if (IS_ENABLED(CFG_RPMB_ANNOUNCE_PROBE_CAP)) in tee_entry_exchange_capabilities()
325 if (IS_ENABLED(CFG_CORE_ASYNC_NOTIF)) { in __tee_entry_fast()
328 if (IS_ENABLED(CFG_NS_VIRTUALIZATION)) in __tee_entry_fast()
[all …]
/optee_os/core/drivers/crypto/se050/
H A Dsession.c24 if (IS_ENABLED(CFG_CORE_SE05X_INIT_NVM)) { in se050_core_early_init()
48 IS_ENABLED(CFG_CORE_SE05X_DISPLAY_INFO)); in update_se_info()
57 if (IS_ENABLED(CFG_CORE_SCP03_ONLY)) in update_se_info()
83 if (IS_ENABLED(CFG_CORE_SE05X_SCP03_EARLY)) { in se050_early_init_default()
123 if (IS_ENABLED(CFG_CORE_SCP03_ONLY)) in se050_session_init()
/optee_os/core/drivers/crypto/stm32/
H A Dcipher.c69 if (!IS_ENABLED(CFG_STM32_CRYP)) in cryp_init()
89 if (!IS_ENABLED(CFG_STM32_CRYP)) in cryp_update()
112 if (!IS_ENABLED(CFG_STM32_SAES)) in saes_init()
120 if (!IS_ENABLED(CFG_STM32_SAES_SW_FALLBACK)) { in saes_init()
150 if (!IS_ENABLED(CFG_STM32_SAES)) in saes_update()
156 assert(IS_ENABLED(CFG_STM32_SAES_SW_FALLBACK)); in saes_update()
169 assert(IS_ENABLED(CFG_STM32_SAES_SW_FALLBACK)); in saes_final()
185 assert(IS_ENABLED(CFG_STM32_SAES_SW_FALLBACK)); in saes_copy_state()
296 if (IS_ENABLED(CFG_STM32_SAES_SW_FALLBACK)) in stm32_saes_cipher_allocate()
301 if (IS_ENABLED(CFG_STM32_SAES_SW_FALLBACK)) in stm32_saes_cipher_allocate()
[all …]
/optee_os/core/arch/riscv/tee/
H A Dentry_fast.c37 bool res_shm_en = IS_ENABLED(CFG_CORE_RESERVED_SHM); in tee_entry_exchange_capabilities()
73 if (IS_ENABLED(CFG_NS_VIRTUALIZATION)) in tee_entry_exchange_capabilities()
76 IS_ENABLED(CFG_NS_VIRTUALIZATION) ? "en" : "dis"); in tee_entry_exchange_capabilities()
80 if (IS_ENABLED(CFG_CORE_ASYNC_NOTIF)) { in tee_entry_exchange_capabilities()
85 IS_ENABLED(CFG_CORE_ASYNC_NOTIF) ? "en" : "dis"); in tee_entry_exchange_capabilities()
249 if (IS_ENABLED(CFG_CORE_ASYNC_NOTIF)) { in __tee_entry_fast()
257 if (IS_ENABLED(CFG_CORE_ASYNC_NOTIF)) in __tee_entry_fast()
278 if (IS_ENABLED(CFG_NS_VIRTUALIZATION)) in tee_entry_generic_get_api_call_count()
/optee_os/core/drivers/crypto/caam/hal/common/
H A Dhal_cfg.c56 if (IS_ENABLED(CFG_NXP_CAAM_RUNTIME_JR) && in caam_hal_cfg_get_conf()
69 if (IS_ENABLED(CFG_NXP_CAAM_RUNTIME_JR)) in caam_hal_cfg_get_conf()
72 if (IS_ENABLED(CFG_MX8M)) in caam_hal_cfg_get_conf()
92 if (IS_ENABLED(CFG_MX8M)) { in caam_hal_cfg_setup_nsjobring()
/optee_os/lib/libutee/
H A Dtee_api_operations.c2435 if (IS_ENABLED(CFG_CRYPTO_AES)) { in TEE_IsAlgorithmSupported()
2436 if (IS_ENABLED(CFG_CRYPTO_ECB)) { in TEE_IsAlgorithmSupported()
2440 if (IS_ENABLED(CFG_CRYPTO_CBC)) { in TEE_IsAlgorithmSupported()
2444 if (IS_ENABLED(CFG_CRYPTO_CTR)) { in TEE_IsAlgorithmSupported()
2448 if (IS_ENABLED(CFG_CRYPTO_CTS)) { in TEE_IsAlgorithmSupported()
2452 if (IS_ENABLED(CFG_CRYPTO_XTS)) { in TEE_IsAlgorithmSupported()
2456 if (IS_ENABLED(CFG_CRYPTO_CBC_MAC)) { in TEE_IsAlgorithmSupported()
2461 if (IS_ENABLED(CFG_CRYPTO_CMAC)) { in TEE_IsAlgorithmSupported()
2465 if (IS_ENABLED(CFG_CRYPTO_CCM)) { in TEE_IsAlgorithmSupported()
2469 if (IS_ENABLED(CFG_CRYPTO_GCM)) { in TEE_IsAlgorithmSupported()
[all …]
/optee_os/core/kernel/
H A Dpanic.c16 static_assert(!IS_ENABLED(CFG_MULTI_CORE_HALTING) ||
47 if (!IS_ENABLED(CFG_MULTI_CORE_HALTING) || CFG_TEE_CORE_NB_CORE == 1) in init_multi_core_halt_handler()
81 if (IS_ENABLED(CFG_HALT_CORES_ON_PANIC) && CFG_TEE_CORE_NB_CORE > 1) in __do_panic()
H A Dthread.c146 if (IS_ENABLED(CFG_WITH_STACK_CANARIES)) { in thread_init_canaries()
160 if (IS_ENABLED(CFG_WITH_STACK_CANARIES) && in thread_init_canaries()
161 !IS_ENABLED(CFG_WITH_PAGER) && in thread_init_canaries()
162 !IS_ENABLED(CFG_NS_VIRTUALIZATION) && threads) { in thread_init_canaries()
218 if (IS_ENABLED(CFG_WITH_STACK_CANARIES)) { in thread_check_canaries()
234 if (IS_ENABLED(CFG_WITH_STACK_CANARIES) && in thread_check_canaries()
235 !IS_ENABLED(CFG_WITH_PAGER) && !IS_ENABLED(CFG_NS_VIRTUALIZATION)) { in thread_check_canaries()
269 if (IS_ENABLED(CFG_DYN_CONFIG) && in get_core_local()
521 if (IS_ENABLED(CFG_WITH_STACK_CANARIES)) in alloc_stack()
572 if (IS_ENABLED(CFG_DYN_CONFIG)) in init_thread_stacks()
[all …]
/optee_os/lib/libutils/ext/include/
H A Dconfig.h30 #define IS_ENABLED(config_macro) Z_IS_ENABLED1(config_macro) macro
36 #define IS_ENABLED2(config_macro) IS_ENABLED(config_macro)
H A Dfault_mitigation.h322 if (IS_ENABLED(CFG_FAULT_MITIGATION) && arg) in __ftmn_calle_swap_hash()
329 if (IS_ENABLED(CFG_FAULT_MITIGATION) && arg) in __ftmn_callee_done()
337 if (IS_ENABLED(CFG_FAULT_MITIGATION) && arg) in __ftmn_callee_done_not_zero()
348 if (IS_ENABLED(CFG_FAULT_MITIGATION) && arg) in __ftmn_callee_done_memcmp()
361 if (IS_ENABLED(CFG_FAULT_MITIGATION)) in __ftmn_callee_done_check()
369 if (IS_ENABLED(CFG_FAULT_MITIGATION) && arg) in __ftmn_callee_update_not_zero()
376 if (IS_ENABLED(CFG_FAULT_MITIGATION)) in __ftmn_set_check_res()
384 if (IS_ENABLED(CFG_FAULT_MITIGATION)) in __ftmn_set_check_res_not_zero()
608 if (IS_ENABLED(CFG_FAULT_MITIGATION)) in ftmn_set_check_res_memcmp()
636 if (IS_ENABLED(CFG_FAULT_MITIGATION)) { in ftmn_checkpoint()
[all …]
/optee_os/lib/libmbedtls/core/
H A Decc.c383 if (!IS_ENABLED(CFG_CRYPTO_SM2_DSA)) in crypto_asym_get_ecc_keypair_ops()
387 if (!IS_ENABLED(CFG_CRYPTO_SM2_PKE)) in crypto_asym_get_ecc_keypair_ops()
391 if (!IS_ENABLED(CFG_CRYPTO_SM2_KEP)) in crypto_asym_get_ecc_keypair_ops()
411 if (!IS_ENABLED(CFG_CRYPTO_SM2_DSA)) in crypto_asym_alloc_ecc_keypair()
418 if (!IS_ENABLED(CFG_CRYPTO_SM2_PKE)) in crypto_asym_alloc_ecc_keypair()
425 if (!IS_ENABLED(CFG_CRYPTO_SM2_KEP)) in crypto_asym_alloc_ecc_keypair()
481 if (!IS_ENABLED(CFG_CRYPTO_SM2_DSA)) in crypto_asym_get_ecc_public_ops()
486 if (!IS_ENABLED(CFG_CRYPTO_SM2_PKE)) in crypto_asym_get_ecc_public_ops()
491 if (!IS_ENABLED(CFG_CRYPTO_SM2_KEP)) in crypto_asym_get_ecc_public_ops()
511 if (!IS_ENABLED(CFG_CRYPTO_SM2_DSA)) in crypto_asym_alloc_ecc_public_key()
[all …]
/optee_os/core/drivers/crypto/se050/core/
H A Dstorage.c79 if (IS_ENABLED(CFG_CORE_SE05X_BLOCK_OBJ_DEL_ON_ERROR)) in crypto_storage_obj_del()
87 if (IS_ENABLED(CFG_CORE_SE05X_BLOCK_OBJ_DEL_ON_ERROR)) in crypto_storage_obj_del()
105 if (ret && IS_ENABLED(CFG_CORE_SE05X_BLOCK_OBJ_DEL_ON_ERROR)) in crypto_storage_obj_del()
/optee_os/core/arch/arm/sm/
H A Dsm.c74 if (IS_ENABLED(CFG_SM_PLATFORM_HANDLER) && in sm_from_nsec()
80 if (IS_ENABLED(CFG_PSCI_ARM32)) { in sm_from_nsec()
97 if (IS_ENABLED(CFG_CORE_WORKAROUND_ARM_NMFI)) { in sm_from_nsec()
/optee_os/core/arch/arm/plat-vexpress/
H A Dmain.c65 if (IS_ENABLED(CFG_CORE_SEL1_SPMC) && in boot_primary_init_intc()
66 IS_ENABLED(CFG_CORE_ASYNC_NOTIF)) { in boot_primary_init_intc()
125 if (IS_ENABLED(CFG_NS_VIRTUALIZATION)) in get_console_notif_vm_id()
180 if (IS_ENABLED(CFG_NS_VIRTUALIZATION) && in yielding_console_notif()
214 if (IS_ENABLED(CFG_CORE_ASYNC_NOTIF) && have_itr_ctrl) in init_console_itr()
/optee_os/core/arch/riscv/kernel/
H A Dboot.c137 if (IS_ENABLED(CFG_DYN_CONFIG)) { in init_primary()
149 if (IS_ENABLED(CFG_DYN_CONFIG)) in init_primary()
234 if (IS_ENABLED(CFG_INSECURE)) { in boot_init_primary_runtime()
304 if (IS_ENABLED(CFG_RISCV_ZKR_RNG) && riscv_detect_csr_seed()) { in get_aslr_seed()
H A Dthread_optee_abi.c37 if (IS_ENABLED(CFG_NS_VIRTUALIZATION) && in thread_handle_fast_abi()
45 if (IS_ENABLED(CFG_NS_VIRTUALIZATION)) in thread_handle_fast_abi()
61 if (IS_ENABLED(CFG_NS_VIRTUALIZATION) && virt_set_guest(a7)) in thread_handle_std_abi()
77 if (IS_ENABLED(CFG_NS_VIRTUALIZATION)) in thread_handle_std_abi()
160 if (IS_ENABLED(CFG_PREALLOC_RPC_CACHE) && in call_entry_std()
176 !(IS_ENABLED(CFG_PREALLOC_RPC_CACHE) && thread_prealloc_rpc_cache)) in call_entry_std()
299 if (IS_ENABLED(CFG_NS_VIRTUALIZATION)) in __thread_std_abi_entry()
322 if (IS_ENABLED(CFG_PREALLOC_RPC_CACHE)) { in thread_disable_prealloc_rpc_cache()
348 if (!IS_ENABLED(CFG_PREALLOC_RPC_CACHE)) in thread_enable_prealloc_rpc_cache()
375 if (IS_ENABLED(CFG_CORE_DYN_SHM) && in rpc_shm_mobj_alloc()
[all …]
/optee_os/core/drivers/crypto/se050/adaptors/apis/
H A Dsss.c65 if (IS_ENABLED(CFG_CORE_SE05X_SCP03_PROVISION_WITH_FACTORY_KEYS)) { in se050_rotate_scp03_keys()
81 if (IS_ENABLED(CFG_CORE_SE05X_DISPLAY_SCP03_KEYS)) { in se050_rotate_scp03_keys()
135 if (IS_ENABLED(CFG_CORE_SE05X_SCP03_PROVISION_WITH_FACTORY_KEYS)) in se050_rotate_scp03_keys()
178 if (IS_ENABLED(CFG_CORE_SE05X_SCP03_PROVISION_ON_INIT)) in se050_enable_scp03()
/optee_os/core/arch/arm/plat-stm32mp1/nsec-service/
H A Dstm32mp1_svc_setup.c34 if (IS_ENABLED(CFG_STM32MP1_SCMI_SIP)) { in sip_service()
42 if (IS_ENABLED(CFG_STM32MP1_SCMI_SIP)) { in sip_service()

123456