Lines Matching refs:num_segs
140 unsigned int num_segs) in cdnsp_link_rings() argument
150 ring->num_segs += num_segs; in cdnsp_link_rings()
151 ring->num_trbs_free += (TRBS_PER_SEGMENT - 1) * num_segs; in cdnsp_link_rings()
318 ring->num_trbs_free = ring->num_segs * (TRBS_PER_SEGMENT - 1) - 1; in cdnsp_initialize_ring_info()
325 unsigned int num_segs, in cdnsp_alloc_segments_for_ring() argument
338 num_segs--; in cdnsp_alloc_segments_for_ring()
342 while (num_segs > 0) { in cdnsp_alloc_segments_for_ring()
355 num_segs--; in cdnsp_alloc_segments_for_ring()
371 unsigned int num_segs, in cdnsp_ring_alloc() argument
383 ring->num_segs = num_segs; in cdnsp_ring_alloc()
388 if (num_segs == 0) in cdnsp_ring_alloc()
392 &ring->last_seg, num_segs, in cdnsp_ring_alloc()
429 unsigned int num_segs; in cdnsp_ring_expansion() local
436 num_segs = max(ring->num_segs, num_segs_needed); in cdnsp_ring_expansion()
438 ret = cdnsp_alloc_segments_for_ring(pdev, &first, &last, num_segs, in cdnsp_ring_expansion()
455 cdnsp_link_rings(pdev, ring, first, last, num_segs); in cdnsp_ring_expansion()
1034 size = sizeof(struct cdnsp_erst_entry) * evt_ring->num_segs; in cdnsp_alloc_erst()
1040 erst->num_entries = evt_ring->num_segs; in cdnsp_alloc_erst()
1043 for (val = 0; val < evt_ring->num_segs; val++) { in cdnsp_alloc_erst()