Lines Matching refs:handle
36 drm_context_t handle; member
141 pos->handle != DRM_KERNEL_CONTEXT) { in drm_legacy_ctxbitmap_flush()
143 dev->driver->context_dtor(dev, pos->handle); in drm_legacy_ctxbitmap_flush()
145 drm_legacy_ctxbitmap_free(dev, pos->handle); in drm_legacy_ctxbitmap_flush()
191 request->handle = NULL; in drm_legacy_getsareactx()
194 request->handle = in drm_legacy_getsareactx()
202 if (request->handle == NULL) in drm_legacy_getsareactx()
234 && r_list->user_token == (unsigned long) request->handle) in drm_legacy_setsareactx()
338 ctx.handle = i; in drm_legacy_resctx()
369 ctx->handle = drm_legacy_ctxbitmap_next(dev); in drm_legacy_addctx()
370 if (ctx->handle == DRM_KERNEL_CONTEXT) { in drm_legacy_addctx()
372 ctx->handle = drm_legacy_ctxbitmap_next(dev); in drm_legacy_addctx()
374 DRM_DEBUG("%d\n", ctx->handle); in drm_legacy_addctx()
375 if (ctx->handle == -1) { in drm_legacy_addctx()
388 ctx_entry->handle = ctx->handle; in drm_legacy_addctx()
442 DRM_DEBUG("%d\n", ctx->handle); in drm_legacy_switchctx()
443 return drm_context_switch(dev, dev->last_context, ctx->handle); in drm_legacy_switchctx()
466 DRM_DEBUG("%d\n", ctx->handle); in drm_legacy_newctx()
467 drm_context_switch_complete(dev, file_priv, ctx->handle); in drm_legacy_newctx()
492 DRM_DEBUG("%d\n", ctx->handle); in drm_legacy_rmctx()
493 if (ctx->handle != DRM_KERNEL_CONTEXT) { in drm_legacy_rmctx()
495 dev->driver->context_dtor(dev, ctx->handle); in drm_legacy_rmctx()
496 drm_legacy_ctxbitmap_free(dev, ctx->handle); in drm_legacy_rmctx()
504 if (pos->handle == ctx->handle) { in drm_legacy_rmctx()