Lines Matching refs:ctxdata
95 static struct optee_session *find_session(struct optee_context_data *ctxdata, in find_session() argument
100 list_for_each_entry(sess, &ctxdata->sess_list, list_node) in find_session()
145 struct optee_context_data *ctxdata = ctx->data; in optee_open_session() local
196 mutex_lock(&ctxdata->mutex); in optee_open_session()
197 list_add(&sess->list_node, &ctxdata->sess_list); in optee_open_session()
198 mutex_unlock(&ctxdata->mutex); in optee_open_session()
241 struct optee_context_data *ctxdata = ctx->data; in optee_close_session() local
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()
261 struct optee_context_data *ctxdata = ctx->data; in optee_invoke_func() local
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()
308 struct optee_context_data *ctxdata = ctx->data; in optee_cancel_req() local
314 mutex_lock(&ctxdata->mutex); in optee_cancel_req()
315 sess = find_session(ctxdata, session); in optee_cancel_req()
316 mutex_unlock(&ctxdata->mutex); in optee_cancel_req()