Lines Matching refs:nr_range
10 int add_range(struct range *range, int az, int nr_range, u64 start, u64 end) in add_range() argument
13 return nr_range; in add_range()
16 if (nr_range >= az) in add_range()
17 return nr_range; in add_range()
19 range[nr_range].start = start; in add_range()
20 range[nr_range].end = end; in add_range()
22 nr_range++; in add_range()
24 return nr_range; in add_range()
27 int add_range_with_merge(struct range *range, int az, int nr_range, in add_range_with_merge() argument
33 return nr_range; in add_range_with_merge()
36 for (i = 0; i < nr_range; i++) { in add_range_with_merge()
52 (nr_range - (i + 1)) * sizeof(range[i])); in add_range_with_merge()
53 range[nr_range - 1].start = 0; in add_range_with_merge()
54 range[nr_range - 1].end = 0; in add_range_with_merge()
55 nr_range--; in add_range_with_merge()
60 return add_range(range, az, nr_range, start, end); in add_range_with_merge()
126 int i, j, k = az - 1, nr_range = az; in clean_sort_range() local
148 nr_range = i; in clean_sort_range()
154 sort(range, nr_range, sizeof(struct range), cmp_range, NULL); in clean_sort_range()
156 return nr_range; in clean_sort_range()
159 void sort_range(struct range *range, int nr_range) in sort_range() argument
162 sort(range, nr_range, sizeof(struct range), cmp_range, NULL); in sort_range()