Lines Matching refs:ranges
87 mem_rngs->ranges[mem_rngs->nr_ranges].start = base; in __add_mem_range()
88 mem_rngs->ranges[mem_rngs->nr_ranges].end = base + size - 1; in __add_mem_range()
105 struct range *ranges; in __merge_memory_ranges() local
112 ranges = &(mem_rngs->ranges[0]); in __merge_memory_ranges()
114 if (ranges[i].start <= (ranges[i-1].end + 1)) in __merge_memory_ranges()
115 ranges[idx].end = ranges[i].end; in __merge_memory_ranges()
121 ranges[idx] = ranges[i]; in __merge_memory_ranges()
154 sort(&(mem_rngs->ranges[0]), mem_rngs->nr_ranges, in sort_memory_ranges()
155 sizeof(mem_rngs->ranges[0]), rngcmp, NULL); in sort_memory_ranges()
164 mem_rngs->ranges[i].start, in sort_memory_ranges()
165 mem_rngs->ranges[i].end); in sort_memory_ranges()
227 mstart = mem_rngs->ranges[i].start; in add_mem_range()
228 mend = mem_rngs->ranges[i].end; in add_mem_range()
231 mem_rngs->ranges[i].start = base; in add_mem_range()
233 mem_rngs->ranges[i].end = end; in add_mem_range()
652 mstart = mem_rngs->ranges[i].start; in remove_mem_range()
653 mend = mem_rngs->ranges[i].end; in remove_mem_range()
668 mem_rngs->ranges[i].start = mem_rngs->ranges[i+1].start; in remove_mem_range()
669 mem_rngs->ranges[i].end = mem_rngs->ranges[i+1].end; in remove_mem_range()
681 mem_rngs->ranges[i].start = end + 1; in remove_mem_range()
691 mem_rngs->ranges[i].end = base - 1; in remove_mem_range()
700 mem_rngs->ranges[i].end = base - 1; in remove_mem_range()
701 size = mem_rngs->ranges[i].end - end; in remove_mem_range()