Lines Matching refs:uhe
403 struct usb_host_endpoint *uhe; in usb_submit_urb() local
430 uhe = urb->endpoint; in usb_submit_urb()
437 if (uhe->bsd_xfer[0] || in usb_submit_urb()
438 uhe->bsd_xfer[1]) { in usb_submit_urb()
441 TAILQ_INSERT_TAIL(&uhe->bsd_urb_list, urb, bsd_urb_list); in usb_submit_urb()
445 usbd_transfer_start(uhe->bsd_xfer[0]); in usb_submit_urb()
446 usbd_transfer_start(uhe->bsd_xfer[1]); in usb_submit_urb()
494 struct usb_host_endpoint *uhe; in usb_unlink_urb_sub() local
512 uhe = urb->endpoint; in usb_unlink_urb_sub()
516 TAILQ_REMOVE(&uhe->bsd_urb_list, urb, bsd_urb_list); in usb_unlink_urb_sub()
535 usb_unlink_bsd(uhe->bsd_xfer[0], urb, drain); in usb_unlink_urb_sub()
536 usb_unlink_bsd(uhe->bsd_xfer[1], urb, drain); in usb_unlink_urb_sub()
555 usb_clear_halt(struct usb_device *dev, struct usb_host_endpoint *uhe) in usb_clear_halt() argument
562 if (uhe == NULL) in usb_clear_halt()
565 type = uhe->desc.bmAttributes & UE_XFERTYPE; in usb_clear_halt()
566 addr = uhe->desc.bEndpointAddress; in usb_clear_halt()
574 ep = usbd_get_endpoint(dev, uhe->bsd_iface_index, cfg); in usb_clear_halt()
652 usb_control_msg(struct usb_device *dev, struct usb_host_endpoint *uhe, in usb_control_msg() argument
670 if (uhe == NULL) { in usb_control_msg()
673 type = (uhe->desc.bmAttributes & UE_XFERTYPE); in usb_control_msg()
674 addr = (uhe->desc.bEndpointAddress & UE_ADDR); in usb_control_msg()
698 err = usb_setup_endpoint(dev, uhe, 1 /* dummy */ ); in usb_control_msg()
709 urb->endpoint = uhe; in usb_control_msg()
774 struct usb_host_endpoint *uhe, usb_size_t bufsize) in usb_setup_endpoint() argument
777 uint8_t type = uhe->desc.bmAttributes & UE_XFERTYPE; in usb_setup_endpoint()
778 uint8_t addr = uhe->desc.bEndpointAddress; in usb_setup_endpoint()
780 if (uhe->fbsd_buf_size == bufsize) { in usb_setup_endpoint()
784 usbd_transfer_unsetup(uhe->bsd_xfer, 2); in usb_setup_endpoint()
786 uhe->fbsd_buf_size = bufsize; in usb_setup_endpoint()
822 if (usbd_transfer_setup(dev, &uhe->bsd_iface_index, in usb_setup_endpoint()
823 uhe->bsd_xfer, cfg, 2, uhe, &Giant)) { in usb_setup_endpoint()
842 if (usbd_transfer_setup(dev, &uhe->bsd_iface_index, in usb_setup_endpoint()
843 uhe->bsd_xfer, cfg, 1, uhe, &Giant)) { in usb_setup_endpoint()
1020 struct usb_host_endpoint *uhe; in usb_find_host_endpoint() local
1049 for (uhe = uhi->endpoint; in usb_find_host_endpoint()
1050 uhe != uhe_end; in usb_find_host_endpoint()
1051 uhe++) { in usb_find_host_endpoint()
1052 ea = uhe->desc.bEndpointAddress; in usb_find_host_endpoint()
1053 at = uhe->desc.bmAttributes; in usb_find_host_endpoint()
1057 return (uhe); in usb_find_host_endpoint()
1188 struct usb_host_endpoint *uhe; in usb_linux_free_device() local
1191 uhe = dev->linux_endpoint_start; in usb_linux_free_device()
1193 while (uhe != uhe_end) { in usb_linux_free_device()
1194 usb_setup_endpoint(dev, uhe, 0); in usb_linux_free_device()
1195 uhe++; in usb_linux_free_device()
1278 struct usb_host_endpoint *uhe; in usb_linux_cleanup_interface() local
1284 uhe = uhi->endpoint; in usb_linux_cleanup_interface()
1286 while (uhe != uhe_end) { in usb_linux_cleanup_interface()
1287 usb_setup_endpoint(dev, uhe, 0); in usb_linux_cleanup_interface()
1288 uhe++; in usb_linux_cleanup_interface()
1339 struct usb_host_endpoint *uhe = usbd_xfer_softc(xfer); in usb_linux_isoc_callback() local
1404 urb = TAILQ_FIRST(&uhe->bsd_urb_list); in usb_linux_isoc_callback()
1409 TAILQ_REMOVE(&uhe->bsd_urb_list, urb, bsd_urb_list); in usb_linux_isoc_callback()
1424 urb->bsd_isread = (uhe->desc.bEndpointAddress & UE_DIR_IN) ? 1 : 0; in usb_linux_isoc_callback()
1510 struct usb_host_endpoint *uhe = usbd_xfer_softc(xfer); in usb_linux_non_isoc_callback() local
1559 urb = TAILQ_FIRST(&uhe->bsd_urb_list); in usb_linux_non_isoc_callback()
1564 TAILQ_REMOVE(&uhe->bsd_urb_list, urb, bsd_urb_list); in usb_linux_non_isoc_callback()
1596 urb->bsd_isread = (uhe->desc.bEndpointAddress & in usb_linux_non_isoc_callback()
1664 struct usb_host_endpoint *uhe, void *buf, in usb_fill_bulk_urb() argument
1668 urb->endpoint = uhe; in usb_fill_bulk_urb()
1685 usb_bulk_msg(struct usb_device *udev, struct usb_host_endpoint *uhe, in usb_bulk_msg() argument
1691 if (uhe == NULL) in usb_bulk_msg()
1696 err = usb_setup_endpoint(udev, uhe, 4096 /* bytes */); in usb_bulk_msg()
1702 usb_fill_bulk_urb(urb, udev, uhe, data, len, in usb_bulk_msg()