Lines Matching refs:ctx_idr
57 * in drm_device::ctx_idr, while holding the drm_device::struct_mutex
67 idr_remove(&dev->ctx_idr, ctx_handle);
77 * Allocate a new idr from drm_device::ctx_idr while holding the
85 ret = idr_alloc(&dev->ctx_idr, NULL, DRM_RESERVED_CONTEXTS, 0,
96 * Initialise the drm_device::ctx_idr
104 idr_init(&dev->ctx_idr);
122 idr_destroy(&dev->ctx_idr);
175 * Gets the map from drm_device::ctx_idr with the handle specified and
191 map = idr_find(&dev->ctx_idr, request->ctx_id);
224 * drm_device::ctx_idr with it.
252 if (IS_ERR(idr_replace(&dev->ctx_idr, map, request->ctx_id)))