Home
last modified time | relevance | path

Searched refs:mutex (Results 1 – 25 of 51) sorted by relevance

123

/optee_os-3.20.0/lib/libmbedtls/mbedtls/library/
A Dthreading.c67 if( mutex == NULL ) in threading_mutex_init_pthread()
76 mutex->is_valid = pthread_mutex_init( &mutex->mutex, NULL ) == 0; in threading_mutex_init_pthread()
81 if( mutex == NULL || !mutex->is_valid ) in threading_mutex_free_pthread()
84 (void) pthread_mutex_destroy( &mutex->mutex ); in threading_mutex_free_pthread()
85 mutex->is_valid = 0; in threading_mutex_free_pthread()
90 if( mutex == NULL || ! mutex->is_valid ) in threading_mutex_lock_pthread()
93 if( pthread_mutex_lock( &mutex->mutex ) != 0 ) in threading_mutex_lock_pthread()
101 if( mutex == NULL || ! mutex->is_valid ) in threading_mutex_unlock_pthread()
104 if( pthread_mutex_unlock( &mutex->mutex ) != 0 ) in threading_mutex_unlock_pthread()
125 ((void) mutex ); in threading_mutex_fail()
[all …]
A Dssl_cookie.c79 mbedtls_mutex_init( &ctx->mutex ); in mbedtls_ssl_cookie_init()
93 mbedtls_mutex_free( &ctx->mutex ); in mbedtls_ssl_cookie_free()
175 if( ( ret = mbedtls_mutex_lock( &ctx->mutex ) ) != 0 ) in mbedtls_ssl_cookie_write()
183 if( mbedtls_mutex_unlock( &ctx->mutex ) != 0 ) in mbedtls_ssl_cookie_write()
211 if( ( ret = mbedtls_mutex_lock( &ctx->mutex ) ) != 0 ) in mbedtls_ssl_cookie_check()
221 if( mbedtls_mutex_unlock( &ctx->mutex ) != 0 ) in mbedtls_ssl_cookie_check()
A Dssl_cache.c49 mbedtls_mutex_init( &cache->mutex ); in mbedtls_ssl_cache_init()
63 if( mbedtls_mutex_lock( &cache->mutex ) != 0 ) in mbedtls_ssl_cache_get()
131 if( mbedtls_mutex_unlock( &cache->mutex ) != 0 ) in mbedtls_ssl_cache_get()
150 if( ( ret = mbedtls_mutex_lock( &cache->mutex ) ) != 0 ) in mbedtls_ssl_cache_set()
295 if( mbedtls_mutex_unlock( &cache->mutex ) != 0 ) in mbedtls_ssl_cache_set()
340 mbedtls_mutex_free( &cache->mutex ); in mbedtls_ssl_cache_free()
A Dentropy.c66 mbedtls_mutex_init( &ctx->mutex ); in mbedtls_entropy_init()
128 mbedtls_mutex_free( &ctx->mutex ); in mbedtls_entropy_free()
150 if( ( ret = mbedtls_mutex_lock( &ctx->mutex ) ) != 0 ) in mbedtls_entropy_add_source()
170 if( mbedtls_mutex_unlock( &ctx->mutex ) != 0 ) in mbedtls_entropy_add_source()
242 if( ( ret = mbedtls_mutex_lock( &ctx->mutex ) ) != 0 ) in mbedtls_entropy_update_manual()
249 if( mbedtls_mutex_unlock( &ctx->mutex ) != 0 ) in mbedtls_entropy_update_manual()
314 if( ( ret = mbedtls_mutex_lock( &ctx->mutex ) ) != 0 ) in mbedtls_entropy_gather()
321 if( mbedtls_mutex_unlock( &ctx->mutex ) != 0 ) in mbedtls_entropy_gather()
351 if( ( ret = mbedtls_mutex_lock( &ctx->mutex ) ) != 0 ) in mbedtls_entropy_func()
443 if( mbedtls_mutex_unlock( &ctx->mutex ) != 0 ) in mbedtls_entropy_func()
A Dssl_ticket.c47 mbedtls_mutex_init( &ctx->mutex ); in mbedtls_ssl_ticket_init()
226 if( ( ret = mbedtls_mutex_lock( &ctx->mutex ) ) != 0 ) in mbedtls_ssl_ticket_write()
273 if( mbedtls_mutex_unlock( &ctx->mutex ) != 0 ) in mbedtls_ssl_ticket_write()
320 if( ( ret = mbedtls_mutex_lock( &ctx->mutex ) ) != 0 ) in mbedtls_ssl_ticket_parse()
384 if( mbedtls_mutex_unlock( &ctx->mutex ) != 0 ) in mbedtls_ssl_ticket_parse()
400 mbedtls_mutex_free( &ctx->mutex ); in mbedtls_ssl_ticket_free()
A Dhmac_drbg.c129 mbedtls_mutex_init( &ctx->mutex ); in mbedtls_hmac_drbg_seed_buf()
259 mbedtls_mutex_init( &ctx->mutex ); in mbedtls_hmac_drbg_seed()
405 if( ( ret = mbedtls_mutex_lock( &ctx->mutex ) ) != 0 ) in mbedtls_hmac_drbg_random()
412 if( mbedtls_mutex_unlock( &ctx->mutex ) != 0 ) in mbedtls_hmac_drbg_random()
431 mbedtls_mutex_free( &ctx->mutex ); in mbedtls_hmac_drbg_free()
A Dmemory_buffer_alloc.c77 mbedtls_threading_mutex_t mutex; member
548 if( mbedtls_mutex_lock( &heap.mutex ) != 0 ) in buffer_alloc_calloc_mutexed()
551 if( mbedtls_mutex_unlock( &heap.mutex ) ) in buffer_alloc_calloc_mutexed()
560 if( mbedtls_mutex_lock( &heap.mutex ) ) in buffer_alloc_free_mutexed()
563 (void) mbedtls_mutex_unlock( &heap.mutex ); in buffer_alloc_free_mutexed()
572 mbedtls_mutex_init( &heap.mutex ); in mbedtls_memory_buffer_alloc_init()
605 mbedtls_mutex_free( &heap.mutex ); in mbedtls_memory_buffer_alloc_free()
/optee_os-3.20.0/core/include/kernel/
A Dmutex.h13 struct mutex { struct
30 TAILQ_HEAD(mutex_head, mutex);
32 void mutex_init(struct mutex *m);
33 void mutex_destroy(struct mutex *m);
68 void mutex_unlock(struct mutex *m);
69 void mutex_lock(struct mutex *m);
70 bool mutex_trylock(struct mutex *m);
71 void mutex_read_unlock(struct mutex *m);
72 void mutex_read_lock(struct mutex *m);
73 bool mutex_read_trylock(struct mutex *m);
[all …]
/optee_os-3.20.0/core/kernel/
A Dmutex_lockdep.h13 void mutex_lock_check(struct mutex *m);
15 void mutex_trylock_check(struct mutex *m);
17 void mutex_unlock_check(struct mutex *m);
19 void mutex_destroy_check(struct mutex *m);
23 static inline void mutex_lock_check(struct mutex *m __unused) in mutex_lock_check()
26 static inline void mutex_trylock_check(struct mutex *m __unused) in mutex_trylock_check()
29 static inline void mutex_unlock_check(struct mutex *m __unused) in mutex_unlock_check()
32 static inline void mutex_destroy_check(struct mutex *m __unused) in mutex_destroy_check()
A Dmutex.c15 void mutex_init(struct mutex *m) in mutex_init()
17 *m = (struct mutex)MUTEX_INITIALIZER; in mutex_init()
278 void mutex_unlock(struct mutex *m) in mutex_unlock()
288 void mutex_lock(struct mutex *m) in mutex_lock()
298 bool mutex_trylock(struct mutex *m) in mutex_trylock()
303 void mutex_read_unlock(struct mutex *m) in mutex_read_unlock()
308 void mutex_read_lock(struct mutex *m) in mutex_read_lock()
313 bool mutex_read_trylock(struct mutex *m) in mutex_read_trylock()
319 void mutex_destroy(struct mutex *m) in mutex_destroy()
362 struct mutex *m; in cv_signal()
[all …]
A Dmutex_lockdep.c37 void mutex_lock_check(struct mutex *m) in mutex_lock_check()
47 void mutex_trylock_check(struct mutex *m) in mutex_trylock_check()
57 void mutex_unlock_check(struct mutex *m) in mutex_unlock_check()
67 void mutex_destroy_check(struct mutex *m) in mutex_destroy_check()
A Dtee_time_ree.c12 static struct mutex time_mu = MUTEX_INITIALIZER;
/optee_os-3.20.0/core/arch/arm/include/kernel/
A Dtee_l2cc_mutex.h15 TEE_Result tee_get_l2cc_mutex(paddr_t *mutex);
16 TEE_Result tee_set_l2cc_mutex(paddr_t *mutex);
29 static TEE_Result tee_get_l2cc_mutex(paddr_t *mutex);
30 static TEE_Result tee_set_l2cc_mutex(paddr_t *mutex);
40 static inline TEE_Result tee_get_l2cc_mutex(paddr_t *mutex __unused) in tee_get_l2cc_mutex()
44 static inline TEE_Result tee_set_l2cc_mutex(paddr_t *mutex __unused) in tee_set_l2cc_mutex()
/optee_os-3.20.0/lib/libmbedtls/mbedtls/include/mbedtls/
A Dthreading.h51 pthread_mutex_t mutex; member
98 extern void (*mbedtls_mutex_init)( mbedtls_threading_mutex_t *mutex );
99 extern void (*mbedtls_mutex_free)( mbedtls_threading_mutex_t *mutex );
100 extern int (*mbedtls_mutex_lock)( mbedtls_threading_mutex_t *mutex );
101 extern int (*mbedtls_mutex_unlock)( mbedtls_threading_mutex_t *mutex );
A Dssl_cookie.h67 mbedtls_threading_mutex_t mutex; member
A Dssl_ticket.h74 mbedtls_threading_mutex_t mutex; member
A Dssl_cache.h87 mbedtls_threading_mutex_t mutex; /*!< mutex */ member
A Dentropy.h142 mbedtls_threading_mutex_t mutex; /*!< mutex */ member
A Dhmac_drbg.h116 mbedtls_threading_mutex_t mutex; member
/optee_os-3.20.0/core/arch/arm/kernel/
A Dtee_l2cc_mutex.c54 static void l2cc_mutex_set(void *mutex) in l2cc_mutex_set() argument
56 l2cc_mutex = (unsigned int *)mutex; in l2cc_mutex_set()
97 TEE_Result tee_get_l2cc_mutex(paddr_t *mutex) in tee_get_l2cc_mutex() argument
106 *mutex = l2cc_mutex_pa; in tee_get_l2cc_mutex()
110 TEE_Result tee_set_l2cc_mutex(paddr_t *mutex) in tee_set_l2cc_mutex() argument
117 addr = *mutex; in tee_set_l2cc_mutex()
A Dvirtualization.c37 struct mutex mutex; member
260 mutex_init(&prtn->mutex); in virt_guest_created()
374 mutex_lock(&prtn->mutex); in virt_on_stdcall()
379 mutex_unlock(&prtn->mutex); in virt_on_stdcall()
/optee_os-3.20.0/core/pta/tests/
A Dsub.mk6 srcs-y += mutex.c
A Dmutex.c21 struct mutex test_mutex = MUTEX_INITIALIZER;
/optee_os-3.20.0/core/mm/
A Dfile.c39 struct mutex mu;
43 static struct mutex file_mu = MUTEX_INITIALIZER;
/optee_os-3.20.0/core/drivers/crypto/stm32/
A Dstm32_cryp.h48 struct mutex *lock; /* Protect CRYP HW instance access */

Completed in 22 milliseconds

123