Lines Matching refs:ep
1199 struct usb_host_endpoint *ep, int check_ep, bool check_virt_dev, in xhci_check_args() argument
1204 if (!hcd || (check_ep && !ep) || !udev) { in xhci_check_args()
1333 if (!urb || xhci_check_args(hcd, urb->dev, urb->ep, in xhci_urb_enqueue()
1338 ep_index = xhci_get_endpoint_index(&urb->ep->desc); in xhci_urb_enqueue()
1347 if (usb_endpoint_xfer_isoc(&urb->ep->desc)) in xhci_urb_enqueue()
1349 else if (usb_endpoint_is_bulk_out(&urb->ep->desc) && in xhci_urb_enqueue()
1352 !(urb->transfer_buffer_length % usb_endpoint_maxp(&urb->ep->desc))) in xhci_urb_enqueue()
1377 if (usb_endpoint_xfer_control(&urb->ep->desc)) { in xhci_urb_enqueue()
1402 } else if (usb_endpoint_xfer_bulk(&urb->ep->desc)) { in xhci_urb_enqueue()
1424 } else if (usb_endpoint_xfer_int(&urb->ep->desc)) { in xhci_urb_enqueue()
1448 urb->ep->desc.bEndpointAddress, urb); in xhci_urb_enqueue()
1467 struct xhci_virt_ep *ep; in xhci_urb_to_transfer_ring() local
1470 ep_index = xhci_get_endpoint_index(&urb->ep->desc); in xhci_urb_to_transfer_ring()
1472 ep = &xhci->devs[slot_id]->eps[ep_index]; in xhci_urb_to_transfer_ring()
1474 if (!(ep->ep_state & EP_HAS_STREAMS)) in xhci_urb_to_transfer_ring()
1475 return ep->ring; in xhci_urb_to_transfer_ring()
1485 if (stream_id < ep->stream_info->num_streams) in xhci_urb_to_transfer_ring()
1486 return ep->stream_info->stream_rings[stream_id]; in xhci_urb_to_transfer_ring()
1493 ep->stream_info->num_streams - 1, in xhci_urb_to_transfer_ring()
1539 struct xhci_virt_ep *ep; in xhci_urb_dequeue() local
1574 urb->ep->desc.bEndpointAddress, urb); in xhci_urb_dequeue()
1583 ep_index = xhci_get_endpoint_index(&urb->ep->desc); in xhci_urb_dequeue()
1584 ep = &xhci->devs[urb->dev->slot_id]->eps[ep_index]; in xhci_urb_dequeue()
1598 urb->ep->desc.bEndpointAddress, in xhci_urb_dequeue()
1605 list_add_tail(&td->cancelled_td_list, &ep->cancelled_td_list); in xhci_urb_dequeue()
1611 if (!(ep->ep_state & EP_HALT_PENDING)) { in xhci_urb_dequeue()
1617 ep->ep_state |= EP_HALT_PENDING; in xhci_urb_dequeue()
1618 ep->stop_cmds_pending++; in xhci_urb_dequeue()
1619 ep->stop_cmd_timer.expires = jiffies + in xhci_urb_dequeue()
1621 add_timer(&ep->stop_cmd_timer); in xhci_urb_dequeue()
1645 struct usb_host_endpoint *ep) in xhci_drop_endpoint() argument
1656 ret = xhci_check_args(hcd, udev, ep, 1, true, __func__); in xhci_drop_endpoint()
1664 drop_flag = xhci_get_endpoint_flag(&ep->desc); in xhci_drop_endpoint()
1680 ep_index = xhci_get_endpoint_index(&ep->desc); in xhci_drop_endpoint()
1688 xhci_get_endpoint_flag(&ep->desc)) { in xhci_drop_endpoint()
1692 __func__, ep); in xhci_drop_endpoint()
1702 xhci_endpoint_zero(xhci, xhci->devs[udev->slot_id], ep); in xhci_drop_endpoint()
1705 (unsigned int) ep->desc.bEndpointAddress, in xhci_drop_endpoint()
1726 struct usb_host_endpoint *ep) in xhci_add_endpoint() argument
1737 ret = xhci_check_args(hcd, udev, ep, 1, true, __func__); in xhci_add_endpoint()
1740 ep->hcpriv = NULL; in xhci_add_endpoint()
1747 added_ctxs = xhci_get_endpoint_flag(&ep->desc); in xhci_add_endpoint()
1767 ep_index = xhci_get_endpoint_index(&ep->desc); in xhci_add_endpoint()
1775 (unsigned int) ep->desc.bEndpointAddress); in xhci_add_endpoint()
1784 __func__, ep); in xhci_add_endpoint()
1793 if (xhci_endpoint_init(xhci, virt_dev, udev, ep, GFP_NOIO) < 0) { in xhci_add_endpoint()
1795 __func__, ep->desc.bEndpointAddress); in xhci_add_endpoint()
1811 ep->hcpriv = udev; in xhci_add_endpoint()
1814 (unsigned int) ep->desc.bEndpointAddress, in xhci_add_endpoint()
2722 struct xhci_virt_ep *ep = &vdev->eps[i]; in xhci_check_bw_drop_ep_streams() local
2724 if (ep->ep_state & EP_HAS_STREAMS) { in xhci_check_bw_drop_ep_streams()
2727 xhci_free_stream_info(xhci, ep->stream_info); in xhci_check_bw_drop_ep_streams()
2728 ep->stream_info = NULL; in xhci_check_bw_drop_ep_streams()
2729 ep->ep_state &= ~EP_HAS_STREAMS; in xhci_check_bw_drop_ep_streams()
2928 struct xhci_virt_ep *ep; in xhci_cleanup_stalled_ring() local
2933 ep = &xhci->devs[udev->slot_id]->eps[ep_index]; in xhci_cleanup_stalled_ring()
2938 ep_index, ep->stopped_stream, td, &deq_state); in xhci_cleanup_stalled_ring()
2950 ep_index, ep->stopped_stream, &deq_state); in xhci_cleanup_stalled_ring()
2974 struct usb_host_endpoint *ep) in xhci_endpoint_reset() argument
2991 ep->desc.bEndpointAddress); in xhci_endpoint_reset()
2995 struct usb_device *udev, struct usb_host_endpoint *ep, in xhci_check_streams_endpoint() argument
3002 if (!ep) in xhci_check_streams_endpoint()
3004 ret = xhci_check_args(xhci_to_hcd(xhci), udev, ep, 1, true, __func__); in xhci_check_streams_endpoint()
3007 if (usb_ss_max_streams(&ep->ss_ep_comp) == 0) { in xhci_check_streams_endpoint()
3010 ep->desc.bEndpointAddress); in xhci_check_streams_endpoint()
3014 ep_index = xhci_get_endpoint_index(&ep->desc); in xhci_check_streams_endpoint()
3020 ep->desc.bEndpointAddress); in xhci_check_streams_endpoint()
3028 ep->desc.bEndpointAddress); in xhci_check_streams_endpoint()
3565 struct xhci_virt_ep *ep = &virt_dev->eps[i]; in xhci_discover_or_reset_device() local
3567 if (ep->ep_state & EP_HAS_STREAMS) { in xhci_discover_or_reset_device()
3570 xhci_free_stream_info(xhci, ep->stream_info); in xhci_discover_or_reset_device()
3571 ep->stream_info = NULL; in xhci_discover_or_reset_device()
3572 ep->ep_state &= ~EP_HAS_STREAMS; in xhci_discover_or_reset_device()
3575 if (ep->ring) { in xhci_discover_or_reset_device()