Lines Matching refs:dequeue
164 if (!last_trb_on_seg(ring->deq_seg, ring->dequeue)) { in inc_deq()
165 ring->dequeue++; in inc_deq()
168 if (last_trb_on_ring(ring, ring->deq_seg, ring->dequeue)) in inc_deq()
171 ring->dequeue = ring->deq_seg->trbs; in inc_deq()
176 if (!trb_is_link(ring->dequeue)) { in inc_deq()
177 if (last_trb_on_seg(ring->deq_seg, ring->dequeue)) { in inc_deq()
180 ring->dequeue++; in inc_deq()
185 while (trb_is_link(ring->dequeue)) { in inc_deq()
187 ring->dequeue = ring->deq_seg->trbs; in inc_deq()
292 num_trbs_in_deq_seg = ring->dequeue - ring->deq_seg->trbs; in room_on_ring()
358 if ((xhci->cmd_ring->dequeue != xhci->cmd_ring->enqueue) && in xhci_handle_stopped_cmd_ring()
370 union xhci_trb *new_deq = xhci->cmd_ring->dequeue; in xhci_abort_cmd_ring()
616 new_deq = ep_ring->dequeue; in xhci_move_dequeue_past_td()
662 if (new_deq == ep->ring->dequeue) { in xhci_move_dequeue_past_td()
1316 dequeue_temp = ep_ring->dequeue; in update_ring_for_set_deq_completion()
1324 if (trb_is_link(ep_ring->dequeue)) { in update_ring_for_set_deq_completion()
1326 ep_ring->dequeue = ep_ring->deq_seg->trbs; in update_ring_for_set_deq_completion()
1329 while (ep_ring->dequeue != dev->eps[ep_index].queued_deq_ptr) { in update_ring_for_set_deq_completion()
1332 ep_ring->dequeue++; in update_ring_for_set_deq_completion()
1333 if (trb_is_link(ep_ring->dequeue)) { in update_ring_for_set_deq_completion()
1334 if (ep_ring->dequeue == in update_ring_for_set_deq_completion()
1338 ep_ring->dequeue = ep_ring->deq_seg->trbs; in update_ring_for_set_deq_completion()
1340 if (ep_ring->dequeue == dequeue_temp) { in update_ring_for_set_deq_completion()
1722 cmd_trb = xhci->cmd_ring->dequeue; in handle_cmd_completion()
1750 if (cmd->command_trb != xhci->cmd_ring->dequeue) { in handle_cmd_completion()
2278 ep_ring->dequeue = td->last_trb; in finish_td()
2291 union xhci_trb *trb = ring->dequeue; in sum_trb_lengths()
2500 ep->ring->dequeue = td->last_trb; in skip_isoc_td()
2840 ep_seg = trb_in_td(xhci, ep_ring->deq_seg, ep_ring->dequeue, in handle_tx_event()
2875 ep_ring->dequeue, td->last_trb, in handle_tx_event()
2954 xhci->event_ring->dequeue), in handle_tx_event()
2976 if (!xhci->event_ring || !xhci->event_ring->dequeue) { in xhci_handle_event()
2981 event = xhci->event_ring->dequeue; in xhci_handle_event()
3051 if (event_ring_deq != xhci->event_ring->dequeue) { in xhci_update_erst_dequeue()
3053 xhci->event_ring->dequeue); in xhci_update_erst_dequeue()
3136 event_ring_deq = xhci->event_ring->dequeue; in xhci_irq()