Lines Matching full:ranges
17 #define pr_fmt(fmt) "kexec ranges: " fmt
27 * get_max_nr_ranges - Get the max no. of ranges crash_mem structure
31 * Returns the maximum no. of ranges.
42 * @mem_rngs: Memory ranges.
64 * __add_mem_range - add a memory range to memory ranges list.
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()
92 * __merge_memory_ranges - Merges the given memory ranges list.
101 struct crash_mem_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()
123 /* cmp_func_t callback to sort ranges with sort() */
136 * sort_memory_ranges - Sorts the given memory ranges list.
149 /* Sort the ranges in-place */ in sort_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()
157 pr_debug("Memory ranges:\n"); in sort_memory_ranges()
160 mem_rngs->ranges[i].start, in sort_memory_ranges()
161 mem_rngs->ranges[i].end); in sort_memory_ranges()
169 * @mem_ranges: Memory ranges to reallocate.
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()
238 * add_tce_mem_ranges - Adds tce-table range to the given memory ranges list.
276 * add_initrd_mem_range - Adds initrd range to the given memory ranges list,
301 * add_htab_mem_range - Adds htab range to the given memory ranges list,
318 * memory ranges list.
329 * add_rtas_mem_range - Adds RTAS region to the given memory ranges list.
354 * add_opal_mem_range - Adds OPAL region to the given memory ranges list.
379 * add_reserved_mem_ranges - Adds "/reserved-ranges" regions exported by f/w
380 * to the given memory ranges list.
381 * @mem_ranges: Range list to add the memory ranges to.
390 prop = of_get_property(of_root, "reserved-ranges", &len); in add_reserved_mem_ranges()