Home
last modified time | relevance | path

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

/mm/
Dpage_isolation.c193 int start_isolate_page_range(unsigned long start_pfn, unsigned long end_pfn, in start_isolate_page_range() argument
202 BUG_ON(!IS_ALIGNED(end_pfn, pageblock_nr_pages)); in start_isolate_page_range()
205 pfn < end_pfn; in start_isolate_page_range()
233 void undo_isolate_page_range(unsigned long start_pfn, unsigned long end_pfn, in undo_isolate_page_range() argument
240 BUG_ON(!IS_ALIGNED(end_pfn, pageblock_nr_pages)); in undo_isolate_page_range()
243 pfn < end_pfn; in undo_isolate_page_range()
259 __test_page_isolated_in_pageblock(unsigned long pfn, unsigned long end_pfn, in __test_page_isolated_in_pageblock() argument
264 while (pfn < end_pfn) { in __test_page_isolated_in_pageblock()
288 int test_pages_isolated(unsigned long start_pfn, unsigned long end_pfn, in test_pages_isolated() argument
300 for (pfn = start_pfn; pfn < end_pfn; pfn += pageblock_nr_pages) { in test_pages_isolated()
[all …]
Dmemory_hotplug.c227 unsigned long i, pfn, end_pfn, nr_pages; in register_page_bootmem_info_node() local
238 end_pfn = pgdat_end_pfn(pgdat); in register_page_bootmem_info_node()
241 for (; pfn < end_pfn; pfn += PAGES_PER_SECTION) { in register_page_bootmem_info_node()
331 unsigned long end_pfn) in find_smallest_section_pfn() argument
333 for (; start_pfn < end_pfn; start_pfn += PAGES_PER_SUBSECTION) { in find_smallest_section_pfn()
352 unsigned long end_pfn) in find_biggest_section_pfn() argument
357 pfn = end_pfn - 1; in find_biggest_section_pfn()
375 unsigned long end_pfn) in shrink_zone_span() argument
391 pfn = find_smallest_section_pfn(nid, zone, end_pfn, in shrink_zone_span()
397 } 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.c537 unsigned long end_pfn, in isolate_freepages_block() argument
556 for (; blockpfn < end_pfn; blockpfn += stride, cursor += stride) { in isolate_freepages_block()
644 if (unlikely(blockpfn > end_pfn)) in isolate_freepages_block()
645 blockpfn = end_pfn; in isolate_freepages_block()
658 if (strict && blockpfn < end_pfn) in isolate_freepages_block()
683 unsigned long start_pfn, unsigned long end_pfn) in isolate_freepages_range() argument
694 for (; pfn < end_pfn; pfn += isolated, in isolate_freepages_range()
700 block_end_pfn = min(block_end_pfn, end_pfn); in isolate_freepages_range()
710 block_end_pfn = min(block_end_pfn, end_pfn); in isolate_freepages_range()
738 if (pfn < end_pfn) { in isolate_freepages_range()
[all …]
Dpage_alloc.c417 defer_init(int nid, unsigned long pfn, unsigned long end_pfn) in defer_init() argument
425 if (prev_end_pfn != end_pfn) { in defer_init()
426 prev_end_pfn = end_pfn; in defer_init()
431 if (end_pfn < pgdat_end_pfn(NODE_DATA(nid))) in defer_init()
454 static inline bool defer_init(int nid, unsigned long pfn, unsigned long end_pfn) in defer_init() argument
1405 unsigned long end_pfn = PFN_UP(end); in reserve_bootmem_region() local
1407 for (; start_pfn < end_pfn; start_pfn++) { in reserve_bootmem_region()
1528 unsigned long end_pfn, struct zone *zone) in __pageblock_pfn_to_page() argument
1534 end_pfn--; in __pageblock_pfn_to_page()
1536 if (!pfn_valid(start_pfn) || !pfn_valid(end_pfn)) in __pageblock_pfn_to_page()
[all …]
Dinternal.h148 unsigned long end_pfn, struct zone *zone);
151 unsigned long end_pfn, struct zone *zone) in pageblock_pfn_to_page() argument
156 return __pageblock_pfn_to_page(start_pfn, end_pfn, zone); in pageblock_pfn_to_page()
219 unsigned long start_pfn, unsigned long end_pfn);
222 unsigned long low_pfn, unsigned long end_pfn);
463 unsigned long *end_pfn);
466 unsigned long *end_pfn) in mminit_validate_memmodel_limits() argument
Dsparse.c157 unsigned long *end_pfn) in mminit_validate_memmodel_limits() argument
168 *start_pfn, *end_pfn, max_sparsemem_pfn); in mminit_validate_memmodel_limits()
171 *end_pfn = max_sparsemem_pfn; in mminit_validate_memmodel_limits()
172 } else if (*end_pfn > max_sparsemem_pfn) { in mminit_validate_memmodel_limits()
175 *start_pfn, *end_pfn, max_sparsemem_pfn); in mminit_validate_memmodel_limits()
177 *end_pfn = max_sparsemem_pfn; in mminit_validate_memmodel_limits()
609 void online_mem_sections(unsigned long start_pfn, unsigned long end_pfn) in online_mem_sections() argument
613 for (pfn = start_pfn; pfn < end_pfn; pfn += PAGES_PER_SECTION) { in online_mem_sections()
628 void offline_mem_sections(unsigned long start_pfn, unsigned long end_pfn) in offline_mem_sections() argument
632 for (pfn = start_pfn; pfn < end_pfn; pfn += PAGES_PER_SECTION) { in offline_mem_sections()
Dpage_owner.c260 unsigned long end_pfn = pfn + zone->spanned_pages; in pagetypeinfo_showmixedcount_print() local
273 for (; pfn < end_pfn; ) { in pagetypeinfo_showmixedcount_print()
281 block_end_pfn = min(block_end_pfn, end_pfn); in pagetypeinfo_showmixedcount_print()
549 unsigned long end_pfn = zone_end_pfn(zone); in init_pages_in_zone() local
557 for (; pfn < end_pfn; ) { in init_pages_in_zone()
566 block_end_pfn = min(block_end_pfn, end_pfn); in init_pages_in_zone()
Dmemblock.c1601 unsigned long start_pfn, end_pfn; in memblock_mem_size() local
1605 end_pfn = memblock_region_memory_end_pfn(r); in memblock_mem_size()
1607 end_pfn = min_t(unsigned long, end_pfn, limit_pfn); in memblock_mem_size()
1608 pages += end_pfn - start_pfn; in memblock_mem_size()
1751 unsigned long *start_pfn, unsigned long *end_pfn) in memblock_search_pfn_nid() argument
1760 *end_pfn = PFN_DOWN(type->regions[mid].base + type->regions[mid].size); in memblock_search_pfn_nid()
1912 unsigned long end_pfn = min_t(unsigned long, in __free_memory_core() local
1915 if (start_pfn >= end_pfn) in __free_memory_core()
1918 __free_pages_memory(start_pfn, end_pfn); in __free_memory_core()
1920 return end_pfn - start_pfn; in __free_memory_core()
Dpage_ext.c375 unsigned long start_pfn, end_pfn; in page_ext_init() local
378 end_pfn = node_end_pfn(nid); in page_ext_init()
384 for (pfn = start_pfn; pfn < end_pfn; in page_ext_init()
Dshuffle.c109 unsigned long end_pfn = zone_end_pfn(z); in __shuffle_zone() local
115 for (i = start_pfn; i < end_pfn; i += order_pages) { in __shuffle_zone()
Dksm.c2717 unsigned long end_pfn) in stable_node_dup_remove_range() argument
2720 stable_node->kpfn < end_pfn) { in stable_node_dup_remove_range()
2733 unsigned long end_pfn, in stable_node_chain_remove_range() argument
2742 end_pfn); in stable_node_chain_remove_range()
2748 stable_node_dup_remove_range(dup, start_pfn, end_pfn); in stable_node_chain_remove_range()
2758 unsigned long end_pfn) in ksm_check_stable_tree() argument
2769 start_pfn, end_pfn, in ksm_check_stable_tree()
2780 stable_node->kpfn < end_pfn) in ksm_check_stable_tree()
Dhugetlb.c1076 unsigned long end_pfn = start_pfn + nr_pages; in __alloc_gigantic_page() local
1077 return alloc_contig_range(start_pfn, end_pfn, MIGRATE_MOVABLE, in __alloc_gigantic_page()
1084 unsigned long i, end_pfn = start_pfn + nr_pages; in pfn_range_valid_gigantic() local
1087 for (i = start_pfn; i < end_pfn; i++) { in pfn_range_valid_gigantic()
1649 int dissolve_free_huge_pages(unsigned long start_pfn, unsigned long end_pfn) in dissolve_free_huge_pages() argument
1658 for (pfn = start_pfn; pfn < end_pfn; pfn += 1 << minimum_order) { in dissolve_free_huge_pages()
Dkmemleak.c1444 unsigned long end_pfn = node_end_pfn(i); in kmemleak_scan() local
1447 for (pfn = start_pfn; pfn < end_pfn; pfn++) { in kmemleak_scan()
Dvmstat.c1440 unsigned long end_pfn = zone_end_pfn(zone); in pagetypeinfo_showblockcount_print() local
1443 for (pfn = start_pfn; pfn < end_pfn; pfn += pageblock_nr_pages) { in pagetypeinfo_showblockcount_print()