Lines Matching refs:handle

36 	drm_context_t handle;  member
126 pos->handle != DRM_KERNEL_CONTEXT) { in drm_legacy_ctxbitmap_flush()
128 dev->driver->context_dtor(dev, pos->handle); in drm_legacy_ctxbitmap_flush()
130 drm_legacy_ctxbitmap_free(dev, pos->handle); in drm_legacy_ctxbitmap_flush()
172 request->handle = NULL; in drm_legacy_getsareactx()
175 request->handle = in drm_legacy_getsareactx()
183 if (request->handle == NULL) in drm_legacy_getsareactx()
211 && r_list->user_token == (unsigned long) request->handle) in drm_legacy_setsareactx()
311 ctx.handle = i; in drm_legacy_resctx()
338 ctx->handle = drm_legacy_ctxbitmap_next(dev); in drm_legacy_addctx()
339 if (ctx->handle == DRM_KERNEL_CONTEXT) { in drm_legacy_addctx()
341 ctx->handle = drm_legacy_ctxbitmap_next(dev); in drm_legacy_addctx()
343 DRM_DEBUG("%d\n", ctx->handle); in drm_legacy_addctx()
344 if (ctx->handle == -1) { in drm_legacy_addctx()
357 ctx_entry->handle = ctx->handle; in drm_legacy_addctx()
403 DRM_DEBUG("%d\n", ctx->handle); in drm_legacy_switchctx()
404 return drm_context_switch(dev, dev->last_context, ctx->handle); in drm_legacy_switchctx()
423 DRM_DEBUG("%d\n", ctx->handle); in drm_legacy_newctx()
424 drm_context_switch_complete(dev, file_priv, ctx->handle); in drm_legacy_newctx()
445 DRM_DEBUG("%d\n", ctx->handle); in drm_legacy_rmctx()
446 if (ctx->handle != DRM_KERNEL_CONTEXT) { in drm_legacy_rmctx()
448 dev->driver->context_dtor(dev, ctx->handle); in drm_legacy_rmctx()
449 drm_legacy_ctxbitmap_free(dev, ctx->handle); in drm_legacy_rmctx()
457 if (pos->handle == ctx->handle) { in drm_legacy_rmctx()