Home
last modified time | relevance | path

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

/external/libusb_aah/libusb/os/
Dopenbsd_usb.c136 struct device_priv *dpriv; in obsd_get_device_list() local
170 dpriv = (struct device_priv *)dev->os_priv; in obsd_get_device_list()
171 strlcpy(dpriv->devnode, devnode, sizeof(devnode)); in obsd_get_device_list()
172 dpriv->fd = -1; in obsd_get_device_list()
174 if (ioctl(fd, USB_GET_DEVICE_DESC, &dpriv->ddesc) < 0) { in obsd_get_device_list()
179 dpriv->cdesc = NULL; in obsd_get_device_list()
206 struct device_priv *dpriv = (struct device_priv *)handle->dev->os_priv; in obsd_open() local
208 dpriv->fd = open(dpriv->devnode, O_RDWR); in obsd_open()
209 if (dpriv->fd < 0) { in obsd_open()
210 dpriv->fd = open(dpriv->devnode, O_RDONLY); in obsd_open()
[all …]
Ddarwin_usb.c258 struct darwin_device_priv *dpriv; in darwin_devices_detached() local
288 dpriv = (struct darwin_device_priv *)handle->dev->os_priv; in darwin_devices_detached()
291 if (dpriv->location == location && handle->os_priv) { in darwin_devices_detached()
792 struct darwin_device_priv *dpriv = (struct darwin_device_priv *)dev_handle->dev->os_priv; in darwin_open() local
796 if (0 == dpriv->open_count) { in darwin_open()
797 kresult = darwin_get_device (dpriv->location, &darwin_device); in darwin_open()
803 dpriv->device = darwin_device; in darwin_open()
806 kresult = (*(dpriv->device))->USBDeviceOpenSeize (dpriv->device); in darwin_open()
818 (*(dpriv->device))->Release (dpriv->device); in darwin_open()
819 dpriv->device = NULL; in darwin_open()
[all …]
Dlinux_usbfs.c1531 struct linux_device_handle_priv *dpriv = in discard_urbs() local
1542 if (0 == ioctl(dpriv->fd, IOCTL_USBFS_DISCARDURB, urb)) in discard_urbs()
1581 struct linux_device_handle_priv *dpriv = in submit_bulk_transfer() local
1646 r = ioctl(dpriv->fd, IOCTL_USBFS_SUBMITURB, urb); in submit_bulk_transfer()
1707 struct linux_device_handle_priv *dpriv = in submit_iso_transfer() local
1805 int r = ioctl(dpriv->fd, IOCTL_USBFS_SUBMITURB, urbs[i]); in submit_iso_transfer()
1857 struct linux_device_handle_priv *dpriv = in submit_control_transfer() local
1882 r = ioctl(dpriv->fd, IOCTL_USBFS_SUBMITURB, urb); in submit_control_transfer()
/external/libusb/libusb/os/
Ddarwin_usb.c217 struct darwin_device_priv *dpriv; in darwin_devices_detached() local
237 dpriv = (struct darwin_device_priv *)handle->dev->os_priv; in darwin_devices_detached()
240 if (dpriv->location == location && handle->os_priv) { in darwin_devices_detached()
579 struct darwin_device_priv *dpriv = (struct darwin_device_priv *)dev_handle->dev->os_priv; in darwin_open() local
583 if (0 == dpriv->open_count) { in darwin_open()
584 kresult = darwin_get_device (dpriv->location, &darwin_device); in darwin_open()
590 dpriv->device = darwin_device; in darwin_open()
593 kresult = (*(dpriv->device))->USBDeviceOpenSeize (dpriv->device); in darwin_open()
605 (*(dpriv->device))->Release (dpriv->device); in darwin_open()
606 dpriv->device = NULL; in darwin_open()
[all …]
Dlinux_usbfs.c1341 struct linux_device_handle_priv *dpriv = in submit_bulk_transfer() local
1396 r = ioctl(dpriv->fd, IOCTL_USBFS_SUBMITURB, urb); in submit_bulk_transfer()
1436 int tmp = ioctl(dpriv->fd, IOCTL_USBFS_DISCARDURB, &urbs[j]); in submit_bulk_transfer()
1456 struct linux_device_handle_priv *dpriv = in submit_iso_transfer() local
1554 int r = ioctl(dpriv->fd, IOCTL_USBFS_SUBMITURB, urbs[i]); in submit_iso_transfer()
1593 int tmp = ioctl(dpriv->fd, IOCTL_USBFS_DISCARDURB, urbs[j]); in submit_iso_transfer()
1613 struct linux_device_handle_priv *dpriv = in submit_control_transfer() local
1637 r = ioctl(dpriv->fd, IOCTL_USBFS_SUBMITURB, urb); in submit_control_transfer()
1677 struct linux_device_handle_priv *dpriv = in cancel_control_transfer() local
1685 r = ioctl(dpriv->fd, IOCTL_USBFS_DISCARDURB, tpriv->urbs); in cancel_control_transfer()
[all …]