Lines Matching full:magic

70 	unsigned long magic, iocs;  in check_auth()  local
75 if (drmGetClient(fd, i, &auth, &pid, &uid, &magic, &iocs) != 0) in check_auth()
90 drm_magic_t magic, *magics = NULL; in test_many_magics() local
113 /* resize magic-map */ in test_many_magics()
130 /* insert magic */ in test_many_magics()
131 igt_assert(drmGetMagic(slave, &magic) == 0); in test_many_magics()
132 igt_assert(magic > 0); in test_many_magics()
134 magics[i] = magic; in test_many_magics()
142 * We cannot open the DRM file anymore. Lets sort the magic-map and in test_many_magics()
143 * verify no magic was used multiple times. in test_many_magics()
163 drm_magic_t magic, old_magic; in test_basic_auth() local
171 /* retrieve magic for slave */ in test_basic_auth()
172 igt_assert(drmGetMagic(slave, &magic) == 0); in test_basic_auth()
173 igt_assert(magic > 0); in test_basic_auth()
175 /* verify the same magic is returned every time */ in test_basic_auth()
176 old_magic = magic; in test_basic_auth()
177 igt_assert(drmGetMagic(slave, &magic) == 0); in test_basic_auth()
178 igt_assert_eq(magic, old_magic); in test_basic_auth()
180 /* verify magic can be authorized exactly once, on the master */ in test_basic_auth()
181 igt_assert(drmAuthMagic(slave, magic) < 0); in test_basic_auth()
182 igt_assert(drmAuthMagic(master, magic) == 0); in test_basic_auth()
183 igt_assert(drmAuthMagic(master, magic) < 0); in test_basic_auth()
185 /* verify that the magic did not change */ in test_basic_auth()
186 old_magic = magic; in test_basic_auth()
187 igt_assert(drmGetMagic(slave, &magic) == 0); in test_basic_auth()
188 igt_assert_eq(magic, old_magic); in test_basic_auth()