Lines Matching defs:handle
42 drm_context_t handle;
51 * Free a handle from the context bitmap.
54 * \param ctx_handle context handle.
74 * \return (non-negative) context handle on success or a negative number on failure.
143 pos->handle != DRM_KERNEL_CONTEXT) {
145 dev->driver->context_dtor(dev, pos->handle);
147 drm_legacy_ctxbitmap_free(dev, pos->handle);
171 * Gets the map from drm_device::ctx_idr with the handle specified and
172 * returns its handle.
192 request->handle = NULL;
195 request->handle =
203 if (request->handle == NULL)
234 && r_list->user_token == (unsigned long) request->handle)
264 * \param old old context handle.
265 * \param new new context handle.
291 * \param new new context handle.
338 ctx.handle = i;
357 * Get a new handle for the context and copy to userspace.
381 ctx->handle = tmp_handle;
390 ctx_entry->handle = ctx->handle;
417 /* This is 0, because we don't handle any context flags */
442 DRM_DEBUG("%d\n", ctx->handle);
443 return drm_context_switch(dev, dev->last_context, ctx->handle);
465 DRM_DEBUG("%d\n", ctx->handle);
466 drm_context_switch_complete(dev, file_priv, ctx->handle);
490 DRM_DEBUG("%d\n", ctx->handle);
491 if (ctx->handle != DRM_KERNEL_CONTEXT) {
493 dev->driver->context_dtor(dev, ctx->handle);
494 drm_legacy_ctxbitmap_free(dev, ctx->handle);
502 if (pos->handle == ctx->handle) {