Lines Matching refs:last_trb
107 static int last_trb(struct xhci_hcd *xhci, struct xhci_ring *ring, in last_trb() function
131 if (last_trb(xhci, ring, *seg, *trb)) { in next_trb()
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()
172 } while (last_trb(xhci, ring, ring->deq_seg, ring->dequeue)); in inc_deq()
201 !last_trb(xhci, ring, ring->enq_seg, ring->enqueue)) in inc_enq()
209 while (last_trb(xhci, ring, ring->enq_seg, next)) { in inc_enq()
491 if (new_deq == cur_td->last_trb) in xhci_find_new_dequeue_state()
568 cur_trb != cur_td->last_trb) in td_to_noop()
578 if (cur_trb == cur_td->last_trb) in td_to_noop()
917 if (last_trb(xhci, ep_ring, ep_ring->deq_seg, ep_ring->dequeue)) { in update_ring_for_set_deq_completion()
926 if (last_trb(xhci, ep_ring, ep_ring->deq_seg, in update_ring_for_set_deq_completion()
1844 while (ep_ring->dequeue != td->last_trb) in finish_td()
1917 } else if (event_trb != td->last_trb) { in process_ctrl_td()
1945 event_trb != td->last_trb) in process_ctrl_td()
1960 if (event_trb == td->last_trb) { in process_ctrl_td()
2046 if (event_trb != td->last_trb) in process_isoc_td()
2102 while (ep_ring->dequeue != td->last_trb) in skip_isoc_td()
2127 if (event_trb != td->last_trb || in process_bulk_intr_td()
2158 if (event_trb == td->last_trb) { in process_bulk_intr_td()
2434 td->last_trb, event_dma, false); in handle_tx_event()
2470 ep_ring->dequeue, td->last_trb, in handle_tx_event()
2823 while (last_trb(xhci, ring, ring->enq_seg, next)) { in prepare_ring()
3145 td->last_trb = ep_ring->enqueue; in queue_bulk_sg_tx()
3149 urb_priv->td[1]->last_trb = ep_ring->enqueue; in queue_bulk_sg_tx()
3321 td->last_trb = ep_ring->enqueue; in xhci_queue_bulk_tx()
3325 urb_priv->td[1]->last_trb = ep_ring->enqueue; in xhci_queue_bulk_tx()
3470 td->last_trb = ep_ring->enqueue; in xhci_queue_ctrl_tx()
3662 td->last_trb = ep_ring->enqueue; in xhci_queue_isoc_tx()
3728 urb_priv->td[0]->last_trb = ep_ring->enqueue; in xhci_queue_isoc_tx()