• Home
  • Raw
  • Download

Lines Matching refs:altmap

427 					       struct vmem_altmap *altmap);
431 struct vmem_altmap *altmap) in vmemmap_alloc_block_buf() argument
435 if (altmap) in vmemmap_alloc_block_buf()
436 return altmap_alloc_block_buf(size, altmap); in vmemmap_alloc_block_buf()
444 static unsigned long __meminit vmem_altmap_next_pfn(struct vmem_altmap *altmap) in vmem_altmap_next_pfn() argument
446 return altmap->base_pfn + altmap->reserve + altmap->alloc in vmem_altmap_next_pfn()
447 + altmap->align; in vmem_altmap_next_pfn()
450 static unsigned long __meminit vmem_altmap_nr_free(struct vmem_altmap *altmap) in vmem_altmap_nr_free() argument
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()
460 struct vmem_altmap *altmap) in altmap_alloc_block_buf() argument
470 pfn = vmem_altmap_next_pfn(altmap); in altmap_alloc_block_buf()
474 if (nr_pfns + nr_align > vmem_altmap_nr_free(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()
482 __func__, pfn, altmap->alloc, altmap->align, nr_pfns); in altmap_alloc_block_buf()
498 struct vmem_altmap *altmap) in vmemmap_pte_populate() argument
505 p = vmemmap_alloc_block_buf(PAGE_SIZE, node, altmap); in vmemmap_pte_populate()
574 int node, struct vmem_altmap *altmap) in vmemmap_populate_basepages() argument
596 pte = vmemmap_pte_populate(pmd, addr, node, altmap); in vmemmap_populate_basepages()
606 unsigned long nr_pages, int nid, struct vmem_altmap *altmap) in __populate_section_memmap() argument
615 if (vmemmap_populate(start, end, nid, altmap)) in __populate_section_memmap()