Lines Matching full:minor
146 * @minor: minor to allocate on
150 * @minor, so it must be freed before @minor is.
155 struct drm_file *drm_file_alloc(struct drm_minor *minor) in drm_file_alloc() argument
157 struct drm_device *dev = minor->dev; in drm_file_alloc()
166 file->minor = minor; in drm_file_alloc()
213 struct drm_device *dev = file_priv->minor->dev; in drm_events_release()
255 dev = file->minor->dev; in drm_file_free()
259 (long)old_encode_dev(file->minor->kdev->devt), in drm_file_free()
304 struct drm_device *dev = file_priv->minor->dev; in drm_close_helper()
330 * \param minor acquired minor-object.
336 static int drm_open_helper(struct file *filp, struct drm_minor *minor) in drm_open_helper() argument
338 struct drm_device *dev = minor->dev; in drm_open_helper()
350 DRM_DEBUG("comm=\"%s\", pid=%d, minor=%d\n", current->comm, in drm_open_helper()
351 task_pid_nr(current), minor->index); in drm_open_helper()
353 priv = drm_file_alloc(minor); in drm_open_helper()
413 struct drm_minor *minor; in drm_open() local
417 minor = drm_minor_acquire(iminor(inode)); in drm_open()
418 if (IS_ERR(minor)) in drm_open()
419 return PTR_ERR(minor); in drm_open()
421 dev = minor->dev; in drm_open()
431 retcode = drm_open_helper(filp, minor); in drm_open()
451 drm_minor_release(minor); in drm_open()
487 struct drm_minor *minor = file_priv->minor; in drm_release() local
488 struct drm_device *dev = minor->dev; in drm_release()
503 drm_minor_release(minor); in drm_release()
527 struct drm_minor *minor = file_priv->minor; in drm_release_noglobal() local
528 struct drm_device *dev = minor->dev; in drm_release_noglobal()
537 drm_minor_release(minor); in drm_release_noglobal()
573 struct drm_device *dev = file_priv->minor->dev; in drm_read()
847 * @minor: drm minor to wrap (e.g. #drm_device.primary)
851 * DRM minor. This mimicks userspace opening e.g. /dev/dri/card0, but without
859 struct file *mock_drm_getfile(struct drm_minor *minor, unsigned int flags) in mock_drm_getfile() argument
861 struct drm_device *dev = minor->dev; in mock_drm_getfile()
865 priv = drm_file_alloc(minor); in mock_drm_getfile()