Lines Matching defs:minor
80 struct drm_minor *minor;
85 minor = idr_find(&drm_minors_idr, minor_id);
86 if (!minor)
88 dev = minor->dev;
203 struct drm_minor *minor;
207 minor = idr_find(&drm_minors_idr, minor_id);
208 if (!minor)
210 if (!minor->dev)
213 drm_dev = minor->dev;
441 struct drm_minor *minor;
445 minor = idr_find(&drm_minors_idr, minor_id);
446 if (!minor)
448 if (!minor->dev)
491 * struct. So, we associate minor number with per-process struct
493 * via minor number when close() is called.
495 ret = idr_get_new_above(&minor->clone_idr, NULL, 0, &clone_id);
500 (void) idr_remove(&minor->clone_idr, clone_id);
504 ret = drm_open(minor, clone_id, flag, credp);
506 (void) idr_remove(&minor->clone_idr, clone_id);
520 struct drm_minor *minor;
526 minor = idr_find(&drm_minors_idr, minor_id);
527 if (!minor)
529 if (!minor->dev)
541 file_priv = idr_find(&minor->clone_idr, clone_id);
549 (void) idr_remove(&minor->clone_idr, clone_id);
558 struct drm_minor *minor;
563 minor = idr_find(&drm_minors_idr, minor_id);
564 if (!minor)
566 if (!minor->dev)
577 rvalp, minor->private));
581 rvalp, minor->private));
583 file_priv = idr_find(&minor->clone_idr, clone_id);
595 struct drm_minor *minor;
601 minor = idr_find(&drm_minors_idr, minor_id);
602 if (!minor)
604 if (!minor->dev)
607 dev = minor->dev;
611 maplen, model, minor->private));
616 file_priv = idr_find(&minor->clone_idr, clone_id);
658 struct drm_minor *minor;
663 minor = idr_find(&drm_minors_idr, minor_id);
664 if (!minor)
666 if (!minor->dev)
678 file_priv = idr_find(&minor->clone_idr, clone_id);
690 struct drm_minor *minor;
695 minor = idr_find(&drm_minors_idr, minor_id);
696 if (!minor)
698 if (!minor->dev)
710 file_priv = idr_find(&minor->clone_idr, clone_id);