Lines Matching refs:ctx_idr
65 * in drm_device::ctx_idr, while holding the drm_device::struct_mutex
71 (void) idr_remove(&dev->ctx_idr, ctx_handle);
81 * Allocate a new idr from drm_device::ctx_idr while holding the
90 if (idr_pre_get(&dev->ctx_idr, GFP_KERNEL) == 0) {
95 ret = idr_get_new_above(&dev->ctx_idr, NULL,
111 * Initialise the drm_device::ctx_idr
115 idr_init(&dev->ctx_idr);
130 idr_remove_all(&dev->ctx_idr);
149 * Gets the map from drm_device::ctx_idr with the handle specified and
161 map = idr_find(&dev->ctx_idr, request->ctx_id);
194 * drm_device::ctx_idr with it.
218 if (IS_ERR(idr_replace(&dev->ctx_idr, map, request->ctx_id)))