Lines Matching refs:start_pfn
432 unsigned long start_pfn; member
445 unsigned long start_pfn; member
583 if ((pfn >= gap->start_pfn) && (pfn < gap->end_pfn)) in has_pfn_is_backed()
590 static unsigned long hv_page_offline_check(unsigned long start_pfn, in hv_page_offline_check() argument
593 unsigned long pfn = start_pfn, count = 0; in hv_page_offline_check()
597 while (pfn < start_pfn + nr_pages) { in hv_page_offline_check()
604 while ((pfn >= has->start_pfn) && in hv_page_offline_check()
606 (pfn < start_pfn + nr_pages)) { in hv_page_offline_check()
643 pfn_count = hv_page_offline_check(mem->start_pfn, in hv_memory_notifier()
692 unsigned long start_pfn, unsigned long size) in hv_bring_pgs_online() argument
696 pr_debug("Online %lu pages starting at pfn 0x%lx\n", size, start_pfn); in hv_bring_pgs_online()
698 hv_page_online_one(has, pfn_to_page(start_pfn + i)); in hv_bring_pgs_online()
707 unsigned long start_pfn; in hv_mem_hot_add() local
713 start_pfn = start + (i * HA_CHUNK); in hv_mem_hot_add()
732 nid = memory_add_physaddr_to_nid(PFN_PHYS(start_pfn)); in hv_mem_hot_add()
733 ret = add_memory(nid, PFN_PHYS((start_pfn)), in hv_mem_hot_add()
778 if ((pfn < has->start_pfn) || in hv_online_page()
788 static int pfn_covered(unsigned long start_pfn, unsigned long pfn_cnt) in pfn_covered() argument
802 if (start_pfn < has->start_pfn || start_pfn >= has->end_pfn) in pfn_covered()
809 if (has->covered_end_pfn != start_pfn) { in pfn_covered()
817 gap->start_pfn = has->covered_end_pfn; in pfn_covered()
818 gap->end_pfn = start_pfn; in pfn_covered()
821 has->covered_end_pfn = start_pfn; in pfn_covered()
828 if ((start_pfn + pfn_cnt) > has->end_pfn) { in pfn_covered()
829 residual = (start_pfn + pfn_cnt - has->end_pfn); in pfn_covered()
851 unsigned long start_pfn = pg_start; in handle_pg_range() local
868 if (start_pfn < has->start_pfn || start_pfn >= has->end_pfn) in handle_pg_range()
873 if (start_pfn < has->ha_end_pfn) { in handle_pg_range()
879 pgs_ol = has->ha_end_pfn - start_pfn; in handle_pg_range()
893 if (start_pfn > has->start_pfn && in handle_pg_range()
894 online_section_nr(pfn_to_section_nr(start_pfn))) in handle_pg_range()
895 hv_bring_pgs_online(has, start_pfn, pgs_ol); in handle_pg_range()
964 ha_region->start_pfn = rg_start; in process_hot_add()