/optee_os/core/kernel/ |
A D | mutex_lockdep.c | 40 uint32_t exceptions = 0; in mutex_lock_check() local 42 exceptions = cpu_spin_lock_xsave(&graph_lock); in mutex_lock_check() 44 cpu_spin_unlock_xrestore(&graph_lock, exceptions); in mutex_lock_check() 50 uint32_t exceptions = 0; in mutex_trylock_check() local 52 exceptions = cpu_spin_lock_xsave(&graph_lock); in mutex_trylock_check() 54 cpu_spin_unlock_xrestore(&graph_lock, exceptions); in mutex_trylock_check() 60 uint32_t exceptions = 0; in mutex_unlock_check() local 62 exceptions = cpu_spin_lock_xsave(&graph_lock); in mutex_unlock_check() 64 cpu_spin_unlock_xrestore(&graph_lock, exceptions); in mutex_unlock_check() 69 uint32_t exceptions = cpu_spin_lock_xsave(&graph_lock); in mutex_destroy_check() local [all …]
|
/optee_os/core/arch/arm/mm/ |
A D | mobj_dyn_shm.c | 131 cpu_spin_unlock_xrestore(®_shm_map_lock, exceptions); in reg_shm_free_helper() 140 uint32_t exceptions = 0; in mobj_reg_shm_free() local 150 exceptions = cpu_spin_lock_xsave(®_shm_slist_lock); in mobj_reg_shm_free() 158 exceptions = cpu_spin_lock_xsave(®_shm_slist_lock); in mobj_reg_shm_free() 184 uint32_t exceptions = 0; in mobj_reg_shm_inc_map() local 191 exceptions = cpu_spin_lock_xsave(®_shm_map_lock); in mobj_reg_shm_inc_map() 234 uint32_t exceptions = 0; in mobj_reg_shm_dec_map() local 239 exceptions = cpu_spin_lock_xsave(®_shm_map_lock); in mobj_reg_shm_dec_map() 301 uint32_t exceptions = 0; in mobj_reg_shm_alloc() local 334 exceptions = cpu_spin_lock_xsave(®_shm_slist_lock); in mobj_reg_shm_alloc() [all …]
|
A D | sp_mem.c | 145 uint32_t exceptions = 0; in inactivate() local 147 exceptions = cpu_spin_lock_xsave(&sp_mem_lock); in inactivate() 156 cpu_spin_unlock_xrestore(&sp_mem_lock, exceptions); in inactivate() 188 cpu_spin_unlock_xrestore(&sp_mem_lock, exceptions); in sp_mem_get() 207 uint32_t exceptions = 0; in sp_mem_new() local 214 exceptions = cpu_spin_lock_xsave(&sp_mem_lock); in sp_mem_new() 231 cpu_spin_unlock_xrestore(&sp_mem_lock, exceptions); in sp_mem_new() 242 cpu_spin_unlock_xrestore(&sp_mem_lock, exceptions); in sp_mem_add() 265 exceptions); in sp_mem_is_shared() 278 uint32_t exceptions = 0; in sp_mem_remove() local [all …]
|
A D | mobj_ffa.c | 90 uint32_t exceptions = 0; in mobj_ffa_sel1_spmc_new() local 97 exceptions = cpu_spin_lock_xsave(&shm_lock); in mobj_ffa_sel1_spmc_new() 180 uint32_t exceptions = 0; in mobj_ffa_sel1_spmc_delete() local 184 exceptions = cpu_spin_lock_xsave(&shm_lock); in mobj_ffa_sel1_spmc_delete() 239 uint32_t exceptions = 0; in mobj_ffa_push_to_inactive() local 266 uint32_t exceptions = 0; in mobj_ffa_sel1_spmc_reclaim() local 311 uint32_t exceptions = 0; local 357 uint32_t exceptions = 0; local 486 uint32_t exceptions = 0; local 534 uint32_t exceptions = 0; local [all …]
|
A D | tee_mm.c | 110 uint32_t exceptions; in tee_mm_get_pool_stats() local 117 exceptions = cpu_spin_lock_xsave(&pool->lock); in tee_mm_get_pool_stats() 147 uint32_t exceptions; in tee_mm_alloc() local 157 exceptions = cpu_spin_lock_xsave(&pool->lock); in tee_mm_alloc() 254 uint32_t exceptions; in tee_mm_alloc2() local 268 exceptions = cpu_spin_lock_xsave(&pool->lock); in tee_mm_alloc2() 306 uint32_t exceptions; in tee_mm_free() local 344 uint32_t exceptions; in tee_mm_is_empty() local 349 exceptions = cpu_spin_lock_xsave(&pool->lock); in tee_mm_is_empty() 369 uint32_t exceptions; in tee_mm_find() local [all …]
|
A D | tee_pager.c | 191 return exceptions; in pager_lock_dldetect() 597 pager_unlock(exceptions); in region_insert() 724 pager_unlock(exceptions); in unlink_region() 866 pager_unlock(exceptions); in split_region() 907 pager_unlock(exceptions); in merge_region_with_next() 1015 uint32_t exceptions; in rem_region() local 1040 pager_unlock(exceptions); in rem_region() 1100 uint32_t exceptions = 0; in tee_pager_set_um_region_attr() local 1186 uint32_t exceptions; in tee_pager_invalidate_fobj() local 1759 uint32_t exceptions; in tee_pager_handle_fault() local [all …]
|
A D | core_mmu_lpae.c | 291 uint32_t exceptions = thread_mask_exceptions(THREAD_EXCP_ALL); in get_prtn() local 295 thread_unmask_exceptions(exceptions); in get_prtn() 957 uint32_t exceptions = thread_mask_exceptions(THREAD_EXCP_ALL); in core_mmu_find_table() local 989 !(exceptions & THREAD_EXCP_FOREIGN_INTR)) in core_mmu_find_table() 1014 thread_unmask_exceptions(exceptions); in core_mmu_find_table() 1124 uint32_t exceptions = thread_mask_exceptions(THREAD_EXCP_ALL); in core_mmu_user_mapping_is_active() local 1130 thread_unmask_exceptions(exceptions); in core_mmu_user_mapping_is_active() 1155 uint32_t exceptions = thread_mask_exceptions(THREAD_EXCP_ALL); in core_mmu_set_user_map() local 1188 thread_unmask_exceptions(exceptions); in core_mmu_set_user_map() 1241 uint32_t exceptions = thread_mask_exceptions(THREAD_EXCP_ALL); in core_mmu_set_user_map() local [all …]
|
/optee_os/lib/libutils/isoc/ |
A D | bget_malloc.c | 181 uint32_t exceptions __unused) in malloc_unlock() 233 malloc_unlock(ctx, exceptions); in gen_malloc_reset_stats() 248 malloc_unlock(ctx, exceptions); in gen_malloc_get_stats() 529 malloc_unlock(ctx, exceptions); in gen_mdbg_malloc() 573 malloc_unlock(ctx, exceptions); in gen_mdbg_calloc() 602 malloc_unlock(ctx, exceptions); in gen_mdbg_realloc() 621 malloc_unlock(ctx, exceptions); in gen_mdbg_memalign() 659 malloc_unlock(ctx, exceptions); in gen_mdbg_check() 790 uint32_t exceptions; in gen_malloc_add_pool() local 809 exceptions = malloc_lock(ctx); in gen_malloc_add_pool() [all …]
|
/optee_os/core/arch/arm/plat-stm32mp1/pm/ |
A D | psci.c | 49 static void __maybe_unused unlock_state_access(uint32_t exceptions) in unlock_state_access() argument 51 may_spin_unlock(&state_lock, exceptions); in unlock_state_access() 105 uint32_t exceptions = lock_state_access(); in stm32mp_register_online_cpu() local 112 unlock_state_access(exceptions); in stm32mp_register_online_cpu() 120 unlock_state_access(exceptions); in stm32mp_register_online_cpu() 150 uint32_t exceptions = 0; in psci_cpu_on() local 159 exceptions = lock_state_access(); in psci_cpu_on() 179 unlock_state_access(exceptions); in psci_cpu_on() 193 uint32_t exceptions = 0; in psci_cpu_off() local 202 exceptions = lock_state_access(); in psci_cpu_off() [all …]
|
/optee_os/core/drivers/ |
A D | stm32_bsec.c | 229 uint32_t exceptions = 0; in stm32_bsec_shadow_register() local 262 bsec_unlock(exceptions); in stm32_bsec_shadow_register() 298 uint32_t exceptions = 0; in stm32_bsec_write_otp() local 314 bsec_unlock(exceptions); in stm32_bsec_write_otp() 323 uint32_t exceptions = 0; in stm32_bsec_program_otp() local 362 bsec_unlock(exceptions); in stm32_bsec_program_otp() 373 uint32_t exceptions = 0; in stm32_bsec_permanent_lock_otp() local 414 bsec_unlock(exceptions); in stm32_bsec_permanent_lock_otp() 424 uint32_t exceptions = 0; in stm32_bsec_write_debug_conf() local 433 bsec_unlock(exceptions); in stm32_bsec_write_debug_conf() [all …]
|
A D | atmel_trng.c | 39 uint32_t exceptions = 0; in atmel_trng_read32() local 42 exceptions = cpu_spin_lock_xsave(&trng_lock); in atmel_trng_read32() 49 cpu_spin_unlock_xrestore(&trng_lock, exceptions); in atmel_trng_read32() 76 uint32_t exceptions = 0; in hw_get_random_byte() local 81 exceptions = cpu_spin_lock_xsave(&trng_random_val_lock); in hw_get_random_byte() 96 cpu_spin_unlock_xrestore(&trng_random_val_lock, exceptions); in hw_get_random_byte()
|
A D | stm32_rng.c | 84 uint32_t exceptions = thread_mask_exceptions(THREAD_EXCP_ALL); in stm32_rng_read_raw() local 122 thread_unmask_exceptions(exceptions); in stm32_rng_read_raw() 130 uint32_t exceptions = may_spin_lock(&dev->lock); in gate_rng() local 147 may_spin_unlock(&dev->lock, exceptions); in gate_rng() 153 uint32_t exceptions = 0; in stm32_rng_read() local 169 exceptions = may_spin_lock(&stm32_rng->lock); in stm32_rng_read() 173 may_spin_unlock(&stm32_rng->lock, exceptions); in stm32_rng_read()
|
A D | hi16xx_rng.c | 74 uint32_t exceptions; in hw_get_random_byte() local 76 exceptions = cpu_spin_lock_xsave(&rng_lock); in hw_get_random_byte() 90 cpu_spin_unlock_xrestore(&rng_lock, exceptions); in hw_get_random_byte()
|
/optee_os/core/drivers/clk/ |
A D | clk.c | 166 uint32_t exceptions = 0; in clk_enable() local 169 exceptions = cpu_spin_lock_xsave(&clk_lock); in clk_enable() 171 cpu_spin_unlock_xrestore(&clk_lock, exceptions); in clk_enable() 178 uint32_t exceptions = 0; in clk_disable() local 180 exceptions = cpu_spin_lock_xsave(&clk_lock); in clk_disable() 182 cpu_spin_unlock_xrestore(&clk_lock, exceptions); in clk_disable() 209 uint32_t exceptions = 0; in clk_set_rate() local 215 exceptions = cpu_spin_lock_xsave(&clk_lock); in clk_set_rate() 222 cpu_spin_unlock_xrestore(&clk_lock, exceptions); in clk_set_rate() 286 uint32_t exceptions = 0; in clk_set_parent() local [all …]
|
/optee_os/core/arch/arm/include/kernel/ |
A D | spinlock.h | 99 uint32_t exceptions = thread_mask_exceptions(THREAD_EXCP_ALL); in cpu_spin_lock_xsave_no_dldetect() local 102 return exceptions; in cpu_spin_lock_xsave_no_dldetect() 114 uint32_t exceptions = thread_mask_exceptions(THREAD_EXCP_ALL); in cpu_spin_lock_xsave_dldetect() local 117 return exceptions; in cpu_spin_lock_xsave_dldetect() 127 uint32_t exceptions) in cpu_spin_unlock_xrestore() argument 130 thread_unmask_exceptions(exceptions); in cpu_spin_unlock_xrestore()
|
/optee_os/core/arch/arm/kernel/ |
A D | virtualization.c | 56 thread_unmask_exceptions(exceptions); in get_current_prtn() 67 thread_unmask_exceptions(exceptions); in set_current_prtn() 253 uint32_t exceptions = 0; in virt_guest_created() local 275 exceptions = cpu_spin_lock_xsave(&prtn_list_lock); in virt_guest_created() 277 cpu_spin_unlock_xrestore(&prtn_list_lock, exceptions); in virt_guest_created() 290 uint32_t exceptions; in virt_guest_destroyed() local 294 exceptions = cpu_spin_lock_xsave(&prtn_list_lock); in virt_guest_destroyed() 302 cpu_spin_unlock_xrestore(&prtn_list_lock, exceptions); in virt_guest_destroyed() 326 uint32_t exceptions; in virt_set_guest() local 337 exceptions = cpu_spin_lock_xsave(&prtn_list_lock); in virt_set_guest() [all …]
|
A D | timer_a64.c | 15 uint32_t exceptions = thread_mask_exceptions(THREAD_EXCP_ALL); in generic_timer_start() local 34 thread_set_exceptions(exceptions); in generic_timer_start() 39 uint32_t exceptions = thread_mask_exceptions(THREAD_EXCP_ALL); in generic_timer_stop() local 49 thread_set_exceptions(exceptions); in generic_timer_stop()
|
A D | thread.c | 391 thread_unmask_exceptions(exceptions); in get_stackcheck_recursion_flag() 798 thread_unmask_exceptions(exceptions); in get_stack_limits() 829 thread_unmask_exceptions(exceptions); in thread_is_in_normal_mode() 983 thread_unmask_exceptions(exceptions); in thread_get_id_may_fail() 1302 return exceptions; in thread_kernel_enable_vfp() 1307 uint32_t exceptions; in thread_kernel_disable_vfp() local 1312 exceptions = thread_get_exceptions(); in thread_kernel_disable_vfp() 1314 exceptions &= ~THREAD_EXCP_FOREIGN_INTR; in thread_kernel_disable_vfp() 1316 thread_set_exceptions(exceptions); in thread_kernel_disable_vfp() 1475 uint32_t exceptions = 0; in thread_enter_user_mode() local [all …]
|
A D | spmc_sp_handler.c | 504 uint32_t exceptions = 0; in ffa_mem_retrieve() local 539 exceptions = cpu_spin_lock_xsave(&mem_ref_lock); in ffa_mem_retrieve() 543 cpu_spin_unlock_xrestore(&mem_ref_lock, exceptions); in ffa_mem_retrieve() 567 exceptions = cpu_spin_lock_xsave(&mem_ref_lock); in ffa_mem_retrieve() 598 uint32_t exceptions = 0; in ffa_mem_relinquish() local 605 exceptions = cpu_spin_lock_xsave(&rxtx->spinlock); in ffa_mem_relinquish() 630 exceptions = cpu_spin_lock_xsave(&mem_ref_lock); in ffa_mem_relinquish() 657 cpu_spin_unlock_xrestore(&mem_ref_lock, exceptions); in ffa_mem_relinquish() 693 uint32_t exceptions = 0; in ffa_mem_reclaim() local 708 exceptions = cpu_spin_lock_xsave(&mem_ref_lock); in ffa_mem_reclaim() [all …]
|
/optee_os/core/drivers/rstctrl/ |
A D | rstctrl.c | 19 uint32_t exceptions = 0; in rstctrl_get_exclusive() local 23 exceptions = cpu_spin_lock_xsave(&rstctrl_lock); in rstctrl_get_exclusive() 30 cpu_spin_unlock_xrestore(&rstctrl_lock, exceptions); in rstctrl_get_exclusive()
|
/optee_os/core/arch/arm/plat-synquacer/ |
A D | rng_pta.c | 226 uint32_t exceptions = thread_mask_exceptions(THREAD_EXCP_ALL); in rng_collect_entropy() local 250 thread_set_exceptions(exceptions); in rng_collect_entropy() 258 uint32_t exceptions; in rng_get_entropy() local 278 exceptions = thread_mask_exceptions(THREAD_EXCP_ALL); in rng_get_entropy() 308 thread_set_exceptions(exceptions); in rng_get_entropy()
|
/optee_os/core/pta/ |
A D | benchmark.c | 192 uint32_t exceptions; in bm_timestamp() local 197 exceptions = thread_mask_exceptions(THREAD_EXCP_ALL); in bm_timestamp() 201 thread_unmask_exceptions(exceptions); in bm_timestamp() 214 thread_unmask_exceptions(exceptions); in bm_timestamp()
|
/optee_os/core/arch/arm/plat-rcar/ |
A D | hw_rng.c | 29 uint32_t exceptions = cpu_spin_lock_xsave(&spin_lock); in hw_get_random_byte() local 45 cpu_spin_unlock_xrestore(&spin_lock, exceptions); in hw_get_random_byte()
|
/optee_os/core/drivers/crypto/caam/ |
A D | caam_jr.c | 183 uint32_t exceptions = 0; in do_jr_dequeue() local 189 exceptions = cpu_spin_lock_xsave(&jr_privdata->outlock); in do_jr_dequeue() 194 cpu_spin_unlock_xrestore(&jr_privdata->outlock, exceptions); in do_jr_dequeue() 277 cpu_spin_unlock_xrestore(&jr_privdata->outlock, exceptions); in do_jr_dequeue() 295 uint32_t exceptions = 0; in do_jr_enqueue() local 300 exceptions = cpu_spin_lock_xsave(&jr_privdata->inlock); in do_jr_enqueue() 379 cpu_spin_unlock_xrestore(&jr_privdata->inlock, exceptions); in do_jr_enqueue()
|
/optee_os/core/arch/arm/plat-stm32mp1/ |
A D | shared_resources.c | 44 static void unlock_stm32shregs(uint32_t exceptions) in unlock_stm32shregs() argument 46 may_spin_unlock(&shregs_lock, exceptions); in unlock_stm32shregs() 51 uint32_t exceptions = lock_stm32shregs(); in io_mask32_stm32shregs() local 55 unlock_stm32shregs(exceptions); in io_mask32_stm32shregs() 60 uint32_t exceptions = lock_stm32shregs(); in io_clrsetbits32_stm32shregs() local 64 unlock_stm32shregs(exceptions); in io_clrsetbits32_stm32shregs()
|