/openbmc/linux/tools/testing/memblock/tests/ |
H A D | alloc_exact_nid_api.c | 30 struct memblock_region *new_rgn = &memblock.reserved.regions[0]; in alloc_exact_nid_top_down_numa_simple_check() 31 struct memblock_region *req_node = &memblock.memory.regions[nid_req]; in alloc_exact_nid_top_down_numa_simple_check() 82 struct memblock_region *new_rgn = &memblock.reserved.regions[1]; in alloc_exact_nid_top_down_numa_part_reserved_check() 143 struct memblock_region *new_rgn = &memblock.reserved.regions[0]; in alloc_exact_nid_top_down_numa_split_range_low_check() 200 struct memblock_region *new_rgn = &memblock.reserved.regions[0]; in alloc_exact_nid_top_down_numa_no_overlap_split_check() 202 struct memblock_region *node2 = &memblock.memory.regions[6]; in alloc_exact_nid_top_down_numa_no_overlap_split_check() 258 struct memblock_region *new_rgn = &memblock.reserved.regions[0]; in alloc_exact_nid_top_down_numa_no_overlap_low_check() 260 struct memblock_region *min_node = &memblock.memory.regions[2]; in alloc_exact_nid_top_down_numa_no_overlap_low_check() 261 struct memblock_region *max_node = &memblock.memory.regions[5]; in alloc_exact_nid_top_down_numa_no_overlap_low_check() 299 struct memblock_region *new_rgn = &memblock.reserved.regions[0]; in alloc_exact_nid_bottom_up_numa_simple_check() [all …]
|
H A D | alloc_nid_api.c | 66 struct memblock_region *rgn = &memblock.reserved.regions[0]; in alloc_nid_top_down_simple_check() 118 struct memblock_region *rgn = &memblock.reserved.regions[0]; in alloc_nid_top_down_end_misaligned_check() 169 struct memblock_region *rgn = &memblock.reserved.regions[0]; in alloc_nid_exact_address_generic_check() 221 struct memblock_region *rgn = &memblock.reserved.regions[0]; in alloc_nid_top_down_narrow_range_check() 311 struct memblock_region *rgn = &memblock.reserved.regions[0]; in alloc_nid_min_reserved_generic_check() 363 struct memblock_region *rgn = &memblock.reserved.regions[0]; in alloc_nid_max_reserved_generic_check() 416 struct memblock_region *rgn1 = &memblock.reserved.regions[1]; in alloc_nid_top_down_reserved_with_space_check() 417 struct memblock_region *rgn2 = &memblock.reserved.regions[0]; in alloc_nid_top_down_reserved_with_space_check() 481 struct memblock_region *rgn = &memblock.reserved.regions[0]; in alloc_nid_reserved_full_merge_generic_check() 652 struct memblock_region *rgn = &memblock.reserved.regions[0]; in alloc_nid_top_down_cap_max_check() [all …]
|
H A D | basic_api.c | 43 struct memblock_region *rgn; in memblock_add_simple_check() 76 struct memblock_region *rgn; in memblock_add_node_simple_check() 172 struct memblock_region *rgn; in memblock_add_overlap_top_check() 224 struct memblock_region *rgn; in memblock_add_overlap_bottom_check() 274 struct memblock_region *rgn; in memblock_add_within_check() 344 struct memblock_region *rgn; in memblock_add_between_check() 398 struct memblock_region *rgn; in memblock_add_near_max_check() 548 struct memblock_region *rgn; in memblock_reserve_simple_check() 637 struct memblock_region *rgn; in memblock_reserve_overlap_top_check() 690 struct memblock_region *rgn; in memblock_reserve_overlap_bottom_check() [all …]
|
H A D | alloc_api.c | 26 struct memblock_region *rgn = &memblock.reserved.regions[0]; in alloc_top_down_simple_check() 73 struct memblock_region *rgn1 = &memblock.reserved.regions[1]; in alloc_top_down_disjoint_check() 74 struct memblock_region *rgn2 = &memblock.reserved.regions[0]; in alloc_top_down_disjoint_check() 125 struct memblock_region *rgn = &memblock.reserved.regions[0]; in alloc_top_down_before_check() 168 struct memblock_region *rgn = &memblock.reserved.regions[0]; in alloc_top_down_after_check() 217 struct memblock_region *rgn = &memblock.reserved.regions[0]; in alloc_top_down_second_fit_check() 266 struct memblock_region *rgn = &memblock.reserved.regions[0]; in alloc_in_between_generic_check() 416 struct memblock_region *rgn = &memblock.reserved.regions[0]; in alloc_limited_space_generic_check() 450 struct memblock_region *rgn = &memblock.reserved.regions[0]; in alloc_no_memory_generic_check() 484 struct memblock_region *rgn = &memblock.reserved.regions[0]; in alloc_too_large_generic_check() [all …]
|
H A D | alloc_helpers_api.c | 20 struct memblock_region *rgn = &memblock.reserved.regions[0]; in alloc_from_simple_generic_check() 63 struct memblock_region *rgn = &memblock.reserved.regions[0]; in alloc_from_misaligned_generic_check() 110 struct memblock_region *rgn = &memblock.reserved.regions[0]; in alloc_from_top_down_high_addr_check() 153 struct memblock_region *rgn = &memblock.reserved.regions[0]; in alloc_from_top_down_no_space_above_check() 190 struct memblock_region *rgn = &memblock.reserved.regions[0]; in alloc_from_top_down_min_addr_cap_check() 236 struct memblock_region *rgn = &memblock.reserved.regions[0]; in alloc_from_bottom_up_high_addr_check() 278 struct memblock_region *rgn = &memblock.reserved.regions[0]; in alloc_from_bottom_up_no_space_above_check() 314 struct memblock_region *rgn = &memblock.reserved.regions[0]; in alloc_from_bottom_up_min_addr_cap_check()
|
H A D | common.c | 42 memblock.memory.cnt * sizeof(struct memblock_region)); in reset_memblock_regions() 48 memblock.reserved.cnt * sizeof(struct memblock_region)); in reset_memblock_regions()
|
H A D | common.h | 122 static inline phys_addr_t __maybe_unused region_end(struct memblock_region *rgn) in region_end()
|
/openbmc/linux/include/linux/ |
H A D | memblock.h | 59 struct memblock_region { struct 80 struct memblock_region *regions; argument 249 static inline bool memblock_is_hotpluggable(struct memblock_region *m) in memblock_is_hotpluggable() 254 static inline bool memblock_is_mirror(struct memblock_region *m) in memblock_is_mirror() 259 static inline bool memblock_is_nomap(struct memblock_region *m) in memblock_is_nomap() 264 static inline bool memblock_is_driver_managed(struct memblock_region *m) in memblock_is_driver_managed() 369 static inline void memblock_set_region_node(struct memblock_region *r, int nid) in memblock_set_region_node() 374 static inline int memblock_get_region_node(const struct memblock_region *r) in memblock_get_region_node() 379 static inline void memblock_set_region_node(struct memblock_region *r, int nid) in memblock_set_region_node() 383 static inline int memblock_get_region_node(const struct memblock_region *r) in memblock_get_region_node() [all …]
|
/openbmc/linux/arch/arm64/kvm/ |
H A D | pkvm.c | 20 static struct memblock_region *hyp_memory = kvm_nvhe_sym(hyp_memory); 28 const struct memblock_region *r1 = p1; in cmp_hyp_memblock() 29 const struct memblock_region *r2 = p2; in cmp_hyp_memblock() 38 sizeof(struct memblock_region), in sort_memblock_regions() 45 struct memblock_region *reg; in register_memblock_regions()
|
/openbmc/linux/arch/arm64/include/asm/ |
H A D | kvm_pkvm.h | 23 extern struct memblock_region kvm_nvhe_sym(hyp_memory)[]; 27 hyp_vmemmap_memblock_size(struct memblock_region *reg, size_t vmemmap_entry_size) in hyp_vmemmap_memblock_size() 76 struct memblock_region *reg = &kvm_nvhe_sym(hyp_memory)[i]; in __hyp_pgtable_total_pages()
|
/openbmc/linux/mm/ |
H A D | memblock.c | 596 struct memblock_region *rgn; in memblock_add_range() 760 struct memblock_region *rgn; in memblock_isolate_range() 1002 struct memblock_region *m, in should_skip_region() 1097 struct memblock_region *r; in __next_mem_range() 1201 struct memblock_region *r; in __next_mem_range_rev() 1245 struct memblock_region *r; in __next_mem_pfn_range() 1706 struct memblock_region *r; in __find_max_addr() 1885 struct memblock_region *r; in memblock_trim_memory() 1922 struct memblock_region *rgn; in memblock_dump() 2098 struct memblock_region *region; in memmap_init_reserved_pages() [all …]
|
H A D | mm_init.c | 349 struct memblock_region *r; in find_zone_movable_pfns_for_nodes() 777 static struct memblock_region *r; in overlap_memmap_init() 1196 struct memblock_region *r; in zone_absent_pages_in_node()
|
/openbmc/linux/arch/arm64/kvm/hyp/nvhe/ |
H A D | mem_protect.c | 329 struct memblock_region *reg; in host_stage2_unmap_dev_all() 348 static struct memblock_region *find_mem_range(phys_addr_t addr, struct kvm_mem_range *range) in find_mem_range() 351 struct memblock_region *reg; in find_mem_range() 387 struct memblock_region *reg; in addr_is_allowed_memory()
|
H A D | setup.c | 235 struct memblock_region *reg = &hyp_memory[i]; in fix_host_ownership()
|
H A D | mm.c | 24 struct memblock_region hyp_memory[HYP_MEMBLOCK_REGIONS];
|
/openbmc/linux/arch/riscv/kernel/ |
H A D | setup.c | 144 struct memblock_region *region = NULL; in init_resources()
|
/openbmc/linux/arch/arm64/kernel/ |
H A D | setup.c | 222 struct memblock_region *region; in request_standard_resources()
|
/openbmc/linux/drivers/base/ |
H A D | arch_numa.c | 346 struct memblock_region *mblk; in numa_register_nodes()
|
/openbmc/linux/arch/loongarch/kernel/ |
H A D | setup.c | 436 struct memblock_region *region; in resource_init()
|
/openbmc/linux/arch/s390/kernel/ |
H A D | crash_dump.c | 30 static struct memblock_region oldmem_region;
|
/openbmc/linux/arch/x86/mm/ |
H A D | numa.c | 489 struct memblock_region *mb_region; in numa_clear_kernel_node_hotplug()
|
/openbmc/linux/drivers/of/ |
H A D | fdt.c | 981 struct memblock_region rgn[MAX_USABLE_RANGES] = {0}; in early_init_dt_check_for_usable_mem_range()
|