Lines Matching refs:ctx
54 * @ctx: OP-TEE context handler.
59 struct tee_context *ctx;
105 if (!pvt_data.ctx)
110 ret = tee_client_invoke_func(pvt_data.ctx, &arg, param);
140 if (!pvt_data.ctx)
154 ret = tee_client_invoke_func(pvt_data.ctx, &arg, param);
194 pvt_data.ctx = tee_client_open_context(NULL, optee_ctx_match, NULL,
196 if (IS_ERR(pvt_data.ctx))
204 ret = tee_client_open_session(pvt_data.ctx, &sess_arg, NULL);
215 fw_shm_pool = tee_shm_alloc_kernel_buf(pvt_data.ctx, MAX_SHM_MEM_SZ);
227 tee_client_close_session(pvt_data.ctx, pvt_data.session_id);
229 tee_client_close_context(pvt_data.ctx);
237 tee_client_close_session(pvt_data.ctx, pvt_data.session_id);
238 tee_client_close_context(pvt_data.ctx);
239 pvt_data.ctx = NULL;
247 tee_client_close_session(pvt_data.ctx, pvt_data.session_id);
248 tee_client_close_context(pvt_data.ctx);
249 pvt_data.ctx = NULL;