Lines Matching refs:pfn

1067 memrange_num(pfn_t pfn)  in memrange_num()  argument
1072 if (pfn >= memranges[n]) in memrange_num()
1083 pfn_2_mtype(pfn_t pfn) in pfn_2_mtype() argument
1092 if (pfn >= mnoderanges[n].mnr_pfnlo) { in pfn_2_mtype()
1118 pfn_t pfn = *pfnp; in is_contigpage_free() local
1134 pp = page_numtopp_nolock(pfn + i); in is_contigpage_free()
1140 if (page_pptonum(pp) != pfn + i) { in is_contigpage_free()
1166 } while ((++i < *pgcnt) && ((pfn + i) & pfnseg)); in is_contigpage_free()
1227 pfn_t pfn; in page_get_contigpage() local
1283 pfn = startpfn; in page_get_contigpage()
1285 pfn = P2ROUNDUP(pfn, pfnalign); in page_get_contigpage()
1287 while (pfn + minctg - 1 <= hi) { in page_get_contigpage()
1289 plist = is_contigpage_free(&pfn, pgcnt, minctg, pfnseg, iolock); in page_get_contigpage()
1297 startpfn = pfn; in page_get_contigpage()
1305 pfn = P2ROUNDUP(pfn, pfnalign); in page_get_contigpage()
1315 pfn = lo; in page_get_contigpage()
1317 pfn = P2ROUNDUP(pfn, pfnalign); in page_get_contigpage()
1320 while (pfn < startpfn) { in page_get_contigpage()
1322 plist = is_contigpage_free(&pfn, pgcnt, minctg, pfnseg, iolock); in page_get_contigpage()
1332 startpfn = pfn; in page_get_contigpage()
1340 pfn = P2ROUNDUP(pfn, pfnalign); in page_get_contigpage()
1652 pfn_t pfn, lo; in mtype_modify_max() local
1658 for (pfn = endpfn; pfn > startpfn; ) { in mtype_modify_max()
1661 if (pfn > lo) { in mtype_modify_max()
1663 inc = pfn - startpfn; in mtype_modify_max()
1665 inc = pfn - lo; in mtype_modify_max()
1673 pfn -= inc; in mtype_modify_max()
2190 pfn_t pfn, lapfn, prev_lapfn; in compact_contig_pfn_list() local
2196 pfn = contig_pfn_list[i]; in compact_contig_pfn_list()
2198 mfn = mfn_list[pfn]; in compact_contig_pfn_list()
2208 if (pfn != prev_lapfn) in compact_contig_pfn_list()
2209 contig_pfn_list[newcnt++] = pfn; in compact_contig_pfn_list()
2233 pfn_t pfn; in create_contig_pfnlist() local
2260 for (pfn = 0; pfn < mfn_count; pfn++) { in create_contig_pfnlist()
2261 pp = page_numtopp_nolock(pfn); in create_contig_pfnlist()
2264 contig_pfn_list[contig_pfn_cnt] = pfn; in create_contig_pfnlist()
2330 update_contig_pfnlist(pfn_t pfn, mfn_t oldmfn, mfn_t newmfn) in update_contig_pfnlist() argument
2350 while ((probe_pfn = contig_pfn_list[probe_pos]) != pfn) { in update_contig_pfnlist()
2411 contig_pfn_list[insert_point] = pfn; in update_contig_pfnlist()
2425 pfn_t pfn; in populate_io_pool() local
2462 pfn = mfn_to_pfn(mfn); in populate_io_pool()
2463 if (pfn & PFN_IS_FOREIGN_MFN) in populate_io_pool()
2468 pp = page_numtopp_alloc(pfn); in populate_io_pool()
2542 pfn_t pfn; in find_contig_free() local
2567 pfn = contig_pfn_list[next_alloc_pfn]; in find_contig_free()
2568 mfn = pfn_to_mfn(pfn); in find_contig_free()
2575 (pp = page_numtopp_alloc(pfn)) != NULL && in find_contig_free()
3123 pfn_t pfn; in page_get_high_mfn() local
3135 pfn = mfn_to_pfn(last_mfn); in page_get_high_mfn()
3136 if (pfn & PFN_IS_FOREIGN_MFN) in page_get_high_mfn()
3140 pp = page_numtopp_alloc(pfn); in page_get_high_mfn()
3879 pfnzero(pfn_t pfn, uint_t off, uint_t len) in pfnzero() argument
3890 if (kpm_enable && !pfn_is_foreign(pfn)) { in pfnzero()
3891 pp_addr2 = hat_kpm_pfn2va(pfn); in pfnzero()
3902 hat_mempte_remap(pfn, pp_addr2, pte2, in pfnzero()
3941 if (!kpm_enable || pfn_is_foreign(pfn)) { in pfnzero()