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()
1847 while (ep_ring->dequeue != td->last_trb) in finish_td()
1920 } else if (event_trb != td->last_trb) { in process_ctrl_td()
1935 if (event_trb == ep_ring->dequeue || event_trb == td->last_trb) in process_ctrl_td()
1944 if (event_trb != ep_ring->dequeue && event_trb != td->last_trb) in process_ctrl_td()
1962 event_trb != td->last_trb) in process_ctrl_td()
1977 if (event_trb == td->last_trb) { in process_ctrl_td()
2065 if (event_trb != td->last_trb) in process_isoc_td()
2125 while (ep_ring->dequeue != td->last_trb) in skip_isoc_td()
2150 if (event_trb != td->last_trb || in process_bulk_intr_td()
2194 } else if (event_trb == td->last_trb) { in process_bulk_intr_td()
2473 td->last_trb, event_dma, false); in handle_tx_event()
2509 ep_ring->dequeue, td->last_trb, in handle_tx_event()
2862 while (last_trb(xhci, ring, ring->enq_seg, next)) { in prepare_ring()
3184 td->last_trb = ep_ring->enqueue; in queue_bulk_sg_tx()
3188 urb_priv->td[1]->last_trb = ep_ring->enqueue; in queue_bulk_sg_tx()
3360 td->last_trb = ep_ring->enqueue; in xhci_queue_bulk_tx()
3364 urb_priv->td[1]->last_trb = ep_ring->enqueue; in xhci_queue_bulk_tx()
3509 td->last_trb = ep_ring->enqueue; in xhci_queue_ctrl_tx()
3807 td->last_trb = ep_ring->enqueue; in xhci_queue_isoc_tx()
3877 urb_priv->td[0]->last_trb = ep_ring->enqueue; in xhci_queue_isoc_tx()