Lines Matching refs:ranges
83 mem_rngs->ranges[mem_rngs->nr_ranges].start = base; in __add_mem_range()
84 mem_rngs->ranges[mem_rngs->nr_ranges].end = base + size - 1; in __add_mem_range()
101 struct range *ranges; in __merge_memory_ranges() local
108 ranges = &(mem_rngs->ranges[0]); in __merge_memory_ranges()
110 if (ranges[i].start <= (ranges[i-1].end + 1)) in __merge_memory_ranges()
111 ranges[idx].end = ranges[i].end; in __merge_memory_ranges()
117 ranges[idx] = ranges[i]; in __merge_memory_ranges()
150 sort(&(mem_rngs->ranges[0]), mem_rngs->nr_ranges, in sort_memory_ranges()
151 sizeof(mem_rngs->ranges[0]), rngcmp, NULL); in sort_memory_ranges()
160 mem_rngs->ranges[i].start, in sort_memory_ranges()
161 mem_rngs->ranges[i].end); in sort_memory_ranges()
223 mstart = mem_rngs->ranges[i].start; in add_mem_range()
224 mend = mem_rngs->ranges[i].end; in add_mem_range()
227 mem_rngs->ranges[i].start = base; in add_mem_range()
229 mem_rngs->ranges[i].end = end; in add_mem_range()