Lines Matching refs:handle
159 request->handle = NULL; in drm_getsareactx()
162 request->handle = in drm_getsareactx()
167 if (request->handle == NULL) in drm_getsareactx()
195 && r_list->user_token == (unsigned long) request->handle) in drm_setsareactx()
297 ctx.handle = i; in drm_resctx()
324 ctx->handle = drm_ctxbitmap_next(dev); in drm_addctx()
325 if (ctx->handle == DRM_KERNEL_CONTEXT) { in drm_addctx()
327 ctx->handle = drm_ctxbitmap_next(dev); in drm_addctx()
329 DRM_DEBUG("%d\n", ctx->handle); in drm_addctx()
330 if (ctx->handle == -1) { in drm_addctx()
336 if (ctx->handle != DRM_KERNEL_CONTEXT) { in drm_addctx()
338 if (!dev->driver->context_ctor(dev, ctx->handle)) { in drm_addctx()
351 ctx_entry->handle = ctx->handle; in drm_addctx()
403 DRM_DEBUG("%d\n", ctx->handle); in drm_switchctx()
404 return drm_context_switch(dev, dev->last_context, ctx->handle); in drm_switchctx()
423 DRM_DEBUG("%d\n", ctx->handle); in drm_newctx()
424 drm_context_switch_complete(dev, file_priv, ctx->handle); in drm_newctx()
445 DRM_DEBUG("%d\n", ctx->handle); in drm_rmctx()
446 if (ctx->handle != DRM_KERNEL_CONTEXT) { in drm_rmctx()
448 dev->driver->context_dtor(dev, ctx->handle); in drm_rmctx()
449 drm_ctxbitmap_free(dev, ctx->handle); in drm_rmctx()
457 if (pos->handle == ctx->handle) { in drm_rmctx()