Searched refs:mem_ranges (Results 1 – 8 of 8) sorted by relevance
189 kfree(*mem_ranges); in realloc_mem_ranges()190 *mem_ranges = NULL; in realloc_mem_ranges()196 *mem_ranges = mem_rngs; in realloc_mem_ranges()443 ret = add_rtas_mem_range(mem_ranges); in get_reserved_memory_ranges()447 ret = add_tce_mem_ranges(mem_ranges); in get_reserved_memory_ranges()471 ret = add_tce_mem_ranges(mem_ranges); in get_exclude_memory_ranges()479 ret = add_htab_mem_range(mem_ranges); in get_exclude_memory_ranges()487 ret = add_rtas_mem_range(mem_ranges); in get_exclude_memory_ranges()491 ret = add_opal_mem_range(mem_ranges); in get_exclude_memory_ranges()581 if ((*mem_ranges)->nr_ranges == (*mem_ranges)->max_nr_ranges) in get_crash_memory_ranges()[all …]
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 remove_mem_range(struct crash_mem **mem_ranges, u64 base, u64 size);11 int get_exclude_memory_ranges(struct crash_mem **mem_ranges);12 int get_reserved_memory_ranges(struct crash_mem **mem_ranges);13 int get_crash_memory_ranges(struct crash_mem **mem_ranges);14 int get_usable_memory_ranges(struct crash_mem **mem_ranges);
90 struct fadump_memory_range *mem_ranges; member
835 kfree(mrange_info->mem_ranges); in fadump_free_mem_ranges()861 mrange_info->mem_ranges = new_array; in fadump_alloc_mem_ranges()870 struct fadump_memory_range *mem_ranges = mrange_info->mem_ranges; in fadump_add_mem_range() local909 mem_ranges = mrange_info->mem_ranges; in fadump_add_mem_range()1239 mem_ranges = mrange_info->mem_ranges; in sort_and_merge_mem_ranges()1243 if (mem_ranges[idx].base > mem_ranges[j].base) in sort_and_merge_mem_ranges()1247 swap(mem_ranges[idx], mem_ranges[i]); in sort_and_merge_mem_ranges()1253 base = mem_ranges[i-1].base; in sort_and_merge_mem_ranges()1254 size = mem_ranges[i-1].size; in sort_and_merge_mem_ranges()1256 mem_ranges[idx].size += mem_ranges[i].size; in sort_and_merge_mem_ranges()[all …]
1872 mem_ranges[0].size = numa_info.size; in gmc_v9_0_init_acpi_mem_ranges()1873 mem_ranges[0].numa.node = numa_info.nid; in gmc_v9_0_init_acpi_mem_ranges()1883 mem_ranges[num_ranges].numa.node = numa_info.nid; in gmc_v9_0_init_acpi_mem_ranges()1884 mem_ranges[num_ranges].size = numa_info.size; in gmc_v9_0_init_acpi_mem_ranges()1921 r = amdgpu_gmc_get_nps_memranges(adev, mem_ranges, in gmc_v9_0_init_sw_mem_ranges()1926 if (mem_ranges[i].range.lpfn > in gmc_v9_0_init_sw_mem_ranges()1927 mem_ranges[i - 1].range.lpfn) in gmc_v9_0_init_sw_mem_ranges()1937 mem_ranges[i].range.fpfn = start_addr; in gmc_v9_0_init_sw_mem_ranges()1938 mem_ranges[i].size = in gmc_v9_0_init_sw_mem_ranges()1948 mem_ranges[l].range.lpfn = in gmc_v9_0_init_sw_mem_ranges()[all …]
1176 struct amdgpu_mem_partition_info *mem_ranges, in amdgpu_gmc_get_nps_memranges() argument1183 if (!mem_ranges) in amdgpu_gmc_get_nps_memranges()1233 mem_ranges[i].range.fpfn = in amdgpu_gmc_get_nps_memranges()1237 mem_ranges[i].range.lpfn = in amdgpu_gmc_get_nps_memranges()1241 mem_ranges[i].size = in amdgpu_gmc_get_nps_memranges()
1731 struct amdgpu_gmc_memrange *mem_ranges; in amdgpu_discovery_get_nps_info() local1762 mem_ranges = kvzalloc( in amdgpu_discovery_get_nps_info()1766 mem_ranges[i].base_address = in amdgpu_discovery_get_nps_info()1768 mem_ranges[i].limit_address = in amdgpu_discovery_get_nps_info()1770 mem_ranges[i].nid_mask = -1; in amdgpu_discovery_get_nps_info()1771 mem_ranges[i].flags = 0; in amdgpu_discovery_get_nps_info()1773 *ranges = mem_ranges; in amdgpu_discovery_get_nps_info()
456 struct amdgpu_mem_partition_info *mem_ranges,