Lines Matching refs:ep_index

391 		unsigned int ep_index,  in xhci_ring_ep_doorbell()  argument
395 struct xhci_virt_ep *ep = &xhci->devs[slot_id]->eps[ep_index]; in xhci_ring_ep_doorbell()
408 trace_xhci_ring_ep_doorbell(slot_id, DB_VALUE(ep_index, stream_id)); in xhci_ring_ep_doorbell()
410 writel(DB_VALUE(ep_index, stream_id), db_addr); in xhci_ring_ep_doorbell()
419 unsigned int ep_index) in ring_doorbell_for_active_rings() argument
424 ep = &xhci->devs[slot_id]->eps[ep_index]; in ring_doorbell_for_active_rings()
429 xhci_ring_ep_doorbell(xhci, slot_id, ep_index, 0); in ring_doorbell_for_active_rings()
437 xhci_ring_ep_doorbell(xhci, slot_id, ep_index, in ring_doorbell_for_active_rings()
444 unsigned int ep_index) in xhci_ring_doorbell_for_active_rings() argument
446 ring_doorbell_for_active_rings(xhci, slot_id, ep_index); in xhci_ring_doorbell_for_active_rings()
454 unsigned int slot_id, unsigned int ep_index, in xhci_triad_to_transfer_ring() argument
459 ep = &xhci->devs[slot_id]->eps[ep_index]; in xhci_triad_to_transfer_ring()
468 slot_id, ep_index); in xhci_triad_to_transfer_ring()
479 slot_id, ep_index, in xhci_triad_to_transfer_ring()
493 unsigned int ep_index, unsigned int stream_id) in xhci_get_hw_deq() argument
499 ep = &vdev->eps[ep_index]; in xhci_get_hw_deq()
505 ep_ctx = xhci_get_ep_ctx(xhci, vdev->out_ctx, ep_index); in xhci_get_hw_deq()
528 unsigned int slot_id, unsigned int ep_index, in xhci_find_new_dequeue_state() argument
533 struct xhci_virt_ep *ep = &dev->eps[ep_index]; in xhci_find_new_dequeue_state()
543 ep_index, stream_id); in xhci_find_new_dequeue_state()
571 hw_dequeue = xhci_get_hw_deq(xhci, dev, ep_index, stream_id); in xhci_find_new_dequeue_state()
724 unsigned int ep_index; in xhci_handle_cmd_stop_ep() local
743 ep_index = TRB_TO_EP_INDEX(le32_to_cpu(trb->generic.field[3])); in xhci_handle_cmd_stop_ep()
746 ep_ctx = xhci_get_ep_ctx(xhci, vdev->out_ctx, ep_index); in xhci_handle_cmd_stop_ep()
749 ep = &xhci->devs[slot_id]->eps[ep_index]; in xhci_handle_cmd_stop_ep()
755 ring_doorbell_for_active_rings(xhci, slot_id, ep_index); in xhci_handle_cmd_stop_ep()
792 hw_deq = xhci_get_hw_deq(xhci, vdev, ep_index, in xhci_handle_cmd_stop_ep()
798 xhci_find_new_dequeue_state(xhci, slot_id, ep_index, in xhci_handle_cmd_stop_ep()
818 xhci_queue_new_dequeue_state(xhci, slot_id, ep_index, in xhci_handle_cmd_stop_ep()
823 ring_doorbell_for_active_rings(xhci, slot_id, ep_index); in xhci_handle_cmd_stop_ep()
877 int slot_id, int ep_index) in xhci_kill_endpoint_urbs() argument
884 ep = &xhci->devs[slot_id]->eps[ep_index]; in xhci_kill_endpoint_urbs()
897 slot_id, ep_index, stream_id); in xhci_kill_endpoint_urbs()
906 slot_id, ep_index); in xhci_kill_endpoint_urbs()
1011 unsigned int ep_index) in update_ring_for_set_deq_completion() argument
1031 while (ep_ring->dequeue != dev->eps[ep_index].queued_deq_ptr) { in update_ring_for_set_deq_completion()
1037 dev->eps[ep_index].queued_deq_ptr) in update_ring_for_set_deq_completion()
1064 unsigned int ep_index; in xhci_handle_cmd_set_deq() local
1072 ep_index = TRB_TO_EP_INDEX(le32_to_cpu(trb->generic.field[3])); in xhci_handle_cmd_set_deq()
1075 ep = &dev->eps[ep_index]; in xhci_handle_cmd_set_deq()
1077 ep_ring = xhci_stream_id_to_ring(dev, ep_index, stream_id); in xhci_handle_cmd_set_deq()
1085 ep_ctx = xhci_get_ep_ctx(xhci, dev->out_ctx, ep_index); in xhci_handle_cmd_set_deq()
1140 ep_ring, ep_index); in xhci_handle_cmd_set_deq()
1149 dev->eps[ep_index].ep_state &= ~SET_DEQ_PENDING; in xhci_handle_cmd_set_deq()
1150 dev->eps[ep_index].queued_deq_seg = NULL; in xhci_handle_cmd_set_deq()
1151 dev->eps[ep_index].queued_deq_ptr = NULL; in xhci_handle_cmd_set_deq()
1153 ring_doorbell_for_active_rings(xhci, slot_id, ep_index); in xhci_handle_cmd_set_deq()
1161 unsigned int ep_index; in xhci_handle_cmd_reset_ep() local
1163 ep_index = TRB_TO_EP_INDEX(le32_to_cpu(trb->generic.field[3])); in xhci_handle_cmd_reset_ep()
1165 ep_ctx = xhci_get_ep_ctx(xhci, vdev->out_ctx, ep_index); in xhci_handle_cmd_reset_ep()
1193 xhci->devs[slot_id]->eps[ep_index].ep_state &= ~EP_HALTED; in xhci_handle_cmd_reset_ep()
1198 ring_doorbell_for_active_rings(xhci, slot_id, ep_index); in xhci_handle_cmd_reset_ep()
1234 unsigned int ep_index; in xhci_handle_cmd_config_ep() local
1256 ep_index = xhci_last_valid_endpoint(add_flags) - 1; in xhci_handle_cmd_config_ep()
1258 ep_ctx = xhci_get_ep_ctx(xhci, virt_dev->out_ctx, ep_index); in xhci_handle_cmd_config_ep()
1268 ep_index != (unsigned int) -1 && in xhci_handle_cmd_config_ep()
1270 ep_state = virt_dev->eps[ep_index].ep_state; in xhci_handle_cmd_config_ep()
1276 ep_index, ep_state); in xhci_handle_cmd_config_ep()
1278 virt_dev->eps[ep_index].ep_state &= ~EP_HALTED; in xhci_handle_cmd_config_ep()
1279 ring_doorbell_for_active_rings(xhci, slot_id, ep_index); in xhci_handle_cmd_config_ep()
1853 unsigned int slot_id, unsigned int ep_index, in xhci_cleanup_halted_endpoint() argument
1857 struct xhci_virt_ep *ep = &xhci->devs[slot_id]->eps[ep_index]; in xhci_cleanup_halted_endpoint()
1873 xhci_queue_reset_ep(xhci, command, slot_id, ep_index, reset_type); in xhci_cleanup_halted_endpoint()
1877 xhci_cleanup_stalled_ring(xhci, slot_id, ep_index, stream_id, in xhci_cleanup_halted_endpoint()
1978 int ep_index; in finish_td() local
1982 ep_index = TRB_TO_EP_ID(le32_to_cpu(event->flags)) - 1; in finish_td()
1984 ep_ctx = xhci_get_ep_ctx(xhci, xdev->out_ctx, ep_index); in finish_td()
2009 if ((ep_index != 0) || (trb_comp_code != COMP_STALL_ERROR)) in finish_td()
2011 xhci_cleanup_halted_endpoint(xhci, slot_id, ep_index, in finish_td()
2047 int ep_index; in process_ctrl_td() local
2056 ep_index = TRB_TO_EP_ID(le32_to_cpu(event->flags)) - 1; in process_ctrl_td()
2057 ep_ctx = xhci_get_ep_ctx(xhci, xdev->out_ctx, ep_index); in process_ctrl_td()
2105 trb_comp_code, ep_index); in process_ctrl_td()
2267 int ep_index; in process_bulk_intr_td() local
2271 ep_index = TRB_TO_EP_ID(le32_to_cpu(event->flags)) - 1; in process_bulk_intr_td()
2309 xhci_cleanup_halted_endpoint(xhci, slot_id, ep_index, in process_bulk_intr_td()
2344 int ep_index; in handle_tx_event() local
2357 ep_index = TRB_TO_EP_ID(le32_to_cpu(event->flags)) - 1; in handle_tx_event()
2368 ep = &xdev->eps[ep_index]; in handle_tx_event()
2370 ep_ctx = xhci_get_ep_ctx(xhci, xdev->out_ctx, ep_index); in handle_tx_event()
2375 slot_id, ep_index); in handle_tx_event()
2386 xhci_cleanup_halted_endpoint(xhci, slot_id, ep_index, 0, in handle_tx_event()
2395 slot_id, ep_index); in handle_tx_event()
2420 slot_id, ep_index); in handle_tx_event()
2426 slot_id, ep_index); in handle_tx_event()
2431 slot_id, ep_index); in handle_tx_event()
2436 slot_id, ep_index); in handle_tx_event()
2441 ep_index); in handle_tx_event()
2447 slot_id, ep_index); in handle_tx_event()
2452 slot_id, ep_index); in handle_tx_event()
2457 slot_id, ep_index); in handle_tx_event()
2464 slot_id, ep_index); in handle_tx_event()
2471 slot_id, ep_index); in handle_tx_event()
2477 slot_id, ep_index); in handle_tx_event()
2482 slot_id, ep_index); in handle_tx_event()
2495 ep_index); in handle_tx_event()
2503 ep_index); in handle_tx_event()
2515 slot_id, ep_index); in handle_tx_event()
2521 slot_id, ep_index); in handle_tx_event()
2528 slot_id, ep_index); in handle_tx_event()
2538 trb_comp_code, slot_id, ep_index); in handle_tx_event()
2560 ep_index); in handle_tx_event()
2565 slot_id, ep_index); in handle_tx_event()
2571 ep_index, in handle_tx_event()
2583 slot_id, ep_index); in handle_tx_event()
2625 "comp_code %u\n", ep_index, in handle_tx_event()
2644 slot_id, ep_index); in handle_tx_event()
2666 ep_index, in handle_tx_event()
3024 unsigned int ep_index, in prepare_transfer() argument
3035 struct xhci_ep_ctx *ep_ctx = xhci_get_ep_ctx(xhci, xdev->out_ctx, ep_index); in prepare_transfer()
3037 ep_ring = xhci_stream_id_to_ring(xdev, ep_index, stream_id); in prepare_transfer()
3129 unsigned int ep_index, unsigned int stream_id, int start_cycle, in giveback_first_trb() argument
3141 xhci_ring_ep_doorbell(xhci, slot_id, ep_index, stream_id); in giveback_first_trb()
3181 struct urb *urb, int slot_id, unsigned int ep_index) in xhci_queue_intr_tx() argument
3185 ep_ctx = xhci_get_ep_ctx(xhci, xhci->devs[slot_id]->out_ctx, ep_index); in xhci_queue_intr_tx()
3188 return xhci_queue_bulk_tx(xhci, mem_flags, urb, slot_id, ep_index); in xhci_queue_intr_tx()
3305 struct urb *urb, int slot_id, unsigned int ep_index) in xhci_queue_bulk_tx() argument
3340 ep_index, urb->stream_id, in xhci_queue_bulk_tx()
3449 ep_index, urb->stream_id, in xhci_queue_bulk_tx()
3457 giveback_first_trb(xhci, slot_id, ep_index, urb->stream_id, in xhci_queue_bulk_tx()
3464 struct urb *urb, int slot_id, unsigned int ep_index) in xhci_queue_ctrl_tx() argument
3497 ep_index, urb->stream_id, in xhci_queue_ctrl_tx()
3590 giveback_first_trb(xhci, slot_id, ep_index, 0, in xhci_queue_ctrl_tx()
3759 struct urb *urb, int slot_id, unsigned int ep_index) in xhci_queue_isoc_tx() argument
3776 xep = &xhci->devs[slot_id]->eps[ep_index]; in xhci_queue_isoc_tx()
3777 ep_ring = xhci->devs[slot_id]->eps[ep_index].ring; in xhci_queue_isoc_tx()
3812 ret = prepare_transfer(xhci, xhci->devs[slot_id], ep_index, in xhci_queue_isoc_tx()
3916 giveback_first_trb(xhci, slot_id, ep_index, urb->stream_id, in xhci_queue_isoc_tx()
3951 struct urb *urb, int slot_id, unsigned int ep_index) in xhci_queue_isoc_tx_prepare() argument
3963 xep = &xhci->devs[slot_id]->eps[ep_index]; in xhci_queue_isoc_tx_prepare()
3964 ep_ring = xdev->eps[ep_index].ring; in xhci_queue_isoc_tx_prepare()
3965 ep_ctx = xhci_get_ep_ctx(xhci, xdev->out_ctx, ep_index); in xhci_queue_isoc_tx_prepare()
4022 return xhci_queue_isoc_tx(xhci, mem_flags, urb, slot_id, ep_index); in xhci_queue_isoc_tx_prepare()
4135 int slot_id, unsigned int ep_index, int suspend) in xhci_queue_stop_endpoint() argument
4138 u32 trb_ep_index = EP_ID_FOR_TRB(ep_index); in xhci_queue_stop_endpoint()
4148 unsigned int slot_id, unsigned int ep_index, in xhci_queue_new_dequeue_state() argument
4153 u32 trb_ep_index = EP_ID_FOR_TRB(ep_index); in xhci_queue_new_dequeue_state()
4178 ep = &xhci->devs[slot_id]->eps[ep_index]; in xhci_queue_new_dequeue_state()
4212 int slot_id, unsigned int ep_index, in xhci_queue_reset_ep() argument
4216 u32 trb_ep_index = EP_ID_FOR_TRB(ep_index); in xhci_queue_reset_ep()