Searched refs:ctxdata (Results 1 – 4 of 4) sorted by relevance
36 struct amdtee_context_data *ctxdata; in amdtee_open() local38 ctxdata = kzalloc(sizeof(*ctxdata), GFP_KERNEL); in amdtee_open()39 if (!ctxdata) in amdtee_open()43 INIT_LIST_HEAD(&ctxdata->shm_list); in amdtee_open()44 mutex_init(&ctxdata->shm_mutex); in amdtee_open()46 ctx->data = ctxdata; in amdtee_open()71 if (!ctxdata) in amdtee_release()88 kfree(ctxdata); in amdtee_release()158 mutex_lock(&ctxdata->shm_mutex); in get_buffer_id()372 ctxdata = shm->ctx->data; in amdtee_map_shmem()[all …]
94 struct optee_context_data *ctxdata; in optee_open() local98 ctxdata = kzalloc(sizeof(*ctxdata), GFP_KERNEL); in optee_open()99 if (!ctxdata) in optee_open()112 kfree(ctxdata); in optee_open()122 mutex_init(&ctxdata->mutex); in optee_open()123 INIT_LIST_HEAD(&ctxdata->sess_list); in optee_open()126 ctx->data = ctxdata; in optee_open()135 struct optee_context_data *ctxdata = ctx->data; in optee_release_helper() local139 if (!ctxdata) in optee_release_helper()142 list_for_each_entry_safe(sess, sess_tmp, &ctxdata->sess_list, in optee_release_helper()[all …]
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()455 sess = find_session(ctxdata, session); 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()[all …]
60 struct ts_context_data *ctxdata; in tstee_open() local62 ctxdata = kzalloc(sizeof(*ctxdata), GFP_KERNEL); in tstee_open()63 if (!ctxdata) in tstee_open()68 ctx->data = ctxdata; in tstee_open()75 struct ts_context_data *ctxdata = ctx->data; in tstee_release() local79 if (!ctxdata) in tstee_release()83 xa_erase(&ctxdata->sess_list, idx); in tstee_release()87 xa_destroy(&ctxdata->sess_list); in tstee_release()89 kfree(ctxdata); in tstee_release()175 xa_lock(&ctxdata->sess_list); in tstee_invoke_func()[all …]
Completed in 10 milliseconds