Home
last modified time | relevance | path

Searched refs:max_devices (Results 1 – 23 of 23) sorted by relevance

/third_party/libdrm/tests/
Ddrmdevice.c112 int fd, ret, max_devices; in main() local
115 max_devices = drmGetDevices2(0, NULL, 0); in main()
117 if (max_devices <= 0) { in main()
119 -max_devices); in main()
122 printf("--- Devices reported %d ---\n", max_devices); in main()
125 devices = calloc(max_devices, sizeof(drmDevicePtr)); in main()
132 ret = drmGetDevices2(0, devices, max_devices); in main()
/third_party/mesa3d/src/intel/dev/
Dintel_device_info_override_test.c42 int max_devices; in main() local
51 max_devices = drmGetDevices2(0, devices, ARRAY_SIZE(devices)); in main()
52 if (max_devices < 1) { in main()
57 for (int i = 0; i < max_devices; i++) { in main()
Dintel_dev_info.c97 int max_devices; in main() local
100 max_devices = drmGetDevices2(0, devices, ARRAY_SIZE(devices)); in main()
101 if (max_devices < 1) in main()
104 for (int i = 0; i < max_devices; i++) { in main()
/third_party/mesa3d/src/egl/main/
Degldevice.c321 _eglQueryDevicesEXT(EGLint max_devices, in _eglQueryDevicesEXT() argument
328 if ((devices && max_devices <= 0) || !num_devices) in _eglQueryDevicesEXT()
348 *num_devices = MIN2(num_devs, max_devices); in _eglQueryDevicesEXT()
350 for (i = 0, dev = devs->Next; dev && i < max_devices; i++) { in _eglQueryDevicesEXT()
356 if (max_devices >= num_devs) { in _eglQueryDevicesEXT()
Degldevice.h83 _eglQueryDevicesEXT(EGLint max_devices, _EGLDevice **devices,
Deglapi.c2669 eglQueryDevicesEXT(EGLint max_devices, in eglQueryDevicesEXT() argument
2676 ret = _eglQueryDevicesEXT(max_devices, (_EGLDevice **) devices, in eglQueryDevicesEXT()
/third_party/skia/third_party/externals/egl-registry/extensions/EXT/
DEGL_EXT_device_enumeration.txt71 EGLBoolean eglQueryDevicesEXT(EGLint max_devices,
79 EGLBoolean eglQueryDevicesEXT(EGLint max_devices,
86 be less than or equal to <max_devices>. If <devices> is NULL,
87 then <max_devices> will be ignored, no devices will be returned in
93 generated if <max_devices> is less than or equal to zero unless
/third_party/EGL/extensions/EXT/
DEGL_EXT_device_enumeration.txt71 EGLBoolean eglQueryDevicesEXT(EGLint max_devices,
79 EGLBoolean eglQueryDevicesEXT(EGLint max_devices,
86 be less than or equal to <max_devices>. If <devices> is NULL,
87 then <max_devices> will be ignored, no devices will be returned in
93 generated if <max_devices> is less than or equal to zero unless
/third_party/mesa3d/src/freedreno/vulkan/
Dtu_drm.c778 int max_devices; in tu_enumerate_devices() local
782 max_devices = drmGetDevices2(0, devices, ARRAY_SIZE(devices)); in tu_enumerate_devices()
785 if (max_devices < 0) in tu_enumerate_devices()
786 mesa_logi("drmGetDevices2 returned error: %s\n", strerror(max_devices)); in tu_enumerate_devices()
788 mesa_logi("Found %d drm nodes", max_devices); in tu_enumerate_devices()
791 if (max_devices < 1) in tu_enumerate_devices()
795 for (unsigned i = 0; i < (unsigned) max_devices; i++) { in tu_enumerate_devices()
808 drmFreeDevices(devices, max_devices); in tu_enumerate_devices()
/third_party/gstreamer/gstplugins_base/gst-libs/gst/gl/egl/
Dgstgldisplay_egl_device.c52 typedef EGLBoolean (*eglQueryDevicesEXT_type) (EGLint max_devices,
/third_party/mesa3d/src/panfrost/vulkan/
Dpanvk_device.c388 int max_devices; in panvk_enumerate_devices() local
392 max_devices = drmGetDevices2(0, devices, ARRAY_SIZE(devices)); in panvk_enumerate_devices()
395 panvk_logi("Found %d drm nodes", max_devices); in panvk_enumerate_devices()
397 if (max_devices < 1) in panvk_enumerate_devices()
400 for (unsigned i = 0; i < (unsigned) max_devices; i++) { in panvk_enumerate_devices()
413 drmFreeDevices(devices, max_devices); in panvk_enumerate_devices()
/third_party/mesa3d/src/intel/common/tests/
Dmi_builder_test.cpp174 int max_devices = drmGetDevices2(0, devices, 8); in SetUp() local
177 for (i = 0; i < max_devices; i++) { in SetUp()
210 ASSERT_TRUE(i < max_devices) << "Failed to find a DRM device"; in SetUp()
/third_party/libdrm/
Dxf86drm.h913 extern int drmGetDevices(drmDevicePtr devices[], int max_devices);
918 extern int drmGetDevices2(uint32_t flags, drmDevicePtr devices[], int max_devices);
Dxf86drm.c4690 int max_devices) in drmGetDevices2() argument
4729 if ((devices != NULL) && (device_count < max_devices)) in drmGetDevices2()
4740 return MIN2(device_count, max_devices); in drmGetDevices2()
4757 drm_public int drmGetDevices(drmDevicePtr devices[], int max_devices) in drmGetDevices() argument
4759 return drmGetDevices2(DRM_DEVICE_GET_PCI_REVISION, devices, max_devices); in drmGetDevices()
/third_party/mesa3d/src/broadcom/vulkan/
Dv3dv_device.c941 int max_devices; in enumerate_devices() local
945 max_devices = drmGetDevices2(0, devices, ARRAY_SIZE(devices)); in enumerate_devices()
946 if (max_devices < 1) in enumerate_devices()
953 for (unsigned i = 0; i < (unsigned)max_devices; i++) { in enumerate_devices()
1010 drmFreeDevices(devices, max_devices); in enumerate_devices()
/third_party/ffmpeg/libavutil/
Dhwcontext_vaapi.c1544 int n, max_devices = 8; in vaapi_device_create() local
1549 for (n = 0; n < max_devices; n++) { in vaapi_device_create()
1584 if (n >= max_devices) in vaapi_device_create()
/third_party/skia/third_party/externals/egl-registry/api/EGL/
Deglext.h671 typedef EGLBoolean (EGLAPIENTRYP PFNEGLQUERYDEVICESEXTPROC) (EGLint max_devices, EGLDeviceEXT *devi…
676 EGLAPI EGLBoolean EGLAPIENTRY eglQueryDevicesEXT (EGLint max_devices, EGLDeviceEXT *devices, EGLint…
/third_party/skia/third_party/externals/swiftshader/include/EGL/
Deglext.h671 typedef EGLBoolean (EGLAPIENTRYP PFNEGLQUERYDEVICESEXTPROC) (EGLint max_devices, EGLDeviceEXT *devi…
676 EGLAPI EGLBoolean EGLAPIENTRY eglQueryDevicesEXT (EGLint max_devices, EGLDeviceEXT *devices, EGLint…
/third_party/mesa3d/src/intel/vulkan/
Danv_device.c1180 int max_devices; in anv_enumerate_physical_devices() local
1182 max_devices = drmGetDevices2(0, devices, ARRAY_SIZE(devices)); in anv_enumerate_physical_devices()
1183 if (max_devices < 1) in anv_enumerate_physical_devices()
1187 for (unsigned i = 0; i < (unsigned)max_devices; i++) { in anv_enumerate_physical_devices()
1208 drmFreeDevices(devices, max_devices); in anv_enumerate_physical_devices()
/third_party/skia/third_party/externals/angle2/include/EGL/
Deglext.h662 typedef EGLBoolean (EGLAPIENTRYP PFNEGLQUERYDEVICESEXTPROC) (EGLint max_devices, EGLDeviceEXT *devi…
667 EGLAPI EGLBoolean EGLAPIENTRY eglQueryDevicesEXT (EGLint max_devices, EGLDeviceEXT *devices, EGLint…
/third_party/mesa3d/include/EGL/
Deglext.h680 typedef EGLBoolean (EGLAPIENTRYP PFNEGLQUERYDEVICESEXTPROC) (EGLint max_devices, EGLDeviceEXT *devi…
685 EGLAPI EGLBoolean EGLAPIENTRY eglQueryDevicesEXT (EGLint max_devices, EGLDeviceEXT *devices, EGLint…
/third_party/EGL/api/EGL/
Deglext.h680 typedef EGLBoolean (EGLAPIENTRYP PFNEGLQUERYDEVICESEXTPROC) (EGLint max_devices, EGLDeviceEXT *devi…
685 EGLAPI EGLBoolean EGLAPIENTRY eglQueryDevicesEXT (EGLint max_devices, EGLDeviceEXT *devices, EGLint…
/third_party/mesa3d/src/amd/vulkan/
Dradv_device.c1194 int max_devices = drmGetDevices2(0, devices, ARRAY_SIZE(devices)); in radv_enumerate_physical_devices() local
1197 fprintf(stderr, "radv: info: Found %d drm nodes.\n", max_devices); in radv_enumerate_physical_devices()
1199 if (max_devices < 1) in radv_enumerate_physical_devices()
1202 for (unsigned i = 0; i < (unsigned)max_devices; i++) { in radv_enumerate_physical_devices()
1222 drmFreeDevices(devices, max_devices); in radv_enumerate_physical_devices()