Searched refs:PAGES_PER_SECTION (Results 1 – 17 of 17) sorted by relevance
/kernel/linux/linux-5.10/mm/ |
D | page_ext.c | 238 table_size = page_ext_size * PAGES_PER_SECTION; in init_section_page_ext() 271 table_size = page_ext_size * PAGES_PER_SECTION; in free_page_ext() 312 for (pfn = start; !fail && pfn < end; pfn += PAGES_PER_SECTION) in online_page_ext() 318 for (pfn = start; pfn < end; pfn += PAGES_PER_SECTION) in online_page_ext() 332 for (pfn = start; pfn < end; pfn += PAGES_PER_SECTION) in offline_page_ext() 388 pfn = ALIGN(pfn + 1, PAGES_PER_SECTION)) { in page_ext_init()
|
D | sparse.c | 232 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() 614 for (pfn = start_pfn; pfn < end_pfn; pfn += PAGES_PER_SECTION) { in online_mem_sections() 633 for (pfn = start_pfn; pfn < end_pfn; pfn += PAGES_PER_SECTION) { in offline_mem_sections() 668 unsigned long end = (unsigned long)(memmap + PAGES_PER_SECTION); in free_map_bootmem() 726 PAGES_PER_SECTION), GFP_KERNEL, nid); in populate_section_memmap() 741 nr_pages = PAGE_ALIGN(PAGES_PER_SECTION * sizeof(struct page)) in free_map_bootmem() [all …]
|
D | memory_hotplug.c | 191 mapsize = sizeof(struct page) * PAGES_PER_SECTION; in register_page_bootmem_info_section() 220 register_page_bootmem_memmap(section_nr, memmap, PAGES_PER_SECTION); in register_page_bootmem_info_section() 248 for (; pfn < end_pfn; pfn += PAGES_PER_SECTION) { in register_page_bootmem_info_node() 278 min_align = PAGES_PER_SECTION; in check_pfn_span() 792 !IS_ALIGNED(pfn | nr_pages, PAGES_PER_SECTION))) in online_pages() 1202 pfn = sec_end_pfn, sec_end_pfn += PAGES_PER_SECTION) { in test_pages_in_a_zone() 1468 !IS_ALIGNED(start_pfn | nr_pages, PAGES_PER_SECTION))) in offline_pages()
|
D | page_alloc.c | 465 if ((nr_initialised > PAGES_PER_SECTION) && in defer_init() 466 (pfn & (PAGES_PER_SECTION - 1)) == 0) { in defer_init() 500 pfn &= (PAGES_PER_SECTION-1); in pfn_to_bitidx() 1965 unsigned long epfn_align = ALIGN(epfn, PAGES_PER_SECTION); in deferred_init_memmap() 1971 .align = PAGES_PER_SECTION, in deferred_init_memmap() 1972 .min_chunk = PAGES_PER_SECTION, in deferred_init_memmap() 2009 unsigned long nr_pages_needed = ALIGN(1 << order, PAGES_PER_SECTION); in deferred_grow_zone() 2053 if ((first_deferred_pfn ^ spfn) < PAGES_PER_SECTION) in deferred_grow_zone() 6437 end_pfn = round_up(end_pfn, PAGES_PER_SECTION); in memmap_init()
|
/kernel/linux/linux-5.10/drivers/xen/ |
D | unpopulated-alloc.c | 23 unsigned int i, alloc_pages = round_up(nr_pages, PAGES_PER_SECTION); in fill_list() 35 PAGES_PER_SECTION * PAGE_SIZE, NULL, NULL); in fill_list()
|
D | balloon.c | 266 PAGES_PER_SECTION * PAGE_SIZE, NULL, NULL); in additional_memory_resource() 293 balloon_hotplug = round_up(credit, PAGES_PER_SECTION); in reserve_additional_memory()
|
/kernel/linux/linux-5.10/arch/arm64/mm/ |
D | init.c | 528 start = min(start, ALIGN(prev_end, PAGES_PER_SECTION)); in free_unused_memmap() 546 if (!IS_ALIGNED(prev_end, PAGES_PER_SECTION)) in free_unused_memmap() 547 free_memmap(prev_end, ALIGN(prev_end, PAGES_PER_SECTION)); in free_unused_memmap()
|
D | mmu.c | 1578 for (; pfn < end_pfn; pfn += PAGES_PER_SECTION) { in prevent_bootmem_remove_notifier()
|
/kernel/linux/linux-5.10/arch/arm/mm/ |
D | init.c | 326 ALIGN(prev_end, PAGES_PER_SECTION)); in free_unused_memmap() 351 if (!IS_ALIGNED(prev_end, PAGES_PER_SECTION)) { in free_unused_memmap() 354 ALIGN(prev_end, PAGES_PER_SECTION)); in free_unused_memmap()
|
/kernel/linux/linux-5.10/include/linux/ |
D | memory.h | 92 #define CONFIG_MEM_BLOCK_SIZE (PAGES_PER_SECTION<<PAGE_SHIFT)
|
D | mmzone.h | 1201 #define PAGES_PER_SECTION (1UL << PFN_SECTION_SHIFT) macro 1202 #define PAGE_SECTION_MASK (~(PAGES_PER_SECTION-1)) 1220 #define SECTION_ALIGN_UP(pfn) (((pfn) + PAGES_PER_SECTION - 1) & PAGE_SECTION_MASK)
|
/kernel/linux/linux-5.10/drivers/base/ |
D | memory.c | 181 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()
|
D | node.c | 821 pfn = round_down(pfn + PAGES_PER_SECTION, in register_mem_block_under_node_early() 822 PAGES_PER_SECTION) - 1; in register_mem_block_under_node_early()
|
/kernel/linux/linux-5.10/arch/powerpc/platforms/powernv/ |
D | memtrace.c | 82 if (IS_ALIGNED(pfn, PAGES_PER_SECTION)) in memtrace_clear_range()
|
/kernel/linux/linux-5.10/arch/x86/mm/ |
D | numa.c | 580 if (pfn_align && pfn_align < PAGES_PER_SECTION) { in numa_register_memblks() 583 PFN_PHYS(PAGES_PER_SECTION) >> 20); in numa_register_memblks()
|
D | init_64.c | 1559 if (end - start < PAGES_PER_SECTION * sizeof(struct page)) in vmemmap_populate()
|
/kernel/linux/linux-5.10/fs/proc/ |
D | page.c | 33 return round_up(max_pfn, PAGES_PER_SECTION); in get_max_dump_pfn()
|