Searched refs:mem_ranges (Results 1 – 6 of 6) sorted by relevance
/linux-6.6.21/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 | 59 static int get_exclude_memory_ranges(struct crash_mem **mem_ranges) in get_exclude_memory_ranges() argument 63 ret = add_tce_mem_ranges(mem_ranges); in get_exclude_memory_ranges() 67 ret = add_initrd_mem_range(mem_ranges); in get_exclude_memory_ranges() 71 ret = add_htab_mem_range(mem_ranges); in get_exclude_memory_ranges() 75 ret = add_kernel_mem_range(mem_ranges); in get_exclude_memory_ranges() 79 ret = add_rtas_mem_range(mem_ranges); in get_exclude_memory_ranges() 83 ret = add_opal_mem_range(mem_ranges); in get_exclude_memory_ranges() 87 ret = add_reserved_mem_ranges(mem_ranges); in get_exclude_memory_ranges() 92 sort_memory_ranges(*mem_ranges, true); in get_exclude_memory_ranges() 107 static int get_usable_memory_ranges(struct crash_mem **mem_ranges) in get_usable_memory_ranges() argument [all …]
|
/linux-6.6.21/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.6.21/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() 845 kfree(mrange_info->mem_ranges); in fadump_free_mem_ranges() 863 new_array = krealloc(mrange_info->mem_ranges, new_size, GFP_KERNEL); in fadump_alloc_mem_ranges() 871 mrange_info->mem_ranges = new_array; in fadump_alloc_mem_ranges() 880 struct fadump_memory_range *mem_ranges = mrange_info->mem_ranges; in fadump_add_mem_range() local 892 start = mem_ranges[mrange_info->mem_range_cnt - 1].base; in fadump_add_mem_range() 893 size = mem_ranges[mrange_info->mem_range_cnt - 1].size; in fadump_add_mem_range() 919 mem_ranges = mrange_info->mem_ranges; in fadump_add_mem_range() [all …]
|
/linux-6.6.21/drivers/gpu/drm/amd/amdgpu/ |
D | gmc_v9_0.c | 1880 struct amdgpu_mem_partition_info *mem_ranges) in gmc_v9_0_init_acpi_mem_ranges() argument 1898 mem_ranges[0].size = numa_info.size; in gmc_v9_0_init_acpi_mem_ranges() 1899 mem_ranges[0].numa.node = numa_info.nid; in gmc_v9_0_init_acpi_mem_ranges() 1909 mem_ranges[num_ranges].numa.node = numa_info.nid; in gmc_v9_0_init_acpi_mem_ranges() 1910 mem_ranges[num_ranges].size = numa_info.size; in gmc_v9_0_init_acpi_mem_ranges() 1918 mem_ranges[0].size = mem_ranges[0].size * (mem_groups - 1); in gmc_v9_0_init_acpi_mem_ranges() 1919 do_div(mem_ranges[0].size, mem_groups); in gmc_v9_0_init_acpi_mem_ranges() 1925 struct amdgpu_mem_partition_info *mem_ranges) in gmc_v9_0_init_sw_mem_ranges() argument 1956 mem_ranges[i].range.fpfn = start_addr; in gmc_v9_0_init_sw_mem_ranges() 1957 mem_ranges[i].size = ((u64)size << AMDGPU_GPU_PAGE_SHIFT); in gmc_v9_0_init_sw_mem_ranges() [all …]
|