Lines Matching defs:device
51 drmDevicePtr device;
64 /* The first device is static allocated SW device */
76 drmFreeDevice(&dev->device);
85 _eglCheckDeviceHandle(EGLDeviceEXT device)
92 if (cur == (_EGLDevice *) device)
112 _eglAddDRMDevice(drmDevicePtr device, _EGLDevice **out_dev)
116 if ((device->available_nodes & (1 << DRM_NODE_PRIMARY |
122 /* The first device is always software */
130 if (drmDevicesEqual(device, dev->device) != 0) {
147 dev->device = device;
150 if (device->available_nodes & (1 << DRM_NODE_RENDER)) {
162 /* Adds a device in DeviceList, if needed for the given fd.
164 * If a software device, the fd is ignored.
174 /* The first device is always software */
181 drmDevicePtr device;
183 if (drmGetDevice2(fd, 0, &device) != 0) {
189 if (_eglAddDRMDevice(device, &dev) != 0)
190 drmFreeDevice(&device);
192 _eglLog(_EGL_FATAL, "Driver bug: Built without libdrm, yet looking for HW device");
227 return dev->device->nodes[DRM_NODE_RENDER];
254 return dev->device->nodes[DRM_NODE_PRIMARY];
257 * software device, and physical devices are only exposed when libdrm is
266 return dev->device ? dev->device->nodes[DRM_NODE_RENDER] : NULL;
292 /* The first device is always software */
342 /* Push the first device (the software one) to the end of the list.
345 * By default, the user is likely to pick the first device so having the
355 /* User requested the full device list, add the sofware device. */