Lines Matching refs:ep_index

430 		unsigned int ep_index,  in xhci_ring_ep_doorbell()  argument
434 struct xhci_virt_ep *ep = &xhci->devs[slot_id]->eps[ep_index]; in xhci_ring_ep_doorbell()
447 trace_xhci_ring_ep_doorbell(slot_id, DB_VALUE(ep_index, stream_id)); in xhci_ring_ep_doorbell()
449 writel(DB_VALUE(ep_index, stream_id), db_addr); in xhci_ring_ep_doorbell()
457 unsigned int ep_index) in ring_doorbell_for_active_rings() argument
462 ep = &xhci->devs[slot_id]->eps[ep_index]; in ring_doorbell_for_active_rings()
467 xhci_ring_ep_doorbell(xhci, slot_id, ep_index, 0); in ring_doorbell_for_active_rings()
475 xhci_ring_ep_doorbell(xhci, slot_id, ep_index, in ring_doorbell_for_active_rings()
482 unsigned int ep_index) in xhci_ring_doorbell_for_active_rings() argument
484 ring_doorbell_for_active_rings(xhci, slot_id, ep_index); in xhci_ring_doorbell_for_active_rings()
489 unsigned int ep_index) in xhci_get_virt_ep() argument
495 if (ep_index >= EP_CTX_PER_DEV) { in xhci_get_virt_ep()
496 xhci_warn(xhci, "Invalid endpoint index %u\n", ep_index); in xhci_get_virt_ep()
504 return &xhci->devs[slot_id]->eps[ep_index]; in xhci_get_virt_ep()
520 stream_id, ep->vdev->slot_id, ep->ep_index); in xhci_virt_ep_to_ring()
532 unsigned int slot_id, unsigned int ep_index, in xhci_triad_to_transfer_ring() argument
537 ep = xhci_get_virt_ep(xhci, slot_id, ep_index); in xhci_triad_to_transfer_ring()
552 unsigned int ep_index, unsigned int stream_id) in xhci_get_hw_deq() argument
558 ep = &vdev->eps[ep_index]; in xhci_get_hw_deq()
564 ep_ctx = xhci_get_ep_ctx(xhci, vdev->out_ctx, ep_index); in xhci_get_hw_deq()
569 unsigned int slot_id, unsigned int ep_index, in xhci_move_dequeue_past_td() argument
573 struct xhci_virt_ep *ep = &dev->eps[ep_index]; in xhci_move_dequeue_past_td()
590 ep_index, stream_id); in xhci_move_dequeue_past_td()
616 hw_dequeue = xhci_get_hw_deq(xhci, dev, ep_index, stream_id); in xhci_move_dequeue_past_td()
700 EP_ID_FOR_TRB(ep_index) | TRB_TYPE(TRB_SET_DEQ), false); in xhci_move_dequeue_past_td()
885 unsigned int ep_index, enum xhci_ep_reset_type reset_type) in xhci_reset_halted_ep() argument
898 ep_index, slot_id); in xhci_reset_halted_ep()
900 ret = xhci_queue_reset_ep(xhci, command, slot_id, ep_index, reset_type); in xhci_reset_halted_ep()
904 slot_id, ep_index, ret); in xhci_reset_halted_ep()
934 ep->ep_index); in xhci_handle_halted_endpoint()
938 err = xhci_reset_halted_ep(xhci, slot_id, ep->ep_index, reset_type); in xhci_handle_halted_endpoint()
990 hw_deq = xhci_get_hw_deq(xhci, ep->vdev, ep->ep_index, in xhci_invalidate_cancelled_tds()
1024 err = xhci_move_dequeue_past_td(xhci, slot_id, ep->ep_index, in xhci_invalidate_cancelled_tds()
1051 hw_deq = xhci_get_hw_deq(ep->xhci, ep->vdev, ep->ep_index, 0); in find_halted_td()
1074 unsigned int ep_index; in xhci_handle_cmd_stop_ep() local
1089 ep_index = TRB_TO_EP_INDEX(le32_to_cpu(trb->generic.field[3])); in xhci_handle_cmd_stop_ep()
1090 ep = xhci_get_virt_ep(xhci, slot_id, ep_index); in xhci_handle_cmd_stop_ep()
1094 ep_ctx = xhci_get_ep_ctx(xhci, ep->vdev->out_ctx, ep_index); in xhci_handle_cmd_stop_ep()
1141 xhci_queue_stop_endpoint(xhci, command, slot_id, ep_index, 0); in xhci_handle_cmd_stop_ep()
1155 ring_doorbell_for_active_rings(xhci, slot_id, ep_index); in xhci_handle_cmd_stop_ep()
1178 int slot_id, int ep_index) in xhci_kill_endpoint_urbs() argument
1185 ep = &xhci->devs[slot_id]->eps[ep_index]; in xhci_kill_endpoint_urbs()
1198 slot_id, ep_index, stream_id); in xhci_kill_endpoint_urbs()
1207 slot_id, ep_index); in xhci_kill_endpoint_urbs()
1313 unsigned int ep_index) in update_ring_for_set_deq_completion() argument
1330 while (ep_ring->dequeue != dev->eps[ep_index].queued_deq_ptr) { in update_ring_for_set_deq_completion()
1334 dev->eps[ep_index].queued_deq_ptr) in update_ring_for_set_deq_completion()
1356 unsigned int ep_index; in xhci_handle_cmd_set_deq() local
1364 ep_index = TRB_TO_EP_INDEX(le32_to_cpu(trb->generic.field[3])); in xhci_handle_cmd_set_deq()
1366 ep = xhci_get_virt_ep(xhci, slot_id, ep_index); in xhci_handle_cmd_set_deq()
1378 ep_ctx = xhci_get_ep_ctx(xhci, ep->vdev->out_ctx, ep_index); in xhci_handle_cmd_set_deq()
1433 ep_ring, ep_index); in xhci_handle_cmd_set_deq()
1459 ring_doorbell_for_active_rings(xhci, slot_id, ep_index); in xhci_handle_cmd_set_deq()
1467 unsigned int ep_index; in xhci_handle_cmd_reset_ep() local
1469 ep_index = TRB_TO_EP_INDEX(le32_to_cpu(trb->generic.field[3])); in xhci_handle_cmd_reset_ep()
1470 ep = xhci_get_virt_ep(xhci, slot_id, ep_index); in xhci_handle_cmd_reset_ep()
1474 ep_ctx = xhci_get_ep_ctx(xhci, ep->vdev->out_ctx, ep_index); in xhci_handle_cmd_reset_ep()
1495 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()
2668 slot_id, ep_index); in handle_tx_event()
2673 slot_id, ep_index); in handle_tx_event()
2678 slot_id, ep_index); in handle_tx_event()
2683 ep_index); in handle_tx_event()
2688 slot_id, ep_index); in handle_tx_event()
2693 slot_id, ep_index); in handle_tx_event()
2698 slot_id, ep_index); in handle_tx_event()
2705 slot_id, ep_index); in handle_tx_event()
2712 slot_id, ep_index); in handle_tx_event()
2718 slot_id, ep_index); in handle_tx_event()
2723 slot_id, ep_index); in handle_tx_event()
2736 ep_index); in handle_tx_event()
2744 ep_index); in handle_tx_event()
2756 slot_id, ep_index); in handle_tx_event()
2762 slot_id, ep_index); in handle_tx_event()
2769 slot_id, ep_index); in handle_tx_event()
2779 trb_comp_code, slot_id, ep_index); in handle_tx_event()
2801 ep_index); in handle_tx_event()
2806 slot_id, ep_index); in handle_tx_event()
2823 slot_id, ep_index); in handle_tx_event()
2865 "comp_code %u\n", ep_index, in handle_tx_event()
2884 slot_id, ep_index); in handle_tx_event()
3297 unsigned int ep_index, in prepare_transfer() argument
3308 struct xhci_ep_ctx *ep_ctx = xhci_get_ep_ctx(xhci, xdev->out_ctx, ep_index); in prepare_transfer()
3310 ep_ring = xhci_triad_to_transfer_ring(xhci, xdev->slot_id, ep_index, in prepare_transfer()
3403 unsigned int ep_index, unsigned int stream_id, int start_cycle, in giveback_first_trb() argument
3415 xhci_ring_ep_doorbell(xhci, slot_id, ep_index, stream_id); in giveback_first_trb()
3455 struct urb *urb, int slot_id, unsigned int ep_index) in xhci_queue_intr_tx() argument
3459 ep_ctx = xhci_get_ep_ctx(xhci, xhci->devs[slot_id]->out_ctx, ep_index); in xhci_queue_intr_tx()
3462 return xhci_queue_bulk_tx(xhci, mem_flags, urb, slot_id, ep_index); in xhci_queue_intr_tx()
3583 struct urb *urb, int slot_id, unsigned int ep_index) in xhci_queue_bulk_tx() argument
3618 ep_index, urb->stream_id, in xhci_queue_bulk_tx()
3727 ep_index, urb->stream_id, in xhci_queue_bulk_tx()
3737 giveback_first_trb(xhci, slot_id, ep_index, urb->stream_id, in xhci_queue_bulk_tx()
3744 struct urb *urb, int slot_id, unsigned int ep_index) in xhci_queue_ctrl_tx() argument
3777 ep_index, urb->stream_id, in xhci_queue_ctrl_tx()
3872 giveback_first_trb(xhci, slot_id, ep_index, 0, in xhci_queue_ctrl_tx()
4041 struct urb *urb, int slot_id, unsigned int ep_index) in xhci_queue_isoc_tx() argument
4058 xep = &xhci->devs[slot_id]->eps[ep_index]; in xhci_queue_isoc_tx()
4059 ep_ring = xhci->devs[slot_id]->eps[ep_index].ring; in xhci_queue_isoc_tx()
4094 ret = prepare_transfer(xhci, xhci->devs[slot_id], ep_index, in xhci_queue_isoc_tx()
4199 giveback_first_trb(xhci, slot_id, ep_index, urb->stream_id, in xhci_queue_isoc_tx()
4234 struct urb *urb, int slot_id, unsigned int ep_index) in xhci_queue_isoc_tx_prepare() argument
4246 xep = &xhci->devs[slot_id]->eps[ep_index]; in xhci_queue_isoc_tx_prepare()
4247 ep_ring = xdev->eps[ep_index].ring; in xhci_queue_isoc_tx_prepare()
4248 ep_ctx = xhci_get_ep_ctx(xhci, xdev->out_ctx, ep_index); in xhci_queue_isoc_tx_prepare()
4305 return xhci_queue_isoc_tx(xhci, mem_flags, urb, slot_id, ep_index); in xhci_queue_isoc_tx_prepare()
4418 int slot_id, unsigned int ep_index, int suspend) in xhci_queue_stop_endpoint() argument
4421 u32 trb_ep_index = EP_ID_FOR_TRB(ep_index); in xhci_queue_stop_endpoint()
4431 int slot_id, unsigned int ep_index, in xhci_queue_reset_ep() argument
4435 u32 trb_ep_index = EP_ID_FOR_TRB(ep_index); in xhci_queue_reset_ep()