Lines Matching refs:minor_id
340 int minor_id; in drm_get_minor() local
344 minor_id = drm_minor_get_id(dev, type); in drm_get_minor()
345 if (minor_id < 0) in drm_get_minor()
346 return minor_id; in drm_get_minor()
355 new_minor->device = MKDEV(DRM_MAJOR, minor_id); in drm_get_minor()
357 new_minor->index = minor_id; in drm_get_minor()
360 idr_replace(&drm_minors_idr, new_minor, minor_id); in drm_get_minor()
363 ret = drm_proc_init(new_minor, minor_id, drm_proc_root); in drm_get_minor()
372 ret = drm_debugfs_init(new_minor, minor_id, drm_debugfs_root); in drm_get_minor()
387 DRM_DEBUG("new minor assigned %d\n", minor_id); in drm_get_minor()
397 idr_remove(&drm_minors_idr, minor_id); in drm_get_minor()