Lines Matching refs:start_pfn
442 unsigned long start_pfn; member
455 unsigned long start_pfn; member
593 if ((pfn >= gap->start_pfn) && (pfn < gap->end_pfn)) in has_pfn_is_backed()
600 static unsigned long hv_page_offline_check(unsigned long start_pfn, in hv_page_offline_check() argument
603 unsigned long pfn = start_pfn, count = 0; in hv_page_offline_check()
607 while (pfn < start_pfn + nr_pages) { in hv_page_offline_check()
614 while ((pfn >= has->start_pfn) && in hv_page_offline_check()
616 (pfn < start_pfn + nr_pages)) { in hv_page_offline_check()
653 pfn_count = hv_page_offline_check(mem->start_pfn, in hv_memory_notifier()
697 unsigned long start_pfn, unsigned long size) in hv_bring_pgs_online() argument
701 pr_debug("Online %lu pages starting at pfn 0x%lx\n", size, start_pfn); in hv_bring_pgs_online()
703 hv_page_online_one(has, pfn_to_page(start_pfn + i)); in hv_bring_pgs_online()
712 unsigned long start_pfn; in hv_mem_hot_add() local
718 start_pfn = start + (i * HA_CHUNK); in hv_mem_hot_add()
737 nid = memory_add_physaddr_to_nid(PFN_PHYS(start_pfn)); in hv_mem_hot_add()
738 ret = add_memory(nid, PFN_PHYS((start_pfn)), in hv_mem_hot_add()
783 if ((pfn < has->start_pfn) || (pfn >= has->end_pfn)) in hv_online_page()
792 static int pfn_covered(unsigned long start_pfn, unsigned long pfn_cnt) in pfn_covered() argument
806 if (start_pfn < has->start_pfn || start_pfn >= has->end_pfn) in pfn_covered()
813 if (has->covered_end_pfn != start_pfn) { in pfn_covered()
821 gap->start_pfn = has->covered_end_pfn; in pfn_covered()
822 gap->end_pfn = start_pfn; in pfn_covered()
825 has->covered_end_pfn = start_pfn; in pfn_covered()
832 if ((start_pfn + pfn_cnt) > has->end_pfn) { in pfn_covered()
833 residual = (start_pfn + pfn_cnt - has->end_pfn); in pfn_covered()
855 unsigned long start_pfn = pg_start; in handle_pg_range() local
872 if (start_pfn < has->start_pfn || start_pfn >= has->end_pfn) in handle_pg_range()
877 if (start_pfn < has->ha_end_pfn) { in handle_pg_range()
883 pgs_ol = has->ha_end_pfn - start_pfn; in handle_pg_range()
895 if (start_pfn > has->start_pfn && in handle_pg_range()
896 !PageReserved(pfn_to_page(start_pfn - 1))) in handle_pg_range()
897 hv_bring_pgs_online(has, start_pfn, pgs_ol); in handle_pg_range()
966 ha_region->start_pfn = rg_start; in process_hot_add()