Lines Matching refs:priv
46 drm_file_t *priv;
48 TAILQ_FOREACH(priv, &dev->files, link)
49 if (priv->pid == pid)
50 return (priv);
73 drm_file_t *priv;
85 priv = drm_find_file_by_proc(dev, credp);
86 if (priv) {
87 priv->refs++;
89 priv = drm_alloc(sizeof (*priv), DRM_MEM_FILES);
90 if (priv == NULL) {
94 bzero(priv, sizeof (*priv));
96 priv->uid = crgetsuid(credp);
97 priv->pid = pid;
99 priv->refs = 1;
100 priv->minor = 5; /* just for hack */
101 priv->ioctl_count = 0;
104 priv->authenticated = DRM_SUSER(credp);
107 retcode = dev->driver->open(dev, priv);
109 drm_free(priv, sizeof (*priv), DRM_MEM_FILES);
116 priv->master = TAILQ_EMPTY(&dev->files);
117 TAILQ_INSERT_TAIL(&dev->files, priv, link);
119 mp->fpriv = priv;