Lines Matching refs:ep_index

327 		unsigned int ep_index,  in xhci_ring_ep_doorbell()  argument
331 struct xhci_virt_ep *ep = &xhci->devs[slot_id]->eps[ep_index]; in xhci_ring_ep_doorbell()
343 writel(DB_VALUE(ep_index, stream_id), db_addr); in xhci_ring_ep_doorbell()
352 unsigned int ep_index) in ring_doorbell_for_active_rings() argument
357 ep = &xhci->devs[slot_id]->eps[ep_index]; in ring_doorbell_for_active_rings()
362 xhci_ring_ep_doorbell(xhci, slot_id, ep_index, 0); in ring_doorbell_for_active_rings()
370 xhci_ring_ep_doorbell(xhci, slot_id, ep_index, in ring_doorbell_for_active_rings()
376 unsigned int slot_id, unsigned int ep_index, in xhci_triad_to_transfer_ring() argument
381 ep = &xhci->devs[slot_id]->eps[ep_index]; in xhci_triad_to_transfer_ring()
390 slot_id, ep_index); in xhci_triad_to_transfer_ring()
401 slot_id, ep_index, in xhci_triad_to_transfer_ring()
437 unsigned int slot_id, unsigned int ep_index, in xhci_find_new_dequeue_state() argument
442 struct xhci_virt_ep *ep = &dev->eps[ep_index]; in xhci_find_new_dequeue_state()
452 ep_index, stream_id); in xhci_find_new_dequeue_state()
470 = xhci_get_ep_ctx(xhci, dev->out_ctx, ep_index); in xhci_find_new_dequeue_state()
639 unsigned int ep_index; in xhci_handle_cmd_stop_ep() local
657 ep_index = TRB_TO_EP_INDEX(le32_to_cpu(trb->generic.field[3])); in xhci_handle_cmd_stop_ep()
658 ep = &xhci->devs[slot_id]->eps[ep_index]; in xhci_handle_cmd_stop_ep()
663 ring_doorbell_for_active_rings(xhci, slot_id, ep_index); in xhci_handle_cmd_stop_ep()
702 xhci_find_new_dequeue_state(xhci, slot_id, ep_index, in xhci_handle_cmd_stop_ep()
720 xhci_queue_new_dequeue_state(xhci, slot_id, ep_index, in xhci_handle_cmd_stop_ep()
725 ring_doorbell_for_active_rings(xhci, slot_id, ep_index); in xhci_handle_cmd_stop_ep()
772 int slot_id, int ep_index) in xhci_kill_endpoint_urbs() argument
778 ep = &xhci->devs[slot_id]->eps[ep_index]; in xhci_kill_endpoint_urbs()
787 slot_id, ep_index, stream_id + 1); in xhci_kill_endpoint_urbs()
797 slot_id, ep_index); in xhci_kill_endpoint_urbs()
902 unsigned int ep_index) in update_ring_for_set_deq_completion() argument
922 while (ep_ring->dequeue != dev->eps[ep_index].queued_deq_ptr) { in update_ring_for_set_deq_completion()
929 dev->eps[ep_index].queued_deq_ptr) in update_ring_for_set_deq_completion()
956 unsigned int ep_index; in xhci_handle_cmd_set_deq() local
964 ep_index = TRB_TO_EP_INDEX(le32_to_cpu(trb->generic.field[3])); in xhci_handle_cmd_set_deq()
967 ep = &dev->eps[ep_index]; in xhci_handle_cmd_set_deq()
969 ep_ring = xhci_stream_id_to_ring(dev, ep_index, stream_id); in xhci_handle_cmd_set_deq()
977 ep_ctx = xhci_get_ep_ctx(xhci, dev->out_ctx, ep_index); in xhci_handle_cmd_set_deq()
1031 ep_ring, ep_index); in xhci_handle_cmd_set_deq()
1040 dev->eps[ep_index].ep_state &= ~SET_DEQ_PENDING; in xhci_handle_cmd_set_deq()
1041 dev->eps[ep_index].queued_deq_seg = NULL; in xhci_handle_cmd_set_deq()
1042 dev->eps[ep_index].queued_deq_ptr = NULL; in xhci_handle_cmd_set_deq()
1044 ring_doorbell_for_active_rings(xhci, slot_id, ep_index); in xhci_handle_cmd_set_deq()
1050 unsigned int ep_index; in xhci_handle_cmd_reset_ep() local
1052 ep_index = TRB_TO_EP_INDEX(le32_to_cpu(trb->generic.field[3])); in xhci_handle_cmd_reset_ep()
1078 xhci->devs[slot_id]->eps[ep_index].ep_state &= ~EP_HALTED; in xhci_handle_cmd_reset_ep()
1109 unsigned int ep_index; in xhci_handle_cmd_config_ep() local
1131 ep_index = xhci_last_valid_endpoint(add_flags) - 1; in xhci_handle_cmd_config_ep()
1140 ep_index != (unsigned int) -1 && in xhci_handle_cmd_config_ep()
1142 ep_state = virt_dev->eps[ep_index].ep_state; in xhci_handle_cmd_config_ep()
1148 ep_index, ep_state); in xhci_handle_cmd_config_ep()
1150 virt_dev->eps[ep_index].ep_state &= ~EP_HALTED; in xhci_handle_cmd_config_ep()
1151 ring_doorbell_for_active_rings(xhci, slot_id, ep_index); in xhci_handle_cmd_config_ep()
1735 unsigned int slot_id, unsigned int ep_index, in xhci_cleanup_halted_endpoint() argument
1739 struct xhci_virt_ep *ep = &xhci->devs[slot_id]->eps[ep_index]; in xhci_cleanup_halted_endpoint()
1748 xhci_queue_reset_ep(xhci, command, slot_id, ep_index); in xhci_cleanup_halted_endpoint()
1749 xhci_cleanup_stalled_ring(xhci, ep_index, td); in xhci_cleanup_halted_endpoint()
1808 int ep_index; in finish_td() local
1817 ep_index = TRB_TO_EP_ID(le32_to_cpu(event->flags)) - 1; in finish_td()
1819 ep_ctx = xhci_get_ep_ctx(xhci, xdev->out_ctx, ep_index); in finish_td()
1843 xhci_cleanup_halted_endpoint(xhci, slot_id, ep_index, in finish_td()
1903 int ep_index; in process_ctrl_td() local
1909 ep_index = TRB_TO_EP_ID(le32_to_cpu(event->flags)) - 1; in process_ctrl_td()
1911 ep_ctx = xhci_get_ep_ctx(xhci, xdev->out_ctx, ep_index); in process_ctrl_td()
1957 trb_comp_code, ep_index); in process_ctrl_td()
2265 int ep_index; in handle_tx_event() local
2298 ep_index = TRB_TO_EP_ID(le32_to_cpu(event->flags)) - 1; in handle_tx_event()
2299 ep = &xdev->eps[ep_index]; in handle_tx_event()
2301 ep_ctx = xhci_get_ep_ctx(xhci, xdev->out_ctx, ep_index); in handle_tx_event()
2391 ep_index); in handle_tx_event()
2399 ep_index); in handle_tx_event()
2443 ep_index); in handle_tx_event()
2506 "comp_code %u\n", ep_index, in handle_tx_event()
2891 unsigned int ep_index, in prepare_transfer() argument
2902 struct xhci_ep_ctx *ep_ctx = xhci_get_ep_ctx(xhci, xdev->out_ctx, ep_index); in prepare_transfer()
2904 ep_ring = xhci_stream_id_to_ring(xdev, ep_index, stream_id); in prepare_transfer()
2990 unsigned int ep_index, unsigned int stream_id, int start_cycle, in giveback_first_trb() argument
3002 xhci_ring_ep_doorbell(xhci, slot_id, ep_index, stream_id); in giveback_first_trb()
3012 struct urb *urb, int slot_id, unsigned int ep_index) in xhci_queue_intr_tx() argument
3015 xhci->devs[slot_id]->out_ctx, ep_index); in xhci_queue_intr_tx()
3039 return xhci_queue_bulk_tx(xhci, mem_flags, urb, slot_id, ep_index); in xhci_queue_intr_tx()
3085 struct urb *urb, int slot_id, unsigned int ep_index) in queue_bulk_sg_tx() argument
3114 ep_index, urb->stream_id, in queue_bulk_sg_tx()
3128 ep_index, urb->stream_id, in queue_bulk_sg_tx()
3249 giveback_first_trb(xhci, slot_id, ep_index, urb->stream_id, in queue_bulk_sg_tx()
3256 struct urb *urb, int slot_id, unsigned int ep_index) in xhci_queue_bulk_tx() argument
3275 return queue_bulk_sg_tx(xhci, mem_flags, urb, slot_id, ep_index); in xhci_queue_bulk_tx()
3299 ep_index, urb->stream_id, in xhci_queue_bulk_tx()
3313 ep_index, urb->stream_id, in xhci_queue_bulk_tx()
3401 giveback_first_trb(xhci, slot_id, ep_index, urb->stream_id, in xhci_queue_bulk_tx()
3408 struct urb *urb, int slot_id, unsigned int ep_index) in xhci_queue_ctrl_tx() argument
3441 ep_index, urb->stream_id, in xhci_queue_ctrl_tx()
3524 giveback_first_trb(xhci, slot_id, ep_index, 0, in xhci_queue_ctrl_tx()
3696 struct urb *urb, int slot_id, unsigned int ep_index) in xhci_queue_isoc_tx() argument
3712 xep = &xhci->devs[slot_id]->eps[ep_index]; in xhci_queue_isoc_tx()
3713 ep_ring = xhci->devs[slot_id]->eps[ep_index].ring; in xhci_queue_isoc_tx()
3750 ret = prepare_transfer(xhci, xhci->devs[slot_id], ep_index, in xhci_queue_isoc_tx()
3863 giveback_first_trb(xhci, slot_id, ep_index, urb->stream_id, in xhci_queue_isoc_tx()
3898 struct urb *urb, int slot_id, unsigned int ep_index) in xhci_queue_isoc_tx_prepare() argument
3912 xep = &xhci->devs[slot_id]->eps[ep_index]; in xhci_queue_isoc_tx_prepare()
3913 ep_ring = xdev->eps[ep_index].ring; in xhci_queue_isoc_tx_prepare()
3914 ep_ctx = xhci_get_ep_ctx(xhci, xdev->out_ctx, ep_index); in xhci_queue_isoc_tx_prepare()
3991 return xhci_queue_isoc_tx(xhci, mem_flags, urb, slot_id, ep_index); in xhci_queue_isoc_tx_prepare()
4104 int slot_id, unsigned int ep_index, int suspend) in xhci_queue_stop_endpoint() argument
4107 u32 trb_ep_index = EP_ID_FOR_TRB(ep_index); in xhci_queue_stop_endpoint()
4117 unsigned int slot_id, unsigned int ep_index, in xhci_queue_new_dequeue_state() argument
4123 u32 trb_ep_index = EP_ID_FOR_TRB(ep_index); in xhci_queue_new_dequeue_state()
4148 ep = &xhci->devs[slot_id]->eps[ep_index]; in xhci_queue_new_dequeue_state()
4184 int slot_id, unsigned int ep_index) in xhci_queue_reset_ep() argument
4187 u32 trb_ep_index = EP_ID_FOR_TRB(ep_index); in xhci_queue_reset_ep()