Lines Matching refs:magic
34 static int DRM(hash_magic)(drm_magic_t magic) in DRM()
36 return magic & (DRM_HASH_SIZE-1); in DRM()
39 static drm_file_t *DRM(find_file)(drm_device_t *dev, drm_magic_t magic) in DRM()
43 int hash = DRM(hash_magic)(magic); in DRM()
47 if (pt->magic == magic) { in DRM()
56 int DRM(add_magic)(drm_device_t *dev, drm_file_t *priv, drm_magic_t magic) in DRM()
61 DRM_DEBUG("%d\n", magic); in DRM()
63 hash = DRM(hash_magic)(magic); in DRM()
67 entry->magic = magic; in DRM()
84 int DRM(remove_magic)(drm_device_t *dev, drm_magic_t magic) in DRM()
90 DRM_DEBUG("%d\n", magic); in DRM()
91 hash = DRM(hash_magic)(magic); in DRM()
95 if (pt->magic == magic) { in DRM()
126 if (priv->magic) { in DRM()
127 auth.magic = priv->magic; in DRM()
132 auth.magic = sequence++; in DRM()
134 } while (DRM(find_file)(dev, auth.magic)); in DRM()
135 priv->magic = auth.magic; in DRM()
136 DRM(add_magic)(dev, priv, auth.magic); in DRM()
139 DRM_DEBUG("%u\n", auth.magic); in DRM()
155 DRM_DEBUG("%u\n", auth.magic); in DRM()
156 if ((file = DRM(find_file)(dev, auth.magic))) { in DRM()
158 DRM(remove_magic)(dev, auth.magic); in DRM()