Searched refs:ctxdata (Results 1 – 3 of 3) sorted by relevance
37 struct amdtee_context_data *ctxdata; in amdtee_open() local39 ctxdata = kzalloc(sizeof(*ctxdata), GFP_KERNEL); in amdtee_open()40 if (!ctxdata) in amdtee_open()44 INIT_LIST_HEAD(&ctxdata->shm_list); in amdtee_open()45 mutex_init(&ctxdata->shm_mutex); in amdtee_open()47 ctx->data = ctxdata; in amdtee_open()72 if (!ctxdata) in amdtee_release()89 kfree(ctxdata); in amdtee_release()159 mutex_lock(&ctxdata->shm_mutex); in get_buffer_id()372 ctxdata = shm->ctx->data; in amdtee_map_shmem()[all …]
76 struct optee_context_data *ctxdata; in optee_open() local80 ctxdata = kzalloc(sizeof(*ctxdata), GFP_KERNEL); in optee_open()81 if (!ctxdata) in optee_open()94 kfree(ctxdata); in optee_open()102 kfree(ctxdata); in optee_open()109 mutex_init(&ctxdata->mutex); in optee_open()110 INIT_LIST_HEAD(&ctxdata->sess_list); in optee_open()113 ctx->data = ctxdata; in optee_open()121 struct optee_context_data *ctxdata = ctx->data; in optee_release_helper() local125 if (!ctxdata) in optee_release_helper()[all …]
196 mutex_lock(&ctxdata->mutex); in optee_open_session()198 mutex_unlock(&ctxdata->mutex); in optee_open_session()245 mutex_lock(&ctxdata->mutex); in optee_close_session()246 sess = find_session(ctxdata, session); in optee_close_session()249 mutex_unlock(&ctxdata->mutex); in optee_close_session()268 mutex_lock(&ctxdata->mutex); in optee_invoke_func()269 sess = find_session(ctxdata, arg->session); in optee_invoke_func()270 mutex_unlock(&ctxdata->mutex); in optee_invoke_func()314 mutex_lock(&ctxdata->mutex); in optee_cancel_req()315 sess = find_session(ctxdata, session); in optee_cancel_req()[all …]
Completed in 5 milliseconds