Lines Matching refs:num_segs
131 unsigned int num_segs) in xhci_link_rings() argument
141 ring->num_segs += num_segs; in xhci_link_rings()
142 ring->num_trbs_free += (TRBS_PER_SEGMENT - 1) * num_segs; in xhci_link_rings()
314 ring->num_trbs_free = ring->num_segs * (TRBS_PER_SEGMENT - 1) - 1; in xhci_initialize_ring_info()
320 unsigned int num_segs, unsigned int cycle_state, in xhci_alloc_segments_for_ring() argument
328 num_segs--; in xhci_alloc_segments_for_ring()
331 while (num_segs > 0) { in xhci_alloc_segments_for_ring()
347 num_segs--; in xhci_alloc_segments_for_ring()
363 unsigned int num_segs, unsigned int cycle_state, in xhci_ring_alloc() argument
374 ring->num_segs = num_segs; in xhci_ring_alloc()
378 if (num_segs == 0) in xhci_ring_alloc()
382 &ring->last_seg, num_segs, cycle_state, type, in xhci_ring_alloc()
419 unsigned int num_segs; in xhci_ring_expansion() local
427 num_segs = ring->num_segs > num_segs_needed ? in xhci_ring_expansion()
428 ring->num_segs : num_segs_needed; in xhci_ring_expansion()
431 num_segs, ring->cycle_state, ring->type, in xhci_ring_expansion()
451 xhci_link_rings(xhci, ring, first, last, num_segs); in xhci_ring_expansion()
455 ring->num_segs); in xhci_ring_expansion()
1801 size = sizeof(struct xhci_erst_entry) * evt_ring->num_segs; in xhci_alloc_erst()
1807 erst->num_entries = evt_ring->num_segs; in xhci_alloc_erst()
1810 for (val = 0; val < evt_ring->num_segs; val++) { in xhci_alloc_erst()