Home
last modified time | relevance | path

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

12345678910>>...16

/optee_os/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.c78 mbedtls_mutex_init( &ctx->mutex ); in mbedtls_ssl_cookie_init()
92 mbedtls_mutex_free( &ctx->mutex ); in mbedtls_ssl_cookie_free()
176 if( ( ret = mbedtls_mutex_lock( &ctx->mutex ) ) != 0 ) in mbedtls_ssl_cookie_write()
184 if( mbedtls_mutex_unlock( &ctx->mutex ) != 0 ) in mbedtls_ssl_cookie_write()
212 if( ( ret = mbedtls_mutex_lock( &ctx->mutex ) ) != 0 ) in mbedtls_ssl_cookie_check()
222 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()
224 if( ( ret = mbedtls_mutex_lock( &ctx->mutex ) ) != 0 ) in mbedtls_ssl_ticket_write()
272 if( mbedtls_mutex_unlock( &ctx->mutex ) != 0 ) in mbedtls_ssl_ticket_write()
319 if( ( ret = mbedtls_mutex_lock( &ctx->mutex ) ) != 0 ) in mbedtls_ssl_ticket_parse()
383 if( mbedtls_mutex_unlock( &ctx->mutex ) != 0 ) in mbedtls_ssl_ticket_parse()
399 mbedtls_mutex_free( &ctx->mutex ); in mbedtls_ssl_ticket_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()
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()
/optee_os/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/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()
/optee_os/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/out/arm/export-ta_arm32/host_include/mbedtls/
A Dthreading.h48 pthread_mutex_t mutex; member
95 extern void (*mbedtls_mutex_init)( mbedtls_threading_mutex_t *mutex );
96 extern void (*mbedtls_mutex_free)( mbedtls_threading_mutex_t *mutex );
97 extern int (*mbedtls_mutex_lock)( mbedtls_threading_mutex_t *mutex );
98 extern int (*mbedtls_mutex_unlock)( mbedtls_threading_mutex_t *mutex );
/optee_os/out/arm/export-ta_arm32/include/mbedtls/
A Dthreading.h48 pthread_mutex_t mutex; member
95 extern void (*mbedtls_mutex_init)( mbedtls_threading_mutex_t *mutex );
96 extern void (*mbedtls_mutex_free)( mbedtls_threading_mutex_t *mutex );
97 extern int (*mbedtls_mutex_lock)( mbedtls_threading_mutex_t *mutex );
98 extern int (*mbedtls_mutex_unlock)( mbedtls_threading_mutex_t *mutex );
/optee_os/lib/libmbedtls/mbedtls/include/mbedtls/
A Dthreading.h48 pthread_mutex_t mutex; member
95 extern void (*mbedtls_mutex_init)( mbedtls_threading_mutex_t *mutex );
96 extern void (*mbedtls_mutex_free)( mbedtls_threading_mutex_t *mutex );
97 extern int (*mbedtls_mutex_lock)( mbedtls_threading_mutex_t *mutex );
98 extern int (*mbedtls_mutex_unlock)( mbedtls_threading_mutex_t *mutex );
/optee_os/out/arm/export-ta_arm64/host_include/mbedtls/
A Dthreading.h48 pthread_mutex_t mutex; member
95 extern void (*mbedtls_mutex_init)( mbedtls_threading_mutex_t *mutex );
96 extern void (*mbedtls_mutex_free)( mbedtls_threading_mutex_t *mutex );
97 extern int (*mbedtls_mutex_lock)( mbedtls_threading_mutex_t *mutex );
98 extern int (*mbedtls_mutex_unlock)( mbedtls_threading_mutex_t *mutex );
/optee_os/out/arm/export-ta_arm64/include/mbedtls/
A Dthreading.h48 pthread_mutex_t mutex; member
95 extern void (*mbedtls_mutex_init)( mbedtls_threading_mutex_t *mutex );
96 extern void (*mbedtls_mutex_free)( mbedtls_threading_mutex_t *mutex );
97 extern int (*mbedtls_mutex_lock)( mbedtls_threading_mutex_t *mutex );
98 extern int (*mbedtls_mutex_unlock)( mbedtls_threading_mutex_t *mutex );
/optee_os/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/out/arm/core/kernel/
A D.mutex.o.cmd1mutex.o := /usr/bin/ccache /home/test/workspace/code/optee_3.16/build/../toolchains/aarch64/bin/aa…
A D.mutex.o.d1 out/arm/core/kernel/mutex.o: core/kernel/mutex.c \
2 out/arm/include/generated/conf.h core/include/kernel/mutex.h \
/optee_os/out/arm/core/pta/tests/
A D.mutex.o.cmd1mutex.o := /usr/bin/ccache /home/test/workspace/code/optee_3.16/build/../toolchains/aarch64/bin/aa…
A D.mutex.o.d1 out/arm/core/pta/tests/mutex.o: core/pta/tests/mutex.c \
8 lib/libutils/isoc/include/unistd.h core/include/kernel/mutex.h \
/optee_os/core/pta/tests/
A Dsub.mk6 srcs-y += mutex.c
/optee_os/core/mm/
A Dfile.c39 struct mutex mu;
43 static struct mutex file_mu = MUTEX_INITIALIZER;

Completed in 33 milliseconds

12345678910>>...16