Lines Matching full:minor

53 	struct drm_minor *minor = node->minor;  in accel_name_info()  local
54 struct drm_device *dev = minor->dev; in accel_name_info()
96 struct drm_minor *minor = dev->accel; in accel_debugfs_register() local
98 minor->debugfs_root = dev->debugfs_root; in accel_debugfs_register()
101 dev->debugfs_root, minor); in accel_debugfs_register()
107 * @index: The minor's index
110 * the device's minor number. In addition, it sets the class and type of the
121 * accel_minor_alloc() - Allocates a new accel minor
124 * a new id to represent a new accel minor
141 * accel_minor_remove() - Remove an accel minor
142 * @index: The minor id to remove.
157 * accel_minor_replace() - Replace minor pointer in accel minors idr.
158 * @minor: Pointer to the new minor.
159 * @index: The minor id to replace.
162 * that is associated with an existing id. Because the minor pointer can be
167 void accel_minor_replace(struct drm_minor *minor, int index) in accel_minor_replace() argument
172 idr_replace(&accel_minors_idr, minor, index); in accel_minor_replace()
177 * Looks up the given minor-ID and returns the respective DRM-minor object. The
183 * As long as you hold this minor, it is guaranteed that the object and the
184 * minor->dev pointer will stay valid! However, the device may get unplugged and
185 * unregistered while you hold the minor.
189 struct drm_minor *minor; in accel_minor_acquire() local
193 minor = idr_find(&accel_minors_idr, minor_id); in accel_minor_acquire()
194 if (minor) in accel_minor_acquire()
195 drm_dev_get(minor->dev); in accel_minor_acquire()
198 if (!minor) { in accel_minor_acquire()
200 } else if (drm_dev_is_unplugged(minor->dev)) { in accel_minor_acquire()
201 drm_dev_put(minor->dev); in accel_minor_acquire()
205 return minor; in accel_minor_acquire()
208 static void accel_minor_release(struct drm_minor *minor) in accel_minor_release() argument
210 drm_dev_put(minor->dev); in accel_minor_release()
227 struct drm_minor *minor; in accel_open() local
230 minor = accel_minor_acquire(iminor(inode)); in accel_open()
231 if (IS_ERR(minor)) in accel_open()
232 return PTR_ERR(minor); in accel_open()
234 dev = minor->dev; in accel_open()
241 retcode = drm_open_helper(filp, minor); in accel_open()
249 accel_minor_release(minor); in accel_open()
257 struct drm_minor *minor; in accel_stub_open() local
260 minor = accel_minor_acquire(iminor(inode)); in accel_stub_open()
261 if (IS_ERR(minor)) in accel_stub_open()
262 return PTR_ERR(minor); in accel_stub_open()
264 new_fops = fops_get(minor->dev->driver->fops); in accel_stub_open()
277 accel_minor_release(minor); in accel_stub_open()