48 static struct drm_file *drm_find_file(
struct drm_master *master,
drm_magic_t magic)
51 struct drm_magic_entry *pt;
75 static int drm_add_magic(
struct drm_master *master,
struct drm_file *
priv,
78 struct drm_magic_entry *
entry;
80 DRM_DEBUG(
"%d\n", magic);
86 entry->hash_item.key = (
unsigned long)magic;
106 struct drm_magic_entry *pt;
110 DRM_DEBUG(
"%d\n", magic);
149 if (file_priv->magic) {
150 auth->
magic = file_priv->magic;
156 auth->
magic = sequence++;
158 }
while (drm_find_file(file_priv->master, auth->
magic));
159 file_priv->magic = auth->
magic;
160 drm_add_magic(file_priv->master, file_priv, auth->
magic);
163 DRM_DEBUG(
"%u\n", auth->
magic);
182 struct drm_file *file_priv)
185 struct drm_file *
file;
187 DRM_DEBUG(
"%u\n", auth->
magic);
188 if ((file = drm_find_file(file_priv->master, auth->
magic))) {
189 file->authenticated = 1;