Lines Matching refs:mem_ranges
55 static int get_exclude_memory_ranges(struct crash_mem **mem_ranges) in get_exclude_memory_ranges() argument
59 ret = add_tce_mem_ranges(mem_ranges); in get_exclude_memory_ranges()
63 ret = add_initrd_mem_range(mem_ranges); in get_exclude_memory_ranges()
67 ret = add_htab_mem_range(mem_ranges); in get_exclude_memory_ranges()
71 ret = add_kernel_mem_range(mem_ranges); in get_exclude_memory_ranges()
75 ret = add_rtas_mem_range(mem_ranges); in get_exclude_memory_ranges()
79 ret = add_opal_mem_range(mem_ranges); in get_exclude_memory_ranges()
83 ret = add_reserved_mem_ranges(mem_ranges); in get_exclude_memory_ranges()
88 sort_memory_ranges(*mem_ranges, true); in get_exclude_memory_ranges()
103 static int get_usable_memory_ranges(struct crash_mem **mem_ranges) in get_usable_memory_ranges() argument
114 ret = add_mem_range(mem_ranges, 0, crashk_res.end + 1); in get_usable_memory_ranges()
118 ret = add_rtas_mem_range(mem_ranges); in get_usable_memory_ranges()
122 ret = add_opal_mem_range(mem_ranges); in get_usable_memory_ranges()
126 ret = add_tce_mem_ranges(mem_ranges); in get_usable_memory_ranges()
141 static int get_crash_memory_ranges(struct crash_mem **mem_ranges) in get_crash_memory_ranges() argument
160 ret = add_mem_range(mem_ranges, base, size); in get_crash_memory_ranges()
165 if ((*mem_ranges)->nr_ranges == (*mem_ranges)->max_nr_ranges) in get_crash_memory_ranges()
166 sort_memory_ranges(*mem_ranges, true); in get_crash_memory_ranges()
170 tmem = *mem_ranges; in get_crash_memory_ranges()
172 tmem = realloc_mem_ranges(mem_ranges); in get_crash_memory_ranges()
188 ret = add_rtas_mem_range(mem_ranges); in get_crash_memory_ranges()
192 ret = add_opal_mem_range(mem_ranges); in get_crash_memory_ranges()
197 ret = add_mem_range(mem_ranges, BACKUP_SRC_START, BACKUP_SRC_SIZE); in get_crash_memory_ranges()
201 sort_memory_ranges(*mem_ranges, false); in get_crash_memory_ranges()
217 static int get_reserved_memory_ranges(struct crash_mem **mem_ranges) in get_reserved_memory_ranges() argument
221 ret = add_rtas_mem_range(mem_ranges); in get_reserved_memory_ranges()
225 ret = add_tce_mem_ranges(mem_ranges); in get_reserved_memory_ranges()
229 ret = add_reserved_mem_ranges(mem_ranges); in get_reserved_memory_ranges()