Lines Matching refs:devices
110 drmDevicePtr *devices; in main() local
125 devices = calloc(max_devices, sizeof(drmDevicePtr)); in main()
126 if (devices == NULL) { in main()
132 ret = drmGetDevices2(0, devices, max_devices); in main()
135 free(devices); in main()
140 print_device_info(devices[i], i, false); in main()
143 if (devices[i]->available_nodes & 1 << j) { in main()
144 printf("--- Opening device node %s ---\n", devices[i]->nodes[j]); in main()
145 fd = open(devices[i]->nodes[j], O_RDONLY | O_CLOEXEC, 0); in main()
151 printf("--- Retrieving device info, for node %s ---\n", devices[i]->nodes[j]); in main()
161 drmFreeDevices(devices, ret); in main()
162 free(devices); in main()