Home
last modified time | relevance | path

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

/linux-6.3-rc2/mm/
A Dpage_ext.c326 table_size = page_ext_size * PAGES_PER_SECTION; in init_section_page_ext()
359 table_size = page_ext_size * PAGES_PER_SECTION; in free_page_ext()
421 for (pfn = start; !fail && pfn < end; pfn += PAGES_PER_SECTION) in online_page_ext()
427 for (pfn = start; pfn < end; pfn += PAGES_PER_SECTION) in online_page_ext()
450 for (pfn = start; pfn < end; pfn += PAGES_PER_SECTION) in offline_page_ext()
455 for (pfn = start; pfn < end; pfn += PAGES_PER_SECTION) in offline_page_ext()
509 pfn = ALIGN(pfn + 1, PAGES_PER_SECTION)) { in page_ext_init()
A Dsparse.c206 pfns = min(nr_pages, PAGES_PER_SECTION in subsection_map_init()
245 for (pfn = start; pfn < end; pfn += PAGES_PER_SECTION) { in memory_present()
420 return ALIGN(sizeof(struct page) * PAGES_PER_SECTION, PMD_SIZE); in section_map_size()
426 return PAGE_ALIGN(sizeof(struct page) * PAGES_PER_SECTION); in section_map_size()
527 map = __populate_section_memmap(pfn, PAGES_PER_SECTION, in sparse_init_nid()
597 for (pfn = start_pfn; pfn < end_pfn; pfn += PAGES_PER_SECTION) { in online_mem_sections()
615 for (pfn = start_pfn; pfn < end_pfn; pfn += PAGES_PER_SECTION) { in offline_mem_sections()
650 unsigned long end = (unsigned long)(memmap + PAGES_PER_SECTION); in free_map_bootmem()
709 PAGES_PER_SECTION), GFP_KERNEL, nid); in populate_section_memmap()
724 nr_pages = PAGE_ALIGN(PAGES_PER_SECTION * sizeof(struct page)) in free_map_bootmem()
[all …]
A Dbootmem_info.c61 mapsize = sizeof(struct page) * PAGES_PER_SECTION; in register_page_bootmem_info_section()
90 register_page_bootmem_memmap(section_nr, memmap, PAGES_PER_SECTION); in register_page_bootmem_info_section()
118 for (; pfn < end_pfn; pfn += PAGES_PER_SECTION) { in register_page_bootmem_info_node()
A Dmemory_hotplug.c248 min_align = PAGES_PER_SECTION; in check_pfn_span()
708 if (!IS_ALIGNED(start_pfn, PAGES_PER_SECTION)) in move_pfn_range_to_zone()
710 if (!IS_ALIGNED(start_pfn + nr_pages, PAGES_PER_SECTION)) in move_pfn_range_to_zone()
930 for (; pfn < end_pfn; pfn += PAGES_PER_SECTION) { in auto_movable_zone_for_pfn()
937 online_pages += PAGES_PER_SECTION; in auto_movable_zone_for_pfn()
1046 if (nr_pages >= PAGES_PER_SECTION) in mhp_init_memmap_on_memory()
1047 online_mem_sections(pfn, ALIGN_DOWN(end_pfn, PAGES_PER_SECTION)); in mhp_init_memmap_on_memory()
1061 if (nr_pages >= PAGES_PER_SECTION) in mhp_deinit_memmap_on_memory()
1062 offline_mem_sections(pfn, ALIGN_DOWN(end_pfn, PAGES_PER_SECTION)); in mhp_deinit_memmap_on_memory()
1089 !IS_ALIGNED(pfn + nr_pages, PAGES_PER_SECTION))) in online_pages()
[all …]
A Dmemblock.c2009 start = min(start, ALIGN(prev_end, PAGES_PER_SECTION)); in free_unused_memmap()
2034 if (!IS_ALIGNED(prev_end, PAGES_PER_SECTION)) { in free_unused_memmap()
2036 free_memmap(prev_end, ALIGN(prev_end, PAGES_PER_SECTION)); in free_unused_memmap()
A Dpage_alloc.c490 if ((nr_initialised > PAGES_PER_SECTION) && in defer_init()
491 (pfn & (PAGES_PER_SECTION - 1)) == 0) { in defer_init()
528 pfn &= (PAGES_PER_SECTION-1); in pfn_to_bitidx()
2157 unsigned long epfn_align = ALIGN(epfn, PAGES_PER_SECTION); in deferred_init_memmap()
2163 .align = PAGES_PER_SECTION, in deferred_init_memmap()
2164 .min_chunk = PAGES_PER_SECTION, in deferred_init_memmap()
2201 unsigned long nr_pages_needed = ALIGN(1 << order, PAGES_PER_SECTION); in deferred_grow_zone()
2245 if ((first_deferred_pfn ^ spfn) < PAGES_PER_SECTION) in deferred_grow_zone()
7075 end_pfn = round_up(end_pfn, PAGES_PER_SECTION); in memmap_init()
/linux-6.3-rc2/drivers/xen/
A Dunpopulated-alloc.c39 unsigned int i, alloc_pages = round_up(nr_pages, PAGES_PER_SECTION); in fill_list()
54 PAGES_PER_SECTION * PAGE_SIZE, NULL, NULL); in fill_list()
A Dballoon.c268 PAGES_PER_SECTION * PAGE_SIZE, NULL, NULL); in additional_memory_resource()
295 balloon_hotplug = round_up(credit, PAGES_PER_SECTION); in reserve_additional_memory()
/linux-6.3-rc2/drivers/base/
A Dmemory.c185 unsigned long nr_pages = PAGES_PER_SECTION * sections_per_block; in memory_block_online()
232 unsigned long nr_pages = PAGES_PER_SECTION * sections_per_block; in memory_block_offline()
414 unsigned long nr_pages = PAGES_PER_SECTION * sections_per_block; in valid_zones_show()
505 unsigned long pages_per_block = PAGES_PER_SECTION * sections_per_block; in probe_store()
656 const unsigned long nr_pages = PAGES_PER_SECTION * sections_per_block; in early_node_zone_for_memory_block()
A Dnode.c794 pfn = round_down(pfn + PAGES_PER_SECTION, in register_mem_block_under_node_early()
795 PAGES_PER_SECTION) - 1; in register_mem_block_under_node_early()
/linux-6.3-rc2/include/linux/
A Dmmzone.h1742 #define PAGES_PER_SECTION (1UL << PFN_SECTION_SHIFT) macro
1743 #define PAGE_SECTION_MASK (~(PAGES_PER_SECTION-1))
1761 #define SECTION_ALIGN_UP(pfn) (((pfn) + PAGES_PER_SECTION - 1) & PAGE_SECTION_MASK)
/linux-6.3-rc2/arch/powerpc/platforms/powernv/
A Dmemtrace.c98 if (IS_ALIGNED(pfn, PAGES_PER_SECTION)) in memtrace_clear_range()
/linux-6.3-rc2/arch/x86/mm/
A Dnuma.c579 if (pfn_align && pfn_align < PAGES_PER_SECTION) { in numa_register_memblks()
582 PFN_PHYS(PAGES_PER_SECTION) >> 20); in numa_register_memblks()
A Dinit_64.c1543 if (end - start < PAGES_PER_SECTION * sizeof(struct page)) in vmemmap_populate()
/linux-6.3-rc2/drivers/virtio/
A Dvirtio_mem.c2125 for (pfn = start_pfn; pfn < end_pfn; pfn += PAGES_PER_SECTION) { in virtio_mem_bbm_offline_remove_and_unplug_bb()
2130 rc = virtio_mem_fake_offline(pfn, PAGES_PER_SECTION); in virtio_mem_bbm_offline_remove_and_unplug_bb()
2158 for (pfn = start_pfn; pfn < end_pfn; pfn += PAGES_PER_SECTION) { in virtio_mem_bbm_offline_remove_and_unplug_bb()
2162 virtio_mem_fake_online(pfn, PAGES_PER_SECTION); in virtio_mem_bbm_offline_remove_and_unplug_bb()
2180 pfn += PAGES_PER_SECTION) { in virtio_mem_bbm_bb_is_offline()
2200 pfn += PAGES_PER_SECTION) { in virtio_mem_bbm_bb_is_movable()
/linux-6.3-rc2/fs/proc/
A Dpage.c34 return round_up(max_pfn, PAGES_PER_SECTION); in get_max_dump_pfn()
/linux-6.3-rc2/arch/arm64/mm/
A Dmmu.c1532 for (; pfn < end_pfn; pfn += PAGES_PER_SECTION) { in prevent_bootmem_remove_notifier()

Completed in 57 milliseconds