/optee_os-3.20.0/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 | 79 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 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() 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 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()
|
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()
|
/optee_os-3.20.0/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-3.20.0/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()
|
A D | tee_time_ree.c | 12 static struct mutex time_mu = MUTEX_INITIALIZER;
|
/optee_os-3.20.0/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-3.20.0/lib/libmbedtls/mbedtls/include/mbedtls/ |
A D | threading.h | 51 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 D | ssl_cookie.h | 67 mbedtls_threading_mutex_t mutex; member
|
A D | ssl_ticket.h | 74 mbedtls_threading_mutex_t mutex; member
|
A D | ssl_cache.h | 87 mbedtls_threading_mutex_t mutex; /*!< mutex */ member
|
A D | entropy.h | 142 mbedtls_threading_mutex_t mutex; /*!< mutex */ member
|
A D | hmac_drbg.h | 116 mbedtls_threading_mutex_t mutex; member
|
/optee_os-3.20.0/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-3.20.0/core/pta/tests/ |
A D | sub.mk | 6 srcs-y += mutex.c
|
A D | mutex.c | 21 struct mutex test_mutex = MUTEX_INITIALIZER;
|
/optee_os-3.20.0/core/mm/ |
A D | file.c | 39 struct mutex mu; 43 static struct mutex file_mu = MUTEX_INITIALIZER;
|
/optee_os-3.20.0/core/drivers/crypto/stm32/ |
A D | stm32_cryp.h | 48 struct mutex *lock; /* Protect CRYP HW instance access */
|