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);
111 struct tee_context *ctx = NULL;
118 ctx = tee_client_open_context(NULL, optee_ctx_match, NULL, NULL);
119 if (IS_ERR(ctx))
127 rc = tee_client_open_session(ctx, &sess_arg, NULL);
134 rc = get_devices(ctx, sess_arg.session, NULL, &shm_size, func);
138 device_shm = tee_shm_alloc(ctx, shm_size,
146 rc = get_devices(ctx, sess_arg.session, device_shm, &shm_size, func);
168 tee_client_close_session(ctx, sess_arg.session);
170 tee_client_close_context(ctx);