Lines Matching defs:minor
98 struct drm_master *drm_master_create(struct drm_minor *minor)
108 mutex_init(&master->lock.lock_mutex, NULL, MUTEX_DRIVER, (void *)minor->dev->pdev->intr_block);
116 master->minor = minor;
118 list_add_tail(&master->head, &minor->master_list, (caddr_t)master);
133 struct drm_device *dev = master->minor->dev;
187 if (file->minor->master && file->minor->master != file->master)
193 if (!file->minor->master &&
194 file->minor->master != file->master) {
196 file->minor->master = drm_master_get(file->master);
202 drm_master_put(&file->minor->master);
217 if (!file->minor->master)
226 drm_master_put(&file->minor->master);
298 * Get a secondary minor number.
301 * \param sec-minor structure to hold the assigned minor
306 * minor numbers to secondary heads of multi-headed cards
308 static int drm_get_minor(struct drm_device *dev, struct drm_minor **minor, int type)
349 *minor = new_minor;
351 DRM_DEBUG("new minor assigned %d\n", minor_id);
360 *minor = NULL;
419 driver->name, driver->major, driver->minor, driver->patchlevel,
439 * Put a secondary minor number.
445 * last minor released.
450 struct drm_minor *minor = *minor_p;
452 DRM_DEBUG("release secondary minor %d\n", minor->index);
454 drm_sysfs_device_remove(minor);
456 (void) idr_remove(&drm_minors_idr, minor->index);
458 idr_destroy(&minor->clone_idr);
460 kfree(minor, sizeof (*minor));