Home
last modified time | relevance | path

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

/linux/arch/riscv/mm/
H A Dinit.c1371 struct vmem_altmap *altmap) in vmemmap_populate() argument
1381 return vmemmap_populate_hugepages(start, end, node, altmap); in vmemmap_populate()
1551 struct vmem_altmap *altmap) in free_vmemmap_storage() argument
1555 if (altmap) { in free_vmemmap_storage()
1556 vmem_altmap_free(altmap, size >> PAGE_SHIFT); in free_vmemmap_storage()
1572 bool is_vmemmap, struct vmem_altmap *altmap) in remove_pte_mapping() argument
1589 free_vmemmap_storage(pte_page(pte), PAGE_SIZE, altmap); in remove_pte_mapping()
1594 bool is_vmemmap, struct vmem_altmap *altmap) in remove_pmd_mapping() argument
1610 free_vmemmap_storage(pmd_page(pmd), PMD_SIZE, altmap); in remove_pmd_mapping()
1615 remove_pte_mapping(pte_base, addr, next, is_vmemmap, altmap); in remove_pmd_mapping()
[all …]
/linux/arch/arm64/mm/
H A Dmmu.c1486 struct vmem_altmap *altmap) in free_hotplug_page_range() argument
1488 if (altmap) { in free_hotplug_page_range()
1489 vmem_altmap_free(altmap, size >> PAGE_SHIFT); in free_hotplug_page_range()
1523 struct vmem_altmap *altmap) in unmap_hotplug_pte_range() argument
1540 PAGE_SIZE, altmap); in unmap_hotplug_pte_range()
1548 struct vmem_altmap *altmap) in unmap_hotplug_pmd_range() argument
1574 PMD_SIZE, altmap); in unmap_hotplug_pmd_range()
1580 unmap_hotplug_pte_range(pmdp, addr, next, free_mapped, altmap); in unmap_hotplug_pmd_range()
1586 struct vmem_altmap *altmap) in unmap_hotplug_pud_range() argument
1605 PUD_SIZE, altmap); in unmap_hotplug_pud_range()
1617 unmap_hotplug_p4d_range(pgd_t * pgdp,unsigned long addr,unsigned long end,bool free_mapped,struct vmem_altmap * altmap) unmap_hotplug_p4d_range() argument
1635 unmap_hotplug_range(unsigned long addr,unsigned long end,bool free_mapped,struct vmem_altmap * altmap) unmap_hotplug_range() argument
1841 vmemmap_populate(unsigned long start,unsigned long end,int node,struct vmem_altmap * altmap) vmemmap_populate() argument
1856 vmemmap_free(unsigned long start,unsigned long end,struct vmem_altmap * altmap) vmemmap_free() argument
2042 arch_remove_memory(u64 start,u64 size,struct vmem_altmap * altmap,struct dev_pagemap * pgmap) arch_remove_memory() argument
[all...]
/linux/arch/loongarch/mm/
H A Dinit.c122 void arch_remove_memory(u64 start, u64 size, struct vmem_altmap *altmap, in arch_remove_memory() argument
128 __remove_pages(start_pfn, nr_pages, altmap, pgmap); in arch_remove_memory()
144 int node, struct vmem_altmap *altmap) in vmemmap_populate() argument
154 void vmemmap_free(unsigned long start, unsigned long end, struct vmem_altmap *altmap) in vmemmap_free() argument
/linux/arch/powerpc/include/asm/book3s/64/
H A Dradix.h324 int node, struct vmem_altmap *altmap);
326 struct vmem_altmap *altmap);
357 bool vmemmap_can_optimize(struct vmem_altmap *altmap, struct dev_pagemap *pgmap);
/linux/include/linux/
H A Dmemremap.h134 struct vmem_altmap altmap; member
157 return &pgmap->altmap; in pgmap_altmap()
H A Dmm.h5145 unsigned long nr_pages, int nid, struct vmem_altmap *altmap,
5150 struct vmem_altmap *altmap);
5157 int node, struct vmem_altmap *altmap);
5159 int node, struct vmem_altmap *altmap);
5161 struct vmem_altmap *altmap);
5170 struct vmem_altmap *altmap);
5174 static inline unsigned long vmem_altmap_offset(const struct vmem_altmap *altmap) in vmem_altmap_offset() argument
5177 if (altmap) in vmem_altmap_offset()
5178 return altmap->reserve + altmap->free; in vmem_altmap_offset()
5182 static inline void vmem_altmap_free(struct vmem_altmap *altmap, in vmem_altmap_free() argument
[all …]
/linux/mm/
H A Dmm_init.c850 struct vmem_altmap *altmap, int migratetype, in memmap_init_range() argument
868 if (!altmap) in memmap_init_range()
871 if (start_pfn == altmap->base_pfn) in memmap_init_range()
872 start_pfn += altmap->reserve; in memmap_init_range()
873 end_pfn = altmap->base_pfn + vmem_altmap_offset(altmap); in memmap_init_range()
1033 struct vmem_altmap *altmap, in compound_nr_pages() argument
1042 !vmemmap_can_optimize(altmap, pgmap)) in compound_nr_pages()
1081 struct vmem_altmap *altmap = pgmap_altmap(pgmap); in memmap_init_zone_device() local
1095 if (altmap) { in memmap_init_zone_device()
1096 start_pfn = altmap->base_pfn + vmem_altmap_offset(altmap); in memmap_init_zone_device()
[all …]
H A Dmemremap.c128 WARN_ONCE(pgmap->altmap.alloc, "failed to free all reserved pages\n"); in memunmap_pages()
230 PHYS_PFN(range_len(range)), params->altmap, in pagemap_range()
269 .altmap = pgmap_altmap(pgmap), in memremap_pages()
H A Dsparse.c229 unsigned long nr_pages, int nid, struct vmem_altmap *altmap, in __populate_section_memmap() argument
/linux/drivers/nvdimm/
H A Dpfn_devs.c675 struct vmem_altmap *altmap = &pgmap->altmap; in __nvdimm_setup_pfn() local
707 memcpy(altmap, &__altmap, sizeof(*altmap)); in __nvdimm_setup_pfn()
708 altmap->free = PHYS_PFN(offset - reserve); in __nvdimm_setup_pfn()
709 altmap->alloc = 0; in __nvdimm_setup_pfn()
/linux/arch/s390/mm/
H A Dinit.c296 void arch_remove_memory(u64 start, u64 size, struct vmem_altmap *altmap, in arch_remove_memory() argument
302 __remove_pages(start_pfn, nr_pages, altmap, pgmap); in arch_remove_memory()
/linux/arch/powerpc/mm/
H A Dmem.c161 void __ref arch_remove_memory(u64 start, u64 size, struct vmem_altmap *altmap, in arch_remove_memory() argument
167 __remove_pages(start_pfn, nr_pages, altmap, pgmap); in arch_remove_memory()
/linux/arch/powerpc/include/asm/
H A Dpgtable.h190 bool altmap_cross_boundary(struct vmem_altmap *altmap, unsigned long start,