Lines Matching refs:uhe
404 struct usb_host_endpoint *uhe; in usb_submit_urb() local
431 uhe = urb->endpoint; in usb_submit_urb()
438 if (uhe->bsd_xfer[0] || in usb_submit_urb()
439 uhe->bsd_xfer[1]) { in usb_submit_urb()
442 TAILQ_INSERT_TAIL(&uhe->bsd_urb_list, urb, bsd_urb_list); in usb_submit_urb()
446 usbd_transfer_start(uhe->bsd_xfer[0]); in usb_submit_urb()
447 usbd_transfer_start(uhe->bsd_xfer[1]); in usb_submit_urb()
495 struct usb_host_endpoint *uhe; in usb_unlink_urb_sub() local
513 uhe = urb->endpoint; in usb_unlink_urb_sub()
518 TAILQ_REMOVE(&uhe->bsd_urb_list, urb, bsd_urb_list); in usb_unlink_urb_sub()
538 usb_unlink_bsd(uhe->bsd_xfer[0], urb, drain); in usb_unlink_urb_sub()
539 usb_unlink_bsd(uhe->bsd_xfer[1], urb, drain); in usb_unlink_urb_sub()
558 usb_clear_halt(struct usb_device *dev, struct usb_host_endpoint *uhe) in usb_clear_halt() argument
565 if (uhe == NULL) in usb_clear_halt()
568 type = uhe->desc.bmAttributes & UE_XFERTYPE; in usb_clear_halt()
569 addr = uhe->desc.bEndpointAddress; in usb_clear_halt()
577 ep = usbd_get_endpoint(dev, uhe->bsd_iface_index, cfg); in usb_clear_halt()
655 usb_control_msg(struct usb_device *dev, struct usb_host_endpoint *uhe, in usb_control_msg() argument
673 if (uhe == NULL) { in usb_control_msg()
676 type = (uhe->desc.bmAttributes & UE_XFERTYPE); in usb_control_msg()
677 addr = (uhe->desc.bEndpointAddress & UE_ADDR); in usb_control_msg()
701 err = usb_setup_endpoint(dev, uhe, 1 /* dummy */ ); in usb_control_msg()
712 urb->endpoint = uhe; in usb_control_msg()
777 struct usb_host_endpoint *uhe, usb_size_t bufsize) in usb_setup_endpoint() argument
780 uint8_t type = uhe->desc.bmAttributes & UE_XFERTYPE; in usb_setup_endpoint()
781 uint8_t addr = uhe->desc.bEndpointAddress; in usb_setup_endpoint()
783 if (uhe->fbsd_buf_size == bufsize) { in usb_setup_endpoint()
787 usbd_transfer_unsetup(uhe->bsd_xfer, 2); in usb_setup_endpoint()
789 uhe->fbsd_buf_size = bufsize; in usb_setup_endpoint()
826 if (usbd_transfer_setup(dev, &uhe->bsd_iface_index, in usb_setup_endpoint()
827 uhe->bsd_xfer, cfg, 2, uhe, &Giant)) { in usb_setup_endpoint()
846 if (usbd_transfer_setup(dev, &uhe->bsd_iface_index, in usb_setup_endpoint()
847 uhe->bsd_xfer, cfg, 1, uhe, &Giant)) { in usb_setup_endpoint()
1027 struct usb_host_endpoint *uhe; in usb_find_host_endpoint() local
1056 for (uhe = uhi->endpoint; in usb_find_host_endpoint()
1057 uhe != uhe_end; in usb_find_host_endpoint()
1058 uhe++) { in usb_find_host_endpoint()
1059 ea = uhe->desc.bEndpointAddress; in usb_find_host_endpoint()
1060 at = uhe->desc.bmAttributes; in usb_find_host_endpoint()
1064 return (uhe); in usb_find_host_endpoint()
1193 struct usb_host_endpoint *uhe; in usb_linux_free_device() local
1197 uhe = dev->linux_endpoint_start; in usb_linux_free_device()
1199 while (uhe != uhe_end) { in usb_linux_free_device()
1200 err = usb_setup_endpoint(dev, uhe, 0); in usb_linux_free_device()
1201 uhe++; in usb_linux_free_device()
1284 struct usb_host_endpoint *uhe; in usb_linux_cleanup_interface() local
1291 uhe = uhi->endpoint; in usb_linux_cleanup_interface()
1293 while (uhe != uhe_end) { in usb_linux_cleanup_interface()
1294 err = usb_setup_endpoint(dev, uhe, 0); in usb_linux_cleanup_interface()
1295 uhe++; in usb_linux_cleanup_interface()
1346 struct usb_host_endpoint *uhe = usbd_xfer_softc(xfer); in usb_linux_isoc_callback() local
1413 urb = TAILQ_FIRST(&uhe->bsd_urb_list); in usb_linux_isoc_callback()
1418 TAILQ_REMOVE(&uhe->bsd_urb_list, urb, bsd_urb_list); in usb_linux_isoc_callback()
1433 urb->bsd_isread = (uhe->desc.bEndpointAddress & UE_DIR_IN) ? 1 : 0; in usb_linux_isoc_callback()
1522 struct usb_host_endpoint *uhe = usbd_xfer_softc(xfer); in usb_linux_non_isoc_callback() local
1572 urb = TAILQ_FIRST(&uhe->bsd_urb_list); in usb_linux_non_isoc_callback()
1577 TAILQ_REMOVE(&uhe->bsd_urb_list, urb, bsd_urb_list); in usb_linux_non_isoc_callback()
1611 urb->bsd_isread = (uhe->desc.bEndpointAddress & in usb_linux_non_isoc_callback()
1679 struct usb_host_endpoint *uhe, void *buf, in usb_fill_bulk_urb() argument
1683 urb->endpoint = uhe; in usb_fill_bulk_urb()
1700 usb_bulk_msg(struct usb_device *udev, struct usb_host_endpoint *uhe, in usb_bulk_msg() argument
1706 if (uhe == NULL) in usb_bulk_msg()
1711 err = usb_setup_endpoint(udev, uhe, 4096 /* bytes */); in usb_bulk_msg()
1717 usb_fill_bulk_urb(urb, udev, uhe, data, len, in usb_bulk_msg()