Lines Matching defs:num_devices
139 int i, num_devices, fd = -1;
141 num_devices = drmGetDevices2(0, devices, MAX_DRM_DEVICES);
142 if (num_devices <= 0)
145 for (i = 0; i < num_devices; i++) {
172 drmFreeDevices(devices, num_devices);
174 if (i == num_devices)
306 int i, num_devices, fd = -1;
324 num_devices = drmGetDevices2(0, devices, MAX_DRM_DEVICES);
325 if (num_devices <= 0)
328 for (i = 0; i < num_devices; i++) {
348 drmFreeDevices(devices, num_devices);
350 if (i == num_devices)