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()
609 new_deq = ep_ring->dequeue; in xhci_move_dequeue_past_td()
655 if (new_deq == ep->ring->dequeue) { in xhci_move_dequeue_past_td()
1309 dequeue_temp = ep_ring->dequeue; in update_ring_for_set_deq_completion()
1317 if (trb_is_link(ep_ring->dequeue)) { in update_ring_for_set_deq_completion()
1319 ep_ring->dequeue = ep_ring->deq_seg->trbs; in update_ring_for_set_deq_completion()
1322 while (ep_ring->dequeue != dev->eps[ep_index].queued_deq_ptr) { in update_ring_for_set_deq_completion()
1325 ep_ring->dequeue++; in update_ring_for_set_deq_completion()
1326 if (trb_is_link(ep_ring->dequeue)) { in update_ring_for_set_deq_completion()
1327 if (ep_ring->dequeue == in update_ring_for_set_deq_completion()
1331 ep_ring->dequeue = ep_ring->deq_seg->trbs; in update_ring_for_set_deq_completion()
1333 if (ep_ring->dequeue == dequeue_temp) { in update_ring_for_set_deq_completion()
1716 cmd_trb = xhci->cmd_ring->dequeue; in handle_cmd_completion()
1744 if (cmd->command_trb != xhci->cmd_ring->dequeue) { in handle_cmd_completion()
2272 ep_ring->dequeue = td->last_trb; in finish_td()
2285 union xhci_trb *trb = ring->dequeue; in sum_trb_lengths()
2494 ep->ring->dequeue = td->last_trb; in skip_isoc_td()
2834 ep_seg = trb_in_td(xhci, ep_ring->deq_seg, ep_ring->dequeue, in handle_tx_event()
2869 ep_ring->dequeue, td->last_trb, in handle_tx_event()
2948 xhci->event_ring->dequeue), in handle_tx_event()
2970 if (!xhci->event_ring || !xhci->event_ring->dequeue) { in xhci_handle_event()
2975 event = xhci->event_ring->dequeue; in xhci_handle_event()
3045 if (event_ring_deq != xhci->event_ring->dequeue) { in xhci_update_erst_dequeue()
3047 xhci->event_ring->dequeue); in xhci_update_erst_dequeue()
3130 event_ring_deq = xhci->event_ring->dequeue; in xhci_irq()