Lines Matching refs:ep_index
421 unsigned int ep_index, in xhci_ring_ep_doorbell() argument
425 struct xhci_virt_ep *ep = &xhci->devs[slot_id]->eps[ep_index]; in xhci_ring_ep_doorbell()
438 trace_xhci_ring_ep_doorbell(slot_id, DB_VALUE(ep_index, stream_id)); in xhci_ring_ep_doorbell()
440 writel(DB_VALUE(ep_index, stream_id), db_addr); in xhci_ring_ep_doorbell()
448 unsigned int ep_index) in ring_doorbell_for_active_rings() argument
453 ep = &xhci->devs[slot_id]->eps[ep_index]; in ring_doorbell_for_active_rings()
458 xhci_ring_ep_doorbell(xhci, slot_id, ep_index, 0); in ring_doorbell_for_active_rings()
466 xhci_ring_ep_doorbell(xhci, slot_id, ep_index, in ring_doorbell_for_active_rings()
473 unsigned int ep_index) in xhci_ring_doorbell_for_active_rings() argument
475 ring_doorbell_for_active_rings(xhci, slot_id, ep_index); in xhci_ring_doorbell_for_active_rings()
480 unsigned int ep_index) in xhci_get_virt_ep() argument
486 if (ep_index >= EP_CTX_PER_DEV) { in xhci_get_virt_ep()
487 xhci_warn(xhci, "Invalid endpoint index %u\n", ep_index); in xhci_get_virt_ep()
495 return &xhci->devs[slot_id]->eps[ep_index]; in xhci_get_virt_ep()
511 stream_id, ep->vdev->slot_id, ep->ep_index); in xhci_virt_ep_to_ring()
523 unsigned int slot_id, unsigned int ep_index, in xhci_triad_to_transfer_ring() argument
528 ep = xhci_get_virt_ep(xhci, slot_id, ep_index); in xhci_triad_to_transfer_ring()
543 unsigned int ep_index, unsigned int stream_id) in xhci_get_hw_deq() argument
549 ep = &vdev->eps[ep_index]; in xhci_get_hw_deq()
555 ep_ctx = xhci_get_ep_ctx(xhci, vdev->out_ctx, ep_index); in xhci_get_hw_deq()
560 unsigned int slot_id, unsigned int ep_index, in xhci_move_dequeue_past_td() argument
564 struct xhci_virt_ep *ep = &dev->eps[ep_index]; in xhci_move_dequeue_past_td()
581 ep_index, stream_id); in xhci_move_dequeue_past_td()
607 hw_dequeue = xhci_get_hw_deq(xhci, dev, ep_index, stream_id); in xhci_move_dequeue_past_td()
691 EP_ID_FOR_TRB(ep_index) | TRB_TYPE(TRB_SET_DEQ), false); in xhci_move_dequeue_past_td()
876 unsigned int ep_index, enum xhci_ep_reset_type reset_type) in xhci_reset_halted_ep() argument
889 ep_index, slot_id); in xhci_reset_halted_ep()
891 ret = xhci_queue_reset_ep(xhci, command, slot_id, ep_index, reset_type); in xhci_reset_halted_ep()
895 slot_id, ep_index, ret); in xhci_reset_halted_ep()
925 ep->ep_index); in xhci_handle_halted_endpoint()
929 err = xhci_reset_halted_ep(xhci, slot_id, ep->ep_index, reset_type); in xhci_handle_halted_endpoint()
981 hw_deq = xhci_get_hw_deq(xhci, ep->vdev, ep->ep_index, in xhci_invalidate_cancelled_tds()
1013 err = xhci_move_dequeue_past_td(xhci, slot_id, ep->ep_index, in xhci_invalidate_cancelled_tds()
1040 hw_deq = xhci_get_hw_deq(ep->xhci, ep->vdev, ep->ep_index, 0); in find_halted_td()
1063 unsigned int ep_index; in xhci_handle_cmd_stop_ep() local
1078 ep_index = TRB_TO_EP_INDEX(le32_to_cpu(trb->generic.field[3])); in xhci_handle_cmd_stop_ep()
1079 ep = xhci_get_virt_ep(xhci, slot_id, ep_index); in xhci_handle_cmd_stop_ep()
1083 ep_ctx = xhci_get_ep_ctx(xhci, ep->vdev->out_ctx, ep_index); in xhci_handle_cmd_stop_ep()
1130 xhci_queue_stop_endpoint(xhci, command, slot_id, ep_index, 0); in xhci_handle_cmd_stop_ep()
1144 ring_doorbell_for_active_rings(xhci, slot_id, ep_index); in xhci_handle_cmd_stop_ep()
1167 int slot_id, int ep_index) in xhci_kill_endpoint_urbs() argument
1174 ep = &xhci->devs[slot_id]->eps[ep_index]; in xhci_kill_endpoint_urbs()
1187 slot_id, ep_index, stream_id); in xhci_kill_endpoint_urbs()
1196 slot_id, ep_index); in xhci_kill_endpoint_urbs()
1302 unsigned int ep_index) in update_ring_for_set_deq_completion() argument
1322 while (ep_ring->dequeue != dev->eps[ep_index].queued_deq_ptr) { in update_ring_for_set_deq_completion()
1328 dev->eps[ep_index].queued_deq_ptr) in update_ring_for_set_deq_completion()
1355 unsigned int ep_index; in xhci_handle_cmd_set_deq() local
1363 ep_index = TRB_TO_EP_INDEX(le32_to_cpu(trb->generic.field[3])); in xhci_handle_cmd_set_deq()
1365 ep = xhci_get_virt_ep(xhci, slot_id, ep_index); in xhci_handle_cmd_set_deq()
1377 ep_ctx = xhci_get_ep_ctx(xhci, ep->vdev->out_ctx, ep_index); in xhci_handle_cmd_set_deq()
1432 ep_ring, ep_index); in xhci_handle_cmd_set_deq()
1458 ring_doorbell_for_active_rings(xhci, slot_id, ep_index); in xhci_handle_cmd_set_deq()
1466 unsigned int ep_index; in xhci_handle_cmd_reset_ep() local
1468 ep_index = TRB_TO_EP_INDEX(le32_to_cpu(trb->generic.field[3])); in xhci_handle_cmd_reset_ep()
1469 ep = xhci_get_virt_ep(xhci, slot_id, ep_index); in xhci_handle_cmd_reset_ep()
1473 ep_ctx = xhci_get_ep_ctx(xhci, ep->vdev->out_ctx, ep_index); in xhci_handle_cmd_reset_ep()
1494 ring_doorbell_for_active_rings(xhci, slot_id, ep_index); in xhci_handle_cmd_reset_ep()
1530 unsigned int ep_index; in xhci_handle_cmd_config_ep() local
1554 ep_index = xhci_last_valid_endpoint(add_flags) - 1; in xhci_handle_cmd_config_ep()
1556 ep_ctx = xhci_get_ep_ctx(xhci, virt_dev->out_ctx, ep_index); in xhci_handle_cmd_config_ep()
1566 ep_index != (unsigned int) -1 && in xhci_handle_cmd_config_ep()
1568 ep_state = virt_dev->eps[ep_index].ep_state; in xhci_handle_cmd_config_ep()
1574 ep_index, ep_state); in xhci_handle_cmd_config_ep()
1576 virt_dev->eps[ep_index].ep_state &= ~EP_HALTED; in xhci_handle_cmd_config_ep()
1577 ring_doorbell_for_active_rings(xhci, slot_id, ep_index); in xhci_handle_cmd_config_ep()
2202 ep_ctx = xhci_get_ep_ctx(xhci, ep->vdev->out_ctx, ep->ep_index); in finish_td()
2260 if (ep->ep_index != 0) in finish_td()
2308 ep_ctx = xhci_get_ep_ctx(xhci, ep->vdev->out_ctx, ep->ep_index); in process_ctrl_td()
2356 trb_comp_code, ep->ep_index); in process_ctrl_td()
2588 int ep_index; in handle_tx_event() local
2601 ep_index = TRB_TO_EP_ID(le32_to_cpu(event->flags)) - 1; in handle_tx_event()
2605 ep = xhci_get_virt_ep(xhci, slot_id, ep_index); in handle_tx_event()
2612 ep_ctx = xhci_get_ep_ctx(xhci, ep->vdev->out_ctx, ep_index); in handle_tx_event()
2617 slot_id, ep_index); in handle_tx_event()
2637 slot_id, ep_index); in handle_tx_event()
2662 slot_id, ep_index); in handle_tx_event()
2669 slot_id, ep_index); in handle_tx_event()
2674 slot_id, ep_index); in handle_tx_event()
2679 slot_id, ep_index); in handle_tx_event()
2684 ep_index); in handle_tx_event()
2689 slot_id, ep_index); in handle_tx_event()
2694 slot_id, ep_index); in handle_tx_event()
2699 slot_id, ep_index); in handle_tx_event()
2706 slot_id, ep_index); in handle_tx_event()
2713 slot_id, ep_index); in handle_tx_event()
2719 slot_id, ep_index); in handle_tx_event()
2724 slot_id, ep_index); in handle_tx_event()
2737 ep_index); in handle_tx_event()
2745 ep_index); in handle_tx_event()
2757 slot_id, ep_index); in handle_tx_event()
2763 slot_id, ep_index); in handle_tx_event()
2770 slot_id, ep_index); in handle_tx_event()
2780 trb_comp_code, slot_id, ep_index); in handle_tx_event()
2802 ep_index); in handle_tx_event()
2807 slot_id, ep_index); in handle_tx_event()
2824 slot_id, ep_index); in handle_tx_event()
2866 "comp_code %u\n", ep_index, in handle_tx_event()
2885 slot_id, ep_index); in handle_tx_event()
3286 unsigned int ep_index, in prepare_transfer() argument
3297 struct xhci_ep_ctx *ep_ctx = xhci_get_ep_ctx(xhci, xdev->out_ctx, ep_index); in prepare_transfer()
3299 ep_ring = xhci_triad_to_transfer_ring(xhci, xdev->slot_id, ep_index, in prepare_transfer()
3392 unsigned int ep_index, unsigned int stream_id, int start_cycle, in giveback_first_trb() argument
3404 xhci_ring_ep_doorbell(xhci, slot_id, ep_index, stream_id); in giveback_first_trb()
3444 struct urb *urb, int slot_id, unsigned int ep_index) in xhci_queue_intr_tx() argument
3448 ep_ctx = xhci_get_ep_ctx(xhci, xhci->devs[slot_id]->out_ctx, ep_index); in xhci_queue_intr_tx()
3451 return xhci_queue_bulk_tx(xhci, mem_flags, urb, slot_id, ep_index); in xhci_queue_intr_tx()
3572 struct urb *urb, int slot_id, unsigned int ep_index) in xhci_queue_bulk_tx() argument
3607 ep_index, urb->stream_id, in xhci_queue_bulk_tx()
3716 ep_index, urb->stream_id, in xhci_queue_bulk_tx()
3726 giveback_first_trb(xhci, slot_id, ep_index, urb->stream_id, in xhci_queue_bulk_tx()
3733 struct urb *urb, int slot_id, unsigned int ep_index) in xhci_queue_ctrl_tx() argument
3766 ep_index, urb->stream_id, in xhci_queue_ctrl_tx()
3861 giveback_first_trb(xhci, slot_id, ep_index, 0, in xhci_queue_ctrl_tx()
4030 struct urb *urb, int slot_id, unsigned int ep_index) in xhci_queue_isoc_tx() argument
4047 xep = &xhci->devs[slot_id]->eps[ep_index]; in xhci_queue_isoc_tx()
4048 ep_ring = xhci->devs[slot_id]->eps[ep_index].ring; in xhci_queue_isoc_tx()
4083 ret = prepare_transfer(xhci, xhci->devs[slot_id], ep_index, in xhci_queue_isoc_tx()
4188 giveback_first_trb(xhci, slot_id, ep_index, urb->stream_id, in xhci_queue_isoc_tx()
4223 struct urb *urb, int slot_id, unsigned int ep_index) in xhci_queue_isoc_tx_prepare() argument
4235 xep = &xhci->devs[slot_id]->eps[ep_index]; in xhci_queue_isoc_tx_prepare()
4236 ep_ring = xdev->eps[ep_index].ring; in xhci_queue_isoc_tx_prepare()
4237 ep_ctx = xhci_get_ep_ctx(xhci, xdev->out_ctx, ep_index); in xhci_queue_isoc_tx_prepare()
4294 return xhci_queue_isoc_tx(xhci, mem_flags, urb, slot_id, ep_index); in xhci_queue_isoc_tx_prepare()
4407 int slot_id, unsigned int ep_index, int suspend) in xhci_queue_stop_endpoint() argument
4410 u32 trb_ep_index = EP_ID_FOR_TRB(ep_index); in xhci_queue_stop_endpoint()
4419 int slot_id, unsigned int ep_index, in xhci_queue_reset_ep() argument
4423 u32 trb_ep_index = EP_ID_FOR_TRB(ep_index); in xhci_queue_reset_ep()