Home
last modified time | relevance | path

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

/optee_os-3.20.0/core/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()
83 rc = __cpu_spin_trylock(lock); in cpu_spin_trylock()
92 __cpu_spin_unlock(lock); in cpu_spin_unlock()
100 cpu_spin_lock(lock); in cpu_spin_lock_xsave_no_dldetect()
105 #define cpu_spin_lock_xsave(lock) \ argument
110 unsigned int *lock) in cpu_spin_lock_xsave_dldetect() argument
[all …]
/optee_os-3.20.0/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-3.20.0/core/lib/libtomcrypt/src/prngs/
A Dchacha20.c37 LTC_MUTEX_INIT(&prng->lock) in chacha20_prng_start()
58 LTC_MUTEX_LOCK(&prng->lock); in chacha20_prng_add_entropy()
76 LTC_MUTEX_UNLOCK(&prng->lock); in chacha20_prng_add_entropy()
91 LTC_MUTEX_LOCK(&prng->lock); in chacha20_prng_ready()
101 LTC_MUTEX_UNLOCK(&prng->lock); in chacha20_prng_ready()
115 LTC_MUTEX_LOCK(&prng->lock); in chacha20_prng_read()
119 LTC_MUTEX_UNLOCK(&prng->lock); in chacha20_prng_read()
132 LTC_MUTEX_LOCK(&prng->lock); in chacha20_prng_done()
135 LTC_MUTEX_UNLOCK(&prng->lock); in chacha20_prng_done()
136 LTC_MUTEX_DESTROY(&prng->lock); in chacha20_prng_done()
A Dsober128.c39 LTC_MUTEX_INIT(&prng->lock) in sober128_start()
60 LTC_MUTEX_LOCK(&prng->lock); in sober128_add_entropy()
78 LTC_MUTEX_UNLOCK(&prng->lock); in sober128_add_entropy()
93 LTC_MUTEX_LOCK(&prng->lock); in sober128_ready()
103 LTC_MUTEX_UNLOCK(&prng->lock); in sober128_ready()
117 LTC_MUTEX_LOCK(&prng->lock); in sober128_read()
121 LTC_MUTEX_UNLOCK(&prng->lock); in sober128_read()
134 LTC_MUTEX_LOCK(&prng->lock); in sober128_done()
137 LTC_MUTEX_UNLOCK(&prng->lock); in sober128_done()
138 LTC_MUTEX_DESTROY(&prng->lock); in sober128_done()
A Drc4.c39 LTC_MUTEX_INIT(&prng->lock) in rc4_start()
60 LTC_MUTEX_LOCK(&prng->lock); in rc4_add_entropy()
77 LTC_MUTEX_UNLOCK(&prng->lock); in rc4_add_entropy()
94 LTC_MUTEX_LOCK(&prng->lock); in rc4_ready()
104 LTC_MUTEX_UNLOCK(&prng->lock); in rc4_ready()
118 LTC_MUTEX_LOCK(&prng->lock); in rc4_read()
122 LTC_MUTEX_UNLOCK(&prng->lock); in rc4_read()
135 LTC_MUTEX_LOCK(&prng->lock); in rc4_done()
138 LTC_MUTEX_UNLOCK(&prng->lock); in rc4_done()
139 LTC_MUTEX_DESTROY(&prng->lock); in rc4_done()
A Dfortuna.c186 LTC_MUTEX_LOCK(&prng->lock); in fortuna_update_seed()
204 LTC_MUTEX_UNLOCK(&prng->lock); in fortuna_update_seed()
247 LTC_MUTEX_INIT(&prng->lock) in fortuna_start()
297 LTC_MUTEX_LOCK(&prng->lock); in fortuna_add_random_event()
301 LTC_MUTEX_UNLOCK(&prng->lock); in fortuna_add_random_event()
321 LTC_MUTEX_LOCK(&prng->lock); in fortuna_add_entropy()
330 LTC_MUTEX_UNLOCK(&prng->lock); in fortuna_add_entropy()
345 LTC_MUTEX_LOCK(&prng->lock); in fortuna_ready()
356 LTC_MUTEX_UNLOCK(&prng->lock); in fortuna_ready()
374 LTC_MUTEX_LOCK(&prng->lock); in fortuna_read()
[all …]
A Dyarrow.c116 LTC_MUTEX_INIT(&prng->lock) in yarrow_start()
137 LTC_MUTEX_LOCK(&prng->lock); in yarrow_add_entropy()
163 LTC_MUTEX_UNLOCK(&prng->lock); in yarrow_add_entropy()
178 LTC_MUTEX_LOCK(&prng->lock); in yarrow_ready()
205 LTC_MUTEX_UNLOCK(&prng->lock); in yarrow_ready()
220 LTC_MUTEX_LOCK(&prng->lock); in yarrow_read()
236 LTC_MUTEX_UNLOCK(&prng->lock); in yarrow_read()
250 LTC_MUTEX_LOCK(&prng->lock); in yarrow_done()
258 LTC_MUTEX_UNLOCK(&prng->lock); in yarrow_done()
259 LTC_MUTEX_DESTROY(&prng->lock); in yarrow_done()
/optee_os-3.20.0/core/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-3.20.0/core/drivers/
A Dstm32mp15_huk.c131 bool lock = true; in tee_otp_get_hw_unique_key() local
138 ret = stm32mp15_read_otp(CFG_STM32MP15_HUK_BSEC_KEY_0, key++, &lock); in tee_otp_get_hw_unique_key()
142 ret = stm32mp15_read_otp(CFG_STM32MP15_HUK_BSEC_KEY_1, key++, &lock); in tee_otp_get_hw_unique_key()
146 ret = stm32mp15_read_otp(CFG_STM32MP15_HUK_BSEC_KEY_2, key++, &lock); in tee_otp_get_hw_unique_key()
150 ret = stm32mp15_read_otp(CFG_STM32MP15_HUK_BSEC_KEY_3, key++, &lock); in tee_otp_get_hw_unique_key()
176 IMSG("HUK %slocked", lock ? "" : "un"); in tee_otp_get_hw_unique_key()
A Dversal_sha3_384.c16 static struct mutex lock = MUTEX_INITIALIZER; variable
78 mutex_lock(&lock); in versal_sha3_384()
84 mutex_unlock(&lock); in versal_sha3_384()
A Dstm32_rng.c44 unsigned int lock; member
123 uint32_t exceptions = may_spin_lock(&dev->lock); in gate_rng()
142 may_spin_unlock(&dev->lock, exceptions); in gate_rng()
171 exceptions = may_spin_lock(&stm32_rng->lock); in stm32_rng_read()
180 may_spin_unlock(&stm32_rng->lock, exceptions); in stm32_rng_read()
A Dversal_mbox.c60 struct mutex lock; member
299 mutex_lock(&ipi.lock); in versal_mbox_notify()
335 mutex_unlock(&ipi.lock); in versal_mbox_notify()
374 mutex_init(&ipi.lock); in versal_mbox_init()
A Dstm32_bsec.c119 static unsigned int lock = SPINLOCK_UNLOCK; variable
123 return may_spin_lock(&lock); in bsec_lock()
128 may_spin_unlock(&lock, exceptions); in bsec_unlock()
/optee_os-3.20.0/core/drivers/crypto/versal/
A Dauthenc.c186 .lock = &engine_lock,
771 mutex_lock(engine.lock); in do_update_payload_locked()
773 mutex_unlock(engine.lock); in do_update_payload_locked()
782 mutex_lock(engine.lock); in do_update_aad_locked()
784 mutex_unlock(engine.lock); in do_update_aad_locked()
790 mutex_lock(engine.lock); in do_copy_state_locked()
792 mutex_unlock(engine.lock); in do_copy_state_locked()
799 mutex_lock(engine.lock); in do_enc_final_locked()
809 mutex_lock(engine.lock); in do_dec_final_locked()
817 mutex_lock(engine.lock); in do_free_locked()
[all …]
/optee_os-3.20.0/core/arch/arm/plat-stm32mp1/
A Dmain.c386 uint32_t may_spin_lock(unsigned int *lock) in may_spin_lock() argument
388 if (!lock || !cpu_mmu_enabled()) in may_spin_lock()
391 return cpu_spin_lock_xsave(lock); in may_spin_lock()
394 void may_spin_unlock(unsigned int *lock, uint32_t exceptions) in may_spin_unlock() argument
396 if (!lock || !cpu_mmu_enabled()) in may_spin_unlock()
399 cpu_spin_unlock_xrestore(lock, exceptions); in may_spin_unlock()
A Dstm32_util.h66 uint32_t may_spin_lock(unsigned int *lock);
67 void may_spin_unlock(unsigned int *lock, uint32_t exceptions);
/optee_os-3.20.0/core/drivers/crypto/stm32/
A Dstm32_cryp.h48 struct mutex *lock; /* Protect CRYP HW instance access */ member
A Dstm32_cryp.c653 ctx->lock = &cryp_lock; in stm32_cryp_init()
794 mutex_lock(ctx->lock); in stm32_cryp_update_assodata()
863 mutex_unlock(ctx->lock); in stm32_cryp_update_assodata()
889 mutex_lock(ctx->lock); in stm32_cryp_update_load()
996 mutex_unlock(ctx->lock); in stm32_cryp_update_load()
1016 mutex_lock(ctx->lock); in stm32_cryp_final()
1094 mutex_unlock(ctx->lock); in stm32_cryp_final()
1116 mutex_lock(ctx->lock); in stm32_cryp_update()
1243 mutex_unlock(ctx->lock); in stm32_cryp_update()
/optee_os-3.20.0/core/lib/libtomcrypt/src/math/fp/
A Dltc_ecc_fp_mulmod.c33 int lock; /* flag to indicate cache eviction permitted (0) or not (1) */ member
574 if (fp_cache[x].lru_count < y && fp_cache[x].lock == 0) { in s_find_hole()
1306 fp_cache[x].lock = 0; in s_ltc_ecc_fp_free_cache()
1326 ltc_ecc_fp_add_point(ecc_point *g, void *modulus, int lock) in ltc_ecc_fp_add_point() argument
1367 fp_cache[idx].lock = lock; in ltc_ecc_fp_add_point()
1382 void ltc_ecc_fp_tablelock(int lock) in ltc_ecc_fp_tablelock() argument
1388 fp_cache[i].lock = lock; in ltc_ecc_fp_tablelock()
1561 fp_cache[i].lock = 1; in ltc_ecc_fp_restore_state()
/optee_os-3.20.0/core/include/mm/
A Dtee_mm.h33 unsigned int lock; member
/optee_os-3.20.0/core/lib/libtomcrypt/src/headers/
A Dtomcrypt_prng.h71 LTC_MUTEX_TYPE(lock) /* lock */
A Dtomcrypt_private.h320 int ltc_ecc_fp_add_point(ecc_point *g, void *modulus, int lock);
323 void ltc_ecc_fp_tablelock(int lock);
/optee_os-3.20.0/
A DCHANGELOG.md1517 * support PL310 lock down at TEE boot

Completed in 43 milliseconds