Lines Matching refs:nr_range
11 int add_range(struct range *range, int az, int nr_range, u64 start, u64 end) in add_range() argument
14 return nr_range; in add_range()
17 if (nr_range >= az) in add_range()
18 return nr_range; in add_range()
20 range[nr_range].start = start; in add_range()
21 range[nr_range].end = end; in add_range()
23 nr_range++; in add_range()
25 return nr_range; in add_range()
28 int add_range_with_merge(struct range *range, int az, int nr_range, in add_range_with_merge() argument
34 return nr_range; in add_range_with_merge()
37 for (i = 0; i < nr_range; i++) { in add_range_with_merge()
53 (nr_range - (i + 1)) * sizeof(range[i])); in add_range_with_merge()
54 range[nr_range - 1].start = 0; in add_range_with_merge()
55 range[nr_range - 1].end = 0; in add_range_with_merge()
56 nr_range--; in add_range_with_merge()
61 return add_range(range, az, nr_range, start, end); in add_range_with_merge()
127 int i, j, k = az - 1, nr_range = az; in clean_sort_range() local
149 nr_range = i; in clean_sort_range()
155 sort(range, nr_range, sizeof(struct range), cmp_range, NULL); in clean_sort_range()
157 return nr_range; in clean_sort_range()
160 void sort_range(struct range *range, int nr_range) in sort_range() argument
163 sort(range, nr_range, sizeof(struct range), cmp_range, NULL); in sort_range()