Lines Matching refs:ep_index
404 unsigned int ep_index,
408 struct xhci_virt_ep *ep = &xhci->devs[slot_id]->eps[ep_index];
421 trace_xhci_ring_ep_doorbell(slot_id, DB_VALUE(ep_index, stream_id));
423 writel(DB_VALUE(ep_index, stream_id), db_addr);
432 unsigned int ep_index)
437 ep = &xhci->devs[slot_id]->eps[ep_index];
442 xhci_ring_ep_doorbell(xhci, slot_id, ep_index, 0);
450 xhci_ring_ep_doorbell(xhci, slot_id, ep_index,
457 unsigned int ep_index)
459 ring_doorbell_for_active_rings(xhci, slot_id, ep_index);
464 unsigned int ep_index)
470 if (ep_index >= EP_CTX_PER_DEV) {
471 xhci_warn(xhci, "Invalid endpoint index %u\n", ep_index);
479 return &xhci->devs[slot_id]->eps[ep_index];
482 /* Get the right ring for the given slot_id, ep_index and stream_id.
487 unsigned int slot_id, unsigned int ep_index,
492 ep = xhci_get_virt_ep(xhci, slot_id, ep_index);
504 slot_id, ep_index);
515 slot_id, ep_index,
529 unsigned int ep_index, unsigned int stream_id)
535 ep = &vdev->eps[ep_index];
541 ep_ctx = xhci_get_ep_ctx(xhci, vdev->out_ctx, ep_index);
564 unsigned int slot_id, unsigned int ep_index,
569 struct xhci_virt_ep *ep = &dev->eps[ep_index];
582 ep_index, stream_id);
610 hw_dequeue = xhci_get_hw_deq(xhci, dev, ep_index, stream_id);
823 unsigned int ep_index, enum xhci_ep_reset_type reset_type)
834 ret = xhci_queue_reset_ep(xhci, command, slot_id, ep_index, reset_type);
837 xhci_err(xhci, "ERROR queuing reset endpoint for slot %d ep_index %d, %d\n",
838 slot_id, ep_index, ret);
859 err = xhci_reset_halted_ep(xhci, slot_id, ep->ep_index, reset_type);
865 xhci_cleanup_stalled_ring(xhci, slot_id, ep->ep_index, stream_id,
905 hw_deq = xhci_get_hw_deq(xhci, ep->vdev, ep->ep_index,
912 ep->ep_index,
936 unsigned int ep_index;
954 ep_index = TRB_TO_EP_INDEX(le32_to_cpu(trb->generic.field[3]));
956 ep = xhci_get_virt_ep(xhci, slot_id, ep_index);
961 ep_ctx = xhci_get_ep_ctx(xhci, vdev->out_ctx, ep_index);
969 ring_doorbell_for_active_rings(xhci, slot_id, ep_index);
979 xhci_queue_new_dequeue_state(xhci, slot_id, ep_index,
984 ring_doorbell_for_active_rings(xhci, slot_id, ep_index);
1038 int slot_id, int ep_index)
1045 ep = xhci_get_virt_ep(xhci, slot_id, ep_index);
1061 slot_id, ep_index, stream_id);
1070 slot_id, ep_index);
1176 unsigned int ep_index)
1196 while (ep_ring->dequeue != dev->eps[ep_index].queued_deq_ptr) {
1202 dev->eps[ep_index].queued_deq_ptr)
1229 unsigned int ep_index;
1237 ep_index = TRB_TO_EP_INDEX(le32_to_cpu(trb->generic.field[3]));
1239 ep = xhci_get_virt_ep(xhci, slot_id, ep_index);
1244 ep_ring = xhci_stream_id_to_ring(dev, ep_index, stream_id);
1252 ep_ctx = xhci_get_ep_ctx(xhci, dev->out_ctx, ep_index);
1307 ep_ring, ep_index);
1320 ring_doorbell_for_active_rings(xhci, slot_id, ep_index);
1329 unsigned int ep_index;
1331 ep_index = TRB_TO_EP_INDEX(le32_to_cpu(trb->generic.field[3]));
1332 ep = xhci_get_virt_ep(xhci, slot_id, ep_index);
1337 ep_ctx = xhci_get_ep_ctx(xhci, vdev->out_ctx, ep_index);
1370 ring_doorbell_for_active_rings(xhci, slot_id, ep_index);
1405 unsigned int ep_index;
1427 ep_index = xhci_last_valid_endpoint(add_flags) - 1;
1429 ep_ctx = xhci_get_ep_ctx(xhci, virt_dev->out_ctx, ep_index);
1439 ep_index != (unsigned int) -1 &&
1441 ep_state = virt_dev->eps[ep_index].ep_state;
1447 ep_index, ep_state);
1449 virt_dev->eps[ep_index].ep_state &= ~EP_HALTED;
1450 ring_doorbell_for_active_rings(xhci, slot_id, ep_index);
2068 ep_ctx = xhci_get_ep_ctx(xhci, ep->vdev->out_ctx, ep->ep_index);
2092 if ((ep->ep_index != 0) || (trb_comp_code != COMP_STALL_ERROR))
2136 ep_ctx = xhci_get_ep_ctx(xhci, ep->vdev->out_ctx, ep->ep_index);
2184 trb_comp_code, ep->ep_index);
2436 int ep_index;
2449 ep_index = TRB_TO_EP_ID(le32_to_cpu(event->flags)) - 1;
2453 ep = xhci_get_virt_ep(xhci, slot_id, ep_index);
2461 ep_ctx = xhci_get_ep_ctx(xhci, xdev->out_ctx, ep_index);
2466 slot_id, ep_index);
2478 ep_index);
2492 slot_id, ep_index);
2518 slot_id, ep_index);
2524 slot_id, ep_index);
2529 slot_id, ep_index);
2534 slot_id, ep_index);
2539 ep_index);
2545 slot_id, ep_index);
2550 slot_id, ep_index);
2555 slot_id, ep_index);
2562 slot_id, ep_index);
2569 slot_id, ep_index);
2575 slot_id, ep_index);
2580 slot_id, ep_index);
2593 ep_index);
2601 ep_index);
2613 slot_id, ep_index);
2619 slot_id, ep_index);
2626 slot_id, ep_index);
2636 trb_comp_code, slot_id, ep_index);
2658 ep_index);
2663 slot_id, ep_index);
2680 slot_id, ep_index);
2755 "part of current TD ep_index %d "
2756 "comp_code %u\n", ep_index,
2772 slot_id, ep_index);
3157 unsigned int ep_index,
3168 struct xhci_ep_ctx *ep_ctx = xhci_get_ep_ctx(xhci, xdev->out_ctx, ep_index);
3170 ep_ring = xhci_stream_id_to_ring(xdev, ep_index, stream_id);
3262 unsigned int ep_index, unsigned int stream_id, int start_cycle,
3274 xhci_ring_ep_doorbell(xhci, slot_id, ep_index, stream_id);
3314 struct urb *urb, int slot_id, unsigned int ep_index)
3318 ep_ctx = xhci_get_ep_ctx(xhci, xhci->devs[slot_id]->out_ctx, ep_index);
3321 return xhci_queue_bulk_tx(xhci, mem_flags, urb, slot_id, ep_index);
3442 struct urb *urb, int slot_id, unsigned int ep_index)
3477 ep_index, urb->stream_id,
3586 ep_index, urb->stream_id,
3596 giveback_first_trb(xhci, slot_id, ep_index, urb->stream_id,
3603 struct urb *urb, int slot_id, unsigned int ep_index)
3636 ep_index, urb->stream_id,
3731 giveback_first_trb(xhci, slot_id, ep_index, 0,
3900 struct urb *urb, int slot_id, unsigned int ep_index)
3917 xep = &xhci->devs[slot_id]->eps[ep_index];
3918 ep_ring = xhci->devs[slot_id]->eps[ep_index].ring;
3953 ret = prepare_transfer(xhci, xhci->devs[slot_id], ep_index,
4058 giveback_first_trb(xhci, slot_id, ep_index, urb->stream_id,
4093 struct urb *urb, int slot_id, unsigned int ep_index)
4105 xep = &xhci->devs[slot_id]->eps[ep_index];
4106 ep_ring = xdev->eps[ep_index].ring;
4107 ep_ctx = xhci_get_ep_ctx(xhci, xdev->out_ctx, ep_index);
4164 return xhci_queue_isoc_tx(xhci, mem_flags, urb, slot_id, ep_index);
4277 int slot_id, unsigned int ep_index, int suspend)
4280 u32 trb_ep_index = EP_ID_FOR_TRB(ep_index);
4290 unsigned int slot_id, unsigned int ep_index,
4295 u32 trb_ep_index = EP_ID_FOR_TRB(ep_index);
4320 ep = &xhci->devs[slot_id]->eps[ep_index];
4354 int slot_id, unsigned int ep_index,
4358 u32 trb_ep_index = EP_ID_FOR_TRB(ep_index);