Lines Matching refs:start_pfn
434 unsigned long start_pfn; member
447 unsigned long start_pfn; member
587 if ((pfn >= gap->start_pfn) && (pfn < gap->end_pfn)) in has_pfn_is_backed()
594 static unsigned long hv_page_offline_check(unsigned long start_pfn, in hv_page_offline_check() argument
597 unsigned long pfn = start_pfn, count = 0; in hv_page_offline_check()
601 while (pfn < start_pfn + nr_pages) { in hv_page_offline_check()
608 while ((pfn >= has->start_pfn) && in hv_page_offline_check()
610 (pfn < start_pfn + nr_pages)) { in hv_page_offline_check()
644 pfn_count = hv_page_offline_check(mem->start_pfn, in hv_memory_notifier()
691 unsigned long start_pfn, unsigned long size) in hv_bring_pgs_online() argument
695 pr_debug("Online %lu pages starting at pfn 0x%lx\n", size, start_pfn); in hv_bring_pgs_online()
697 hv_page_online_one(has, pfn_to_page(start_pfn + i)); in hv_bring_pgs_online()
706 unsigned long start_pfn; in hv_mem_hot_add() local
712 start_pfn = start + (i * HA_CHUNK); in hv_mem_hot_add()
730 nid = memory_add_physaddr_to_nid(PFN_PHYS(start_pfn)); in hv_mem_hot_add()
731 ret = add_memory(nid, PFN_PHYS((start_pfn)), in hv_mem_hot_add()
775 if ((pfn < has->start_pfn) || in hv_online_page()
785 static int pfn_covered(unsigned long start_pfn, unsigned long pfn_cnt) in pfn_covered() argument
799 if (start_pfn < has->start_pfn || start_pfn >= has->end_pfn) in pfn_covered()
806 if (has->covered_end_pfn != start_pfn) { in pfn_covered()
814 gap->start_pfn = has->covered_end_pfn; in pfn_covered()
815 gap->end_pfn = start_pfn; in pfn_covered()
818 has->covered_end_pfn = start_pfn; in pfn_covered()
825 if ((start_pfn + pfn_cnt) > has->end_pfn) { in pfn_covered()
826 residual = (start_pfn + pfn_cnt - has->end_pfn); in pfn_covered()
848 unsigned long start_pfn = pg_start; in handle_pg_range() local
865 if (start_pfn < has->start_pfn || start_pfn >= has->end_pfn) in handle_pg_range()
870 if (start_pfn < has->ha_end_pfn) { in handle_pg_range()
876 pgs_ol = has->ha_end_pfn - start_pfn; in handle_pg_range()
890 if (start_pfn > has->start_pfn && in handle_pg_range()
891 online_section_nr(pfn_to_section_nr(start_pfn))) in handle_pg_range()
892 hv_bring_pgs_online(has, start_pfn, pgs_ol); in handle_pg_range()
961 ha_region->start_pfn = rg_start; in process_hot_add()