Home
last modified time | relevance | path

Searched refs:exceptions (Results 1 – 25 of 48) sorted by relevance

12

/optee_os-3.20.0/core/kernel/
A Dmutex_lockdep.c40 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 …]
A Dthread.c214 uint32_t exceptions = thread_mask_exceptions(THREAD_EXCP_FOREIGN_INTR); in get_stackcheck_recursion_flag() local
225 thread_unmask_exceptions(exceptions); in get_stackcheck_recursion_flag()
306 uint32_t exceptions = thread_mask_exceptions(THREAD_EXCP_FOREIGN_INTR); in get_stack_limits() local
337 thread_unmask_exceptions(exceptions); in get_stack_limits()
354 uint32_t exceptions = thread_mask_exceptions(THREAD_EXCP_FOREIGN_INTR); in thread_is_in_normal_mode() local
364 thread_unmask_exceptions(exceptions); in thread_is_in_normal_mode()
374 uint32_t exceptions = thread_mask_exceptions(THREAD_EXCP_FOREIGN_INTR); in thread_get_id_may_fail() local
378 thread_unmask_exceptions(exceptions); in thread_get_id_may_fail()
518 uint32_t exceptions = thread_mask_exceptions(THREAD_EXCP_FOREIGN_INTR); in thread_set_foreign_intr() local
528 thread_set_exceptions(exceptions & ~THREAD_EXCP_FOREIGN_INTR); in thread_set_foreign_intr()
[all …]
/optee_os-3.20.0/core/drivers/
A Dstm32_shared_io.c18 static void unlock_stm32shregs(uint32_t exceptions) in unlock_stm32shregs() argument
20 may_spin_unlock(&shregs_lock, exceptions); in unlock_stm32shregs()
25 uint32_t exceptions = lock_stm32shregs(); in io_mask32_stm32shregs() local
29 unlock_stm32shregs(exceptions); in io_mask32_stm32shregs()
34 uint32_t exceptions = lock_stm32shregs(); in io_clrsetbits32_stm32shregs() local
38 unlock_stm32shregs(exceptions); in io_clrsetbits32_stm32shregs()
A Dhi16xx_rng.c75 uint32_t exceptions; in hw_get_random_bytes() local
77 exceptions = cpu_spin_lock_xsave(&rng_lock); in hw_get_random_bytes()
81 cpu_spin_unlock_xrestore(&rng_lock, exceptions); in hw_get_random_bytes()
84 exceptions = cpu_spin_lock_xsave(&rng_lock); in hw_get_random_bytes()
94 cpu_spin_unlock_xrestore(&rng_lock, exceptions); in hw_get_random_bytes()
A Dstm32_bsec.c253 uint32_t exceptions = 0; in stm32_bsec_shadow_register() local
268 exceptions = bsec_lock(); in stm32_bsec_shadow_register()
289 bsec_unlock(exceptions); in stm32_bsec_shadow_register()
328 uint32_t exceptions = 0; in stm32_bsec_write_otp() local
347 bsec_unlock(exceptions); in stm32_bsec_write_otp()
356 uint32_t exceptions = 0; in stm32_bsec_program_otp() local
398 bsec_unlock(exceptions); in stm32_bsec_program_otp()
409 uint32_t exceptions = 0; in stm32_bsec_permanent_lock_otp() local
473 bsec_unlock(exceptions); in stm32_bsec_permanent_lock_otp()
481 uint32_t exceptions = 0; in stm32_bsec_write_debug_conf() local
[all …]
A Datmel_trng.c33 uint32_t exceptions = 0; in atmel_trng_read32() local
36 exceptions = cpu_spin_lock_xsave(&trng_lock); in atmel_trng_read32()
43 cpu_spin_unlock_xrestore(&trng_lock, exceptions); in atmel_trng_read32()
A Dstm32_rng.c123 uint32_t exceptions = may_spin_lock(&dev->lock); in gate_rng() local
142 may_spin_unlock(&dev->lock, exceptions); in gate_rng()
150 uint32_t exceptions = 0; in stm32_rng_read() local
171 exceptions = may_spin_lock(&stm32_rng->lock); in stm32_rng_read()
180 may_spin_unlock(&stm32_rng->lock, exceptions); in stm32_rng_read()
/optee_os-3.20.0/core/arch/arm/mm/
A Dmobj_dyn_shm.c131 cpu_spin_unlock_xrestore(&reg_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(&reg_shm_slist_lock); in mobj_reg_shm_free()
158 exceptions = cpu_spin_lock_xsave(&reg_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(&reg_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(&reg_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(&reg_shm_slist_lock); in mobj_reg_shm_alloc()
[all …]
A Dsp_mem.c162 uint32_t exceptions = 0; in inactivate() local
164 exceptions = cpu_spin_lock_xsave(&sp_mem_lock); in inactivate()
173 cpu_spin_unlock_xrestore(&sp_mem_lock, exceptions); in inactivate()
205 cpu_spin_unlock_xrestore(&sp_mem_lock, exceptions); in sp_mem_get()
224 uint32_t exceptions = 0; in sp_mem_new() local
231 exceptions = cpu_spin_lock_xsave(&sp_mem_lock); in sp_mem_new()
248 cpu_spin_unlock_xrestore(&sp_mem_lock, exceptions); in sp_mem_new()
259 cpu_spin_unlock_xrestore(&sp_mem_lock, exceptions); in sp_mem_add()
282 exceptions); in sp_mem_is_shared()
295 uint32_t exceptions = 0; in sp_mem_remove() local
[all …]
A Dmobj_ffa.c89 uint32_t exceptions = 0; in mobj_ffa_sel1_spmc_new() local
96 exceptions = cpu_spin_lock_xsave(&shm_lock); in mobj_ffa_sel1_spmc_new()
179 uint32_t exceptions = 0; in mobj_ffa_sel1_spmc_delete() local
183 exceptions = cpu_spin_lock_xsave(&shm_lock); in mobj_ffa_sel1_spmc_delete()
235 uint32_t exceptions = 0; in mobj_ffa_push_to_inactive() local
262 uint32_t exceptions = 0; in mobj_ffa_sel1_spmc_reclaim() local
307 uint32_t exceptions = 0; in mobj_ffa_unregister_by_cookie() local
352 uint32_t exceptions = 0; in mobj_ffa_get_by_cookie() local
480 uint32_t exceptions = 0; in ffa_inactivate() local
528 uint32_t exceptions = 0; in ffa_inc_map() local
[all …]
A Dcore_mmu.c101 uint32_t exceptions = thread_mask_exceptions(THREAD_EXCP_FOREIGN_INTR); in cache_op_outer() local
131 thread_set_exceptions(exceptions); in cache_op_outer()
138 uint32_t exceptions = cpu_spin_lock_xsave(&g_asid_spinlock); in asid_alloc() local
150 cpu_spin_unlock_xrestore(&g_asid_spinlock, exceptions); in asid_alloc()
156 uint32_t exceptions = cpu_spin_lock_xsave(&g_asid_spinlock); in asid_free() local
168 cpu_spin_unlock_xrestore(&g_asid_spinlock, exceptions); in asid_free()
173 uint32_t exceptions = thread_mask_exceptions(THREAD_EXCP_ALL); in arch_va2pa_helper() local
203 thread_unmask_exceptions(exceptions); in arch_va2pa_helper()
/optee_os-3.20.0/core/arch/arm/plat-stm32mp1/pm/
A Dpsci.c51 static void __maybe_unused unlock_state_access(uint32_t exceptions) in unlock_state_access() argument
53 may_spin_unlock(&state_lock, exceptions); in unlock_state_access()
107 uint32_t exceptions = lock_state_access(); in stm32mp_register_online_cpu() local
114 unlock_state_access(exceptions); in stm32mp_register_online_cpu()
122 unlock_state_access(exceptions); in stm32mp_register_online_cpu()
152 uint32_t exceptions = 0; in psci_cpu_on() local
161 exceptions = lock_state_access(); in psci_cpu_on()
181 unlock_state_access(exceptions); in psci_cpu_on()
195 uint32_t exceptions = 0; in psci_cpu_off() local
204 exceptions = lock_state_access(); in psci_cpu_off()
[all …]
/optee_os-3.20.0/core/include/kernel/
A Dspinlock.h98 uint32_t exceptions = thread_mask_exceptions(THREAD_EXCP_ALL); in cpu_spin_lock_xsave_no_dldetect() local
101 return exceptions; in cpu_spin_lock_xsave_no_dldetect()
112 uint32_t exceptions = thread_mask_exceptions(THREAD_EXCP_ALL); in cpu_spin_lock_xsave_dldetect() local
115 return exceptions; in cpu_spin_lock_xsave_dldetect()
125 uint32_t exceptions) in cpu_spin_unlock_xrestore() argument
128 thread_unmask_exceptions(exceptions); in cpu_spin_unlock_xrestore()
/optee_os-3.20.0/core/mm/
A Dtee_mm.c110 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 …]
/optee_os-3.20.0/core/arch/arm/kernel/
A Dtimer_a64.c15 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 Dvirtualization.c56 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 Dthread.c71 if (!(exceptions & THREAD_EXCP_FOREIGN_INTR)) in thread_set_exceptions()
96 if (!(exceptions & THREAD_EXCP_FOREIGN_INTR)) in thread_set_exceptions()
810 return exceptions; in thread_kernel_enable_vfp()
815 uint32_t exceptions; in thread_kernel_disable_vfp() local
820 exceptions = thread_get_exceptions(); in thread_kernel_disable_vfp()
821 assert(exceptions & THREAD_EXCP_FOREIGN_INTR); in thread_kernel_disable_vfp()
822 exceptions &= ~THREAD_EXCP_FOREIGN_INTR; in thread_kernel_disable_vfp()
823 exceptions |= state & THREAD_EXCP_FOREIGN_INTR; in thread_kernel_disable_vfp()
824 thread_set_exceptions(exceptions); in thread_kernel_disable_vfp()
1002 uint32_t exceptions = 0; in thread_enter_user_mode() local
[all …]
A Dspmc_sp_handler.c505 uint32_t exceptions = 0; in ffa_mem_retrieve() local
540 exceptions = cpu_spin_lock_xsave(&mem_ref_lock); in ffa_mem_retrieve()
544 cpu_spin_unlock_xrestore(&mem_ref_lock, exceptions); in ffa_mem_retrieve()
568 exceptions = cpu_spin_lock_xsave(&mem_ref_lock); in ffa_mem_retrieve()
599 uint32_t exceptions = 0; in ffa_mem_relinquish() local
606 exceptions = cpu_spin_lock_xsave(&rxtx->spinlock); in ffa_mem_relinquish()
631 exceptions = cpu_spin_lock_xsave(&mem_ref_lock); in ffa_mem_relinquish()
658 cpu_spin_unlock_xrestore(&mem_ref_lock, exceptions); in ffa_mem_relinquish()
694 uint32_t exceptions = 0; in ffa_mem_reclaim() local
709 exceptions = cpu_spin_lock_xsave(&mem_ref_lock); in ffa_mem_reclaim()
[all …]
/optee_os-3.20.0/core/drivers/wdt/
A Dwatchdog_sm.c27 uint32_t exceptions = 0; in __wdt_sm_handler() local
33 exceptions = cpu_spin_lock_xsave(&wdt_lock); in __wdt_sm_handler()
35 cpu_spin_unlock_xrestore(&wdt_lock, exceptions); in __wdt_sm_handler()
46 exceptions = cpu_spin_lock_xsave(&wdt_lock); in __wdt_sm_handler()
49 cpu_spin_unlock_xrestore(&wdt_lock, exceptions); in __wdt_sm_handler()
/optee_os-3.20.0/lib/libutils/isoc/
A Dbget_malloc.c165 uint32_t exceptions __unused) in malloc_unlock()
302 malloc_unlock(ctx, exceptions); in gen_malloc_reset_stats()
316 malloc_unlock(ctx, exceptions); in gen_malloc_get_stats()
589 malloc_unlock(ctx, exceptions); in gen_mdbg_malloc()
633 malloc_unlock(ctx, exceptions); in gen_mdbg_calloc()
662 malloc_unlock(ctx, exceptions); in gen_mdbg_realloc()
681 malloc_unlock(ctx, exceptions); in gen_mdbg_memalign()
719 malloc_unlock(ctx, exceptions); in gen_mdbg_check()
872 malloc_unlock(ctx, exceptions); in gen_malloc_add_pool()
882 malloc_unlock(ctx, exceptions); in gen_malloc_buffer_is_within_alloced()
[all …]
/optee_os-3.20.0/core/drivers/clk/
A Dclk.c166 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-3.20.0/core/drivers/imx/mu/
A Dimx_mu.c120 uint32_t exceptions = 0; in imx_mu_init() local
127 exceptions = cpu_spin_lock_xsave(&mu_spinlock); in imx_mu_init()
131 cpu_spin_unlock_xrestore(&mu_spinlock, exceptions); in imx_mu_init()
138 uint32_t exceptions = 0; in imx_mu_call() local
143 exceptions = cpu_spin_lock_xsave(&mu_spinlock); in imx_mu_call()
149 cpu_spin_unlock_xrestore(&mu_spinlock, exceptions); in imx_mu_call()
/optee_os-3.20.0/core/drivers/rstctrl/
A Drstctrl.c19 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-3.20.0/core/arch/arm/plat-rcar/
A Dhw_rng.c29 uint32_t exceptions; in hw_get_random_bytes() local
37 exceptions = cpu_spin_lock_xsave(&spin_lock); in hw_get_random_bytes()
51 cpu_spin_unlock_xrestore(&spin_lock, exceptions); in hw_get_random_bytes()
/optee_os-3.20.0/core/arch/arm/plat-synquacer/
A Drng_pta.c227 uint32_t exceptions = thread_mask_exceptions(THREAD_EXCP_ALL); in rng_collect_entropy() local
251 thread_set_exceptions(exceptions); in rng_collect_entropy()
259 uint32_t exceptions; in rng_get_entropy() local
279 exceptions = thread_mask_exceptions(THREAD_EXCP_ALL); in rng_get_entropy()
309 thread_set_exceptions(exceptions); in rng_get_entropy()

Completed in 36 milliseconds

12