Lines Matching refs:start_pfn
299 unsigned long start_pfn, end_pfn; in early_calculate_totalpages() local
302 for_each_mem_pfn_range(i, MAX_NUMNODES, &start_pfn, &end_pfn, &nid) { in early_calculate_totalpages()
303 unsigned long pages = end_pfn - start_pfn; in early_calculate_totalpages()
456 unsigned long start_pfn, end_pfn; in find_zone_movable_pfns_for_nodes() local
474 for_each_mem_pfn_range(i, nid, &start_pfn, &end_pfn, NULL) { in find_zone_movable_pfns_for_nodes()
477 start_pfn = max(start_pfn, zone_movable_pfn[nid]); in find_zone_movable_pfns_for_nodes()
478 if (start_pfn >= end_pfn) in find_zone_movable_pfns_for_nodes()
482 if (start_pfn < usable_startpfn) { in find_zone_movable_pfns_for_nodes()
485 - start_pfn; in find_zone_movable_pfns_for_nodes()
504 start_pfn = usable_startpfn; in find_zone_movable_pfns_for_nodes()
512 size_pages = end_pfn - start_pfn; in find_zone_movable_pfns_for_nodes()
515 zone_movable_pfn[nid] = start_pfn + size_pages; in find_zone_movable_pfns_for_nodes()
543 unsigned long start_pfn, end_pfn; in find_zone_movable_pfns_for_nodes() local
548 get_pfn_range_for_nid(nid, &start_pfn, &end_pfn); in find_zone_movable_pfns_for_nodes()
596 unsigned long start_pfn, end_pfn; in __early_pfn_to_nid() local
602 nid = memblock_search_pfn_nid(pfn, &start_pfn, &end_pfn); in __early_pfn_to_nid()
604 state->last_start = start_pfn; in __early_pfn_to_nid()
745 unsigned long start_pfn = PFN_DOWN(start); in reserve_bootmem_region() local
748 for (; start_pfn < end_pfn; start_pfn++) { in reserve_bootmem_region()
749 if (pfn_valid(start_pfn)) { in reserve_bootmem_region()
750 struct page *page = pfn_to_page(start_pfn); in reserve_bootmem_region()
752 init_reserved_page(start_pfn, nid); in reserve_bootmem_region()
843 unsigned long start_pfn, unsigned long zone_end_pfn, in memmap_init_range() argument
847 unsigned long pfn, end_pfn = start_pfn + size; in memmap_init_range()
865 if (start_pfn == altmap->base_pfn) in memmap_init_range()
866 start_pfn += altmap->reserve; in memmap_init_range()
871 for (pfn = start_pfn; pfn < end_pfn; ) { in memmap_init_range()
904 unsigned long start_pfn, in memmap_init_zone_range() argument
912 start_pfn = clamp(start_pfn, zone_start_pfn, zone_end_pfn); in memmap_init_zone_range()
915 if (start_pfn >= end_pfn) in memmap_init_zone_range()
918 memmap_init_range(end_pfn - start_pfn, nid, zone_id, start_pfn, in memmap_init_zone_range()
921 if (*hole_pfn < start_pfn) in memmap_init_zone_range()
922 init_unavailable_range(*hole_pfn, start_pfn, zone_id, nid); in memmap_init_zone_range()
929 unsigned long start_pfn, end_pfn; in memmap_init() local
933 for_each_mem_pfn_range(i, MAX_NUMNODES, &start_pfn, &end_pfn, &nid) { in memmap_init()
942 memmap_init_zone_range(zone, start_pfn, end_pfn, in memmap_init()
1058 unsigned long start_pfn, in memmap_init_zone_device() argument
1062 unsigned long pfn, end_pfn = start_pfn + nr_pages; in memmap_init_zone_device()
1079 start_pfn = altmap->base_pfn + vmem_altmap_offset(altmap); in memmap_init_zone_device()
1080 nr_pages = end_pfn - start_pfn; in memmap_init_zone_device()
1083 for (pfn = start_pfn; pfn < end_pfn; pfn += pfns_per_compound) { in memmap_init_zone_device()
1145 unsigned long start_pfn, end_pfn; in __absent_pages_in_range() local
1148 for_each_mem_pfn_range(i, nid, &start_pfn, &end_pfn, NULL) { in __absent_pages_in_range()
1149 start_pfn = clamp(start_pfn, range_start_pfn, range_end_pfn); in __absent_pages_in_range()
1151 nr_absent -= end_pfn - start_pfn; in __absent_pages_in_range()
1163 unsigned long __init absent_pages_in_range(unsigned long start_pfn, in absent_pages_in_range() argument
1166 return __absent_pages_in_range(MAX_NUMNODES, start_pfn, end_pfn); in absent_pages_in_range()
1189 unsigned long start_pfn, end_pfn; in zone_absent_pages_in_node() local
1193 start_pfn = clamp(memblock_region_memory_base_pfn(r), in zone_absent_pages_in_node()
1200 nr_absent += end_pfn - start_pfn; in zone_absent_pages_in_node()
1204 nr_absent += end_pfn - start_pfn; in zone_absent_pages_in_node()
1689 unsigned long *start_pfn, unsigned long *end_pfn) in get_pfn_range_for_nid() argument
1694 *start_pfn = -1UL; in get_pfn_range_for_nid()
1698 *start_pfn = min(*start_pfn, this_start_pfn); in get_pfn_range_for_nid()
1702 if (*start_pfn == -1UL) in get_pfn_range_for_nid()
1703 *start_pfn = 0; in get_pfn_range_for_nid()
1709 unsigned long start_pfn = 0; in free_area_init_node() local
1715 get_pfn_range_for_nid(nid, &start_pfn, &end_pfn); in free_area_init_node()
1718 pgdat->node_start_pfn = start_pfn; in free_area_init_node()
1721 if (start_pfn != end_pfn) { in free_area_init_node()
1723 (u64)start_pfn << PAGE_SHIFT, in free_area_init_node()
1726 calculate_node_totalpages(pgdat, start_pfn, end_pfn); in free_area_init_node()
1794 unsigned long start_pfn, end_pfn; in free_area_init() local
1804 start_pfn = PHYS_PFN(memblock_start_of_DRAM()); in free_area_init()
1816 end_pfn = max(max_zone_pfn[zone], start_pfn); in free_area_init()
1817 arch_zone_lowest_possible_pfn[zone] = start_pfn; in free_area_init()
1820 start_pfn = end_pfn; in free_area_init()
1858 for_each_mem_pfn_range(i, MAX_NUMNODES, &start_pfn, &end_pfn, &nid) { in free_area_init()
1860 (u64)start_pfn << PAGE_SHIFT, in free_area_init()
1862 subsection_map_init(start_pfn, end_pfn - start_pfn); in free_area_init()
2109 deferred_init_maxorder(u64 *i, struct zone *zone, unsigned long *start_pfn, in deferred_init_maxorder() argument
2112 unsigned long mo_pfn = ALIGN(*start_pfn + 1, MAX_ORDER_NR_PAGES); in deferred_init_maxorder()
2113 unsigned long spfn = *start_pfn, epfn = *end_pfn; in deferred_init_maxorder()
2118 for_each_free_mem_pfn_range_in_zone_from(j, zone, start_pfn, end_pfn) { in deferred_init_maxorder()
2121 if (mo_pfn <= *start_pfn) in deferred_init_maxorder()
2125 nr_pages += deferred_init_pages(zone, *start_pfn, t); in deferred_init_maxorder()
2128 *start_pfn = mo_pfn; in deferred_init_maxorder()
2153 deferred_init_memmap_chunk(unsigned long start_pfn, unsigned long end_pfn, in deferred_init_memmap_chunk() argument
2160 deferred_init_mem_pfn_range_in_zone(&i, zone, &spfn, &epfn, start_pfn); in deferred_init_memmap_chunk()