Lines Matching refs:mem_ranges
73 static int __add_mem_range(struct crash_mem **mem_ranges, u64 base, u64 size) in __add_mem_range() argument
75 struct crash_mem *mem_rngs = *mem_ranges; in __add_mem_range()
78 mem_rngs = realloc_mem_ranges(mem_ranges); in __add_mem_range()
173 struct crash_mem *realloc_mem_ranges(struct crash_mem **mem_ranges) in realloc_mem_ranges() argument
175 struct crash_mem *mem_rngs = *mem_ranges; in realloc_mem_ranges()
183 mem_rngs = krealloc(*mem_ranges, size, GFP_KERNEL); in realloc_mem_ranges()
185 kfree(*mem_ranges); in realloc_mem_ranges()
186 *mem_ranges = NULL; in realloc_mem_ranges()
192 *mem_ranges = mem_rngs; in realloc_mem_ranges()
208 int add_mem_range(struct crash_mem **mem_ranges, u64 base, u64 size) in add_mem_range() argument
210 struct crash_mem *mem_rngs = *mem_ranges; in add_mem_range()
220 return __add_mem_range(mem_ranges, base, size); in add_mem_range()
234 return __add_mem_range(mem_ranges, base, size); in add_mem_range()
243 int add_tce_mem_ranges(struct crash_mem **mem_ranges) in add_tce_mem_ranges() argument
266 ret = add_mem_range(mem_ranges, base, size); in add_tce_mem_ranges()
282 int add_initrd_mem_range(struct crash_mem **mem_ranges) in add_initrd_mem_range() argument
294 ret = add_mem_range(mem_ranges, base, end - base + 1); in add_initrd_mem_range()
307 int add_htab_mem_range(struct crash_mem **mem_ranges) in add_htab_mem_range() argument
312 return add_mem_range(mem_ranges, __pa(htab_address), htab_size_bytes); in add_htab_mem_range()
323 int add_kernel_mem_range(struct crash_mem **mem_ranges) in add_kernel_mem_range() argument
325 return add_mem_range(mem_ranges, 0, __pa(_end)); in add_kernel_mem_range()
334 int add_rtas_mem_range(struct crash_mem **mem_ranges) in add_rtas_mem_range() argument
347 ret = add_mem_range(mem_ranges, base, size); in add_rtas_mem_range()
359 int add_opal_mem_range(struct crash_mem **mem_ranges) in add_opal_mem_range() argument
372 ret = add_mem_range(mem_ranges, base, size); in add_opal_mem_range()
385 int add_reserved_mem_ranges(struct crash_mem **mem_ranges) in add_reserved_mem_ranges() argument
406 ret = add_mem_range(mem_ranges, base, size); in add_reserved_mem_ranges()