Lines Matching refs:ep_index
388 unsigned int ep_index, in xhci_ring_ep_doorbell() argument
392 struct xhci_virt_ep *ep = &xhci->devs[slot_id]->eps[ep_index]; in xhci_ring_ep_doorbell()
404 writel(DB_VALUE(ep_index, stream_id), db_addr); in xhci_ring_ep_doorbell()
413 unsigned int ep_index) in ring_doorbell_for_active_rings() argument
418 ep = &xhci->devs[slot_id]->eps[ep_index]; in ring_doorbell_for_active_rings()
423 xhci_ring_ep_doorbell(xhci, slot_id, ep_index, 0); in ring_doorbell_for_active_rings()
431 xhci_ring_ep_doorbell(xhci, slot_id, ep_index, in ring_doorbell_for_active_rings()
441 unsigned int slot_id, unsigned int ep_index, in xhci_triad_to_transfer_ring() argument
446 ep = &xhci->devs[slot_id]->eps[ep_index]; in xhci_triad_to_transfer_ring()
455 slot_id, ep_index); in xhci_triad_to_transfer_ring()
466 slot_id, ep_index, in xhci_triad_to_transfer_ring()
480 unsigned int ep_index, unsigned int stream_id) in xhci_get_hw_deq() argument
486 ep = &vdev->eps[ep_index]; in xhci_get_hw_deq()
492 ep_ctx = xhci_get_ep_ctx(xhci, vdev->out_ctx, ep_index); in xhci_get_hw_deq()
515 unsigned int slot_id, unsigned int ep_index, in xhci_find_new_dequeue_state() argument
520 struct xhci_virt_ep *ep = &dev->eps[ep_index]; in xhci_find_new_dequeue_state()
530 ep_index, stream_id); in xhci_find_new_dequeue_state()
541 hw_dequeue = xhci_get_hw_deq(xhci, dev, ep_index, stream_id); in xhci_find_new_dequeue_state()
691 unsigned int ep_index; in xhci_handle_cmd_stop_ep() local
710 ep_index = TRB_TO_EP_INDEX(le32_to_cpu(trb->generic.field[3])); in xhci_handle_cmd_stop_ep()
713 ep_ctx = xhci_get_ep_ctx(xhci, vdev->out_ctx, ep_index); in xhci_handle_cmd_stop_ep()
716 ep = &xhci->devs[slot_id]->eps[ep_index]; in xhci_handle_cmd_stop_ep()
722 ring_doorbell_for_active_rings(xhci, slot_id, ep_index); in xhci_handle_cmd_stop_ep()
759 hw_deq = xhci_get_hw_deq(xhci, vdev, ep_index, in xhci_handle_cmd_stop_ep()
765 xhci_find_new_dequeue_state(xhci, slot_id, ep_index, in xhci_handle_cmd_stop_ep()
785 xhci_queue_new_dequeue_state(xhci, slot_id, ep_index, in xhci_handle_cmd_stop_ep()
790 ring_doorbell_for_active_rings(xhci, slot_id, ep_index); in xhci_handle_cmd_stop_ep()
844 int slot_id, int ep_index) in xhci_kill_endpoint_urbs() argument
851 ep = &xhci->devs[slot_id]->eps[ep_index]; in xhci_kill_endpoint_urbs()
864 slot_id, ep_index, stream_id); in xhci_kill_endpoint_urbs()
873 slot_id, ep_index); in xhci_kill_endpoint_urbs()
974 unsigned int ep_index) in update_ring_for_set_deq_completion() argument
994 while (ep_ring->dequeue != dev->eps[ep_index].queued_deq_ptr) { in update_ring_for_set_deq_completion()
1000 dev->eps[ep_index].queued_deq_ptr) in update_ring_for_set_deq_completion()
1027 unsigned int ep_index; in xhci_handle_cmd_set_deq() local
1035 ep_index = TRB_TO_EP_INDEX(le32_to_cpu(trb->generic.field[3])); in xhci_handle_cmd_set_deq()
1038 ep = &dev->eps[ep_index]; in xhci_handle_cmd_set_deq()
1040 ep_ring = xhci_stream_id_to_ring(dev, ep_index, stream_id); in xhci_handle_cmd_set_deq()
1048 ep_ctx = xhci_get_ep_ctx(xhci, dev->out_ctx, ep_index); in xhci_handle_cmd_set_deq()
1103 ep_ring, ep_index); in xhci_handle_cmd_set_deq()
1112 dev->eps[ep_index].ep_state &= ~SET_DEQ_PENDING; in xhci_handle_cmd_set_deq()
1113 dev->eps[ep_index].queued_deq_seg = NULL; in xhci_handle_cmd_set_deq()
1114 dev->eps[ep_index].queued_deq_ptr = NULL; in xhci_handle_cmd_set_deq()
1116 ring_doorbell_for_active_rings(xhci, slot_id, ep_index); in xhci_handle_cmd_set_deq()
1124 unsigned int ep_index; in xhci_handle_cmd_reset_ep() local
1126 ep_index = TRB_TO_EP_INDEX(le32_to_cpu(trb->generic.field[3])); in xhci_handle_cmd_reset_ep()
1128 ep_ctx = xhci_get_ep_ctx(xhci, vdev->out_ctx, ep_index); in xhci_handle_cmd_reset_ep()
1156 xhci->devs[slot_id]->eps[ep_index].ep_state &= ~EP_HALTED; in xhci_handle_cmd_reset_ep()
1193 unsigned int ep_index; in xhci_handle_cmd_config_ep() local
1215 ep_index = xhci_last_valid_endpoint(add_flags) - 1; in xhci_handle_cmd_config_ep()
1217 ep_ctx = xhci_get_ep_ctx(xhci, virt_dev->out_ctx, ep_index); in xhci_handle_cmd_config_ep()
1227 ep_index != (unsigned int) -1 && in xhci_handle_cmd_config_ep()
1229 ep_state = virt_dev->eps[ep_index].ep_state; in xhci_handle_cmd_config_ep()
1235 ep_index, ep_state); in xhci_handle_cmd_config_ep()
1237 virt_dev->eps[ep_index].ep_state &= ~EP_HALTED; in xhci_handle_cmd_config_ep()
1238 ring_doorbell_for_active_rings(xhci, slot_id, ep_index); in xhci_handle_cmd_config_ep()
1742 unsigned int slot_id, unsigned int ep_index, in xhci_cleanup_halted_endpoint() argument
1746 struct xhci_virt_ep *ep = &xhci->devs[slot_id]->eps[ep_index]; in xhci_cleanup_halted_endpoint()
1754 xhci_queue_reset_ep(xhci, command, slot_id, ep_index, reset_type); in xhci_cleanup_halted_endpoint()
1758 xhci_cleanup_stalled_ring(xhci, ep_index, stream_id, td); in xhci_cleanup_halted_endpoint()
1858 int ep_index; in finish_td() local
1862 ep_index = TRB_TO_EP_ID(le32_to_cpu(event->flags)) - 1; in finish_td()
1864 ep_ctx = xhci_get_ep_ctx(xhci, xdev->out_ctx, ep_index); in finish_td()
1884 xhci_cleanup_halted_endpoint(xhci, slot_id, ep_index, in finish_td()
1920 int ep_index; in process_ctrl_td() local
1929 ep_index = TRB_TO_EP_ID(le32_to_cpu(event->flags)) - 1; in process_ctrl_td()
1930 ep_ctx = xhci_get_ep_ctx(xhci, xdev->out_ctx, ep_index); in process_ctrl_td()
1978 trb_comp_code, ep_index); in process_ctrl_td()
2202 int ep_index; in handle_tx_event() local
2215 ep_index = TRB_TO_EP_ID(le32_to_cpu(event->flags)) - 1; in handle_tx_event()
2226 ep = &xdev->eps[ep_index]; in handle_tx_event()
2228 ep_ctx = xhci_get_ep_ctx(xhci, xdev->out_ctx, ep_index); in handle_tx_event()
2233 slot_id, ep_index); in handle_tx_event()
2244 xhci_cleanup_halted_endpoint(xhci, slot_id, ep_index, 0, in handle_tx_event()
2252 slot_id, ep_index); in handle_tx_event()
2276 slot_id, ep_index); in handle_tx_event()
2282 slot_id, ep_index); in handle_tx_event()
2287 slot_id, ep_index); in handle_tx_event()
2292 slot_id, ep_index); in handle_tx_event()
2297 ep_index); in handle_tx_event()
2304 slot_id, ep_index); in handle_tx_event()
2309 slot_id, ep_index); in handle_tx_event()
2316 slot_id, ep_index); in handle_tx_event()
2323 slot_id, ep_index); in handle_tx_event()
2329 slot_id, ep_index); in handle_tx_event()
2334 slot_id, ep_index); in handle_tx_event()
2347 ep_index); in handle_tx_event()
2355 ep_index); in handle_tx_event()
2367 slot_id, ep_index); in handle_tx_event()
2373 slot_id, ep_index); in handle_tx_event()
2380 slot_id, ep_index); in handle_tx_event()
2390 trb_comp_code, slot_id, ep_index); in handle_tx_event()
2412 ep_index); in handle_tx_event()
2417 slot_id, ep_index); in handle_tx_event()
2426 slot_id, ep_index); in handle_tx_event()
2468 "comp_code %u\n", ep_index, in handle_tx_event()
2487 slot_id, ep_index); in handle_tx_event()
2509 ep_index, in handle_tx_event()
2841 unsigned int ep_index, in prepare_transfer() argument
2852 struct xhci_ep_ctx *ep_ctx = xhci_get_ep_ctx(xhci, xdev->out_ctx, ep_index); in prepare_transfer()
2854 ep_ring = xhci_stream_id_to_ring(xdev, ep_index, stream_id); in prepare_transfer()
2946 unsigned int ep_index, unsigned int stream_id, int start_cycle, in giveback_first_trb() argument
2958 xhci_ring_ep_doorbell(xhci, slot_id, ep_index, stream_id); in giveback_first_trb()
2998 struct urb *urb, int slot_id, unsigned int ep_index) in xhci_queue_intr_tx() argument
3002 ep_ctx = xhci_get_ep_ctx(xhci, xhci->devs[slot_id]->out_ctx, ep_index); in xhci_queue_intr_tx()
3005 return xhci_queue_bulk_tx(xhci, mem_flags, urb, slot_id, ep_index); in xhci_queue_intr_tx()
3117 struct urb *urb, int slot_id, unsigned int ep_index) in xhci_queue_bulk_tx() argument
3152 ep_index, urb->stream_id, in xhci_queue_bulk_tx()
3254 ep_index, urb->stream_id, in xhci_queue_bulk_tx()
3262 giveback_first_trb(xhci, slot_id, ep_index, urb->stream_id, in xhci_queue_bulk_tx()
3269 struct urb *urb, int slot_id, unsigned int ep_index) in xhci_queue_ctrl_tx() argument
3302 ep_index, urb->stream_id, in xhci_queue_ctrl_tx()
3385 giveback_first_trb(xhci, slot_id, ep_index, 0, in xhci_queue_ctrl_tx()
3536 struct urb *urb, int slot_id, unsigned int ep_index) in xhci_queue_isoc_tx() argument
3553 xep = &xhci->devs[slot_id]->eps[ep_index]; in xhci_queue_isoc_tx()
3554 ep_ring = xhci->devs[slot_id]->eps[ep_index].ring; in xhci_queue_isoc_tx()
3589 ret = prepare_transfer(xhci, xhci->devs[slot_id], ep_index, in xhci_queue_isoc_tx()
3696 giveback_first_trb(xhci, slot_id, ep_index, urb->stream_id, in xhci_queue_isoc_tx()
3731 struct urb *urb, int slot_id, unsigned int ep_index) in xhci_queue_isoc_tx_prepare() argument
3743 xep = &xhci->devs[slot_id]->eps[ep_index]; in xhci_queue_isoc_tx_prepare()
3744 ep_ring = xdev->eps[ep_index].ring; in xhci_queue_isoc_tx_prepare()
3745 ep_ctx = xhci_get_ep_ctx(xhci, xdev->out_ctx, ep_index); in xhci_queue_isoc_tx_prepare()
3802 return xhci_queue_isoc_tx(xhci, mem_flags, urb, slot_id, ep_index); in xhci_queue_isoc_tx_prepare()
3915 int slot_id, unsigned int ep_index, int suspend) in xhci_queue_stop_endpoint() argument
3918 u32 trb_ep_index = EP_ID_FOR_TRB(ep_index); in xhci_queue_stop_endpoint()
3928 unsigned int slot_id, unsigned int ep_index, in xhci_queue_new_dequeue_state() argument
3933 u32 trb_ep_index = EP_ID_FOR_TRB(ep_index); in xhci_queue_new_dequeue_state()
3958 ep = &xhci->devs[slot_id]->eps[ep_index]; in xhci_queue_new_dequeue_state()
3992 int slot_id, unsigned int ep_index, in xhci_queue_reset_ep() argument
3996 u32 trb_ep_index = EP_ID_FOR_TRB(ep_index); in xhci_queue_reset_ep()