Home
last modified time | relevance | path

Searched refs:altmap (Results 1 – 20 of 20) sorted by relevance

/linux/arch/powerpc/mm/
A Dinit_64.c191 if ((start_pfn + nr_pfn) > altmap->end_pfn) in altmap_cross_boundary()
194 if (start_pfn < altmap->base_pfn) in altmap_cross_boundary()
201 struct vmem_altmap *altmap) in vmemmap_populate() argument
229 if (altmap && !altmap_cross_boundary(altmap, start, page_size)) { in vmemmap_populate()
254 vmem_altmap_free(altmap, nr_pfns); in vmemmap_populate()
306 struct vmem_altmap *altmap) in vmemmap_free() argument
314 if (altmap) { in vmemmap_free()
315 alt_start = altmap->base_pfn; in vmemmap_free()
316 alt_end = altmap->base_pfn + altmap->reserve + in vmemmap_free()
317 altmap->free + altmap->alloc + altmap->align; in vmemmap_free()
[all …]
A Dmem.c122 void __ref arch_remove_memory(u64 start, u64 size, struct vmem_altmap *altmap) in arch_remove_memory() argument
127 __remove_pages(start_pfn, nr_pages, altmap); in arch_remove_memory()
/linux/mm/
A Dsparse-vmemmap.c431 struct vmem_altmap *altmap) in vmemmap_alloc_block_buf() argument
435 if (altmap) in vmemmap_alloc_block_buf()
446 return altmap->base_pfn + altmap->reserve + altmap->alloc in vmem_altmap_next_pfn()
447 + altmap->align; in vmem_altmap_next_pfn()
452 unsigned long allocated = altmap->alloc + altmap->align; in vmem_altmap_nr_free()
454 if (altmap->free > allocated) in vmem_altmap_nr_free()
455 return altmap->free - allocated; in vmem_altmap_nr_free()
470 pfn = vmem_altmap_next_pfn(altmap); in altmap_alloc_block_buf()
477 altmap->alloc += nr_pfns; in altmap_alloc_block_buf()
478 altmap->align += nr_align; in altmap_alloc_block_buf()
[all …]
A Dsparse.c430 unsigned long nr_pages, int nid, struct vmem_altmap *altmap) in __populate_section_memmap() argument
638 struct vmem_altmap *altmap) in depopulate_section_memmap() argument
643 vmemmap_free(start, end, altmap); in depopulate_section_memmap()
710 struct vmem_altmap *altmap) in depopulate_section_memmap() argument
778 struct vmem_altmap *altmap) in section_deactivate() argument
817 depopulate_section_memmap(pfn, nr_pages, altmap); in section_deactivate()
826 unsigned long nr_pages, struct vmem_altmap *altmap) in section_activate() argument
860 section_deactivate(pfn, nr_pages, altmap); in section_activate()
886 unsigned long nr_pages, struct vmem_altmap *altmap) in sparse_add_section() argument
948 struct vmem_altmap *altmap) in sparse_remove_section() argument
[all …]
A Dmemremap.c179 WARN_ONCE(pgmap->altmap.alloc, "failed to free all reserved pages\n"); in memunmap_pages()
283 PHYS_PFN(range_len(range)), params->altmap, in pagemap_range()
320 .altmap = pgmap_altmap(pgmap), in memremap_pages()
451 unsigned long vmem_altmap_offset(struct vmem_altmap *altmap) in vmem_altmap_offset() argument
454 if (altmap) in vmem_altmap_offset()
455 return altmap->reserve + altmap->free; in vmem_altmap_offset()
459 void vmem_altmap_free(struct vmem_altmap *altmap, unsigned long nr_pfns) in vmem_altmap_free() argument
461 altmap->alloc -= nr_pfns; in vmem_altmap_free()
A Dmemory_hotplug.c310 struct vmem_altmap *altmap = params->altmap; in __add_pages() local
317 if (altmap) { in __add_pages()
321 if (altmap->base_pfn != pfn in __add_pages()
326 altmap->alloc = 0; in __add_pages()
497 struct vmem_altmap *altmap) in __remove_section() argument
519 struct vmem_altmap *altmap) in __remove_pages() argument
525 map_offset = vmem_altmap_offset(altmap); in __remove_pages()
713 MEMINIT_HOTPLUG, altmap, migratetype); in move_pfn_range_to_zone()
1397 params.altmap = &mhp_altmap; in add_memory_resource()
2123 struct vmem_altmap *altmap = NULL; in try_remove_memory() local
[all …]
A Dpage_alloc.c6508 struct vmem_altmap *altmap, int migratetype) in memmap_init_range() argument
6525 if (!altmap) in memmap_init_range()
6528 if (start_pfn == altmap->base_pfn) in memmap_init_range()
6529 start_pfn += altmap->reserve; in memmap_init_range()
6530 end_pfn = altmap->base_pfn + vmem_altmap_offset(altmap); in memmap_init_range()
6572 struct vmem_altmap *altmap = pgmap_altmap(pgmap); in memmap_init_zone_device() local
6585 if (altmap) { in memmap_init_zone_device()
6586 start_pfn = altmap->base_pfn + vmem_altmap_offset(altmap); in memmap_init_zone_device()
/linux/include/linux/
A Dmemremap.h111 struct vmem_altmap altmap; member
129 return &pgmap->altmap; 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() argument
179 static inline void vmem_altmap_free(struct vmem_altmap *altmap, in vmem_altmap_free() argument
A Dmemory_hotplug.h67 struct vmem_altmap *altmap; member
138 extern void arch_remove_memory(u64 start, u64 size, struct vmem_altmap *altmap);
140 struct vmem_altmap *altmap);
336 struct vmem_altmap *altmap, int migratetype);
342 unsigned long nr_pages, struct vmem_altmap *altmap);
345 unsigned long map_offset, struct vmem_altmap *altmap);
A Dmm.h3194 unsigned long nr_pages, int nid, struct vmem_altmap *altmap);
3200 struct vmem_altmap *altmap);
3204 struct vmem_altmap *altmap);
3207 int node, struct vmem_altmap *altmap);
3209 struct vmem_altmap *altmap);
3213 struct vmem_altmap *altmap);
/linux/arch/arm64/mm/
A Dmmu.c797 struct vmem_altmap *altmap) in free_hotplug_page_range() argument
799 if (altmap) { in free_hotplug_page_range()
833 struct vmem_altmap *altmap) in unmap_hotplug_pte_range() argument
848 PAGE_SIZE, altmap); in unmap_hotplug_pte_range()
854 struct vmem_altmap *altmap) in unmap_hotplug_pmd_range() argument
877 PMD_SIZE, altmap); in unmap_hotplug_pmd_range()
910 PUD_SIZE, altmap); in unmap_hotplug_pud_range()
949 WARN_ON(!free_mapped && altmap); in unmap_hotplug_range()
1120 struct vmem_altmap *altmap) in vmemmap_populate() argument
1127 struct vmem_altmap *altmap) in vmemmap_populate() argument
[all …]
/linux/arch/x86/mm/
A Dinit_64.c996 struct vmem_altmap *altmap) in free_hugepage_table() argument
998 if (altmap) in free_hugepage_table()
1103 bool direct, struct vmem_altmap *altmap) in remove_pmd_table() argument
1121 altmap); in remove_pmd_table()
1131 altmap); in remove_pmd_table()
1152 struct vmem_altmap *altmap, bool direct) in remove_pud_table() argument
1219 struct vmem_altmap *altmap) in remove_pagetable() argument
1241 struct vmem_altmap *altmap) in vmemmap_free() argument
1590 } else if (altmap) in vmemmap_populate_hugepages()
1604 struct vmem_altmap *altmap) in vmemmap_populate() argument
[all …]
/linux/arch/s390/mm/
A Dinit.c290 if (WARN_ON_ONCE(params->altmap)) in arch_add_memory()
307 void arch_remove_memory(u64 start, u64 size, struct vmem_altmap *altmap) in arch_remove_memory() argument
312 __remove_pages(start_pfn, nr_pages, altmap); in arch_remove_memory()
A Dvmem.c509 struct vmem_altmap *altmap) in vmemmap_populate() argument
523 struct vmem_altmap *altmap) in vmemmap_free() argument
/linux/drivers/nvdimm/
A Dpfn_devs.c676 struct vmem_altmap *altmap = &pgmap->altmap; in __nvdimm_setup_pfn() local
708 memcpy(altmap, &__altmap, sizeof(*altmap)); in __nvdimm_setup_pfn()
709 altmap->free = PHYS_PFN(offset - reserve); in __nvdimm_setup_pfn()
710 altmap->alloc = 0; in __nvdimm_setup_pfn()
/linux/arch/sh/mm/
A Dinit.c417 void arch_remove_memory(u64 start, u64 size, struct vmem_altmap *altmap) in arch_remove_memory() argument
422 __remove_pages(start_pfn, nr_pages, altmap); in arch_remove_memory()
/linux/arch/ia64/mm/
A Dinit.c487 void arch_remove_memory(u64 start, u64 size, struct vmem_altmap *altmap) in arch_remove_memory() argument
492 __remove_pages(start_pfn, nr_pages, altmap); in arch_remove_memory()
A Ddiscontig.c633 struct vmem_altmap *altmap) in vmemmap_populate() argument
639 struct vmem_altmap *altmap) in vmemmap_free() argument
/linux/arch/riscv/mm/
A Dinit.c852 struct vmem_altmap *altmap) in vmemmap_populate() argument
/linux/arch/sparc/mm/
A Dinit_64.c2582 int node, struct vmem_altmap *altmap) in vmemmap_populate() argument
2631 struct vmem_altmap *altmap) in vmemmap_free() argument

Completed in 63 milliseconds