Lines Matching refs:ctx_idr
57 * in drm_device::ctx_idr, while holding the drm_device::struct_mutex
66 idr_remove(&dev->ctx_idr, ctx_handle);
76 * Allocate a new idr from drm_device::ctx_idr while holding the
84 ret = idr_alloc(&dev->ctx_idr, NULL, DRM_RESERVED_CONTEXTS, 0,
95 * Initialise the drm_device::ctx_idr
102 idr_init(&dev->ctx_idr);
119 idr_destroy(&dev->ctx_idr);
171 * Gets the map from drm_device::ctx_idr with the handle specified and
186 map = idr_find(&dev->ctx_idr, request->ctx_id);
219 * drm_device::ctx_idr with it.
246 if (IS_ERR(idr_replace(&dev->ctx_idr, map, request->ctx_id)))