Lines Matching defs:auth
133 drm_auth_t auth;
137 auth.magic = fpriv->magic;
141 auth.magic = old+1;
142 if (!atomic_cmpset_int(&sequence, old, auth.magic))
144 } while (drm_find_file(dev, auth.magic));
145 fpriv->magic = auth.magic;
146 (void) drm_add_magic(dev, fpriv, auth.magic);
150 DRM_DEBUG("drm_getmagic: %u", auth.magic);
152 DRM_COPYTO_WITH_RETURN((void *)data, &auth, sizeof (auth));
161 drm_auth_t auth;
165 DRM_COPYFROM_WITH_RETURN(&auth, (void *)data, sizeof (auth));
167 if ((file = drm_find_file(dev, auth.magic))) {
169 (void) drm_remove_magic(dev, auth.magic);