Lines Matching refs:ep
1209 struct usb_host_endpoint *ep, int check_ep, bool check_virt_dev, in xhci_check_args() argument
1214 if (!hcd || (check_ep && !ep) || !udev) { in xhci_check_args()
1343 if (!urb || xhci_check_args(hcd, urb->dev, urb->ep, in xhci_urb_enqueue()
1348 ep_index = xhci_get_endpoint_index(&urb->ep->desc); in xhci_urb_enqueue()
1357 if (usb_endpoint_xfer_isoc(&urb->ep->desc)) in xhci_urb_enqueue()
1359 else if (usb_endpoint_is_bulk_out(&urb->ep->desc) && in xhci_urb_enqueue()
1362 !(urb->transfer_buffer_length % usb_endpoint_maxp(&urb->ep->desc))) in xhci_urb_enqueue()
1387 if (usb_endpoint_xfer_control(&urb->ep->desc)) { in xhci_urb_enqueue()
1412 } else if (usb_endpoint_xfer_bulk(&urb->ep->desc)) { in xhci_urb_enqueue()
1434 } else if (usb_endpoint_xfer_int(&urb->ep->desc)) { in xhci_urb_enqueue()
1458 urb->ep->desc.bEndpointAddress, urb); in xhci_urb_enqueue()
1477 struct xhci_virt_ep *ep; in xhci_urb_to_transfer_ring() local
1480 ep_index = xhci_get_endpoint_index(&urb->ep->desc); in xhci_urb_to_transfer_ring()
1482 ep = &xhci->devs[slot_id]->eps[ep_index]; in xhci_urb_to_transfer_ring()
1484 if (!(ep->ep_state & EP_HAS_STREAMS)) in xhci_urb_to_transfer_ring()
1485 return ep->ring; in xhci_urb_to_transfer_ring()
1495 if (stream_id < ep->stream_info->num_streams) in xhci_urb_to_transfer_ring()
1496 return ep->stream_info->stream_rings[stream_id]; in xhci_urb_to_transfer_ring()
1503 ep->stream_info->num_streams - 1, in xhci_urb_to_transfer_ring()
1549 struct xhci_virt_ep *ep; in xhci_urb_dequeue() local
1584 urb->ep->desc.bEndpointAddress, urb); in xhci_urb_dequeue()
1593 ep_index = xhci_get_endpoint_index(&urb->ep->desc); in xhci_urb_dequeue()
1594 ep = &xhci->devs[urb->dev->slot_id]->eps[ep_index]; in xhci_urb_dequeue()
1608 urb->ep->desc.bEndpointAddress, in xhci_urb_dequeue()
1615 list_add_tail(&td->cancelled_td_list, &ep->cancelled_td_list); in xhci_urb_dequeue()
1621 if (!(ep->ep_state & EP_HALT_PENDING)) { in xhci_urb_dequeue()
1627 ep->ep_state |= EP_HALT_PENDING; in xhci_urb_dequeue()
1628 ep->stop_cmds_pending++; in xhci_urb_dequeue()
1629 ep->stop_cmd_timer.expires = jiffies + in xhci_urb_dequeue()
1631 add_timer(&ep->stop_cmd_timer); in xhci_urb_dequeue()
1655 struct usb_host_endpoint *ep) in xhci_drop_endpoint() argument
1666 ret = xhci_check_args(hcd, udev, ep, 1, true, __func__); in xhci_drop_endpoint()
1674 drop_flag = xhci_get_endpoint_flag(&ep->desc); in xhci_drop_endpoint()
1690 ep_index = xhci_get_endpoint_index(&ep->desc); in xhci_drop_endpoint()
1698 xhci_get_endpoint_flag(&ep->desc)) { in xhci_drop_endpoint()
1702 __func__, ep); in xhci_drop_endpoint()
1712 xhci_endpoint_zero(xhci, xhci->devs[udev->slot_id], ep); in xhci_drop_endpoint()
1715 (unsigned int) ep->desc.bEndpointAddress, in xhci_drop_endpoint()
1736 struct usb_host_endpoint *ep) in xhci_add_endpoint() argument
1747 ret = xhci_check_args(hcd, udev, ep, 1, true, __func__); in xhci_add_endpoint()
1750 ep->hcpriv = NULL; in xhci_add_endpoint()
1757 added_ctxs = xhci_get_endpoint_flag(&ep->desc); in xhci_add_endpoint()
1777 ep_index = xhci_get_endpoint_index(&ep->desc); in xhci_add_endpoint()
1785 (unsigned int) ep->desc.bEndpointAddress); in xhci_add_endpoint()
1794 __func__, ep); in xhci_add_endpoint()
1803 if (xhci_endpoint_init(xhci, virt_dev, udev, ep, GFP_NOIO) < 0) { in xhci_add_endpoint()
1805 __func__, ep->desc.bEndpointAddress); in xhci_add_endpoint()
1821 ep->hcpriv = udev; in xhci_add_endpoint()
1824 (unsigned int) ep->desc.bEndpointAddress, in xhci_add_endpoint()
2732 struct xhci_virt_ep *ep = &vdev->eps[i]; in xhci_check_bw_drop_ep_streams() local
2734 if (ep->ep_state & EP_HAS_STREAMS) { in xhci_check_bw_drop_ep_streams()
2737 xhci_free_stream_info(xhci, ep->stream_info); in xhci_check_bw_drop_ep_streams()
2738 ep->stream_info = NULL; in xhci_check_bw_drop_ep_streams()
2739 ep->ep_state &= ~EP_HAS_STREAMS; in xhci_check_bw_drop_ep_streams()
2938 struct xhci_virt_ep *ep; in xhci_cleanup_stalled_ring() local
2943 ep = &xhci->devs[udev->slot_id]->eps[ep_index]; in xhci_cleanup_stalled_ring()
2948 ep_index, ep->stopped_stream, td, &deq_state); in xhci_cleanup_stalled_ring()
2960 ep_index, ep->stopped_stream, &deq_state); in xhci_cleanup_stalled_ring()
2984 struct usb_host_endpoint *ep) in xhci_endpoint_reset() argument
3001 ep->desc.bEndpointAddress); in xhci_endpoint_reset()
3005 struct usb_device *udev, struct usb_host_endpoint *ep, in xhci_check_streams_endpoint() argument
3012 if (!ep) in xhci_check_streams_endpoint()
3014 ret = xhci_check_args(xhci_to_hcd(xhci), udev, ep, 1, true, __func__); in xhci_check_streams_endpoint()
3017 if (usb_ss_max_streams(&ep->ss_ep_comp) == 0) { in xhci_check_streams_endpoint()
3020 ep->desc.bEndpointAddress); in xhci_check_streams_endpoint()
3024 ep_index = xhci_get_endpoint_index(&ep->desc); in xhci_check_streams_endpoint()
3030 ep->desc.bEndpointAddress); in xhci_check_streams_endpoint()
3038 ep->desc.bEndpointAddress); in xhci_check_streams_endpoint()
3575 struct xhci_virt_ep *ep = &virt_dev->eps[i]; in xhci_discover_or_reset_device() local
3577 if (ep->ep_state & EP_HAS_STREAMS) { in xhci_discover_or_reset_device()
3580 xhci_free_stream_info(xhci, ep->stream_info); in xhci_discover_or_reset_device()
3581 ep->stream_info = NULL; in xhci_discover_or_reset_device()
3582 ep->ep_state &= ~EP_HAS_STREAMS; in xhci_discover_or_reset_device()
3585 if (ep->ring) { in xhci_discover_or_reset_device()