Lines Matching refs:end

12 int add_range(struct range *range, int az, int nr_range, u64 start, u64 end)  in add_range()  argument
14 if (start >= end) in add_range()
22 range[nr_range].end = end; in add_range()
30 u64 start, u64 end) in add_range_with_merge() argument
34 if (start >= end) in add_range_with_merge()
41 if (!range[i].end) in add_range_with_merge()
45 common_end = min(range[i].end, end); in add_range_with_merge()
51 end = max(range[i].end, end); in add_range_with_merge()
56 range[nr_range - 1].end = 0; in add_range_with_merge()
62 return add_range(range, az, nr_range, start, end); in add_range_with_merge()
65 void subtract_range(struct range *range, int az, u64 start, u64 end) in subtract_range() argument
69 if (start >= end) in subtract_range()
73 if (!range[j].end) in subtract_range()
76 if (start <= range[j].start && end >= range[j].end) { in subtract_range()
78 range[j].end = 0; in subtract_range()
82 if (start <= range[j].start && end < range[j].end && in subtract_range()
83 range[j].start < end) { in subtract_range()
84 range[j].start = end; in subtract_range()
89 if (start > range[j].start && end >= range[j].end && in subtract_range()
90 range[j].end > start) { in subtract_range()
91 range[j].end = start; in subtract_range()
95 if (start > range[j].start && end < range[j].end) { in subtract_range()
98 if (range[i].end == 0) in subtract_range()
102 range[i].end = range[j].end; in subtract_range()
103 range[i].start = end; in subtract_range()
108 range[j].end = start; in subtract_range()
131 if (range[i].end) in clean_sort_range()
134 if (range[j].end) { in clean_sort_range()
142 range[i].end = range[k].end; in clean_sort_range()
144 range[k].end = 0; in clean_sort_range()
149 if (!range[i].end) { in clean_sort_range()