Lines Matching refs:ctx
334 struct drm_ctx ctx;
342 memset(&ctx, 0, sizeof(ctx));
344 ctx.handle = i;
345 if (copy_to_user(&res->contexts[i], &ctx, sizeof(ctx)))
369 struct drm_ctx *ctx = data;
388 ctx->handle = tmp_handle;
397 ctx_entry->handle = ctx->handle;
419 struct drm_ctx *ctx = data;
426 ctx->flags = 0;
445 struct drm_ctx *ctx = data;
451 DRM_DEBUG("%d\n", ctx->handle);
452 return drm_context_switch(dev, dev->last_context, ctx->handle);
469 struct drm_ctx *ctx = data;
475 DRM_DEBUG("%d\n", ctx->handle);
476 drm_context_switch_complete(dev, file_priv, ctx->handle);
495 struct drm_ctx *ctx = data;
501 DRM_DEBUG("%d\n", ctx->handle);
502 if (ctx->handle != DRM_KERNEL_CONTEXT) {
504 dev->driver->context_dtor(dev, ctx->handle);
505 drm_legacy_ctxbitmap_free(dev, ctx->handle);
513 if (pos->handle == ctx->handle) {