Lines Matching refs:ctx_idr
56 * in drm_device::ctx_idr, while holding the drm_device::struct_mutex
62 idr_remove(&dev->ctx_idr, ctx_handle);
72 * Allocate a new idr from drm_device::ctx_idr while holding the
81 if (idr_pre_get(&dev->ctx_idr, GFP_KERNEL) == 0) {
86 ret = idr_get_new_above(&dev->ctx_idr, NULL,
101 * Initialise the drm_device::ctx_idr
105 idr_init(&dev->ctx_idr);
120 idr_remove_all(&dev->ctx_idr);
139 * Gets the map from drm_device::ctx_idr with the handle specified and
151 map = idr_find(&dev->ctx_idr, request->ctx_id);
183 * drm_device::ctx_idr with it.
207 if (IS_ERR(idr_replace(&dev->ctx_idr, map, request->ctx_id)))