Lines Matching defs:dev
43 drm_find_file_by_proc(drm_device_t *dev, cred_t *credp)
48 TAILQ_FOREACH(priv, &dev->files, link)
56 drm_find_file_by_minor(drm_device_t *dev, int minor)
60 TAILQ_FOREACH(mp, &dev->minordevs, link) {
67 /* drm_open_helper is called whenever a process opens /dev/drm. */
70 drm_open_helper(drm_device_t *dev, drm_cminor_t *mp, int flags,
79 dev->flags = flags;
85 priv = drm_find_file_by_proc(dev, credp);
106 if (dev->driver->open) {
107 retcode = dev->driver->open(dev, priv);
116 priv->master = TAILQ_EMPTY(&dev->files);
117 TAILQ_INSERT_TAIL(&dev->files, priv, link);