Lines Matching refs:ctx
329 struct drm_ctx ctx;
336 memset(&ctx, 0, sizeof(ctx));
338 ctx.handle = i;
339 if (copy_to_user(&res->contexts[i], &ctx, sizeof(ctx)))
363 struct drm_ctx *ctx = data;
381 ctx->handle = tmp_handle;
390 ctx_entry->handle = ctx->handle;
412 struct drm_ctx *ctx = data;
418 ctx->flags = 0;
437 struct drm_ctx *ctx = data;
442 DRM_DEBUG("%d\n", ctx->handle);
443 return drm_context_switch(dev, dev->last_context, ctx->handle);
460 struct drm_ctx *ctx = data;
465 DRM_DEBUG("%d\n", ctx->handle);
466 drm_context_switch_complete(dev, file_priv, ctx->handle);
485 struct drm_ctx *ctx = data;
490 DRM_DEBUG("%d\n", ctx->handle);
491 if (ctx->handle != DRM_KERNEL_CONTEXT) {
493 dev->driver->context_dtor(dev, ctx->handle);
494 drm_legacy_ctxbitmap_free(dev, ctx->handle);
502 if (pos->handle == ctx->handle) {