Searched refs:hpriv (Results 1 – 2 of 2) sorted by relevance
/external/libusb/libusb/os/ |
D | darwin_usb.c | 1395 struct darwin_device_handle_priv *hpriv = NULL; in op_handle_events() local 1404 hpriv = (struct darwin_device_handle_priv *)handle->os_priv; in op_handle_events() 1405 if (hpriv->fds[0] == pollfd->fd) in op_handle_events() 1410 ret = read (hpriv->fds[0], &message, sizeof (message)); in op_handle_events() 1420 if (hpriv->cfSource) { in op_handle_events() 1422 CFRunLoopRemoveSource (libusb_darwin_acfl, hpriv->cfSource, kCFRunLoopDefaultMode); in op_handle_events() 1423 CFRelease (hpriv->cfSource); in op_handle_events() 1424 hpriv->cfSource = NULL; in op_handle_events() 1427 usbi_remove_pollfd(HANDLE_CTX(handle), hpriv->fds[0]); in op_handle_events() 1433 read (hpriv->fds[0], &itransfer, sizeof (itransfer)); in op_handle_events() [all …]
|
D | linux_usbfs.c | 1051 struct linux_device_handle_priv *hpriv = __device_handle_priv(handle); in op_open() local 1055 hpriv->fd = open(filename, O_RDWR); in op_open() 1056 if (hpriv->fd < 0) { in op_open() 1067 "open failed, code %d errno %d", hpriv->fd, errno); in op_open() 1072 return usbi_add_pollfd(HANDLE_CTX(handle), hpriv->fd, POLLOUT); in op_open() 2062 struct linux_device_handle_priv *hpriv = __device_handle_priv(handle); in reap_for_handle() local 2068 r = ioctl(hpriv->fd, IOCTL_USBFS_REAPURBNDELAY, &urb); in reap_for_handle() 2111 struct linux_device_handle_priv *hpriv = NULL; in op_handle_events() local 2118 hpriv = __device_handle_priv(handle); in op_handle_events() 2119 if (hpriv->fd == pollfd->fd) in op_handle_events() [all …]
|