Searched refs:new_segs (Results 1 – 1 of 1) sorted by relevance
322 int new_segs; in xhci_ring_expansion_needed() local336 new_segs = 1 + (trbs_past_seg / (TRBS_PER_SEGMENT - 1)); in xhci_ring_expansion_needed()339 while (new_segs > 0) { in xhci_ring_expansion_needed()343 new_segs); in xhci_ring_expansion_needed()346 return new_segs; in xhci_ring_expansion_needed()348 new_segs--; in xhci_ring_expansion_needed()3169 unsigned int new_segs = 0; in prepare_ring() local3201 new_segs = xhci_ring_expansion_needed(xhci, ep_ring, num_trbs); in prepare_ring()3207 if (new_segs) { in prepare_ring()3210 if (xhci_ring_expansion(xhci, ep_ring, new_segs, mem_flags)) { in prepare_ring()