Lines Matching defs:handle
48 drm_context_t handle;
57 * Free a handle from the context bitmap.
60 * \param ctx_handle context handle.
81 * \return (non-negative) context handle on success or a negative number on failure.
155 pos->handle != DRM_KERNEL_CONTEXT) {
157 dev->driver->context_dtor(dev, pos->handle);
159 drm_legacy_ctxbitmap_free(dev, pos->handle);
183 * Gets the map from drm_device::ctx_idr with the handle specified and
184 * returns its handle.
205 request->handle = NULL;
208 request->handle =
216 if (request->handle == NULL)
248 && r_list->user_token == (unsigned long) request->handle)
278 * \param old old context handle.
279 * \param new new context handle.
305 * \param new new context handle.
355 ctx.handle = i;
374 * Get a new handle for the context and copy to userspace.
393 if ((int)ctx->handle < 0) {
399 ctx->handle = tmp_handle;
408 ctx_entry->handle = ctx->handle;
436 /* This is 0, because we don't handle any context flags */
462 DRM_DEBUG("%d\n", ctx->handle);
463 return drm_context_switch(dev, dev->last_context, ctx->handle);
486 DRM_DEBUG("%d\n", ctx->handle);
487 drm_context_switch_complete(dev, file_priv, ctx->handle);
512 DRM_DEBUG("%d\n", ctx->handle);
513 if (ctx->handle != DRM_KERNEL_CONTEXT) {
515 dev->driver->context_dtor(dev, ctx->handle);
516 drm_legacy_ctxbitmap_free(dev, ctx->handle);
524 if (pos->handle == ctx->handle) {