Lines Matching refs:mutex

44 	mutex_init(&cq->mutex);  in optee_cq_init()
73 mutex_lock(&cq->mutex); in optee_cq_wait_init()
97 mutex_unlock(&cq->mutex); in optee_cq_wait_init()
101 mutex_lock(&cq->mutex); in optee_cq_wait_init()
113 mutex_unlock(&cq->mutex); in optee_cq_wait_init()
122 mutex_lock(&cq->mutex); in optee_cq_wait_for_completion()
129 mutex_unlock(&cq->mutex); in optee_cq_wait_for_completion()
160 mutex_lock(&cq->mutex); in optee_cq_wait_final()
179 mutex_unlock(&cq->mutex); in optee_cq_wait_final()
188 mutex_lock(&cq->mutex); in optee_cq_incr_sys_thread_count()
190 mutex_unlock(&cq->mutex); in optee_cq_incr_sys_thread_count()
197 mutex_lock(&cq->mutex); in optee_cq_decr_sys_thread_count()
201 mutex_unlock(&cq->mutex); in optee_cq_decr_sys_thread_count()
220 mutex_init(&optee->shm_arg_cache.mutex); in optee_shm_arg_cache_init()
229 mutex_destroy(&optee->shm_arg_cache.mutex); in optee_shm_arg_cache_uninit()
286 mutex_lock(&optee->shm_arg_cache.mutex); in optee_get_msg_arg()
328 mutex_unlock(&optee->shm_arg_cache.mutex); in optee_get_msg_arg()
353 mutex_lock(&optee->shm_arg_cache.mutex); in optee_free_msg_arg()
359 mutex_unlock(&optee->shm_arg_cache.mutex); in optee_free_msg_arg()
422 mutex_lock(&ctxdata->mutex); in optee_open_session()
424 mutex_unlock(&ctxdata->mutex); in optee_open_session()
453 mutex_lock(&ctxdata->mutex); in optee_system_session()
462 mutex_unlock(&ctxdata->mutex); in optee_system_session()
499 mutex_lock(&ctxdata->mutex); in optee_close_session()
503 mutex_unlock(&ctxdata->mutex); in optee_close_session()
526 mutex_lock(&ctxdata->mutex); in optee_invoke_func()
530 mutex_unlock(&ctxdata->mutex); in optee_invoke_func()
578 mutex_lock(&ctxdata->mutex); in optee_cancel_req()
582 mutex_unlock(&ctxdata->mutex); in optee_cancel_req()