Lines Matching refs:shm_arg_cache
137 INIT_LIST_HEAD(&optee->shm_arg_cache.shm_args); in optee_shm_arg_cache_init()
138 mutex_init(&optee->shm_arg_cache.mutex); in optee_shm_arg_cache_init()
139 optee->shm_arg_cache.flags = flags; in optee_shm_arg_cache_init()
144 struct list_head *head = &optee->shm_arg_cache.shm_args; in optee_shm_arg_cache_uninit()
147 mutex_destroy(&optee->shm_arg_cache.mutex); in optee_shm_arg_cache_uninit()
199 if (optee->shm_arg_cache.flags & OPTEE_SHM_ARG_SHARED) in optee_get_msg_arg()
204 mutex_lock(&optee->shm_arg_cache.mutex); in optee_get_msg_arg()
205 list_for_each_entry(entry, &optee->shm_arg_cache.shm_args, list_node) { in optee_get_msg_arg()
220 if (optee->shm_arg_cache.flags & OPTEE_SHM_ARG_ALLOC_PRIV) in optee_get_msg_arg()
230 list_add(&entry->list_node, &optee->shm_arg_cache.shm_args); in optee_get_msg_arg()
246 mutex_unlock(&optee->shm_arg_cache.mutex); in optee_get_msg_arg()
271 mutex_lock(&optee->shm_arg_cache.mutex); in optee_free_msg_arg()
277 mutex_unlock(&optee->shm_arg_cache.mutex); in optee_free_msg_arg()