Lines Matching refs:ep_index
275 u32 ep_index, trb_type cmd) in xhci_queue_command() argument
296 fields[3] |= EP_ID_FOR_TRB(ep_index); in xhci_queue_command()
366 static void giveback_first_trb(struct usb_device *udev, int ep_index, in giveback_first_trb() argument
385 DB_VALUE(ep_index, 0)); in giveback_first_trb()
492 static void abort_td(struct usb_device *udev, int ep_index) in abort_td() argument
495 struct xhci_ring *ring = ctrl->devs[udev->slot_id]->eps[ep_index].ring; in abort_td()
499 xhci_queue_command(ctrl, NULL, udev->slot_id, ep_index, TRB_STOP_RING); in abort_td()
504 BUG_ON(TRB_TO_EP_INDEX(field) != ep_index); in abort_td()
516 ring->cycle_state), udev->slot_id, ep_index, TRB_SET_DEQ); in abort_td()
573 int ep_index; in xhci_bulk_tx() local
593 ep_index = usb_pipe_ep_index(pipe); in xhci_bulk_tx()
599 ep_ctx = xhci_get_ep_ctx(ctrl, virt_dev->out_ctx, ep_index); in xhci_bulk_tx()
601 ring = virt_dev->eps[ep_index].ring; in xhci_bulk_tx()
717 giveback_first_trb(udev, ep_index, start_cycle, start_trb); in xhci_bulk_tx()
723 abort_td(udev, ep_index); in xhci_bulk_tx()
739 BUG_ON(TRB_TO_EP_INDEX(field) != ep_index); in xhci_bulk_tx()
771 int ep_index; in xhci_ctrl_tx() local
784 ep_index = usb_pipe_ep_index(pipe); in xhci_ctrl_tx()
786 ep_ring = virt_dev->eps[ep_index].ring; in xhci_ctrl_tx()
802 ep_ctx = xhci_get_ep_ctx(ctrl, virt_dev->out_ctx, ep_index); in xhci_ctrl_tx()
922 giveback_first_trb(udev, ep_index, start_cycle, start_trb); in xhci_ctrl_tx()
930 BUG_ON(TRB_TO_EP_INDEX(field) != ep_index); in xhci_ctrl_tx()
946 BUG_ON(TRB_TO_EP_INDEX(field) != ep_index); in xhci_ctrl_tx()
954 abort_td(udev, ep_index); in xhci_ctrl_tx()