Lines Matching refs:p2m
164 static void p2m_init(unsigned long *p2m) in p2m_init() argument
169 p2m[i] = INVALID_P2M_ENTRY; in p2m_init()
172 static void p2m_init_identity(unsigned long *p2m, unsigned long pfn) in p2m_init_identity() argument
177 p2m[i] = IDENTITY_FRAME(pfn + i); in p2m_init_identity()
329 static void __init xen_rebuild_p2m_list(unsigned long *p2m) in xen_rebuild_p2m_list() argument
386 ptep = populate_extra_pte((unsigned long)(p2m + pfn)); in xen_rebuild_p2m_list()
396 ptep = populate_extra_pte((unsigned long)(p2m + pfn)); in xen_rebuild_p2m_list()
407 (unsigned long)(p2m + pfn) + i * PMD_SIZE); in xen_rebuild_p2m_list()
594 unsigned long *p2m; in xen_alloc_p2m_entry() local
596 p2m = alloc_p2m_page(); in xen_alloc_p2m_entry()
597 if (!p2m) in xen_alloc_p2m_entry()
601 p2m_init(p2m); in xen_alloc_p2m_entry()
603 p2m_init_identity(p2m, pfn & ~(P2M_PER_PAGE - 1)); in xen_alloc_p2m_entry()
611 pfn_pte(PFN_DOWN(__pa(p2m)), PAGE_KERNEL)); in xen_alloc_p2m_entry()
615 mid_mfn[p2m_mid_index(pfn)] = virt_to_mfn(p2m); in xen_alloc_p2m_entry()
616 p2m = NULL; in xen_alloc_p2m_entry()
621 if (p2m) in xen_alloc_p2m_entry()
622 free_p2m_page(p2m); in xen_alloc_p2m_entry()