Home
last modified time | relevance | path

Searched refs:lock (Results 1 – 19 of 19) sorted by relevance

/optee_os/core/arch/arm/include/kernel/
A Dspinlock.h41 __cpu_spin_lock(lock); in cpu_spin_lock_no_dldetect()
46 #define cpu_spin_lock(lock) \ argument
50 unsigned int *lock) in cpu_spin_lock_dldetect() argument
57 while (__cpu_spin_trylock(lock)) { in cpu_spin_lock_dldetect()
74 cpu_spin_lock_no_dldetect(lock); in cpu_spin_lock()
84 rc = __cpu_spin_trylock(lock); in cpu_spin_trylock()
93 __cpu_spin_unlock(lock); in cpu_spin_unlock()
101 cpu_spin_lock(lock); in cpu_spin_lock_xsave_no_dldetect()
107 #define cpu_spin_lock_xsave(lock) \ argument
112 unsigned int *lock) in cpu_spin_lock_xsave_dldetect() argument
[all …]
/optee_os/core/kernel/
A Dlockdep.c349 res = lockdep_add_edge(lock->node, node, lock->call_stack, in __lockdep_lock_acquire()
363 lock = calloc(1, sizeof(*lock)); in __lockdep_lock_acquire()
364 if (!lock) in __lockdep_lock_acquire()
367 lock->node = node; in __lockdep_lock_acquire()
368 lock->call_stack = acq_stack; in __lockdep_lock_acquire()
392 lock = calloc(1, sizeof(*lock)); in __lockdep_lock_tryacquire()
393 if (!lock) in __lockdep_lock_tryacquire()
396 lock->node = node; in __lockdep_lock_tryacquire()
410 free(lock->call_stack); in __lockdep_lock_release()
411 free(lock); in __lockdep_lock_release()
[all …]
/optee_os/core/arch/arm/mm/
A Dtee_mm.c66 pool->lock = SPINLOCK_UNLOCK; in tee_mm_init()
117 exceptions = cpu_spin_lock_xsave(&pool->lock); in tee_mm_get_pool_stats()
125 cpu_spin_unlock_xrestore(&pool->lock, exceptions); in tee_mm_get_pool_stats()
157 exceptions = cpu_spin_lock_xsave(&pool->lock); in tee_mm_alloc()
219 cpu_spin_unlock_xrestore(&pool->lock, exceptions); in tee_mm_alloc()
222 cpu_spin_unlock_xrestore(&pool->lock, exceptions); in tee_mm_alloc()
268 exceptions = cpu_spin_lock_xsave(&pool->lock); in tee_mm_alloc2()
295 cpu_spin_unlock_xrestore(&pool->lock, exceptions); in tee_mm_alloc2()
298 cpu_spin_unlock_xrestore(&pool->lock, exceptions); in tee_mm_alloc2()
311 exceptions = cpu_spin_lock_xsave(&p->pool->lock); in tee_mm_free()
[all …]
/optee_os/core/lib/libtomcrypt/src/prngs/
A Dsober128.c46 LTC_MUTEX_INIT(&prng->lock) in sober128_start()
67 LTC_MUTEX_LOCK(&prng->lock); in sober128_add_entropy()
85 LTC_MUTEX_UNLOCK(&prng->lock); in sober128_add_entropy()
100 LTC_MUTEX_LOCK(&prng->lock); in sober128_ready()
110 LTC_MUTEX_UNLOCK(&prng->lock); in sober128_ready()
124 LTC_MUTEX_LOCK(&prng->lock); in sober128_read()
128 LTC_MUTEX_UNLOCK(&prng->lock); in sober128_read()
141 LTC_MUTEX_LOCK(&prng->lock); in sober128_done()
144 LTC_MUTEX_UNLOCK(&prng->lock); in sober128_done()
145 LTC_MUTEX_DESTROY(&prng->lock); in sober128_done()
A Dchacha20.c44 LTC_MUTEX_INIT(&prng->lock) in chacha20_prng_start()
65 LTC_MUTEX_LOCK(&prng->lock); in chacha20_prng_add_entropy()
83 LTC_MUTEX_UNLOCK(&prng->lock); in chacha20_prng_add_entropy()
98 LTC_MUTEX_LOCK(&prng->lock); in chacha20_prng_ready()
108 LTC_MUTEX_UNLOCK(&prng->lock); in chacha20_prng_ready()
122 LTC_MUTEX_LOCK(&prng->lock); in chacha20_prng_read()
126 LTC_MUTEX_UNLOCK(&prng->lock); in chacha20_prng_read()
139 LTC_MUTEX_LOCK(&prng->lock); in chacha20_prng_done()
142 LTC_MUTEX_UNLOCK(&prng->lock); in chacha20_prng_done()
143 LTC_MUTEX_DESTROY(&prng->lock); in chacha20_prng_done()
A Drc4.c46 LTC_MUTEX_INIT(&prng->lock) in rc4_start()
67 LTC_MUTEX_LOCK(&prng->lock); in rc4_add_entropy()
84 LTC_MUTEX_UNLOCK(&prng->lock); in rc4_add_entropy()
101 LTC_MUTEX_LOCK(&prng->lock); in rc4_ready()
111 LTC_MUTEX_UNLOCK(&prng->lock); in rc4_ready()
125 LTC_MUTEX_LOCK(&prng->lock); in rc4_read()
129 LTC_MUTEX_UNLOCK(&prng->lock); in rc4_read()
142 LTC_MUTEX_LOCK(&prng->lock); in rc4_done()
145 LTC_MUTEX_UNLOCK(&prng->lock); in rc4_done()
146 LTC_MUTEX_DESTROY(&prng->lock); in rc4_done()
A Dfortuna.c193 LTC_MUTEX_LOCK(&prng->lock); in fortuna_update_seed()
211 LTC_MUTEX_UNLOCK(&prng->lock); in fortuna_update_seed()
254 LTC_MUTEX_INIT(&prng->lock) in fortuna_start()
304 LTC_MUTEX_LOCK(&prng->lock); in fortuna_add_random_event()
308 LTC_MUTEX_UNLOCK(&prng->lock); in fortuna_add_random_event()
328 LTC_MUTEX_LOCK(&prng->lock); in fortuna_add_entropy()
337 LTC_MUTEX_UNLOCK(&prng->lock); in fortuna_add_entropy()
352 LTC_MUTEX_LOCK(&prng->lock); in fortuna_ready()
363 LTC_MUTEX_UNLOCK(&prng->lock); in fortuna_ready()
381 LTC_MUTEX_LOCK(&prng->lock); in fortuna_read()
[all …]
A Dyarrow.c123 LTC_MUTEX_INIT(&prng->lock) in yarrow_start()
144 LTC_MUTEX_LOCK(&prng->lock); in yarrow_add_entropy()
170 LTC_MUTEX_UNLOCK(&prng->lock); in yarrow_add_entropy()
185 LTC_MUTEX_LOCK(&prng->lock); in yarrow_ready()
212 LTC_MUTEX_UNLOCK(&prng->lock); in yarrow_ready()
227 LTC_MUTEX_LOCK(&prng->lock); in yarrow_read()
243 LTC_MUTEX_UNLOCK(&prng->lock); in yarrow_read()
257 LTC_MUTEX_LOCK(&prng->lock); in yarrow_done()
265 LTC_MUTEX_UNLOCK(&prng->lock); in yarrow_done()
266 LTC_MUTEX_DESTROY(&prng->lock); in yarrow_done()
/optee_os/core/arch/arm/plat-stm32mp1/
A Dmain.c234 uint32_t may_spin_lock(unsigned int *lock) in may_spin_lock() argument
236 if (!lock || !cpu_mmu_enabled()) in may_spin_lock()
239 return cpu_spin_lock_xsave(lock); in may_spin_lock()
242 void may_spin_unlock(unsigned int *lock, uint32_t exceptions) in may_spin_unlock() argument
244 if (!lock || !cpu_mmu_enabled()) in may_spin_unlock()
247 cpu_spin_unlock_xrestore(lock, exceptions); in may_spin_unlock()
A Dstm32_util.h64 uint32_t may_spin_lock(unsigned int *lock);
65 void may_spin_unlock(unsigned int *lock, uint32_t exceptions);
/optee_os/core/drivers/
A Dstm32_rng.c42 unsigned int lock; member
130 uint32_t exceptions = may_spin_lock(&dev->lock); in gate_rng()
147 may_spin_unlock(&dev->lock, exceptions); in gate_rng()
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 Dstm32_bsec.c124 static unsigned int lock = SPINLOCK_UNLOCK; variable
128 return may_spin_lock(&lock); in bsec_lock()
133 may_spin_unlock(&lock, exceptions); in bsec_unlock()
/optee_os/core/lib/libtomcrypt/src/math/fp/
A Dltc_ecc_fp_mulmod.c40 int lock; /* flag to indicate cache eviction permitted (0) or not (1) */ member
581 if (fp_cache[x].lru_count < y && fp_cache[x].lock == 0) { in _find_hole()
1313 fp_cache[x].lock = 0; in _ltc_ecc_fp_free_cache()
1333 ltc_ecc_fp_add_point(ecc_point *g, void *modulus, int lock) in ltc_ecc_fp_add_point() argument
1374 fp_cache[idx].lock = lock; in ltc_ecc_fp_add_point()
1389 void ltc_ecc_fp_tablelock(int lock) in ltc_ecc_fp_tablelock() argument
1395 fp_cache[i].lock = lock; in ltc_ecc_fp_tablelock()
1568 fp_cache[i].lock = 1; in ltc_ecc_fp_restore_state()
/optee_os/core/drivers/crypto/stm32/
A Dstm32_cryp.c648 ctx->lock = &cryp_lock; in stm32_cryp_init()
789 mutex_lock(ctx->lock); in stm32_cryp_update_assodata()
858 mutex_unlock(ctx->lock); in stm32_cryp_update_assodata()
884 mutex_lock(ctx->lock); in stm32_cryp_update_load()
991 mutex_unlock(ctx->lock); in stm32_cryp_update_load()
1011 mutex_lock(ctx->lock); in stm32_cryp_final()
1089 mutex_unlock(ctx->lock); in stm32_cryp_final()
1111 mutex_lock(ctx->lock); in stm32_cryp_update()
1238 mutex_unlock(ctx->lock); in stm32_cryp_update()
A Dstm32_cryp.h40 struct mutex *lock; /* Protect CRYP HW instance access */ member
/optee_os/core/include/mm/
A Dtee_mm.h33 unsigned int lock; member
/optee_os/core/lib/libtomcrypt/src/headers/
A Dtomcrypt_prng.h78 LTC_MUTEX_TYPE(lock) /* lock */
A Dtomcrypt_private.h292 int ltc_ecc_fp_add_point(ecc_point *g, void *modulus, int lock);
295 void ltc_ecc_fp_tablelock(int lock);
/optee_os/
A DCHANGELOG.md1396 * support PL310 lock down at TEE boot

Completed in 29 milliseconds