Lines Matching full:minor

140  * @minor: minor to allocate on
144 * @minor, so it must be freed before @minor is.
149 struct drm_file *drm_file_alloc(struct drm_minor *minor) in drm_file_alloc() argument
151 struct drm_device *dev = minor->dev; in drm_file_alloc()
160 file->minor = minor; in drm_file_alloc()
207 struct drm_device *dev = file_priv->minor->dev; in drm_events_release()
246 dev = file->minor->dev; in drm_file_free()
250 (long)old_encode_dev(file->minor->kdev->devt), in drm_file_free()
297 struct drm_device *dev = file_priv->minor->dev; in drm_close_helper()
323 * \param minor acquired minor-object.
329 static int drm_open_helper(struct file *filp, struct drm_minor *minor) in drm_open_helper() argument
331 struct drm_device *dev = minor->dev; in drm_open_helper()
343 DRM_DEBUG("comm=\"%s\", pid=%d, minor=%d\n", current->comm, in drm_open_helper()
344 task_pid_nr(current), minor->index); in drm_open_helper()
346 priv = drm_file_alloc(minor); in drm_open_helper()
408 struct drm_minor *minor; in drm_open() local
412 minor = drm_minor_acquire(iminor(inode)); in drm_open()
413 if (IS_ERR(minor)) in drm_open()
414 return PTR_ERR(minor); in drm_open()
416 dev = minor->dev; in drm_open()
426 retcode = drm_open_helper(filp, minor); in drm_open()
446 drm_minor_release(minor); in drm_open()
482 struct drm_minor *minor = file_priv->minor; in drm_release() local
483 struct drm_device *dev = minor->dev; in drm_release()
498 drm_minor_release(minor); in drm_release()
522 struct drm_minor *minor = file_priv->minor; in drm_release_noglobal() local
523 struct drm_device *dev = minor->dev; in drm_release_noglobal()
532 drm_minor_release(minor); in drm_release_noglobal()
567 struct drm_device *dev = file_priv->minor->dev; in drm_read()
873 * @minor: drm minor to wrap (e.g. #drm_device.primary)
877 * DRM minor. This mimicks userspace opening e.g. /dev/dri/card0, but without
885 struct file *mock_drm_getfile(struct drm_minor *minor, unsigned int flags) in mock_drm_getfile() argument
887 struct drm_device *dev = minor->dev; in mock_drm_getfile()
891 priv = drm_file_alloc(minor); in mock_drm_getfile()