Home
last modified time | relevance | path

Searched refs:PAGES_PER_SECTION (Results 1 – 16 of 16) sorted by relevance

/Linux-v5.10/mm/
Dpage_ext.c232 table_size = page_ext_size * PAGES_PER_SECTION; in init_section_page_ext()
265 table_size = page_ext_size * PAGES_PER_SECTION; in free_page_ext()
306 for (pfn = start; !fail && pfn < end; pfn += PAGES_PER_SECTION) in online_page_ext()
312 for (pfn = start; pfn < end; pfn += PAGES_PER_SECTION) in online_page_ext()
326 for (pfn = start; pfn < end; pfn += PAGES_PER_SECTION) in offline_page_ext()
382 pfn = ALIGN(pfn + 1, PAGES_PER_SECTION)) { in page_ext_init()
Dsparse.c232 pfns = min(nr_pages, PAGES_PER_SECTION in subsection_map_init()
271 for (pfn = start; pfn < end; pfn += PAGES_PER_SECTION) { in memory_present()
436 return ALIGN(sizeof(struct page) * PAGES_PER_SECTION, PMD_SIZE); in section_map_size()
442 return PAGE_ALIGN(sizeof(struct page) * PAGES_PER_SECTION); in section_map_size()
544 map = __populate_section_memmap(pfn, PAGES_PER_SECTION, in sparse_init_nid()
613 for (pfn = start_pfn; pfn < end_pfn; pfn += PAGES_PER_SECTION) { in online_mem_sections()
632 for (pfn = start_pfn; pfn < end_pfn; pfn += PAGES_PER_SECTION) { in offline_mem_sections()
667 unsigned long end = (unsigned long)(memmap + PAGES_PER_SECTION); in free_map_bootmem()
725 PAGES_PER_SECTION), GFP_KERNEL, nid); in populate_section_memmap()
740 nr_pages = PAGE_ALIGN(PAGES_PER_SECTION * sizeof(struct page)) in free_map_bootmem()
[all …]
Dmemory_hotplug.c190 mapsize = sizeof(struct page) * PAGES_PER_SECTION; in register_page_bootmem_info_section()
219 register_page_bootmem_memmap(section_nr, memmap, PAGES_PER_SECTION); in register_page_bootmem_info_section()
247 for (; pfn < end_pfn; pfn += PAGES_PER_SECTION) { in register_page_bootmem_info_node()
277 min_align = PAGES_PER_SECTION; in check_pfn_span()
791 !IS_ALIGNED(pfn | nr_pages, PAGES_PER_SECTION))) in online_pages()
1198 pfn = sec_end_pfn, sec_end_pfn += PAGES_PER_SECTION) { in test_pages_in_a_zone()
1464 !IS_ALIGNED(start_pfn | nr_pages, PAGES_PER_SECTION))) in offline_pages()
Dpage_alloc.c456 if ((nr_initialised > PAGES_PER_SECTION) && in defer_init()
457 (pfn & (PAGES_PER_SECTION - 1)) == 0) { in defer_init()
491 pfn &= (PAGES_PER_SECTION-1); in pfn_to_bitidx()
1956 unsigned long epfn_align = ALIGN(epfn, PAGES_PER_SECTION); in deferred_init_memmap()
1962 .align = PAGES_PER_SECTION, in deferred_init_memmap()
1963 .min_chunk = PAGES_PER_SECTION, in deferred_init_memmap()
2000 unsigned long nr_pages_needed = ALIGN(1 << order, PAGES_PER_SECTION); in deferred_grow_zone()
2044 if ((first_deferred_pfn ^ spfn) < PAGES_PER_SECTION) in deferred_grow_zone()
7065 round_up(max_pfn, PAGES_PER_SECTION)); in init_unavailable_mem()
/Linux-v5.10/drivers/xen/
Dunpopulated-alloc.c23 unsigned int i, alloc_pages = round_up(nr_pages, PAGES_PER_SECTION); in fill_list()
40 PAGES_PER_SECTION * PAGE_SIZE, NULL, NULL); in fill_list()
Dballoon.c261 PAGES_PER_SECTION * PAGE_SIZE, NULL, NULL); in additional_memory_resource()
288 balloon_hotplug = round_up(credit, PAGES_PER_SECTION); in reserve_additional_memory()
/Linux-v5.10/arch/arm64/mm/
Dinit.c474 start = min(start, ALIGN(prev_end, PAGES_PER_SECTION)); in free_unused_memmap()
492 if (!IS_ALIGNED(prev_end, PAGES_PER_SECTION)) in free_unused_memmap()
493 free_memmap(prev_end, ALIGN(prev_end, PAGES_PER_SECTION)); in free_unused_memmap()
Dmmu.c1516 for (; pfn < end_pfn; pfn += PAGES_PER_SECTION) { in prevent_bootmem_remove_notifier()
/Linux-v5.10/arch/arm/mm/
Dinit.c316 ALIGN(prev_end, PAGES_PER_SECTION)); in free_unused_memmap()
341 if (!IS_ALIGNED(prev_end, PAGES_PER_SECTION)) in free_unused_memmap()
343 ALIGN(prev_end, PAGES_PER_SECTION)); in free_unused_memmap()
/Linux-v5.10/include/linux/
Dmemory.h93 #define CONFIG_MEM_BLOCK_SIZE (PAGES_PER_SECTION<<PAGE_SHIFT)
Dmmzone.h1163 #define PAGES_PER_SECTION (1UL << PFN_SECTION_SHIFT) macro
1164 #define PAGE_SECTION_MASK (~(PAGES_PER_SECTION-1))
1182 #define SECTION_ALIGN_UP(pfn) (((pfn) + PAGES_PER_SECTION - 1) & PAGE_SECTION_MASK)
/Linux-v5.10/drivers/base/
Dmemory.c181 unsigned long nr_pages = PAGES_PER_SECTION * sections_per_block; in memory_block_action()
328 unsigned long nr_pages = PAGES_PER_SECTION * sections_per_block; in valid_zones_show()
420 unsigned long pages_per_block = PAGES_PER_SECTION * sections_per_block; in probe_store()
Dnode.c822 pfn = round_down(pfn + PAGES_PER_SECTION, in register_mem_block_under_node_early()
823 PAGES_PER_SECTION) - 1; in register_mem_block_under_node_early()
/Linux-v5.10/arch/x86/mm/
Dnuma.c574 if (pfn_align && pfn_align < PAGES_PER_SECTION) { in numa_register_memblks()
577 PFN_PHYS(PAGES_PER_SECTION) >> 20); in numa_register_memblks()
Dinit_64.c1559 if (end - start < PAGES_PER_SECTION * sizeof(struct page)) in vmemmap_populate()
/Linux-v5.10/fs/proc/
Dpage.c33 return round_up(max_pfn, PAGES_PER_SECTION); in get_max_dump_pfn()