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()
438 unsigned int ep_index) in xhci_ring_doorbell_for_active_rings() argument
440 ring_doorbell_for_active_rings(xhci, slot_id, ep_index); in xhci_ring_doorbell_for_active_rings()
448 unsigned int slot_id, unsigned int ep_index, in xhci_triad_to_transfer_ring() argument
453 ep = &xhci->devs[slot_id]->eps[ep_index]; in xhci_triad_to_transfer_ring()
462 slot_id, ep_index); in xhci_triad_to_transfer_ring()
473 slot_id, ep_index, in xhci_triad_to_transfer_ring()
487 unsigned int ep_index, unsigned int stream_id) in xhci_get_hw_deq() argument
493 ep = &vdev->eps[ep_index]; in xhci_get_hw_deq()
499 ep_ctx = xhci_get_ep_ctx(xhci, vdev->out_ctx, ep_index); in xhci_get_hw_deq()
522 unsigned int slot_id, unsigned int ep_index, in xhci_find_new_dequeue_state() argument
527 struct xhci_virt_ep *ep = &dev->eps[ep_index]; in xhci_find_new_dequeue_state()
537 ep_index, stream_id); in xhci_find_new_dequeue_state()
548 hw_dequeue = xhci_get_hw_deq(xhci, dev, ep_index, stream_id); in xhci_find_new_dequeue_state()
702 unsigned int ep_index; in xhci_handle_cmd_stop_ep() local
721 ep_index = TRB_TO_EP_INDEX(le32_to_cpu(trb->generic.field[3])); in xhci_handle_cmd_stop_ep()
724 ep_ctx = xhci_get_ep_ctx(xhci, vdev->out_ctx, ep_index); in xhci_handle_cmd_stop_ep()
727 ep = &xhci->devs[slot_id]->eps[ep_index]; in xhci_handle_cmd_stop_ep()
733 ring_doorbell_for_active_rings(xhci, slot_id, ep_index); in xhci_handle_cmd_stop_ep()
770 hw_deq = xhci_get_hw_deq(xhci, vdev, ep_index, in xhci_handle_cmd_stop_ep()
776 xhci_find_new_dequeue_state(xhci, slot_id, ep_index, in xhci_handle_cmd_stop_ep()
796 xhci_queue_new_dequeue_state(xhci, slot_id, ep_index, in xhci_handle_cmd_stop_ep()
801 ring_doorbell_for_active_rings(xhci, slot_id, ep_index); in xhci_handle_cmd_stop_ep()
855 int slot_id, int ep_index) in xhci_kill_endpoint_urbs() argument
862 ep = &xhci->devs[slot_id]->eps[ep_index]; in xhci_kill_endpoint_urbs()
875 slot_id, ep_index, stream_id); in xhci_kill_endpoint_urbs()
884 slot_id, ep_index); in xhci_kill_endpoint_urbs()
985 unsigned int ep_index) in update_ring_for_set_deq_completion() argument
1005 while (ep_ring->dequeue != dev->eps[ep_index].queued_deq_ptr) { in update_ring_for_set_deq_completion()
1011 dev->eps[ep_index].queued_deq_ptr) in update_ring_for_set_deq_completion()
1038 unsigned int ep_index; in xhci_handle_cmd_set_deq() local
1046 ep_index = TRB_TO_EP_INDEX(le32_to_cpu(trb->generic.field[3])); in xhci_handle_cmd_set_deq()
1049 ep = &dev->eps[ep_index]; in xhci_handle_cmd_set_deq()
1051 ep_ring = xhci_stream_id_to_ring(dev, ep_index, stream_id); in xhci_handle_cmd_set_deq()
1059 ep_ctx = xhci_get_ep_ctx(xhci, dev->out_ctx, ep_index); in xhci_handle_cmd_set_deq()
1114 ep_ring, ep_index); in xhci_handle_cmd_set_deq()
1123 dev->eps[ep_index].ep_state &= ~SET_DEQ_PENDING; in xhci_handle_cmd_set_deq()
1124 dev->eps[ep_index].queued_deq_seg = NULL; in xhci_handle_cmd_set_deq()
1125 dev->eps[ep_index].queued_deq_ptr = NULL; in xhci_handle_cmd_set_deq()
1127 ring_doorbell_for_active_rings(xhci, slot_id, ep_index); in xhci_handle_cmd_set_deq()
1135 unsigned int ep_index; in xhci_handle_cmd_reset_ep() local
1137 ep_index = TRB_TO_EP_INDEX(le32_to_cpu(trb->generic.field[3])); in xhci_handle_cmd_reset_ep()
1139 ep_ctx = xhci_get_ep_ctx(xhci, vdev->out_ctx, ep_index); in xhci_handle_cmd_reset_ep()
1167 xhci->devs[slot_id]->eps[ep_index].ep_state &= ~EP_HALTED; in xhci_handle_cmd_reset_ep()
1172 ring_doorbell_for_active_rings(xhci, slot_id, ep_index); in xhci_handle_cmd_reset_ep()
1208 unsigned int ep_index; in xhci_handle_cmd_config_ep() local
1230 ep_index = xhci_last_valid_endpoint(add_flags) - 1; in xhci_handle_cmd_config_ep()
1232 ep_ctx = xhci_get_ep_ctx(xhci, virt_dev->out_ctx, ep_index); in xhci_handle_cmd_config_ep()
1242 ep_index != (unsigned int) -1 && in xhci_handle_cmd_config_ep()
1244 ep_state = virt_dev->eps[ep_index].ep_state; in xhci_handle_cmd_config_ep()
1250 ep_index, ep_state); in xhci_handle_cmd_config_ep()
1252 virt_dev->eps[ep_index].ep_state &= ~EP_HALTED; in xhci_handle_cmd_config_ep()
1253 ring_doorbell_for_active_rings(xhci, slot_id, ep_index); in xhci_handle_cmd_config_ep()
1827 unsigned int slot_id, unsigned int ep_index, in xhci_cleanup_halted_endpoint() argument
1831 struct xhci_virt_ep *ep = &xhci->devs[slot_id]->eps[ep_index]; in xhci_cleanup_halted_endpoint()
1847 xhci_queue_reset_ep(xhci, command, slot_id, ep_index, reset_type); in xhci_cleanup_halted_endpoint()
1851 xhci_cleanup_stalled_ring(xhci, ep_index, stream_id, td); in xhci_cleanup_halted_endpoint()
1952 int ep_index; in finish_td() local
1956 ep_index = TRB_TO_EP_ID(le32_to_cpu(event->flags)) - 1; in finish_td()
1958 ep_ctx = xhci_get_ep_ctx(xhci, xdev->out_ctx, ep_index); in finish_td()
1978 xhci_cleanup_halted_endpoint(xhci, slot_id, ep_index, in finish_td()
2014 int ep_index; in process_ctrl_td() local
2023 ep_index = TRB_TO_EP_ID(le32_to_cpu(event->flags)) - 1; in process_ctrl_td()
2024 ep_ctx = xhci_get_ep_ctx(xhci, xdev->out_ctx, ep_index); in process_ctrl_td()
2072 trb_comp_code, ep_index); in process_ctrl_td()
2234 int ep_index; in process_bulk_intr_td() local
2238 ep_index = TRB_TO_EP_ID(le32_to_cpu(event->flags)) - 1; in process_bulk_intr_td()
2276 xhci_cleanup_halted_endpoint(xhci, slot_id, ep_index, in process_bulk_intr_td()
2311 int ep_index; in handle_tx_event() local
2324 ep_index = TRB_TO_EP_ID(le32_to_cpu(event->flags)) - 1; in handle_tx_event()
2335 ep = &xdev->eps[ep_index]; in handle_tx_event()
2337 ep_ctx = xhci_get_ep_ctx(xhci, xdev->out_ctx, ep_index); in handle_tx_event()
2342 slot_id, ep_index); in handle_tx_event()
2353 xhci_cleanup_halted_endpoint(xhci, slot_id, ep_index, 0, in handle_tx_event()
2362 slot_id, ep_index); in handle_tx_event()
2386 slot_id, ep_index); in handle_tx_event()
2392 slot_id, ep_index); in handle_tx_event()
2397 slot_id, ep_index); in handle_tx_event()
2402 slot_id, ep_index); in handle_tx_event()
2407 ep_index); in handle_tx_event()
2414 slot_id, ep_index); in handle_tx_event()
2419 slot_id, ep_index); in handle_tx_event()
2426 slot_id, ep_index); in handle_tx_event()
2433 slot_id, ep_index); in handle_tx_event()
2439 slot_id, ep_index); in handle_tx_event()
2444 slot_id, ep_index); in handle_tx_event()
2457 ep_index); in handle_tx_event()
2465 ep_index); in handle_tx_event()
2477 slot_id, ep_index); in handle_tx_event()
2483 slot_id, ep_index); in handle_tx_event()
2490 slot_id, ep_index); in handle_tx_event()
2500 trb_comp_code, slot_id, ep_index); in handle_tx_event()
2522 ep_index); in handle_tx_event()
2527 slot_id, ep_index); in handle_tx_event()
2536 slot_id, ep_index); in handle_tx_event()
2578 "comp_code %u\n", ep_index, in handle_tx_event()
2597 slot_id, ep_index); in handle_tx_event()
2619 ep_index, in handle_tx_event()
2951 unsigned int ep_index, in prepare_transfer() argument
2962 struct xhci_ep_ctx *ep_ctx = xhci_get_ep_ctx(xhci, xdev->out_ctx, ep_index); in prepare_transfer()
2964 ep_ring = xhci_stream_id_to_ring(xdev, ep_index, stream_id); in prepare_transfer()
3056 unsigned int ep_index, unsigned int stream_id, int start_cycle, in giveback_first_trb() argument
3068 xhci_ring_ep_doorbell(xhci, slot_id, ep_index, stream_id); in giveback_first_trb()
3108 struct urb *urb, int slot_id, unsigned int ep_index) in xhci_queue_intr_tx() argument
3112 ep_ctx = xhci_get_ep_ctx(xhci, xhci->devs[slot_id]->out_ctx, ep_index); in xhci_queue_intr_tx()
3115 return xhci_queue_bulk_tx(xhci, mem_flags, urb, slot_id, ep_index); in xhci_queue_intr_tx()
3232 struct urb *urb, int slot_id, unsigned int ep_index) in xhci_queue_bulk_tx() argument
3267 ep_index, urb->stream_id, in xhci_queue_bulk_tx()
3376 ep_index, urb->stream_id, in xhci_queue_bulk_tx()
3384 giveback_first_trb(xhci, slot_id, ep_index, urb->stream_id, in xhci_queue_bulk_tx()
3391 struct urb *urb, int slot_id, unsigned int ep_index) in xhci_queue_ctrl_tx() argument
3424 ep_index, urb->stream_id, in xhci_queue_ctrl_tx()
3517 giveback_first_trb(xhci, slot_id, ep_index, 0, in xhci_queue_ctrl_tx()
3668 struct urb *urb, int slot_id, unsigned int ep_index) in xhci_queue_isoc_tx() argument
3685 xep = &xhci->devs[slot_id]->eps[ep_index]; in xhci_queue_isoc_tx()
3686 ep_ring = xhci->devs[slot_id]->eps[ep_index].ring; in xhci_queue_isoc_tx()
3721 ret = prepare_transfer(xhci, xhci->devs[slot_id], ep_index, in xhci_queue_isoc_tx()
3828 giveback_first_trb(xhci, slot_id, ep_index, urb->stream_id, in xhci_queue_isoc_tx()
3863 struct urb *urb, int slot_id, unsigned int ep_index) in xhci_queue_isoc_tx_prepare() argument
3875 xep = &xhci->devs[slot_id]->eps[ep_index]; in xhci_queue_isoc_tx_prepare()
3876 ep_ring = xdev->eps[ep_index].ring; in xhci_queue_isoc_tx_prepare()
3877 ep_ctx = xhci_get_ep_ctx(xhci, xdev->out_ctx, ep_index); in xhci_queue_isoc_tx_prepare()
3934 return xhci_queue_isoc_tx(xhci, mem_flags, urb, slot_id, ep_index); in xhci_queue_isoc_tx_prepare()
4047 int slot_id, unsigned int ep_index, int suspend) in xhci_queue_stop_endpoint() argument
4050 u32 trb_ep_index = EP_ID_FOR_TRB(ep_index); in xhci_queue_stop_endpoint()
4060 unsigned int slot_id, unsigned int ep_index, in xhci_queue_new_dequeue_state() argument
4065 u32 trb_ep_index = EP_ID_FOR_TRB(ep_index); in xhci_queue_new_dequeue_state()
4090 ep = &xhci->devs[slot_id]->eps[ep_index]; in xhci_queue_new_dequeue_state()
4124 int slot_id, unsigned int ep_index, in xhci_queue_reset_ep() argument
4128 u32 trb_ep_index = EP_ID_FOR_TRB(ep_index); in xhci_queue_reset_ep()