Lines Matching refs:pfn

945 memrange_num(pfn_t pfn)  in memrange_num()  argument
950 if (pfn >= memranges[n]) in memrange_num()
961 pfn_2_mtype(pfn_t pfn) in pfn_2_mtype() argument
970 if (pfn >= mnoderanges[n].mnr_pfnlo) { in pfn_2_mtype()
996 pfn_t pfn = *pfnp; in is_contigpage_free() local
1012 pp = page_numtopp_nolock(pfn + i); in is_contigpage_free()
1018 if (page_pptonum(pp) != pfn + i) { in is_contigpage_free()
1044 } while ((++i < *pgcnt) && ((pfn + i) & pfnseg)); in is_contigpage_free()
1105 pfn_t pfn; in page_get_contigpage() local
1161 pfn = startpfn; in page_get_contigpage()
1163 pfn = P2ROUNDUP(pfn, pfnalign); in page_get_contigpage()
1165 while (pfn + minctg - 1 <= hi) { in page_get_contigpage()
1167 plist = is_contigpage_free(&pfn, pgcnt, minctg, pfnseg, iolock); in page_get_contigpage()
1175 startpfn = pfn; in page_get_contigpage()
1183 pfn = P2ROUNDUP(pfn, pfnalign); in page_get_contigpage()
1193 pfn = lo; in page_get_contigpage()
1195 pfn = P2ROUNDUP(pfn, pfnalign); in page_get_contigpage()
1198 while (pfn < startpfn) { in page_get_contigpage()
1200 plist = is_contigpage_free(&pfn, pgcnt, minctg, pfnseg, iolock); in page_get_contigpage()
1210 startpfn = pfn; in page_get_contigpage()
1218 pfn = P2ROUNDUP(pfn, pfnalign); in page_get_contigpage()
1555 pfn_t pfn, lo; in mtype_modify_max() local
1561 for (pfn = endpfn; pfn > startpfn; ) { in mtype_modify_max()
1564 if (pfn > lo) { in mtype_modify_max()
1566 inc = pfn - startpfn; in mtype_modify_max()
1568 inc = pfn - lo; in mtype_modify_max()
1576 pfn -= inc; in mtype_modify_max()
2100 pfn_t pfn, lapfn, prev_lapfn; in compact_contig_pfn_list() local
2106 pfn = contig_pfn_list[i]; in compact_contig_pfn_list()
2108 mfn = mfn_list[pfn]; in compact_contig_pfn_list()
2118 if (pfn != prev_lapfn) in compact_contig_pfn_list()
2119 contig_pfn_list[newcnt++] = pfn; in compact_contig_pfn_list()
2143 pfn_t pfn; in create_contig_pfnlist() local
2170 for (pfn = 0; pfn < mfn_count; pfn++) { in create_contig_pfnlist()
2171 pp = page_numtopp_nolock(pfn); in create_contig_pfnlist()
2174 contig_pfn_list[contig_pfn_cnt] = pfn; in create_contig_pfnlist()
2240 update_contig_pfnlist(pfn_t pfn, mfn_t oldmfn, mfn_t newmfn) in update_contig_pfnlist() argument
2260 while ((probe_pfn = contig_pfn_list[probe_pos]) != pfn) { in update_contig_pfnlist()
2321 contig_pfn_list[insert_point] = pfn; in update_contig_pfnlist()
2335 pfn_t pfn; in populate_io_pool() local
2372 pfn = mfn_to_pfn(mfn); in populate_io_pool()
2373 if (pfn & PFN_IS_FOREIGN_MFN) in populate_io_pool()
2378 pp = page_numtopp_alloc(pfn); in populate_io_pool()
2452 pfn_t pfn; in find_contig_free() local
2477 pfn = contig_pfn_list[next_alloc_pfn]; in find_contig_free()
2478 mfn = pfn_to_mfn(pfn); in find_contig_free()
2485 (pp = page_numtopp_alloc(pfn)) != NULL && in find_contig_free()
3032 pfn_t pfn; in page_get_high_mfn() local
3044 pfn = mfn_to_pfn(last_mfn); in page_get_high_mfn()
3045 if (pfn & PFN_IS_FOREIGN_MFN) in page_get_high_mfn()
3049 pp = page_numtopp_alloc(pfn); in page_get_high_mfn()
3788 pfnzero(pfn_t pfn, uint_t off, uint_t len) in pfnzero() argument
3799 if (kpm_enable && !pfn_is_foreign(pfn)) { in pfnzero()
3800 pp_addr2 = hat_kpm_pfn2va(pfn); in pfnzero()
3811 hat_mempte_remap(pfn, pp_addr2, pte2, in pfnzero()
3850 if (!kpm_enable || pfn_is_foreign(pfn)) { in pfnzero()