Lines Matching refs:max_pfn
93 ctx->save.p2m_size = ctx->x86.pv.max_pfn + 1; in map_p2m_leaves()
137 xen_pfn_t fll_mfn, saved_mfn, max_pfn; in map_p2m_tree() local
148 fll_entries = (ctx->x86.pv.max_pfn / (fpp * fpp)) + 1; in map_p2m_tree()
151 ERROR("max_pfn %#lx too large for p2m tree", ctx->x86.pv.max_pfn); in map_p2m_tree()
215 max_pfn = (saved_x + 1) * fpp * fpp - 1; in map_p2m_tree()
216 if ( max_pfn < ctx->x86.pv.max_pfn ) in map_p2m_tree()
218 ctx->x86.pv.max_pfn = max_pfn; in map_p2m_tree()
219 fll_entries = (ctx->x86.pv.max_pfn / (fpp * fpp)) + 1; in map_p2m_tree()
221 ctx->x86.pv.p2m_frames = (ctx->x86.pv.max_pfn + fpp) / fpp; in map_p2m_tree()
222 DPRINTF("max_pfn %#lx, p2m_frames %d", ctx->x86.pv.max_pfn, in map_p2m_tree()
224 fl_entries = (ctx->x86.pv.max_pfn / fpp) + 1; in map_p2m_tree()
317 xen_pfn_t p2m_mfn, mfn, saved_mfn, max_pfn; in map_p2m_list() local
337 ctx->x86.pv.p2m_frames = ctx->x86.pv.max_pfn / fpp + 1; in map_p2m_list()
371 DPRINTF("max_pfn %#lx, p2m_frames %d", ctx->x86.pv.max_pfn, in map_p2m_list()
434 max_pfn = ((xen_pfn_t)saved_idx << 9) * fpp - 1; in map_p2m_list()
435 if ( max_pfn < ctx->x86.pv.max_pfn ) in map_p2m_list()
437 ctx->x86.pv.max_pfn = max_pfn; in map_p2m_list()
438 ctx->x86.pv.p2m_frames = (ctx->x86.pv.max_pfn + fpp) / fpp; in map_p2m_list()
470 ctx->x86.pv.max_pfn = GET_FIELD(ctx->x86.pv.shinfo, arch.max_pfn, in map_p2m()
820 .end_pfn = ctx->x86.pv.max_pfn, in write_x86_pv_p2m_frames()
992 assert(pfn <= ctx->x86.pv.max_pfn); in x86_pv_pfn_to_gfn()