Lines Matching refs:dh
107 libusb_device_handle *dh; member
566 xfer->xfer->dev_handle = s->dh; in usb_host_iso_alloc()
960 if (s->dh != NULL) { in usb_host_open()
969 rc = libusb_open(dev, &s->dh); in usb_host_open()
977 rc = libusb_wrap_sys_device(ctx, hostfd, &s->dh); in usb_host_open()
982 dev = libusb_get_device(s->dh); in usb_host_open()
1042 libusb_get_string_descriptor_ascii(s->dh, s->ddesc.iProduct, in usb_host_open()
1061 if (s->dh != NULL) { in usb_host_open()
1063 libusb_reset_device(s->dh); in usb_host_open()
1065 libusb_close(s->dh); in usb_host_open()
1066 s->dh = NULL; in usb_host_open()
1106 if (s->dh == NULL) { in usb_host_close()
1120 libusb_reset_device(s->dh); in usb_host_close()
1122 libusb_close(s->dh); in usb_host_close()
1123 s->dh = NULL; in usb_host_close()
1154 if (s->dh) { in usb_host_exit_notifier()
1157 libusb_reset_device(s->dh); in usb_host_exit_notifier()
1159 libusb_close(s->dh); in usb_host_exit_notifier()
1305 rc = libusb_kernel_driver_active(s->dh, i); in usb_host_detach_kernel()
1314 rc = libusb_detach_kernel_driver(s->dh, i); in usb_host_detach_kernel()
1335 libusb_attach_kernel_driver(s->dh, i); in usb_host_attach_kernel()
1367 rc = libusb_claim_interface(s->dh, i); in usb_host_claim_interfaces()
1395 rc = libusb_release_interface(s->dh, i); in usb_host_release_interfaces()
1417 rc = libusb_set_configuration(s->dh, config); in usb_host_set_config()
1449 rc = libusb_set_interface_alt_setting(s->dh, iface, alt); in usb_host_set_interface()
1473 if (s->dh == NULL) { in usb_host_handle_control()
1498 libusb_clear_halt(s->dh, index); in usb_host_handle_control()
1521 libusb_fill_control_transfer(r->xfer, s->dh, r->buffer, in usb_host_handle_control()
1554 if (s->dh == NULL) { in usb_host_handle_data()
1575 libusb_fill_bulk_stream_transfer(r->xfer, s->dh, ep, p->stream, in usb_host_handle_data()
1585 libusb_fill_bulk_transfer(r->xfer, s->dh, ep, in usb_host_handle_data()
1597 libusb_fill_interrupt_transfer(r->xfer, s->dh, ep, in usb_host_handle_data()
1653 rc = libusb_reset_device(s->dh); in usb_host_handle_reset()
1673 rc = libusb_alloc_streams(s->dh, streams, endpoints, nr_eps); in usb_host_alloc_streams()
1702 libusb_free_streams(s->dh, endpoints, nr_eps); in usb_host_free_streams()
1727 if (dev->dh != NULL) { in usb_host_post_load_bh()
1886 if (s->dh != NULL) { in usb_host_auto_check()
1900 if (s->dh) { in usb_host_auto_check()