Lines Matching full:minor

121  * @minor: minor to allocate on
125 * @minor, so it must be freed before @minor is.
130 struct drm_file *drm_file_alloc(struct drm_minor *minor) in drm_file_alloc() argument
133 struct drm_device *dev = minor->dev; in drm_file_alloc()
144 file->minor = minor; in drm_file_alloc()
191 struct drm_device *dev = file_priv->minor->dev; in drm_events_release()
230 dev = file->minor->dev; in drm_file_free()
234 (long)old_encode_dev(file->minor->kdev->devt), in drm_file_free()
267 struct drm_device *dev = file_priv->minor->dev; in drm_close_helper()
293 * \param minor acquired minor-object.
299 int drm_open_helper(struct file *filp, struct drm_minor *minor) in drm_open_helper() argument
301 struct drm_device *dev = minor->dev; in drm_open_helper()
315 drm_dbg_core(dev, "comm=\"%s\", pid=%d, minor=%d\n", in drm_open_helper()
316 current->comm, task_pid_nr(current), minor->index); in drm_open_helper()
318 priv = drm_file_alloc(minor); in drm_open_helper()
355 struct drm_minor *minor; in drm_open() local
358 minor = drm_minor_acquire(&drm_minors_xa, iminor(inode)); in drm_open()
359 if (IS_ERR(minor)) in drm_open()
360 return PTR_ERR(minor); in drm_open()
362 dev = minor->dev; in drm_open()
371 retcode = drm_open_helper(filp, minor); in drm_open()
384 drm_minor_release(minor); in drm_open()
413 struct drm_minor *minor = file_priv->minor; in drm_release() local
414 struct drm_device *dev = minor->dev; in drm_release()
429 drm_minor_release(minor); in drm_release()
457 dev = filp->minor->dev; in drm_file_update_pid()
483 struct drm_minor *minor = file_priv->minor; in drm_release_noglobal() local
484 struct drm_device *dev = minor->dev; in drm_release_noglobal()
493 drm_minor_release(minor); in drm_release_noglobal()
527 struct drm_device *dev = file_priv->minor->dev; in drm_read()
939 struct drm_device *dev = file->minor->dev; in drm_show_fdinfo()
960 * @minor: drm minor to wrap (e.g. #drm_device.primary)
964 * DRM minor. This mimicks userspace opening e.g. /dev/dri/card0, but without
972 struct file *mock_drm_getfile(struct drm_minor *minor, unsigned int flags) in mock_drm_getfile() argument
974 struct drm_device *dev = minor->dev; in mock_drm_getfile()
978 priv = drm_file_alloc(minor); in mock_drm_getfile()