Lines Matching refs:ep_index

272 			u32 ep_index, trb_type cmd)  in xhci_queue_command()  argument
290 fields[3] |= EP_ID_FOR_TRB(ep_index); in xhci_queue_command()
358 static void giveback_first_trb(struct usb_device *udev, int ep_index, in giveback_first_trb() argument
377 DB_VALUE(ep_index, 0)); in giveback_first_trb()
484 static void abort_td(struct usb_device *udev, int ep_index) in abort_td() argument
487 struct xhci_ring *ring = ctrl->devs[udev->slot_id]->eps[ep_index].ring; in abort_td()
491 xhci_queue_command(ctrl, NULL, udev->slot_id, ep_index, TRB_STOP_RING); in abort_td()
496 BUG_ON(TRB_TO_EP_INDEX(field) != ep_index); in abort_td()
508 ring->cycle_state), udev->slot_id, ep_index, TRB_SET_DEQ); in abort_td()
565 int ep_index; in xhci_bulk_tx() local
582 ep_index = usb_pipe_ep_index(pipe); in xhci_bulk_tx()
588 ep_ctx = xhci_get_ep_ctx(ctrl, virt_dev->out_ctx, ep_index); in xhci_bulk_tx()
590 ring = virt_dev->eps[ep_index].ring; in xhci_bulk_tx()
712 giveback_first_trb(udev, ep_index, start_cycle, start_trb); in xhci_bulk_tx()
717 abort_td(udev, ep_index); in xhci_bulk_tx()
725 BUG_ON(TRB_TO_EP_INDEX(field) != ep_index); in xhci_bulk_tx()
759 int ep_index; in xhci_ctrl_tx() local
771 ep_index = usb_pipe_ep_index(pipe); in xhci_ctrl_tx()
773 ep_ring = virt_dev->eps[ep_index].ring; in xhci_ctrl_tx()
789 ep_ctx = xhci_get_ep_ctx(ctrl, virt_dev->out_ctx, ep_index); in xhci_ctrl_tx()
909 giveback_first_trb(udev, ep_index, start_cycle, start_trb); in xhci_ctrl_tx()
917 BUG_ON(TRB_TO_EP_INDEX(field) != ep_index); in xhci_ctrl_tx()
933 BUG_ON(TRB_TO_EP_INDEX(field) != ep_index); in xhci_ctrl_tx()
941 abort_td(udev, ep_index); in xhci_ctrl_tx()