Searched refs:tdrm_fd (Results 1 – 1 of 1) sorted by relevance
43 static int tdrm_fd = -1; /* file descriptor */ variable111 tdrm_fd = open(DEVICE_NAME, O_RDWR); in tdrmopen()113 if (tdrm_fd < 0) { in tdrmopen()115 DEVICE_NAME, tdrm_fd, errno); in tdrmopen()127 if (tdrm_fd != -1) { in tdrmclose()128 close(tdrm_fd); in tdrmclose()129 tdrm_fd = -1; in tdrmclose()147 if (ioctl(tdrm_fd, DRM_IOCTL_GET_MAGIC, &auth)) in main()154 if (ioctl(tdrm_fd, DRM_IOCTL_GET_STATS, &stats)) in main()164 if (ioctl(tdrm_fd, DRM_IOCTL_IRQ_BUSID)) in main()[all …]