Searched refs:num_segs_needed (Results 1 – 2 of 2) sorted by relevance
426 unsigned int num_segs_needed; in cdnsp_ring_expansion() local432 num_segs_needed = (num_trbs + (TRBS_PER_SEGMENT - 1) - 1) / in cdnsp_ring_expansion()436 num_segs = max(ring->num_segs, num_segs_needed); in cdnsp_ring_expansion()
431 unsigned int num_segs_needed; in xhci_ring_expansion() local434 num_segs_needed = (num_trbs + (TRBS_PER_SEGMENT - 1) - 1) / in xhci_ring_expansion()438 num_segs = ring->num_segs > num_segs_needed ? in xhci_ring_expansion()439 ring->num_segs : num_segs_needed; in xhci_ring_expansion()