Lines Matching refs:ep_index

482 		unsigned int ep_index,
486 struct xhci_virt_ep *ep = &xhci->devs[slot_id]->eps[ep_index];
499 trace_xhci_ring_ep_doorbell(slot_id, DB_VALUE(ep_index, stream_id));
501 writel(DB_VALUE(ep_index, stream_id), db_addr);
509 unsigned int ep_index)
514 ep = &xhci->devs[slot_id]->eps[ep_index];
519 xhci_ring_ep_doorbell(xhci, slot_id, ep_index, 0);
527 xhci_ring_ep_doorbell(xhci, slot_id, ep_index,
534 unsigned int ep_index)
536 ring_doorbell_for_active_rings(xhci, slot_id, ep_index);
541 unsigned int ep_index)
547 if (ep_index >= EP_CTX_PER_DEV) {
548 xhci_warn(xhci, "Invalid endpoint index %u\n", ep_index);
556 return &xhci->devs[slot_id]->eps[ep_index];
571 xhci_warn(xhci, "Invalid stream_id %u request for slot_id %u ep_index %u\n",
572 stream_id, ep->vdev->slot_id, ep->ep_index);
579 /* Get the right ring for the given slot_id, ep_index and stream_id.
584 unsigned int slot_id, unsigned int ep_index,
589 ep = xhci_get_virt_ep(xhci, slot_id, ep_index);
604 unsigned int ep_index, unsigned int stream_id)
610 ep = &vdev->eps[ep_index];
616 ep_ctx = xhci_get_ep_ctx(xhci, vdev->out_ctx, ep_index);
621 unsigned int slot_id, unsigned int ep_index,
625 struct xhci_virt_ep *ep = &dev->eps[ep_index];
639 ep_index, stream_id);
665 hw_dequeue = xhci_get_hw_deq(xhci, dev, ep_index, stream_id);
729 EP_ID_FOR_TRB(ep_index) | TRB_TYPE(TRB_SET_DEQ), false);
906 unsigned int ep_index, enum xhci_ep_reset_type reset_type)
919 ep_index, slot_id);
921 ret = xhci_queue_reset_ep(xhci, command, slot_id, ep_index, reset_type);
924 xhci_err(xhci, "ERROR queuing reset endpoint for slot %d ep_index %d, %d\n",
925 slot_id, ep_index, ret);
954 xhci_dbg(xhci, "Reset ep command for ep_index %d already pending\n",
955 ep->ep_index);
959 err = xhci_reset_halted_ep(xhci, slot_id, ep->ep_index, reset_type);
1011 hw_deq = xhci_get_hw_deq(xhci, ep->vdev, ep->ep_index,
1043 err = xhci_move_dequeue_past_td(xhci, slot_id, ep->ep_index,
1070 hw_deq = xhci_get_hw_deq(ep->xhci, ep->vdev, ep->ep_index, 0);
1093 unsigned int ep_index;
1108 ep_index = TRB_TO_EP_INDEX(le32_to_cpu(trb->generic.field[3]));
1109 ep = xhci_get_virt_ep(xhci, slot_id, ep_index);
1113 ep_ctx = xhci_get_ep_ctx(xhci, ep->vdev->out_ctx, ep_index);
1158 xhci_queue_stop_endpoint(xhci, command, slot_id, ep_index, 0);
1173 ring_doorbell_for_active_rings(xhci, slot_id, ep_index);
1196 int slot_id, int ep_index)
1203 ep = xhci_get_virt_ep(xhci, slot_id, ep_index);
1219 slot_id, ep_index, stream_id);
1228 slot_id, ep_index);
1279 unsigned int ep_index)
1296 while (ep_ring->dequeue != dev->eps[ep_index].queued_deq_ptr) {
1301 dev->eps[ep_index].queued_deq_ptr)
1323 unsigned int ep_index;
1331 ep_index = TRB_TO_EP_INDEX(le32_to_cpu(trb->generic.field[3]));
1333 ep = xhci_get_virt_ep(xhci, slot_id, ep_index);
1345 ep_ctx = xhci_get_ep_ctx(xhci, ep->vdev->out_ctx, ep_index);
1400 ep_ring, ep_index);
1426 ring_doorbell_for_active_rings(xhci, slot_id, ep_index);
1434 unsigned int ep_index;
1436 ep_index = TRB_TO_EP_INDEX(le32_to_cpu(trb->generic.field[3]));
1437 ep = xhci_get_virt_ep(xhci, slot_id, ep_index);
1441 ep_ctx = xhci_get_ep_ctx(xhci, ep->vdev->out_ctx, ep_index);
1460 ring_doorbell_for_active_rings(xhci, slot_id, ep_index);
1495 unsigned int ep_index;
1515 ep_index = xhci_last_valid_endpoint(add_flags) - 1;
1517 ep_ctx = xhci_get_ep_ctx(xhci, virt_dev->out_ctx, ep_index);
2166 ep_ctx = xhci_get_ep_ctx(xhci, ep->vdev->out_ctx, ep->ep_index);
2223 if (ep->ep_index != 0)
2269 ep_ctx = xhci_get_ep_ctx(xhci, ep->vdev->out_ctx, ep->ep_index);
2317 trb_comp_code, ep->ep_index);
2567 int ep_index;
2579 ep_index = TRB_TO_EP_ID(le32_to_cpu(event->flags)) - 1;
2583 ep = xhci_get_virt_ep(xhci, slot_id, ep_index);
2590 ep_ctx = xhci_get_ep_ctx(xhci, ep->vdev->out_ctx, ep_index);
2595 slot_id, ep_index);
2607 ep_index);
2621 slot_id, ep_index);
2644 slot_id, ep_index);
2651 slot_id, ep_index);
2656 slot_id, ep_index);
2661 slot_id, ep_index);
2666 ep_index);
2671 slot_id, ep_index);
2676 slot_id, ep_index);
2681 slot_id, ep_index);
2688 slot_id, ep_index);
2695 slot_id, ep_index);
2701 slot_id, ep_index);
2706 slot_id, ep_index);
2719 ep_index);
2727 ep_index);
2739 slot_id, ep_index);
2745 slot_id, ep_index);
2752 slot_id, ep_index);
2762 trb_comp_code, slot_id, ep_index);
2784 ep_index);
2789 slot_id, ep_index);
2804 slot_id, ep_index);
2879 "part of current TD ep_index %d "
2880 "comp_code %u\n", ep_index,
2896 slot_id, ep_index);
3306 unsigned int ep_index,
3317 struct xhci_ep_ctx *ep_ctx = xhci_get_ep_ctx(xhci, xdev->out_ctx, ep_index);
3319 ep_ring = xhci_triad_to_transfer_ring(xhci, xdev->slot_id, ep_index,
3412 unsigned int ep_index, unsigned int stream_id, int start_cycle,
3424 xhci_ring_ep_doorbell(xhci, slot_id, ep_index, stream_id);
3464 struct urb *urb, int slot_id, unsigned int ep_index)
3468 ep_ctx = xhci_get_ep_ctx(xhci, xhci->devs[slot_id]->out_ctx, ep_index);
3471 return xhci_queue_bulk_tx(xhci, mem_flags, urb, slot_id, ep_index);
3592 struct urb *urb, int slot_id, unsigned int ep_index)
3627 ep_index, urb->stream_id,
3736 ep_index, urb->stream_id,
3746 giveback_first_trb(xhci, slot_id, ep_index, urb->stream_id,
3753 struct urb *urb, int slot_id, unsigned int ep_index)
3786 ep_index, urb->stream_id,
3881 giveback_first_trb(xhci, slot_id, ep_index, 0,
4050 struct urb *urb, int slot_id, unsigned int ep_index)
4067 xep = &xhci->devs[slot_id]->eps[ep_index];
4068 ep_ring = xhci->devs[slot_id]->eps[ep_index].ring;
4103 ret = prepare_transfer(xhci, xhci->devs[slot_id], ep_index,
4208 giveback_first_trb(xhci, slot_id, ep_index, urb->stream_id,
4242 struct urb *urb, int slot_id, unsigned int ep_index)
4254 xep = &xhci->devs[slot_id]->eps[ep_index];
4255 ep_ring = xdev->eps[ep_index].ring;
4256 ep_ctx = xhci_get_ep_ctx(xhci, xdev->out_ctx, ep_index);
4312 return xhci_queue_isoc_tx(xhci, mem_flags, urb, slot_id, ep_index);
4425 int slot_id, unsigned int ep_index, int suspend)
4428 u32 trb_ep_index = EP_ID_FOR_TRB(ep_index);
4437 int slot_id, unsigned int ep_index,
4441 u32 trb_ep_index = EP_ID_FOR_TRB(ep_index);