Lines Matching refs:num_segs
129 unsigned int num_segs) in xhci_link_rings() argument
145 ring->num_segs += num_segs; in xhci_link_rings()
317 ring->num_trbs_free = ring->num_segs * (TRBS_PER_SEGMENT - 1) - 1; in xhci_initialize_ring_info()
323 unsigned int num_segs, unsigned int cycle_state, in xhci_alloc_segments_for_ring() argument
337 num_segs--; in xhci_alloc_segments_for_ring()
340 while (num_segs > 0) { in xhci_alloc_segments_for_ring()
356 num_segs--; in xhci_alloc_segments_for_ring()
372 unsigned int num_segs, unsigned int cycle_state, in xhci_ring_alloc() argument
383 ring->num_segs = num_segs; in xhci_ring_alloc()
387 if (num_segs == 0) in xhci_ring_alloc()
391 &ring->last_seg, num_segs, cycle_state, type, in xhci_ring_alloc()
455 ring->num_segs); in xhci_ring_expansion()
1779 size = size_mul(sizeof(struct xhci_erst_entry), evt_ring->num_segs); in xhci_alloc_erst()
1785 erst->num_entries = evt_ring->num_segs; in xhci_alloc_erst()
1788 for (val = 0; val < evt_ring->num_segs; val++) { in xhci_alloc_erst()