Home
last modified time | relevance | path

Searched refs:end_pfn (Results 1 – 25 of 70) sorted by relevance

123

/linux-6.1.9/arch/x86/mm/
Dinit.c312 unsigned long start_pfn, unsigned long end_pfn, in save_mr() argument
315 if (start_pfn < end_pfn) { in save_mr()
319 mr[nr_range].end = end_pfn<<PAGE_SHIFT; in save_mr()
390 unsigned long start_pfn, end_pfn, limit_pfn; in split_mem_range() local
406 end_pfn = PFN_DOWN(PMD_SIZE); in split_mem_range()
408 end_pfn = round_up(pfn, PFN_DOWN(PMD_SIZE)); in split_mem_range()
410 end_pfn = round_up(pfn, PFN_DOWN(PMD_SIZE)); in split_mem_range()
412 if (end_pfn > limit_pfn) in split_mem_range()
413 end_pfn = limit_pfn; in split_mem_range()
414 if (start_pfn < end_pfn) { in split_mem_range()
[all …]
Dinit_32.c261 unsigned long start_pfn, end_pfn; in kernel_physical_mapping_init() local
272 end_pfn = end >> PAGE_SHIFT; in kernel_physical_mapping_init()
301 if (pfn >= end_pfn) in kernel_physical_mapping_init()
309 for (; pmd_idx < PTRS_PER_PMD && pfn < end_pfn; in kernel_physical_mapping_init()
349 for (; pte_ofs < PTRS_PER_PTE && pfn < end_pfn; in kernel_physical_mapping_init()
404 unsigned long start_pfn, unsigned long end_pfn) in add_highpages_with_active_regions() argument
411 start_pfn, end_pfn); in add_highpages_with_active_regions()
413 start_pfn, end_pfn); in add_highpages_with_active_regions()
/linux-6.1.9/include/trace/events/
Dpage_isolation.h14 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")
Dcompaction.h18 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)
/linux-6.1.9/mm/
Dpage_isolation.c33 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()
529 int start_isolate_page_range(unsigned long start_pfn, unsigned long end_pfn, in start_isolate_page_range() argument
536 unsigned long isolate_end = pageblock_align(end_pfn); in start_isolate_page_range()
563 start_pfn, end_pfn)) { in start_isolate_page_range()
577 void undo_isolate_page_range(unsigned long start_pfn, unsigned long end_pfn, in undo_isolate_page_range() argument
583 unsigned long isolate_end = pageblock_align(end_pfn); in undo_isolate_page_range()
[all …]
Dpage_idle.c119 unsigned long pfn, end_pfn; in page_idle_bitmap_read() local
129 end_pfn = pfn + count * BITS_PER_BYTE; in page_idle_bitmap_read()
130 if (end_pfn > max_pfn) in page_idle_bitmap_read()
131 end_pfn = max_pfn; in page_idle_bitmap_read()
133 for (; pfn < end_pfn; pfn++) { in page_idle_bitmap_read()
164 unsigned long pfn, end_pfn; in page_idle_bitmap_write() local
174 end_pfn = pfn + count * BITS_PER_BYTE; in page_idle_bitmap_write()
175 if (end_pfn > max_pfn) in page_idle_bitmap_write()
176 end_pfn = max_pfn; in page_idle_bitmap_write()
178 for (; pfn < end_pfn; pfn++) { in page_idle_bitmap_write()
Dmemory_hotplug.c305 const unsigned long end_pfn = pfn + nr_pages; in __add_pages() local
332 for (; pfn < end_pfn; pfn += cur_nr_pages) { in __add_pages()
334 cur_nr_pages = min(end_pfn - pfn, in __add_pages()
349 unsigned long end_pfn) in find_smallest_section_pfn() argument
351 for (; start_pfn < end_pfn; start_pfn += PAGES_PER_SUBSECTION) { in find_smallest_section_pfn()
370 unsigned long end_pfn) in find_biggest_section_pfn() argument
375 pfn = end_pfn - 1; in find_biggest_section_pfn()
393 unsigned long end_pfn) in shrink_zone_span() argument
405 pfn = find_smallest_section_pfn(nid, zone, end_pfn, in shrink_zone_span()
414 } else if (zone_end_pfn(zone) == end_pfn) { in shrink_zone_span()
[all …]
Dpage_alloc.c482 defer_init(int nid, unsigned long pfn, unsigned long end_pfn) in defer_init() argument
492 if (prev_end_pfn != end_pfn) { in defer_init()
493 prev_end_pfn = end_pfn; in defer_init()
498 if (end_pfn < pgdat_end_pfn(NODE_DATA(nid))) in defer_init()
526 static inline bool defer_init(int nid, unsigned long pfn, unsigned long end_pfn) in defer_init() argument
1686 unsigned long end_pfn = PFN_UP(end); in reserve_bootmem_region() local
1688 for (; start_pfn < end_pfn; start_pfn++) { in reserve_bootmem_region()
1781 unsigned long start_pfn, end_pfn; in __early_pfn_to_nid() local
1787 nid = memblock_search_pfn_nid(pfn, &start_pfn, &end_pfn); in __early_pfn_to_nid()
1790 state->last_end = end_pfn; in __early_pfn_to_nid()
[all …]
Dcompaction.c543 unsigned long end_pfn, in isolate_freepages_block() argument
562 for (; blockpfn < end_pfn; blockpfn += stride, cursor += stride) { in isolate_freepages_block()
643 if (unlikely(blockpfn > end_pfn)) in isolate_freepages_block()
644 blockpfn = end_pfn; in isolate_freepages_block()
657 if (strict && blockpfn < end_pfn) in isolate_freepages_block()
682 unsigned long start_pfn, unsigned long end_pfn) in isolate_freepages_range() argument
693 for (; pfn < end_pfn; pfn += isolated, in isolate_freepages_range()
699 block_end_pfn = min(block_end_pfn, end_pfn); in isolate_freepages_range()
709 block_end_pfn = min(block_end_pfn, end_pfn); in isolate_freepages_range()
737 if (pfn < end_pfn) { in isolate_freepages_range()
[all …]
Dsparse.c130 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()
593 void online_mem_sections(unsigned long start_pfn, unsigned long end_pfn) in online_mem_sections() argument
597 for (pfn = start_pfn; pfn < end_pfn; pfn += PAGES_PER_SECTION) { in online_mem_sections()
611 void offline_mem_sections(unsigned long start_pfn, unsigned long end_pfn) in offline_mem_sections() argument
615 for (pfn = start_pfn; pfn < end_pfn; pfn += PAGES_PER_SECTION) { in offline_mem_sections()
Dbootmem_info.c104 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.1.9/arch/sparc/mm/
Dinit_32.c66 unsigned long end_pfn = (sp_banks[i].base_addr + sp_banks[i].num_bytes) >> PAGE_SHIFT; in calc_highpages() local
68 if (end_pfn <= max_low_pfn) in calc_highpages()
74 nr += end_pfn - start_pfn; in calc_highpages()
236 static void map_high_region(unsigned long start_pfn, unsigned long end_pfn) in map_high_region() argument
241 printk("mapping high region %08lx - %08lx\n", start_pfn, end_pfn); in map_high_region()
244 for (tmp = start_pfn; tmp < end_pfn; tmp++) in map_high_region()
285 unsigned long end_pfn = (sp_banks[i].base_addr + sp_banks[i].num_bytes) >> PAGE_SHIFT; in mem_init() local
287 if (end_pfn <= highstart_pfn) in mem_init()
293 map_high_region(start_pfn, end_pfn); in mem_init()
/linux-6.1.9/arch/sh/mm/
Dnuma.c28 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()
Dinit.c210 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.1.9/include/linux/
Dnode.h97 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()
Dpage-isolation.h44 start_isolate_page_range(unsigned long start_pfn, unsigned long end_pfn,
52 undo_isolate_page_range(unsigned long start_pfn, unsigned long end_pfn,
58 int test_pages_isolated(unsigned long start_pfn, unsigned long end_pfn,
/linux-6.1.9/arch/mips/loongson64/
Dnuma.c88 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()
Dinit.c53 u64 node_id, node_psize, start_pfn, end_pfn, mem_start, mem_size; in szmem() local
74 end_pfn = start_pfn + node_psize; in szmem()
79 start_pfn, end_pfn, num_physpages); in szmem()
/linux-6.1.9/arch/x86/xen/
Dsetup.c256 unsigned long end_pfn, unsigned long nr_pages) in xen_set_identity_and_release_chunk() argument
261 WARN_ON(start_pfn > end_pfn); in xen_set_identity_and_release_chunk()
264 end = min(end_pfn, nr_pages); in xen_set_identity_and_release_chunk()
283 set_phys_range_identity(start_pfn, end_pfn); in xen_set_identity_and_release_chunk()
385 unsigned long start_pfn, unsigned long end_pfn, unsigned long nr_pages, in xen_set_identity_and_remap_chunk() argument
390 unsigned long n = end_pfn - start_pfn; in xen_set_identity_and_remap_chunk()
432 for (pfn = start_pfn; pfn <= max_pfn_mapped && pfn < end_pfn; pfn++) in xen_set_identity_and_remap_chunk()
441 unsigned long start_pfn, unsigned long end_pfn, unsigned long nr_pages, in xen_count_remap_pages() argument
447 return remap_pages + min(end_pfn, nr_pages) - start_pfn; in xen_count_remap_pages()
451 unsigned long (*func)(unsigned long start_pfn, unsigned long end_pfn, in xen_foreach_remap_area() argument
[all …]
/linux-6.1.9/arch/loongarch/kernel/
Dnuma.c245 unsigned long start_pfn, end_pfn; in node_mem_init() local
252 get_pfn_range_for_nid(node, &start_pfn, &end_pfn); in node_mem_init()
254 node, start_pfn, end_pfn); in node_mem_init()
440 unsigned long start_pfn, end_pfn; in paging_init() local
442 get_pfn_range_for_nid(node, &start_pfn, &end_pfn); in paging_init()
444 if (end_pfn > max_low_pfn) in paging_init()
445 max_low_pfn = end_pfn; in paging_init()
/linux-6.1.9/drivers/base/
Darch_numa.c219 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.1.9/arch/x86/platform/efi/
Defi_32.c38 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.1.9/arch/sh/kernel/
Dswsusp.c22 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()
Dsetup.c198 unsigned long end_pfn) in __add_active_range() argument
206 end = end_pfn << PAGE_SHIFT; in __add_active_range()
215 start_pfn, end_pfn); in __add_active_range()
239 memblock_set_node(PFN_PHYS(start_pfn), PFN_PHYS(end_pfn - start_pfn), in __add_active_range()
/linux-6.1.9/arch/powerpc/mm/
Dnuma.c89 static int __init fake_numa_create_new_node(unsigned long end_pfn, in fake_numa_create_new_node() argument
120 if ((end_pfn << PAGE_SHIFT) > mem) { in fake_numa_create_new_node()
1028 unsigned long start_pfn, end_pfn; in setup_nonnuma() local
1035 for_each_mem_pfn_range(i, MAX_NUMNODES, &start_pfn, &end_pfn, NULL) { in setup_nonnuma()
1036 fake_numa_create_new_node(end_pfn, &nid); in setup_nonnuma()
1038 PFN_PHYS(end_pfn - start_pfn), in setup_nonnuma()
1080 static void __init setup_node_data(int nid, u64 start_pfn, u64 end_pfn) in setup_node_data() argument
1082 u64 spanned_pages = end_pfn - start_pfn; in setup_node_data()
1213 unsigned long start_pfn, end_pfn; in initmem_init() local
1215 get_pfn_range_for_nid(nid, &start_pfn, &end_pfn); in initmem_init()
[all …]

123