Searched refs:mem_ranges (Results 1 – 5 of 5) sorted by relevance
/linux-6.1.9/arch/powerpc/kexec/ |
D | ranges.c | 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 [all …]
|
D | file_load_64.c | 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 [all …]
|
/linux-6.1.9/arch/powerpc/include/asm/ |
D | kexec_ranges.h | 8 struct crash_mem *realloc_mem_ranges(struct crash_mem **mem_ranges); 9 int add_mem_range(struct crash_mem **mem_ranges, u64 base, u64 size); 10 int add_tce_mem_ranges(struct crash_mem **mem_ranges); 11 int add_initrd_mem_range(struct crash_mem **mem_ranges); 13 int add_htab_mem_range(struct crash_mem **mem_ranges); 15 static inline int add_htab_mem_range(struct crash_mem **mem_ranges) in add_htab_mem_range() argument 20 int add_kernel_mem_range(struct crash_mem **mem_ranges); 21 int add_rtas_mem_range(struct crash_mem **mem_ranges); 22 int add_opal_mem_range(struct crash_mem **mem_ranges); 23 int add_reserved_mem_ranges(struct crash_mem **mem_ranges);
|
D | fadump-internal.h | 65 struct fadump_memory_range *mem_ranges; member
|
/linux-6.1.9/arch/powerpc/kernel/ |
D | fadump.c | 483 u64 rbase = reserved_mrange_info.mem_ranges[i].base; in overlaps_reserved_ranges() 484 u64 rend = rbase + reserved_mrange_info.mem_ranges[i].size; in overlaps_reserved_ranges() 510 mrngs = reserved_mrange_info.mem_ranges; in fadump_locate_reserve_mem() 844 kfree(mrange_info->mem_ranges); in fadump_free_mem_ranges() 862 new_array = krealloc(mrange_info->mem_ranges, new_size, GFP_KERNEL); in fadump_alloc_mem_ranges() 870 mrange_info->mem_ranges = new_array; in fadump_alloc_mem_ranges() 879 struct fadump_memory_range *mem_ranges = mrange_info->mem_ranges; in fadump_add_mem_range() local 891 start = mem_ranges[mrange_info->mem_range_cnt - 1].base; in fadump_add_mem_range() 892 size = mem_ranges[mrange_info->mem_range_cnt - 1].size; in fadump_add_mem_range() 918 mem_ranges = mrange_info->mem_ranges; in fadump_add_mem_range() [all …]
|