Home
last modified time | relevance | path

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

/linux-6.6.21/mm/
Dpage_ext.c279 table_size = page_ext_size * PAGES_PER_SECTION; in init_section_page_ext()
312 table_size = page_ext_size * PAGES_PER_SECTION; in free_page_ext()
374 for (pfn = start; !fail && pfn < end; pfn += PAGES_PER_SECTION) in online_page_ext()
380 end = pfn - PAGES_PER_SECTION; in online_page_ext()
381 for (pfn = start; pfn < end; pfn += PAGES_PER_SECTION) in online_page_ext()
404 for (pfn = start; pfn < end; pfn += PAGES_PER_SECTION) in offline_page_ext()
409 for (pfn = start; pfn < end; pfn += PAGES_PER_SECTION) in offline_page_ext()
461 pfn = ALIGN(pfn + 1, PAGES_PER_SECTION)) { in page_ext_init()
Dsparse.c205 pfns = min(nr_pages, PAGES_PER_SECTION in subsection_map_init()
244 for (pfn = start; pfn < end; pfn += PAGES_PER_SECTION) { in memory_present()
419 return ALIGN(sizeof(struct page) * PAGES_PER_SECTION, PMD_SIZE); in section_map_size()
425 return PAGE_ALIGN(sizeof(struct page) * PAGES_PER_SECTION); in section_map_size()
526 map = __populate_section_memmap(pfn, PAGES_PER_SECTION, in sparse_init_nid()
596 for (pfn = start_pfn; pfn < end_pfn; pfn += PAGES_PER_SECTION) { in online_mem_sections()
614 for (pfn = start_pfn; pfn < end_pfn; pfn += PAGES_PER_SECTION) { in offline_mem_sections()
649 unsigned long end = (unsigned long)(memmap + PAGES_PER_SECTION); in free_map_bootmem()
708 PAGES_PER_SECTION), GFP_KERNEL, nid); in populate_section_memmap()
723 nr_pages = PAGE_ALIGN(PAGES_PER_SECTION * sizeof(struct page)) in free_map_bootmem()
[all …]
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()
Dmemory_hotplug.c315 min_align = PAGES_PER_SECTION; in check_pfn_span()
770 if (!IS_ALIGNED(start_pfn, PAGES_PER_SECTION)) in move_pfn_range_to_zone()
772 if (!IS_ALIGNED(start_pfn + nr_pages, PAGES_PER_SECTION)) in move_pfn_range_to_zone()
992 for (; pfn < end_pfn; pfn += PAGES_PER_SECTION) { in auto_movable_zone_for_pfn()
999 online_pages += PAGES_PER_SECTION; in auto_movable_zone_for_pfn()
1108 if (nr_pages >= PAGES_PER_SECTION) in mhp_init_memmap_on_memory()
1109 online_mem_sections(pfn, ALIGN_DOWN(end_pfn, PAGES_PER_SECTION)); in mhp_init_memmap_on_memory()
1123 if (nr_pages >= PAGES_PER_SECTION) in mhp_deinit_memmap_on_memory()
1124 offline_mem_sections(pfn, ALIGN_DOWN(end_pfn, PAGES_PER_SECTION)); in mhp_deinit_memmap_on_memory()
1154 !IS_ALIGNED(pfn + nr_pages, PAGES_PER_SECTION))) in online_pages()
[all …]
Dmm_init.c698 if ((nr_initialised > PAGES_PER_SECTION) && in defer_init()
699 (pfn & (PAGES_PER_SECTION - 1)) == 0) { in defer_init()
964 end_pfn = round_up(end_pfn, PAGES_PER_SECTION); in memmap_init()
2236 unsigned long epfn_align = ALIGN(epfn, PAGES_PER_SECTION); in deferred_init_memmap()
2242 .align = PAGES_PER_SECTION, in deferred_init_memmap()
2243 .min_chunk = PAGES_PER_SECTION, in deferred_init_memmap()
2279 unsigned long nr_pages_needed = ALIGN(1 << order, PAGES_PER_SECTION); in deferred_grow_zone()
2323 if ((first_deferred_pfn ^ spfn) < PAGES_PER_SECTION) in deferred_grow_zone()
Dmemblock.c2024 start = min(start, ALIGN(prev_end, PAGES_PER_SECTION)); in free_unused_memmap()
2049 if (!IS_ALIGNED(prev_end, PAGES_PER_SECTION)) { in free_unused_memmap()
2051 free_memmap(prev_end, ALIGN(prev_end, PAGES_PER_SECTION)); in free_unused_memmap()
Dcompaction.c267 return section_nr_to_pfn(start_nr) + PAGES_PER_SECTION; in skip_offline_sections_reverse()
Dpage_alloc.c356 pfn &= (PAGES_PER_SECTION-1); in pfn_to_bitidx()
/linux-6.6.21/drivers/xen/
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()
Dballoon.c250 PAGES_PER_SECTION * PAGE_SIZE, NULL, NULL); in additional_memory_resource()
277 balloon_hotplug = round_up(credit, PAGES_PER_SECTION); in reserve_additional_memory()
/linux-6.6.21/drivers/base/
Dmemory.c189 unsigned long nr_pages = PAGES_PER_SECTION * sections_per_block; in memory_block_online()
245 unsigned long nr_pages = PAGES_PER_SECTION * sections_per_block; in memory_block_offline()
433 unsigned long nr_pages = PAGES_PER_SECTION * sections_per_block; in valid_zones_show()
534 unsigned long pages_per_block = PAGES_PER_SECTION * sections_per_block; in probe_store()
685 const unsigned long nr_pages = PAGES_PER_SECTION * sections_per_block; in early_node_zone_for_memory_block()
Dnode.c800 pfn = round_down(pfn + PAGES_PER_SECTION, in register_mem_block_under_node_early()
801 PAGES_PER_SECTION) - 1; in register_mem_block_under_node_early()
/linux-6.6.21/include/linux/
Dmmzone.h1738 #define PAGES_PER_SECTION (1UL << PFN_SECTION_SHIFT) macro
1739 #define PAGE_SECTION_MASK (~(PAGES_PER_SECTION-1))
1757 #define SECTION_ALIGN_UP(pfn) (((pfn) + PAGES_PER_SECTION - 1) & PAGE_SECTION_MASK)
/linux-6.6.21/scripts/gdb/linux/
Dmm.py67 self.PAGES_PER_SECTION = 1 << self.PFN_SECTION_SHIFT
68 self.PAGE_SECTION_MASK = (~(self.PAGES_PER_SECTION - 1)) & ((1 << 64) - 1)
/linux-6.6.21/arch/powerpc/platforms/powernv/
Dmemtrace.c98 if (IS_ALIGNED(pfn, PAGES_PER_SECTION)) in memtrace_clear_range()
/linux-6.6.21/drivers/virtio/
Dvirtio_mem.c2156 for (pfn = start_pfn; pfn < end_pfn; pfn += PAGES_PER_SECTION) { in virtio_mem_bbm_offline_remove_and_unplug_bb()
2161 rc = virtio_mem_fake_offline(vm, pfn, PAGES_PER_SECTION); in virtio_mem_bbm_offline_remove_and_unplug_bb()
2185 for (pfn = start_pfn; pfn < end_pfn; pfn += PAGES_PER_SECTION) { in virtio_mem_bbm_offline_remove_and_unplug_bb()
2189 virtio_mem_fake_online(pfn, PAGES_PER_SECTION); in virtio_mem_bbm_offline_remove_and_unplug_bb()
2207 pfn += PAGES_PER_SECTION) { in virtio_mem_bbm_bb_is_offline()
2227 pfn += PAGES_PER_SECTION) { in virtio_mem_bbm_bb_is_movable()
/linux-6.6.21/fs/proc/
Dpage.c34 return round_up(max_pfn, PAGES_PER_SECTION); in get_max_dump_pfn()
/linux-6.6.21/arch/x86/mm/
Dnuma.c580 if (pfn_align && pfn_align < PAGES_PER_SECTION) { in numa_register_memblks()
583 PFN_PHYS(PAGES_PER_SECTION) >> 20); in numa_register_memblks()
Dinit_64.c1543 if (end - start < PAGES_PER_SECTION * sizeof(struct page)) in vmemmap_populate()
/linux-6.6.21/arch/arm64/mm/
Dmmu.c1364 for (; pfn < end_pfn; pfn += PAGES_PER_SECTION) { in prevent_bootmem_remove_notifier()