Lines Matching refs:dequeue
152 !last_trb(xhci, ring, ring->deq_seg, ring->dequeue)) in inc_deq()
161 if (last_trb(xhci, ring, ring->deq_seg, ring->dequeue)) { in inc_deq()
164 ring->deq_seg, ring->dequeue)) { in inc_deq()
168 ring->dequeue = ring->deq_seg->trbs; in inc_deq()
170 ring->dequeue++; in inc_deq()
172 } while (last_trb(xhci, ring, ring->deq_seg, ring->dequeue)); in inc_deq()
263 num_trbs_in_deq_seg = ring->dequeue - ring->deq_seg->trbs; in room_on_ring()
475 new_deq = ep_ring->dequeue; in xhci_find_new_dequeue_state()
502 if (new_deq == ep->ring->dequeue) { in xhci_find_new_dequeue_state()
909 dequeue_temp = ep_ring->dequeue; in update_ring_for_set_deq_completion()
917 if (last_trb(xhci, ep_ring, ep_ring->deq_seg, ep_ring->dequeue)) { in update_ring_for_set_deq_completion()
919 ep_ring->dequeue = ep_ring->deq_seg->trbs; in update_ring_for_set_deq_completion()
922 while (ep_ring->dequeue != dev->eps[ep_index].queued_deq_ptr) { in update_ring_for_set_deq_completion()
925 ep_ring->dequeue++; in update_ring_for_set_deq_completion()
927 ep_ring->dequeue)) { in update_ring_for_set_deq_completion()
928 if (ep_ring->dequeue == in update_ring_for_set_deq_completion()
932 ep_ring->dequeue = ep_ring->deq_seg->trbs; in update_ring_for_set_deq_completion()
934 if (ep_ring->dequeue == dequeue_temp) { in update_ring_for_set_deq_completion()
1239 if ((xhci->cmd_ring->dequeue != xhci->cmd_ring->enqueue) && in xhci_handle_stopped_cmd_ring()
1301 cmd_trb = xhci->cmd_ring->dequeue; in handle_cmd_completion()
1317 if (cmd->command_trb != xhci->cmd_ring->dequeue) { in handle_cmd_completion()
1844 while (ep_ring->dequeue != td->last_trb) in finish_td()
1913 if (event_trb == ep_ring->dequeue) { in process_ctrl_td()
1944 if (event_trb != ep_ring->dequeue && in process_ctrl_td()
1958 if (event_trb != ep_ring->dequeue) { in process_ctrl_td()
2062 for (cur_trb = ep_ring->dequeue, in process_isoc_td()
2102 while (ep_ring->dequeue != td->last_trb) in skip_isoc_td()
2195 for (cur_trb = ep_ring->dequeue, cur_seg = ep_ring->deq_seg; in process_bulk_intr_td()
2251 xhci->event_ring->dequeue), in handle_tx_event()
2274 xhci->event_ring->dequeue), in handle_tx_event()
2433 event_seg = trb_in_td(xhci, ep_ring->deq_seg, ep_ring->dequeue, in handle_tx_event()
2470 ep_ring->dequeue, td->last_trb, in handle_tx_event()
2579 if (!xhci->event_ring || !xhci->event_ring->dequeue) { in xhci_handle_event()
2584 event = xhci->event_ring->dequeue; in xhci_handle_event()
2705 event_ring_deq = xhci->event_ring->dequeue; in xhci_irq()
2713 if (event_ring_deq != xhci->event_ring->dequeue) { in xhci_irq()
2715 xhci->event_ring->dequeue); in xhci_irq()