Home
last modified time | relevance | path

Searched refs:hpriv (Results 1 – 4 of 4) sorted by relevance

/external/libusb/libusb/os/
Dsunos_usb.c366 sunos_usb_open_ep0(sunos_dev_handle_priv_t *hpriv, sunos_dev_priv_t *dpriv) in sunos_usb_open_ep0() argument
370 if (hpriv->eps[0].datafd > 0) { in sunos_usb_open_ep0()
377 hpriv->eps[0].datafd = open(filename, O_RDWR); in sunos_usb_open_ep0()
378 if (hpriv->eps[0].datafd < 0) { in sunos_usb_open_ep0()
383 hpriv->eps[0].statfd = open(filename, O_RDONLY); in sunos_usb_open_ep0()
384 if (hpriv->eps[0].statfd < 0) { in sunos_usb_open_ep0()
385 close(hpriv->eps[0].datafd); in sunos_usb_open_ep0()
386 hpriv->eps[0].datafd = -1; in sunos_usb_open_ep0()
481 sunos_dev_handle_priv_t *hpriv; in sunos_check_device_and_status_open() local
484 hpriv = (sunos_dev_handle_priv_t *)hdl->os_priv; in sunos_check_device_and_status_open()
[all …]
Dnetbsd_usb.c215 struct handle_priv *hpriv = (struct handle_priv *)handle->os_priv; in netbsd_open() local
233 struct handle_priv *hpriv = (struct handle_priv *)handle->os_priv; in netbsd_close() local
345 struct handle_priv *hpriv = (struct handle_priv *)handle->os_priv; in netbsd_claim_interface() local
349 hpriv->endpoints[i] = -1; in netbsd_claim_interface()
357 struct handle_priv *hpriv = (struct handle_priv *)handle->os_priv; in netbsd_release_interface() local
361 if (hpriv->endpoints[i] >= 0) in netbsd_release_interface()
362 close(hpriv->endpoints[i]); in netbsd_release_interface()
429 struct handle_priv *hpriv; in netbsd_submit_transfer() local
435 hpriv = (struct handle_priv *)transfer->dev_handle->os_priv; in netbsd_submit_transfer()
612 struct handle_priv *hpriv; in _access_endpoint() local
[all …]
Dopenbsd_usb.c249 struct handle_priv *hpriv = (struct handle_priv *)handle->os_priv; in obsd_open() local
273 struct handle_priv *hpriv = (struct handle_priv *)handle->os_priv; in obsd_close() local
379 struct handle_priv *hpriv = (struct handle_priv *)handle->os_priv; in obsd_claim_interface() local
383 hpriv->endpoints[i] = -1; in obsd_claim_interface()
391 struct handle_priv *hpriv = (struct handle_priv *)handle->os_priv; in obsd_release_interface() local
395 if (hpriv->endpoints[i] >= 0) in obsd_release_interface()
396 close(hpriv->endpoints[i]); in obsd_release_interface()
475 struct handle_priv *hpriv; in obsd_submit_transfer() local
481 hpriv = (struct handle_priv *)transfer->dev_handle->os_priv; in obsd_submit_transfer()
692 struct handle_priv *hpriv; in _access_endpoint() local
[all …]
Dlinux_usbfs.c1285 struct linux_device_handle_priv *hpriv = _device_handle_priv(handle); in op_open() local
1288 hpriv->fd = _get_usbfs_fd(handle->dev, O_RDWR, 0); in op_open()
1289 if (hpriv->fd < 0) { in op_open()
1290 if (hpriv->fd == LIBUSB_ERROR_NO_DEVICE) { in op_open()
1301 return hpriv->fd; in op_open()
1304 r = ioctl(hpriv->fd, IOCTL_USBFS_GET_CAPABILITIES, &hpriv->caps); in op_open()
1310 hpriv->caps = 0; in op_open()
1312 hpriv->caps |= USBFS_CAP_ZERO_PACKET; in op_open()
1314 hpriv->caps |= USBFS_CAP_BULK_CONTINUATION; in op_open()
1317 r = usbi_add_pollfd(HANDLE_CTX(handle), hpriv->fd, POLLOUT); in op_open()
[all …]