Lines Matching refs:ctx
302 struct drm_ctx ctx;
306 (void) memset(&ctx, 0, sizeof(ctx));
308 ctx.handle = i;
310 &ctx, sizeof (ctx));
333 struct drm_ctx *ctx = data;
335 ctx->handle = drm_ctxbitmap_next(dev);
336 if (ctx->handle == DRM_KERNEL_CONTEXT) {
338 ctx->handle = drm_ctxbitmap_next(dev);
340 DRM_DEBUG("%d\n", ctx->handle);
342 if (ctx->handle == -1) {
355 ctx_entry->handle = ctx->handle;
385 struct drm_ctx *ctx = data;
388 ctx->flags = 0;
407 struct drm_ctx *ctx = data;
409 DRM_DEBUG("%d\n", ctx->handle);
410 return drm_context_switch(dev, dev->last_context, ctx->handle);
427 struct drm_ctx *ctx = data;
429 DRM_DEBUG("%d\n", ctx->handle);
430 (void) drm_context_switch_complete(dev, file, ctx->handle);
449 struct drm_ctx *ctx = data;
451 DRM_DEBUG("%d\n", ctx->handle);
452 if (ctx->handle != DRM_KERNEL_CONTEXT) {
454 dev->driver->context_dtor(dev, ctx->handle);
455 drm_ctxbitmap_free(dev, ctx->handle);
463 if (pos->handle == ctx->handle) {