Lines Matching defs:minor
44 static int drm_open_helper(struct drm_minor *minor,
136 * Searches the DRM device with the same minor number, calls open_helper(), and
140 int drm_open(struct drm_minor *minor, int clone_id, int flags, cred_t *credp)
142 struct drm_device *dev = minor->dev;
145 DRM_DEBUG("minor->index=%d, clone_id=%d", minor->index, clone_id);
147 retcode = drm_open_helper(minor, clone_id, flags, credp);
168 static int drm_open_helper(struct drm_minor *minor,
171 struct drm_device *dev = minor->dev;
173 int minor_id = minor->index;
182 DRM_DEBUG("pid = %d, minor = %d\n", ddi_get_pid(), minor_id);
189 (void) idr_replace(&minor->clone_idr, priv, clone_id); /* OSOL_drm */
192 priv->minor = minor;
217 if (!priv->minor->master) {
219 priv->minor->master = drm_master_create(priv->minor);
220 if (!priv->minor->master) {
228 priv->master = drm_master_get(priv->minor->master);
238 drm_master_put(&priv->minor->master);
249 drm_master_put(&priv->minor->master);
258 priv->master = drm_master_get(priv->minor->master);
287 struct drm_device *dev = file_priv->minor->dev;
322 struct drm_device *dev = file_priv->minor->dev;
342 if (file_priv->minor->master)
398 if (file_priv->minor->master == file_priv->master) {
399 /* drop the reference held my the minor */
402 drm_master_put(&file_priv->minor->master);
441 struct drm_device *dev = file_priv->minor->dev;