| /Linux-v5.15/include/linux/ |
| D | memremap.h | 19 struct vmem_altmap { struct 111 struct vmem_altmap altmap; 126 static inline struct vmem_altmap *pgmap_altmap(struct dev_pagemap *pgmap) in pgmap_altmap() 142 unsigned long vmem_altmap_offset(struct vmem_altmap *altmap); 143 void vmem_altmap_free(struct vmem_altmap *altmap, unsigned long nr_pfns); 174 static inline unsigned long vmem_altmap_offset(struct vmem_altmap *altmap) in vmem_altmap_offset() 179 static inline void vmem_altmap_free(struct vmem_altmap *altmap, in vmem_altmap_free()
|
| D | memory_hotplug.h | 17 struct vmem_altmap; 67 struct vmem_altmap *altmap; 141 extern void arch_remove_memory(u64 start, u64 size, struct vmem_altmap *altmap); 143 struct vmem_altmap *altmap); 339 struct vmem_altmap *altmap, int migratetype); 345 unsigned long nr_pages, struct vmem_altmap *altmap); 348 unsigned long map_offset, struct vmem_altmap *altmap);
|
| D | mm.h | 2476 struct vmem_altmap *, int migratetype); 3087 unsigned long nr_pages, int nid, struct vmem_altmap *altmap); 3093 struct vmem_altmap *altmap); 3095 struct vmem_altmap; 3097 struct vmem_altmap *altmap); 3100 int node, struct vmem_altmap *altmap); 3102 struct vmem_altmap *altmap); 3106 struct vmem_altmap *altmap);
|
| /Linux-v5.15/mm/ |
| D | sparse-vmemmap.c | 427 struct vmem_altmap *altmap); 431 struct vmem_altmap *altmap) in vmemmap_alloc_block_buf() 444 static unsigned long __meminit vmem_altmap_next_pfn(struct vmem_altmap *altmap) in vmem_altmap_next_pfn() 450 static unsigned long __meminit vmem_altmap_nr_free(struct vmem_altmap *altmap) in vmem_altmap_nr_free() 460 struct vmem_altmap *altmap) in altmap_alloc_block_buf() 498 struct vmem_altmap *altmap) in vmemmap_pte_populate() 574 int node, struct vmem_altmap *altmap) in vmemmap_populate_basepages() 606 unsigned long nr_pages, int nid, struct vmem_altmap *altmap) in __populate_section_memmap()
|
| D | sparse.c | 430 unsigned long nr_pages, int nid, struct vmem_altmap *altmap) in __populate_section_memmap() 632 unsigned long nr_pages, int nid, struct vmem_altmap *altmap) in populate_section_memmap() 638 struct vmem_altmap *altmap) in depopulate_section_memmap() 703 unsigned long nr_pages, int nid, struct vmem_altmap *altmap) in populate_section_memmap() 710 struct vmem_altmap *altmap) in depopulate_section_memmap() 778 struct vmem_altmap *altmap) in section_deactivate() 826 unsigned long nr_pages, struct vmem_altmap *altmap) in section_activate() 886 unsigned long nr_pages, struct vmem_altmap *altmap) in sparse_add_section() 948 struct vmem_altmap *altmap) in sparse_remove_section()
|
| D | memory_hotplug.c | 311 struct vmem_altmap *altmap = params->altmap; in __add_pages() 498 struct vmem_altmap *altmap) in __remove_section() 520 struct vmem_altmap *altmap) in __remove_pages() 694 struct vmem_altmap *altmap, int migratetype) in move_pfn_range_to_zone() 1360 struct vmem_altmap mhp_altmap = {}; in add_memory_resource() 2148 struct vmem_altmap mhp_altmap = {}; in try_remove_memory() 2149 struct vmem_altmap *altmap = NULL; in try_remove_memory()
|
| D | memremap.c | 451 unsigned long vmem_altmap_offset(struct vmem_altmap *altmap) in vmem_altmap_offset() 459 void vmem_altmap_free(struct vmem_altmap *altmap, unsigned long nr_pfns) in vmem_altmap_free()
|
| D | page_alloc.c | 6502 struct vmem_altmap *altmap, int migratetype) in memmap_init_range() 6566 struct vmem_altmap *altmap = pgmap_altmap(pgmap); in memmap_init_zone_device()
|
| /Linux-v5.15/arch/powerpc/mm/ |
| D | init_64.c | 185 static bool altmap_cross_boundary(struct vmem_altmap *altmap, unsigned long start, in altmap_cross_boundary() 201 struct vmem_altmap *altmap) in vmemmap_populate() 306 struct vmem_altmap *altmap) in vmemmap_free()
|
| D | mem.c | 122 void __ref arch_remove_memory(u64 start, u64 size, struct vmem_altmap *altmap) in arch_remove_memory()
|
| /Linux-v5.15/arch/arm64/mm/ |
| D | mmu.c | 796 struct vmem_altmap *altmap) in free_hotplug_page_range() 832 struct vmem_altmap *altmap) in unmap_hotplug_pte_range() 853 struct vmem_altmap *altmap) in unmap_hotplug_pmd_range() 886 struct vmem_altmap *altmap) in unmap_hotplug_pud_range() 919 struct vmem_altmap *altmap) in unmap_hotplug_p4d_range() 937 bool free_mapped, struct vmem_altmap *altmap) in unmap_hotplug_range() 1119 struct vmem_altmap *altmap) in vmemmap_populate() 1126 struct vmem_altmap *altmap) in vmemmap_populate() 1173 struct vmem_altmap *altmap) in vmemmap_free() 1505 void arch_remove_memory(u64 start, u64 size, struct vmem_altmap *altmap) in arch_remove_memory()
|
| /Linux-v5.15/arch/x86/mm/ |
| D | init_64.c | 996 struct vmem_altmap *altmap) in free_hugepage_table() 1103 bool direct, struct vmem_altmap *altmap) in remove_pmd_table() 1152 struct vmem_altmap *altmap, bool direct) in remove_pud_table() 1186 struct vmem_altmap *altmap, bool direct) in remove_p4d_table() 1219 struct vmem_altmap *altmap) in remove_pagetable() 1241 struct vmem_altmap *altmap) in vmemmap_free() 1258 void __ref arch_remove_memory(u64 start, u64 size, struct vmem_altmap *altmap) in arch_remove_memory() 1536 unsigned long end, int node, struct vmem_altmap *altmap) in vmemmap_populate_hugepages() 1604 struct vmem_altmap *altmap) in vmemmap_populate()
|
| D | init_32.c | 804 void arch_remove_memory(u64 start, u64 size, struct vmem_altmap *altmap) in arch_remove_memory()
|
| /Linux-v5.15/arch/ia64/mm/ |
| D | discontig.c | 633 struct vmem_altmap *altmap) in vmemmap_populate() 639 struct vmem_altmap *altmap) in vmemmap_free()
|
| D | init.c | 487 void arch_remove_memory(u64 start, u64 size, struct vmem_altmap *altmap) in arch_remove_memory()
|
| /Linux-v5.15/arch/s390/mm/ |
| D | vmem.c | 508 struct vmem_altmap *altmap) in vmemmap_populate() 522 struct vmem_altmap *altmap) in vmemmap_free()
|
| D | init.c | 310 void arch_remove_memory(u64 start, u64 size, struct vmem_altmap *altmap) in arch_remove_memory()
|
| /Linux-v5.15/Documentation/vm/ |
| D | memory-model.rst | 133 devices. This storage is represented with struct vmem_altmap 136 `vmem_altmap` along with :c:func:`vmemmap_alloc_block_buf` helper to
|
| /Linux-v5.15/arch/sh/mm/ |
| D | init.c | 417 void arch_remove_memory(u64 start, u64 size, struct vmem_altmap *altmap) in arch_remove_memory()
|
| /Linux-v5.15/drivers/nvdimm/ |
| D | pfn_devs.c | 676 struct vmem_altmap *altmap = &pgmap->altmap; in __nvdimm_setup_pfn() 686 struct vmem_altmap __altmap = { in __nvdimm_setup_pfn()
|
| /Linux-v5.15/arch/riscv/mm/ |
| D | init.c | 853 struct vmem_altmap *altmap) in vmemmap_populate()
|
| /Linux-v5.15/arch/sparc/mm/ |
| D | init_64.c | 2582 int node, struct vmem_altmap *altmap) in vmemmap_populate() 2631 struct vmem_altmap *altmap) in vmemmap_free()
|