/optee_os/lib/libmbedtls/mbedtls/library/ |
A D | threading.c | 67 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 D | ssl_cookie.c | 78 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 D | ssl_cache.c | 49 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 D | entropy.c | 66 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 D | ssl_ticket.c | 47 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 D | memory_buffer_alloc.c | 77 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 D | hmac_drbg.c | 129 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 D | mutex.h | 13 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 D | mutex_lockdep.h | 13 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 D | mutex.c | 15 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 D | mutex_lockdep.c | 37 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 D | tee_l2cc_mutex.h | 15 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 D | threading.h | 48 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 D | threading.h | 48 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 D | threading.h | 48 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 D | threading.h | 48 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 D | threading.h | 48 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 D | tee_l2cc_mutex.c | 54 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 D | virtualization.c | 37 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.cmd | 1 …mutex.o := /usr/bin/ccache /home/test/workspace/code/optee_3.16/build/../toolchains/aarch64/bin/aa…
|
A D | .mutex.o.d | 1 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.cmd | 1 …mutex.o := /usr/bin/ccache /home/test/workspace/code/optee_3.16/build/../toolchains/aarch64/bin/aa…
|
A D | .mutex.o.d | 1 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 D | sub.mk | 6 srcs-y += mutex.c
|
/optee_os/core/mm/ |
A D | file.c | 39 struct mutex mu; 43 static struct mutex file_mu = MUTEX_INITIALIZER;
|