Home
last modified time | relevance | path

Searched refs:memblock_region (Results 1 – 22 of 22) sorted by relevance

/linux-6.6.21/tools/testing/memblock/tests/
Dalloc_exact_nid_api.c30 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()
83 struct memblock_region *req_node = &memblock.memory.regions[nid_req]; 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()
144 struct memblock_region *req_node = &memblock.memory.regions[nid_req]; 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()
201 struct memblock_region *req_node = &memblock.memory.regions[nid_req]; 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()
[all …]
Dalloc_nid_api.c66 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()
543 struct memblock_region *rgn1 = &memblock.reserved.regions[1]; in alloc_nid_top_down_reserved_no_space_check()
[all …]
Dbasic_api.c43 struct memblock_region *rgn; in memblock_add_simple_check()
76 struct memblock_region *rgn; in memblock_add_node_simple_check()
119 struct memblock_region *rgn1, *rgn2; in memblock_add_disjoint_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()
457 sizeof(struct memblock_region)); in memblock_add_many_check()
548 struct memblock_region *rgn; in memblock_reserve_simple_check()
[all …]
Dalloc_api.c26 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 …]
Dalloc_helpers_api.c20 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()
Dcommon.c42 memblock.memory.cnt * sizeof(struct memblock_region)); in reset_memblock_regions()
48 memblock.reserved.cnt * sizeof(struct memblock_region)); in reset_memblock_regions()
Dcommon.h122 static inline phys_addr_t __maybe_unused region_end(struct memblock_region *rgn) in region_end()
/linux-6.6.21/include/linux/
Dmemblock.h59 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 …]
/linux-6.6.21/arch/arm64/kvm/
Dpkvm.c20 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()
/linux-6.6.21/mm/
Dmemblock.c109 static struct memblock_region memblock_memory_init_regions[INIT_MEMBLOCK_MEMORY_REGIONS] __initdata…
110 static struct memblock_region memblock_reserved_init_regions[INIT_MEMBLOCK_RESERVED_REGIONS] __init…
112 static struct memblock_region memblock_physmem_init_regions[INIT_PHYSMEM_REGIONS];
377 size = PAGE_ALIGN(sizeof(struct memblock_region) * in memblock_discard()
387 size = PAGE_ALIGN(sizeof(struct memblock_region) * in memblock_discard()
418 struct memblock_region *new_array, *old_array; in memblock_double_array()
431 old_size = type->max * sizeof(struct memblock_region); in memblock_double_array()
522 struct memblock_region *this = &type->regions[i]; in memblock_merge_regions()
523 struct memblock_region *next = &type->regions[i + 1]; in memblock_merge_regions()
560 struct memblock_region *rgn = &type->regions[idx]; in memblock_insert_region()
[all …]
Dmm_init.c349 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()
/linux-6.6.21/arch/arm64/include/asm/
Dkvm_pkvm.h23 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()
/linux-6.6.21/arch/arm64/kvm/hyp/nvhe/
Dmem_protect.c329 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()
Dsetup.c235 struct memblock_region *reg = &hyp_memory[i]; in fix_host_ownership()
Dmm.c24 struct memblock_region hyp_memory[HYP_MEMBLOCK_REGIONS];
/linux-6.6.21/arch/riscv/kernel/
Dsetup.c151 struct memblock_region *region = NULL; in init_resources()
/linux-6.6.21/arch/arm64/kernel/
Dsetup.c222 struct memblock_region *region; in request_standard_resources()
/linux-6.6.21/drivers/base/
Darch_numa.c346 struct memblock_region *mblk; in numa_register_nodes()
/linux-6.6.21/arch/loongarch/kernel/
Dsetup.c433 struct memblock_region *region; in resource_init()
/linux-6.6.21/arch/s390/kernel/
Dcrash_dump.c30 static struct memblock_region oldmem_region;
/linux-6.6.21/arch/x86/mm/
Dnuma.c489 struct memblock_region *mb_region; in numa_clear_kernel_node_hotplug()
/linux-6.6.21/drivers/of/
Dfdt.c981 struct memblock_region rgn[MAX_USABLE_RANGES] = {0}; in early_init_dt_check_for_usable_mem_range()