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()43 INIT_LIST_HEAD(&ctxdata->sess_list); 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()70 struct amdtee_context_data *ctxdata = ctx->data; in amdtee_release() local72 if (!ctxdata) in amdtee_release()78 sess = list_first_entry_or_null(&ctxdata->sess_list, in amdtee_release()[all …]
89 struct optee_context_data *ctxdata; in optee_open() local93 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() local138 if (!ctxdata) in optee_release_helper()[all …]
123 static struct optee_session *find_session(struct optee_context_data *ctxdata, in find_session() argument128 list_for_each_entry(sess, &ctxdata->sess_list, list_node) in find_session()285 struct optee_context_data *ctxdata = ctx->data; in optee_open_session() local339 mutex_lock(&ctxdata->mutex); in optee_open_session()340 list_add(&sess->list_node, &ctxdata->sess_list); in optee_open_session()341 mutex_unlock(&ctxdata->mutex); in optee_open_session()386 struct optee_context_data *ctxdata = ctx->data; in optee_close_session() local390 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()[all …]