Home
last modified time | relevance | path

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

/mm/
Dpage_isolation.c171 int start_isolate_page_range(unsigned long start_pfn, unsigned long end_pfn, in start_isolate_page_range() argument
179 BUG_ON(!IS_ALIGNED(end_pfn, pageblock_nr_pages)); in start_isolate_page_range()
182 pfn < end_pfn; in start_isolate_page_range()
208 int undo_isolate_page_range(unsigned long start_pfn, unsigned long end_pfn, in undo_isolate_page_range() argument
215 BUG_ON(!IS_ALIGNED(end_pfn, pageblock_nr_pages)); in undo_isolate_page_range()
218 pfn < end_pfn; in undo_isolate_page_range()
235 __test_page_isolated_in_pageblock(unsigned long pfn, unsigned long end_pfn, in __test_page_isolated_in_pageblock() argument
240 while (pfn < end_pfn) { in __test_page_isolated_in_pageblock()
264 int test_pages_isolated(unsigned long start_pfn, unsigned long end_pfn, in test_pages_isolated() argument
276 for (pfn = start_pfn; pfn < end_pfn; pfn += pageblock_nr_pages) { in test_pages_isolated()
[all …]
Dmemory_hotplug.c226 unsigned long i, pfn, end_pfn, nr_pages; in register_page_bootmem_info_node() local
237 end_pfn = pgdat_end_pfn(pgdat); in register_page_bootmem_info_node()
240 for (; pfn < end_pfn; pfn += PAGES_PER_SECTION) { in register_page_bootmem_info_node()
344 unsigned long end_pfn) in find_smallest_section_pfn() argument
346 for (; start_pfn < end_pfn; start_pfn += PAGES_PER_SECTION) { in find_smallest_section_pfn()
365 unsigned long end_pfn) in find_biggest_section_pfn() argument
370 pfn = end_pfn - 1; in find_biggest_section_pfn()
388 unsigned long end_pfn) in shrink_zone_span() argument
404 pfn = find_smallest_section_pfn(nid, zone, end_pfn, in shrink_zone_span()
410 } else if (zone_end_pfn == end_pfn) { in shrink_zone_span()
[all …]
Dpage_idle.c127 unsigned long pfn, end_pfn; in page_idle_bitmap_read() local
137 end_pfn = pfn + count * BITS_PER_BYTE; in page_idle_bitmap_read()
138 if (end_pfn > max_pfn) in page_idle_bitmap_read()
139 end_pfn = max_pfn; in page_idle_bitmap_read()
141 for (; pfn < end_pfn; pfn++) { in page_idle_bitmap_read()
172 unsigned long pfn, end_pfn; in page_idle_bitmap_write() local
182 end_pfn = pfn + count * BITS_PER_BYTE; in page_idle_bitmap_write()
183 if (end_pfn > max_pfn) in page_idle_bitmap_write()
184 end_pfn = max_pfn; in page_idle_bitmap_write()
186 for (; pfn < end_pfn; pfn++) { in page_idle_bitmap_write()
Dcompaction.c230 unsigned long end_pfn = zone_end_pfn(zone); in __reset_isolation_suitable() local
236 for (pfn = start_pfn; pfn < end_pfn; pfn += pageblock_nr_pages) { in __reset_isolation_suitable()
411 unsigned long end_pfn, in isolate_freepages_block() argument
425 for (; blockpfn < end_pfn; blockpfn++, cursor++) { in isolate_freepages_block()
527 if (unlikely(blockpfn > end_pfn)) in isolate_freepages_block()
528 blockpfn = end_pfn; in isolate_freepages_block()
541 if (strict && blockpfn < end_pfn) in isolate_freepages_block()
545 if (blockpfn == end_pfn) in isolate_freepages_block()
569 unsigned long start_pfn, unsigned long end_pfn) in isolate_freepages_range() argument
580 for (; pfn < end_pfn; pfn += isolated, in isolate_freepages_range()
[all …]
Dsparse.c143 unsigned long *end_pfn) in mminit_validate_memmodel_limits() argument
154 *start_pfn, *end_pfn, max_sparsemem_pfn); in mminit_validate_memmodel_limits()
157 *end_pfn = max_sparsemem_pfn; in mminit_validate_memmodel_limits()
158 } else if (*end_pfn > max_sparsemem_pfn) { in mminit_validate_memmodel_limits()
161 *start_pfn, *end_pfn, max_sparsemem_pfn); in mminit_validate_memmodel_limits()
163 *end_pfn = max_sparsemem_pfn; in mminit_validate_memmodel_limits()
243 unsigned long end_pfn) in node_memmap_size_bytes() argument
248 mminit_validate_memmodel_limits(&start_pfn, &end_pfn); in node_memmap_size_bytes()
249 for (pfn = start_pfn; pfn < end_pfn; pfn += PAGES_PER_SECTION) { in node_memmap_size_bytes()
640 void online_mem_sections(unsigned long start_pfn, unsigned long end_pfn) in online_mem_sections() argument
[all …]
Dpage_alloc.c1247 unsigned long end_pfn = PFN_UP(end); in reserve_bootmem_region() local
1249 for (; start_pfn < end_pfn; start_pfn++) { in reserve_bootmem_region()
1379 unsigned long end_pfn, struct zone *zone) in __pageblock_pfn_to_page() argument
1385 end_pfn--; in __pageblock_pfn_to_page()
1387 if (!pfn_valid(start_pfn) || !pfn_valid(end_pfn)) in __pageblock_pfn_to_page()
1397 end_page = pfn_to_page(end_pfn); in __pageblock_pfn_to_page()
1502 unsigned long pfn, end_pfn; in deferred_init_memmap() local
1508 end_pfn = min(walk_end, zone_end_pfn(zone)); in deferred_init_memmap()
1515 for (; pfn < end_pfn; pfn++) { in deferred_init_memmap()
1576 first_init_pfn = max(end_pfn, first_init_pfn); in deferred_init_memmap()
[all …]
Dinternal.h152 unsigned long end_pfn, struct zone *zone);
155 unsigned long end_pfn, struct zone *zone) in pageblock_pfn_to_page() argument
160 return __pageblock_pfn_to_page(start_pfn, end_pfn, zone); in pageblock_pfn_to_page()
210 unsigned long start_pfn, unsigned long end_pfn);
213 unsigned long low_pfn, unsigned long end_pfn);
445 unsigned long *end_pfn);
448 unsigned long *end_pfn) in mminit_validate_memmodel_limits() argument
Dpage_owner.c262 unsigned long end_pfn = pfn + zone->spanned_pages; in pagetypeinfo_showmixedcount_print() local
275 for (; pfn < end_pfn; ) { in pagetypeinfo_showmixedcount_print()
283 block_end_pfn = min(block_end_pfn, end_pfn); in pagetypeinfo_showmixedcount_print()
535 unsigned long end_pfn = pfn + zone->spanned_pages; in init_pages_in_zone() local
546 for (; pfn < end_pfn; ) { in init_pages_in_zone()
553 block_end_pfn = min(block_end_pfn, end_pfn); in init_pages_in_zone()
Dnobootmem.c119 unsigned long end_pfn = min_t(unsigned long, in __free_memory_core() local
122 if (start_pfn >= end_pfn) in __free_memory_core()
125 __free_pages_memory(start_pfn, end_pfn); in __free_memory_core()
127 return end_pfn - start_pfn; in __free_memory_core()
Dpage_ext.c381 unsigned long start_pfn, end_pfn; in page_ext_init() local
384 end_pfn = node_end_pfn(nid); in page_ext_init()
390 for (pfn = start_pfn; pfn < end_pfn; in page_ext_init()
Dmemblock.c1444 unsigned long start_pfn, end_pfn; in memblock_mem_size() local
1448 end_pfn = memblock_region_memory_end_pfn(r); in memblock_mem_size()
1450 end_pfn = min_t(unsigned long, end_pfn, limit_pfn); in memblock_mem_size()
1451 pages += end_pfn - start_pfn; in memblock_mem_size()
1594 unsigned long *start_pfn, unsigned long *end_pfn) in memblock_search_pfn_nid() argument
1603 *end_pfn = PFN_DOWN(type->regions[mid].base + type->regions[mid].size); in memblock_search_pfn_nid()
Dksm.c2642 unsigned long end_pfn) in stable_node_dup_remove_range() argument
2645 stable_node->kpfn < end_pfn) { in stable_node_dup_remove_range()
2658 unsigned long end_pfn, in stable_node_chain_remove_range() argument
2667 end_pfn); in stable_node_chain_remove_range()
2673 stable_node_dup_remove_range(dup, start_pfn, end_pfn); in stable_node_chain_remove_range()
2683 unsigned long end_pfn) in ksm_check_stable_tree() argument
2694 start_pfn, end_pfn, in ksm_check_stable_tree()
2705 stable_node->kpfn < end_pfn) in ksm_check_stable_tree()
Dbootmem.c785 unsigned long end_pfn; in __alloc_bootmem_node_high() local
791 end_pfn = pgdat_end_pfn(pgdat); in __alloc_bootmem_node_high()
793 if (end_pfn > MAX_DMA32_PFN + (128 >> (20 - PAGE_SHIFT)) && in __alloc_bootmem_node_high()
Dhugetlb.c1072 unsigned long end_pfn = start_pfn + nr_pages; in __alloc_gigantic_page() local
1073 return alloc_contig_range(start_pfn, end_pfn, MIGRATE_MOVABLE, in __alloc_gigantic_page()
1080 unsigned long i, end_pfn = start_pfn + nr_pages; in pfn_range_valid_gigantic() local
1083 for (i = start_pfn; i < end_pfn; i++) { in pfn_range_valid_gigantic()
1518 int dissolve_free_huge_pages(unsigned long start_pfn, unsigned long end_pfn) in dissolve_free_huge_pages() argument
1527 for (pfn = start_pfn; pfn < end_pfn; pfn += 1 << minimum_order) { in dissolve_free_huge_pages()
Dkmemleak.c1510 unsigned long end_pfn = node_end_pfn(i); in kmemleak_scan() local
1513 for (pfn = start_pfn; pfn < end_pfn; pfn++) { in kmemleak_scan()
Dvmstat.c1345 unsigned long end_pfn = zone_end_pfn(zone); in pagetypeinfo_showblockcount_print() local
1348 for (pfn = start_pfn; pfn < end_pfn; pfn += pageblock_nr_pages) { in pagetypeinfo_showblockcount_print()