Lines Matching refs:ctx
22 static int get_devices(struct tee_context *ctx, u32 session,
43 ret = tee_client_invoke_func(ctx, &inv_arg, param);
110 struct tee_context *ctx = NULL;
117 ctx = tee_client_open_context(NULL, optee_ctx_match, NULL, NULL);
118 if (IS_ERR(ctx))
126 rc = tee_client_open_session(ctx, &sess_arg, NULL);
133 rc = get_devices(ctx, sess_arg.session, NULL, &shm_size, func);
137 device_shm = tee_shm_alloc_kernel_buf(ctx, shm_size);
144 rc = get_devices(ctx, sess_arg.session, device_shm, &shm_size, func);
166 tee_client_close_session(ctx, sess_arg.session);
168 tee_client_close_context(ctx);