Lines Matching refs:auth
68 struct drm_auth auth;
76 /* Get a client magic number and pass it to the master for auth. */
77 auth.magic = 0; /* Quiet valgrind */
78 ret = ioctl(drmfd, DRM_IOCTL_GET_MAGIC, &auth);
82 ret = write(commfd[0], &auth.magic, sizeof(auth.magic));
84 err(1, "Couldn't write auth data");
93 struct drm_auth auth;
97 auth.magic = 0xd0d0d0d0;
98 ret = ioctl(drmfd, DRM_IOCTL_AUTH_MAGIC, &auth);
105 ret = read(commfd[1], &auth.magic, sizeof(auth.magic));
109 ret = ioctl(drmfd, DRM_IOCTL_AUTH_MAGIC, &auth);