Lines Matching refs:prev
215 static void xhci_link_segments(struct xhci_segment *prev, in xhci_link_segments() argument
221 if (!prev || !next) in xhci_link_segments()
223 prev->next = next; in xhci_link_segments()
226 prev->trbs[TRBS_PER_SEGMENT-1].link.segment_ptr = val_64; in xhci_link_segments()
232 val = le32_to_cpu(prev->trbs[TRBS_PER_SEGMENT-1].link.control); in xhci_link_segments()
236 prev->trbs[TRBS_PER_SEGMENT-1].link.control = cpu_to_le32(val); in xhci_link_segments()
306 struct xhci_segment *prev; in xhci_ring_alloc() local
319 prev = ring->first_seg; in xhci_ring_alloc()
326 xhci_link_segments(prev, next, link_trbs); in xhci_ring_alloc()
328 prev = next; in xhci_ring_alloc()
331 xhci_link_segments(prev, ring->first_seg, link_trbs); in xhci_ring_alloc()
334 prev->trbs[TRBS_PER_SEGMENT-1].link.control |= in xhci_ring_alloc()