Lines Matching refs:enq_seg

229 	if (last_trb_on_seg(ring->enq_seg, ring->enqueue)) {  in inc_enq()
265 ring->enq_seg = ring->enq_seg->next; in inc_enq()
266 ring->enqueue = ring->enq_seg->trbs; in inc_enq()
286 struct xhci_segment *enq_seg = ring->enq_seg; in xhci_num_trbs_free() local
294 enq_seg = enq_seg->next; in xhci_num_trbs_free()
295 enq = enq_seg->trbs; in xhci_num_trbs_free()
303 if (ring->deq_seg == enq_seg && ring->dequeue >= enq) in xhci_num_trbs_free()
305 last_on_seg = &enq_seg->trbs[TRBS_PER_SEGMENT - 1]; in xhci_num_trbs_free()
307 enq_seg = enq_seg->next; in xhci_num_trbs_free()
308 enq = enq_seg->trbs; in xhci_num_trbs_free()
328 enq_used = ring->enqueue - ring->enq_seg->trbs; in xhci_ring_expansion_needed()
343 if (trb_is_link(ring->enqueue) && ring->enq_seg->next->trbs == ring->dequeue) in xhci_ring_expansion_needed()
347 seg = ring->enq_seg; in xhci_ring_expansion_needed()
3243 ep_ring->enq_seg = ep_ring->enq_seg->next; in prepare_ring()
3244 ep_ring->enqueue = ep_ring->enq_seg->trbs; in prepare_ring()
3253 if (last_trb_on_seg(ep_ring->enq_seg, ep_ring->enqueue)) { in prepare_ring()
3304 td->start_seg = ep_ring->enq_seg; in prepare_transfer()
3633 ring->enq_seg)) { in xhci_queue_bulk_tx()
3634 send_addr = ring->enq_seg->bounce_dma; in xhci_queue_bulk_tx()
3636 td->bounce_seg = ring->enq_seg; in xhci_queue_bulk_tx()
3645 td->last_trb_seg = ring->enq_seg; in xhci_queue_bulk_tx()
3694 urb_priv->td[1].last_trb_seg = ring->enq_seg; in xhci_queue_bulk_tx()
3819 td->last_trb_seg = ep_ring->enq_seg; in xhci_queue_ctrl_tx()
4105 td->last_trb_seg = ep_ring->enq_seg; in xhci_queue_isoc_tx()
4179 ep_ring->enq_seg = urb_priv->td[0].start_seg; in xhci_queue_isoc_tx()