Lines Matching refs:nr_range
12 int add_range(struct range *range, int az, int nr_range, u64 start, u64 end) in add_range() argument
15 return nr_range; in add_range()
18 if (nr_range >= az) in add_range()
19 return nr_range; in add_range()
21 range[nr_range].start = start; in add_range()
22 range[nr_range].end = end; in add_range()
24 nr_range++; in add_range()
26 return nr_range; in add_range()
29 int add_range_with_merge(struct range *range, int az, int nr_range, in add_range_with_merge() argument
35 return nr_range; in add_range_with_merge()
38 for (i = 0; i < nr_range; i++) { in add_range_with_merge()
54 (nr_range - (i + 1)) * sizeof(range[i])); in add_range_with_merge()
55 range[nr_range - 1].start = 0; in add_range_with_merge()
56 range[nr_range - 1].end = 0; in add_range_with_merge()
57 nr_range--; in add_range_with_merge()
62 return add_range(range, az, nr_range, start, end); in add_range_with_merge()
128 int i, j, k = az - 1, nr_range = az; in clean_sort_range() local
150 nr_range = i; in clean_sort_range()
156 sort(range, nr_range, sizeof(struct range), cmp_range, NULL); in clean_sort_range()
158 return nr_range; in clean_sort_range()
161 void sort_range(struct range *range, int nr_range) in sort_range() argument
164 sort(range, nr_range, sizeof(struct range), cmp_range, NULL); in sort_range()