Lines Matching refs:memmap
647 static void free_map_bootmem(struct page *memmap) in free_map_bootmem() argument
649 unsigned long start = (unsigned long)memmap; in free_map_bootmem()
650 unsigned long end = (unsigned long)(memmap + PAGES_PER_SECTION); in free_map_bootmem()
718 static void free_map_bootmem(struct page *memmap) in free_map_bootmem() argument
722 struct page *page = virt_to_page(memmap); in free_map_bootmem()
785 struct page *memmap = NULL; in section_deactivate() local
806 memmap = sparse_decode_mem_map(ms->section_mem_map, section_nr); in section_deactivate()
821 else if (memmap) in section_deactivate()
822 free_map_bootmem(memmap); in section_deactivate()
834 struct page *memmap; in section_activate() local
862 memmap = populate_section_memmap(pfn, nr_pages, nid, altmap, pgmap); in section_activate()
863 if (!memmap) { in section_activate()
868 return memmap; in section_activate()
896 struct page *memmap; in sparse_add_section() local
903 memmap = section_activate(nid, start_pfn, nr_pages, altmap, pgmap); in sparse_add_section()
904 if (IS_ERR(memmap)) in sparse_add_section()
905 return PTR_ERR(memmap); in sparse_add_section()
911 page_init_poison(memmap, sizeof(struct page) * nr_pages); in sparse_add_section()
919 memmap = pfn_to_page(section_nr_to_pfn(section_nr)); in sparse_add_section()
920 sparse_init_one_section(ms, section_nr, memmap, ms->usage, 0); in sparse_add_section()