Home
last modified time | relevance | path

Searched refs:dpriv (Results 1 – 7 of 7) sorted by relevance

/external/libusb/libusb/os/
Dnetbsd_usb.c144 struct device_priv *dpriv; in netbsd_get_device_list() local
178 dpriv = (struct device_priv *)dev->os_priv; in netbsd_get_device_list()
179 strlcpy(dpriv->devnode, devnode, sizeof(devnode)); in netbsd_get_device_list()
180 dpriv->fd = -1; in netbsd_get_device_list()
182 if (ioctl(fd, USB_GET_DEVICE_DESC, &dpriv->ddesc) < 0) { in netbsd_get_device_list()
187 dpriv->cdesc = NULL; in netbsd_get_device_list()
216 struct device_priv *dpriv = (struct device_priv *)handle->dev->os_priv; in netbsd_open() local
218 dpriv->fd = open(dpriv->devnode, O_RDWR); in netbsd_open()
219 if (dpriv->fd < 0) { in netbsd_open()
220 dpriv->fd = open(dpriv->devnode, O_RDONLY); in netbsd_open()
[all …]
Dopenbsd_usb.c151 struct device_priv *dpriv; in obsd_get_device_list() local
205 dpriv = (struct device_priv *)dev->os_priv; in obsd_get_device_list()
206 dpriv->fd = -1; in obsd_get_device_list()
207 dpriv->cdesc = NULL; in obsd_get_device_list()
208 dpriv->devname = udevname; in obsd_get_device_list()
216 dpriv->ddesc = dd.udd_desc; in obsd_get_device_list()
250 struct device_priv *dpriv = (struct device_priv *)handle->dev->os_priv; in obsd_open() local
253 if (dpriv->devname) { in obsd_open()
259 dpriv->devname); in obsd_open()
260 dpriv->fd = open(devnode, O_RDWR); in obsd_open()
[all …]
Dsunos_usb.c95 sunos_dev_priv_t *dpriv = (sunos_dev_priv_t *)dev->os_priv; in sunos_fill_in_dev_info() local
106 bcopy(descr, &dpriv->dev_descr, LIBUSB_DT_DEVICE_SIZE); in sunos_fill_in_dev_info()
107 dpriv->dev_descr.bcdUSB = libusb_cpu_to_le16(descr->bcdUSB); in sunos_fill_in_dev_info()
108 dpriv->dev_descr.idVendor = libusb_cpu_to_le16(descr->idVendor); in sunos_fill_in_dev_info()
109 dpriv->dev_descr.idProduct = libusb_cpu_to_le16(descr->idProduct); in sunos_fill_in_dev_info()
110 dpriv->dev_descr.bcdDevice = libusb_cpu_to_le16(descr->bcdDevice); in sunos_fill_in_dev_info()
120 dpriv->raw_cfgdescr = calloc(1, proplen); in sunos_fill_in_dev_info()
121 if (dpriv->raw_cfgdescr == NULL) { in sunos_fill_in_dev_info()
124 bcopy(rdata, dpriv->raw_cfgdescr, proplen); in sunos_fill_in_dev_info()
125 dpriv->cfgvalue = ((struct libusb_config_descriptor *) in sunos_fill_in_dev_info()
[all …]
Ddarwin_usb.c1054 struct darwin_cached_device *dpriv = DARWIN_CACHED_DEVICE(dev_handle->dev); in darwin_open() local
1057 if (0 == dpriv->open_count) { in darwin_open()
1059 kresult = (*(dpriv->device))->USBDeviceOpenSeize (dpriv->device); in darwin_open()
1074 kresult = (*(dpriv->device))->CreateDeviceAsyncEventSource (dpriv->device, &priv->cfSource); in darwin_open()
1079 (*(dpriv->device))->USBDeviceClose (dpriv->device); in darwin_open()
1094 dpriv->open_count++; in darwin_open()
1103 struct darwin_cached_device *dpriv = DARWIN_CACHED_DEVICE(dev_handle->dev); in darwin_close() local
1107 if (dpriv->open_count == 0) { in darwin_close()
1113 dpriv->open_count--; in darwin_close()
1120 if (0 == dpriv->open_count) { in darwin_close()
[all …]
Dsunos_usb.h47 sunos_dev_priv_t *dpriv; /* device private */ member
Dlinux_usbfs.c1750 struct linux_device_handle_priv *dpriv = in discard_urbs() local
1761 if (0 == ioctl(dpriv->fd, IOCTL_USBFS_DISCARDURB, urb)) in discard_urbs()
1799 struct linux_device_handle_priv *dpriv = in submit_bulk_transfer() local
1809 !(dpriv->caps & USBFS_CAP_ZERO_PACKET)) in submit_bulk_transfer()
1831 if (dpriv->caps & USBFS_CAP_BULK_SCATTER_GATHER) { in submit_bulk_transfer()
1835 } else if (dpriv->caps & USBFS_CAP_BULK_CONTINUATION) { in submit_bulk_transfer()
1840 } else if (dpriv->caps & USBFS_CAP_NO_PACKET_SIZE_LIM) { in submit_bulk_transfer()
1910 r = ioctl(dpriv->fd, IOCTL_USBFS_SUBMITURB, urb); in submit_bulk_transfer()
1971 struct linux_device_handle_priv *dpriv = in submit_iso_transfer() local
2068 int r = ioctl(dpriv->fd, IOCTL_USBFS_SUBMITURB, urbs[i]); in submit_iso_transfer()
[all …]
/external/mesa3d/src/mesa/drivers/dri/i915/
Dintel_blit.h33 extern void intelCopyBuffer(const __DRIdrawable * dpriv,