Lines Matching refs:p2m
162 static void p2m_init(unsigned long *p2m) in p2m_init() argument
167 p2m[i] = INVALID_P2M_ENTRY; in p2m_init()
170 static void p2m_init_identity(unsigned long *p2m, unsigned long pfn) in p2m_init_identity() argument
175 p2m[i] = IDENTITY_FRAME(pfn + i); in p2m_init_identity()
327 static void __init xen_rebuild_p2m_list(unsigned long *p2m) in xen_rebuild_p2m_list() argument
380 ptep = populate_extra_pte((unsigned long)(p2m + pfn)); in xen_rebuild_p2m_list()
390 ptep = populate_extra_pte((unsigned long)(p2m + pfn)); in xen_rebuild_p2m_list()
401 (unsigned long)(p2m + pfn) + i * PMD_SIZE); in xen_rebuild_p2m_list()
584 unsigned long *p2m; in xen_alloc_p2m_entry() local
586 p2m = alloc_p2m_page(); in xen_alloc_p2m_entry()
587 if (!p2m) in xen_alloc_p2m_entry()
591 p2m_init(p2m); in xen_alloc_p2m_entry()
593 p2m_init_identity(p2m, pfn & ~(P2M_PER_PAGE - 1)); in xen_alloc_p2m_entry()
601 pfn_pte(PFN_DOWN(__pa(p2m)), PAGE_KERNEL)); in xen_alloc_p2m_entry()
605 mid_mfn[p2m_mid_index(pfn)] = virt_to_mfn(p2m); in xen_alloc_p2m_entry()
606 p2m = NULL; in xen_alloc_p2m_entry()
611 if (p2m) in xen_alloc_p2m_entry()
612 free_p2m_page(p2m); in xen_alloc_p2m_entry()