Home
last modified time | relevance | path

Searched refs:ctxdata (Results 1 – 3 of 3) sorted by relevance

/openbmc/linux/drivers/tee/amdtee/
H A Dcore.c37 struct amdtee_context_data *ctxdata; in amdtee_open() local
39 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()
373 ctxdata = shm->ctx->data; in amdtee_map_shmem()
[all …]
/openbmc/linux/drivers/tee/optee/
H A Dcore.c89 struct optee_context_data *ctxdata; in optee_open() local
93 ctxdata = kzalloc(sizeof(*ctxdata), GFP_KERNEL); in optee_open()
94 if (!ctxdata) in optee_open()
107 kfree(ctxdata); in optee_open()
115 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()
134 struct optee_context_data *ctxdata = ctx->data; in optee_release_helper() local
138 if (!ctxdata) in optee_release_helper()
[all …]
H A Dcall.c339 mutex_lock(&ctxdata->mutex); in optee_open_session()
341 mutex_unlock(&ctxdata->mutex); in optee_open_session()
390 mutex_lock(&ctxdata->mutex); in optee_close_session()
391 sess = find_session(ctxdata, session); in optee_close_session()
394 mutex_unlock(&ctxdata->mutex); in optee_close_session()
415 mutex_lock(&ctxdata->mutex); in optee_invoke_func()
416 sess = find_session(ctxdata, arg->session); in optee_invoke_func()
417 mutex_unlock(&ctxdata->mutex); in optee_invoke_func()
464 mutex_lock(&ctxdata->mutex); in optee_cancel_req()
465 sess = find_session(ctxdata, session); in optee_cancel_req()
[all …]