/linux-6.6.21/arch/x86/mm/ |
D | init.c | 328 unsigned long start_pfn, unsigned long end_pfn, in save_mr() argument 331 if (start_pfn < end_pfn) { in save_mr() 335 mr[nr_range].end = end_pfn<<PAGE_SHIFT; in save_mr() 406 unsigned long start_pfn, end_pfn, limit_pfn; in split_mem_range() local 422 end_pfn = PFN_DOWN(PMD_SIZE); in split_mem_range() 424 end_pfn = round_up(pfn, PFN_DOWN(PMD_SIZE)); in split_mem_range() 426 end_pfn = round_up(pfn, PFN_DOWN(PMD_SIZE)); in split_mem_range() 428 if (end_pfn > limit_pfn) in split_mem_range() 429 end_pfn = limit_pfn; in split_mem_range() 430 if (start_pfn < end_pfn) { in split_mem_range() [all …]
|
D | init_32.c | 256 unsigned long start_pfn, end_pfn; in kernel_physical_mapping_init() local 267 end_pfn = end >> PAGE_SHIFT; in kernel_physical_mapping_init() 296 if (pfn >= end_pfn) in kernel_physical_mapping_init() 304 for (; pmd_idx < PTRS_PER_PMD && pfn < end_pfn; in kernel_physical_mapping_init() 344 for (; pte_ofs < PTRS_PER_PTE && pfn < end_pfn; in kernel_physical_mapping_init() 399 unsigned long start_pfn, unsigned long end_pfn) in add_highpages_with_active_regions() argument 406 start_pfn, end_pfn); in add_highpages_with_active_regions() 408 start_pfn, end_pfn); in add_highpages_with_active_regions()
|
/linux-6.6.21/include/trace/events/ |
D | page_isolation.h | 14 unsigned long end_pfn, 17 TP_ARGS(start_pfn, end_pfn, fin_pfn), 21 __field(unsigned long, end_pfn) 27 __entry->end_pfn = end_pfn; 32 __entry->start_pfn, __entry->end_pfn, __entry->fin_pfn, 33 __entry->end_pfn <= __entry->fin_pfn ? "success" : "fail")
|
D | compaction.h | 18 unsigned long end_pfn, 22 TP_ARGS(start_pfn, end_pfn, nr_scanned, nr_taken), 26 __field(unsigned long, end_pfn) 33 __entry->end_pfn = end_pfn; 40 __entry->end_pfn, 49 unsigned long end_pfn, 53 TP_ARGS(start_pfn, end_pfn, nr_scanned, nr_taken) 60 unsigned long end_pfn, 64 TP_ARGS(start_pfn, end_pfn, nr_scanned, nr_taken) 71 unsigned long end_pfn, [all …]
|
/linux-6.6.21/mm/ |
D | mm_init.c | 300 unsigned long start_pfn, end_pfn; in early_calculate_totalpages() local 303 for_each_mem_pfn_range(i, MAX_NUMNODES, &start_pfn, &end_pfn, &nid) { in early_calculate_totalpages() 304 unsigned long pages = end_pfn - start_pfn; in early_calculate_totalpages() 462 unsigned long start_pfn, end_pfn; in find_zone_movable_pfns_for_nodes() local 480 for_each_mem_pfn_range(i, nid, &start_pfn, &end_pfn, NULL) { in find_zone_movable_pfns_for_nodes() 484 if (start_pfn >= end_pfn) in find_zone_movable_pfns_for_nodes() 490 kernel_pages = min(end_pfn, usable_startpfn) in find_zone_movable_pfns_for_nodes() 499 if (end_pfn <= usable_startpfn) { in find_zone_movable_pfns_for_nodes() 507 zone_movable_pfn[nid] = end_pfn; in find_zone_movable_pfns_for_nodes() 518 size_pages = end_pfn - start_pfn; in find_zone_movable_pfns_for_nodes() [all …]
|
D | page_isolation.c | 33 static struct page *has_unmovable_pages(unsigned long start_pfn, unsigned long end_pfn, in has_unmovable_pages() argument 41 pageblock_start_pfn(end_pfn - 1)); in has_unmovable_pages() 55 for (pfn = start_pfn; pfn < end_pfn; pfn++) { in has_unmovable_pages() 148 unsigned long start_pfn, unsigned long end_pfn) in set_migratetype_isolate() argument 176 end_pfn); in set_migratetype_isolate() 528 int start_isolate_page_range(unsigned long start_pfn, unsigned long end_pfn, in start_isolate_page_range() argument 535 unsigned long isolate_end = pageblock_align(end_pfn); in start_isolate_page_range() 562 start_pfn, end_pfn)) { in start_isolate_page_range() 582 void undo_isolate_page_range(unsigned long start_pfn, unsigned long end_pfn, in undo_isolate_page_range() argument 588 unsigned long isolate_end = pageblock_align(end_pfn); in undo_isolate_page_range() [all …]
|
D | page_idle.c | 120 unsigned long pfn, end_pfn; in page_idle_bitmap_read() local 130 end_pfn = pfn + count * BITS_PER_BYTE; in page_idle_bitmap_read() 131 if (end_pfn > max_pfn) in page_idle_bitmap_read() 132 end_pfn = max_pfn; in page_idle_bitmap_read() 134 for (; pfn < end_pfn; pfn++) { in page_idle_bitmap_read() 165 unsigned long pfn, end_pfn; in page_idle_bitmap_write() local 175 end_pfn = pfn + count * BITS_PER_BYTE; in page_idle_bitmap_write() 176 if (end_pfn > max_pfn) in page_idle_bitmap_write() 177 end_pfn = max_pfn; in page_idle_bitmap_write() 179 for (; pfn < end_pfn; pfn++) { in page_idle_bitmap_write()
|
D | memory_hotplug.c | 372 const unsigned long end_pfn = pfn + nr_pages; in __add_pages() local 399 for (; pfn < end_pfn; pfn += cur_nr_pages) { in __add_pages() 401 cur_nr_pages = min(end_pfn - pfn, in __add_pages() 416 unsigned long end_pfn) in find_smallest_section_pfn() argument 418 for (; start_pfn < end_pfn; start_pfn += PAGES_PER_SUBSECTION) { in find_smallest_section_pfn() 437 unsigned long end_pfn) in find_biggest_section_pfn() argument 442 pfn = end_pfn - 1; in find_biggest_section_pfn() 460 unsigned long end_pfn) in shrink_zone_span() argument 472 pfn = find_smallest_section_pfn(nid, zone, end_pfn, in shrink_zone_span() 481 } else if (zone_end_pfn(zone) == end_pfn) { in shrink_zone_span() [all …]
|
D | compaction.c | 586 unsigned long end_pfn, in isolate_freepages_block() argument 605 for (; blockpfn < end_pfn; blockpfn += stride, page += stride) { in isolate_freepages_block() 684 if (unlikely(blockpfn > end_pfn)) in isolate_freepages_block() 685 blockpfn = end_pfn; in isolate_freepages_block() 698 if (strict && blockpfn < end_pfn) in isolate_freepages_block() 723 unsigned long start_pfn, unsigned long end_pfn) in isolate_freepages_range() argument 734 for (; pfn < end_pfn; pfn += isolated, in isolate_freepages_range() 750 block_end_pfn = min(block_end_pfn, end_pfn); in isolate_freepages_range() 777 if (pfn < end_pfn) { in isolate_freepages_range() 839 unsigned long end_pfn, isolate_mode_t mode) in isolate_migratepages_block() argument [all …]
|
D | sparse.c | 130 unsigned long *end_pfn) in mminit_validate_memmodel_limits() argument 141 *start_pfn, *end_pfn, max_sparsemem_pfn); in mminit_validate_memmodel_limits() 144 *end_pfn = max_sparsemem_pfn; in mminit_validate_memmodel_limits() 145 } else if (*end_pfn > max_sparsemem_pfn) { in mminit_validate_memmodel_limits() 148 *start_pfn, *end_pfn, max_sparsemem_pfn); in mminit_validate_memmodel_limits() 150 *end_pfn = max_sparsemem_pfn; in mminit_validate_memmodel_limits() 592 void online_mem_sections(unsigned long start_pfn, unsigned long end_pfn) in online_mem_sections() argument 596 for (pfn = start_pfn; pfn < end_pfn; pfn += PAGES_PER_SECTION) { in online_mem_sections() 610 void offline_mem_sections(unsigned long start_pfn, unsigned long end_pfn) in offline_mem_sections() argument 614 for (pfn = start_pfn; pfn < end_pfn; pfn += PAGES_PER_SECTION) { in offline_mem_sections()
|
D | bootmem_info.c | 104 unsigned long i, pfn, end_pfn, nr_pages; in register_page_bootmem_info_node() local 115 end_pfn = pgdat_end_pfn(pgdat); in register_page_bootmem_info_node() 118 for (; pfn < end_pfn; pfn += PAGES_PER_SECTION) { in register_page_bootmem_info_node()
|
/linux-6.6.21/arch/sh/mm/ |
D | numa.c | 28 unsigned long start_pfn, end_pfn; in setup_bootmem_node() local 34 end_pfn = PFN_DOWN(end); in setup_bootmem_node() 41 __add_active_range(nid, start_pfn, end_pfn); in setup_bootmem_node() 52 NODE_DATA(nid)->node_spanned_pages = end_pfn - start_pfn; in setup_bootmem_node()
|
D | init.c | 210 unsigned long start_pfn, end_pfn; in allocate_pgdat() local 212 get_pfn_range_for_nid(nid, &start_pfn, &end_pfn); in allocate_pgdat() 224 NODE_DATA(nid)->node_spanned_pages = end_pfn - start_pfn; in allocate_pgdat() 229 unsigned long start_pfn, end_pfn; in do_init_bootmem() local 233 for_each_mem_pfn_range(i, MAX_NUMNODES, &start_pfn, &end_pfn, NULL) in do_init_bootmem() 234 __add_active_range(0, start_pfn, end_pfn); in do_init_bootmem()
|
/linux-6.6.21/arch/sparc/mm/ |
D | init_32.c | 65 unsigned long end_pfn = (sp_banks[i].base_addr + sp_banks[i].num_bytes) >> PAGE_SHIFT; in calc_highpages() local 67 if (end_pfn <= max_low_pfn) in calc_highpages() 73 nr += end_pfn - start_pfn; in calc_highpages() 235 static void map_high_region(unsigned long start_pfn, unsigned long end_pfn) in map_high_region() argument 240 printk("mapping high region %08lx - %08lx\n", start_pfn, end_pfn); in map_high_region() 243 for (tmp = start_pfn; tmp < end_pfn; tmp++) in map_high_region() 284 unsigned long end_pfn = (sp_banks[i].base_addr + sp_banks[i].num_bytes) >> PAGE_SHIFT; in mem_init() local 286 if (end_pfn <= highstart_pfn) in mem_init() 292 map_high_region(start_pfn, end_pfn); in mem_init()
|
/linux-6.6.21/include/linux/ |
D | node.h | 97 unsigned long end_pfn, 101 unsigned long end_pfn, in register_memory_blocks_under_node() argument 121 unsigned long end_pfn = start_pfn + pgdat->node_spanned_pages; in register_one_node() local 126 register_memory_blocks_under_node(nid, start_pfn, end_pfn, in register_one_node()
|
D | page-isolation.h | 40 int start_isolate_page_range(unsigned long start_pfn, unsigned long end_pfn, 43 void undo_isolate_page_range(unsigned long start_pfn, unsigned long end_pfn, 46 int test_pages_isolated(unsigned long start_pfn, unsigned long end_pfn,
|
/linux-6.6.21/arch/mips/loongson64/ |
D | numa.c | 88 unsigned long start_pfn, end_pfn; in node_mem_init() local 97 get_pfn_range_for_nid(node, &start_pfn, &end_pfn); in node_mem_init() 99 node, start_pfn, end_pfn); in node_mem_init() 112 NODE_DATA(node)->node_spanned_pages = end_pfn - start_pfn; in node_mem_init() 122 max_low_pfn = end_pfn; in node_mem_init()
|
/linux-6.6.21/arch/x86/xen/ |
D | setup.c | 260 unsigned long end_pfn, unsigned long nr_pages) in xen_set_identity_and_release_chunk() argument 265 WARN_ON(start_pfn > end_pfn); in xen_set_identity_and_release_chunk() 268 end = min(end_pfn, nr_pages); in xen_set_identity_and_release_chunk() 287 set_phys_range_identity(start_pfn, end_pfn); in xen_set_identity_and_release_chunk() 389 unsigned long start_pfn, unsigned long end_pfn, unsigned long nr_pages, in xen_set_identity_and_remap_chunk() argument 394 unsigned long n = end_pfn - start_pfn; in xen_set_identity_and_remap_chunk() 436 for (pfn = start_pfn; pfn <= max_pfn_mapped && pfn < end_pfn; pfn++) in xen_set_identity_and_remap_chunk() 445 unsigned long start_pfn, unsigned long end_pfn, unsigned long nr_pages, in xen_count_remap_pages() argument 451 return remap_pages + min(end_pfn, nr_pages) - start_pfn; in xen_count_remap_pages() 455 unsigned long (*func)(unsigned long start_pfn, unsigned long end_pfn, in xen_foreach_remap_area() argument [all …]
|
/linux-6.6.21/arch/loongarch/kernel/ |
D | numa.c | 213 unsigned long start_pfn, end_pfn; in node_mem_init() local 220 get_pfn_range_for_nid(node, &start_pfn, &end_pfn); in node_mem_init() 222 node, start_pfn, end_pfn); in node_mem_init() 423 unsigned long start_pfn, end_pfn; in paging_init() local 425 get_pfn_range_for_nid(node, &start_pfn, &end_pfn); in paging_init() 427 if (end_pfn > max_low_pfn) in paging_init() 428 max_low_pfn = end_pfn; in paging_init()
|
/linux-6.6.21/drivers/base/ |
D | arch_numa.c | 219 static void __init setup_node_data(int nid, u64 start_pfn, u64 end_pfn) in setup_node_data() argument 226 if (start_pfn >= end_pfn) in setup_node_data() 247 NODE_DATA(nid)->node_spanned_pages = end_pfn - start_pfn; in setup_node_data() 363 unsigned long start_pfn, end_pfn; in numa_register_nodes() local 365 get_pfn_range_for_nid(nid, &start_pfn, &end_pfn); in numa_register_nodes() 366 setup_node_data(nid, start_pfn, end_pfn); in numa_register_nodes()
|
/linux-6.6.21/arch/sh/kernel/ |
D | swsusp.c | 22 unsigned long end_pfn = PAGE_ALIGN(__pa(&__nosave_end)) >> PAGE_SHIFT; in pfn_is_nosave() local 24 return (pfn >= begin_pfn) && (pfn < end_pfn); in pfn_is_nosave()
|
D | setup.c | 199 unsigned long end_pfn) in __add_active_range() argument 207 end = end_pfn << PAGE_SHIFT; in __add_active_range() 216 start_pfn, end_pfn); in __add_active_range() 240 memblock_set_node(PFN_PHYS(start_pfn), PFN_PHYS(end_pfn - start_pfn), in __add_active_range()
|
/linux-6.6.21/arch/x86/platform/efi/ |
D | efi_32.c | 38 u64 start_pfn, end_pfn, end; in efi_map_region() local 45 end_pfn = PFN_UP(end); in efi_map_region() 47 if (pfn_range_is_mapped(start_pfn, end_pfn)) { in efi_map_region()
|
/linux-6.6.21/arch/powerpc/mm/ |
D | numa.c | 91 static int __init fake_numa_create_new_node(unsigned long end_pfn, in fake_numa_create_new_node() argument 122 if ((end_pfn << PAGE_SHIFT) > mem) { in fake_numa_create_new_node() 1031 unsigned long start_pfn, end_pfn; in setup_nonnuma() local 1038 for_each_mem_pfn_range(i, MAX_NUMNODES, &start_pfn, &end_pfn, NULL) { in setup_nonnuma() 1039 fake_numa_create_new_node(end_pfn, &nid); in setup_nonnuma() 1041 PFN_PHYS(end_pfn - start_pfn), in setup_nonnuma() 1083 static void __init setup_node_data(int nid, u64 start_pfn, u64 end_pfn) in setup_node_data() argument 1085 u64 spanned_pages = end_pfn - start_pfn; in setup_node_data() 1216 unsigned long start_pfn, end_pfn; in initmem_init() local 1218 get_pfn_range_for_nid(nid, &start_pfn, &end_pfn); in initmem_init() [all …]
|
/linux-6.6.21/drivers/hv/ |
D | hv_balloon.c | 441 unsigned long end_pfn; member 451 unsigned long end_pfn; member 603 if ((pfn >= gap->start_pfn) && (pfn < gap->end_pfn)) in has_pfn_is_backed() 625 (pfn < has->end_pfn) && in hv_page_offline_check() 791 (pfn + (1UL << order) > has->end_pfn)) in hv_online_page() 812 if (start_pfn < has->start_pfn || start_pfn >= has->end_pfn) in pfn_covered() 828 gap->end_pfn = start_pfn; in pfn_covered() 838 if ((start_pfn + pfn_cnt) > has->end_pfn) { in pfn_covered() 839 residual = (start_pfn + pfn_cnt - has->end_pfn); in pfn_covered() 847 has->end_pfn += new_inc; in pfn_covered() [all …]
|