Lines Matching refs:p2m
166 static void p2m_init(unsigned long *p2m) in p2m_init() argument
171 p2m[i] = INVALID_P2M_ENTRY; in p2m_init()
174 static void p2m_init_identity(unsigned long *p2m, unsigned long pfn) in p2m_init_identity() argument
179 p2m[i] = IDENTITY_FRAME(pfn + i); in p2m_init_identity()
331 static void __init xen_rebuild_p2m_list(unsigned long *p2m) in xen_rebuild_p2m_list() argument
384 ptep = populate_extra_pte((unsigned long)(p2m + pfn)); in xen_rebuild_p2m_list()
394 ptep = populate_extra_pte((unsigned long)(p2m + pfn)); in xen_rebuild_p2m_list()
405 (unsigned long)(p2m + pfn) + i * PMD_SIZE); in xen_rebuild_p2m_list()
589 unsigned long *p2m; in xen_alloc_p2m_entry() local
591 p2m = alloc_p2m_page(); in xen_alloc_p2m_entry()
592 if (!p2m) in xen_alloc_p2m_entry()
596 p2m_init(p2m); in xen_alloc_p2m_entry()
598 p2m_init_identity(p2m, pfn & ~(P2M_PER_PAGE - 1)); in xen_alloc_p2m_entry()
606 pfn_pte(PFN_DOWN(__pa(p2m)), PAGE_KERNEL)); in xen_alloc_p2m_entry()
610 mid_mfn[p2m_mid_index(pfn)] = virt_to_mfn(p2m); in xen_alloc_p2m_entry()
611 p2m = NULL; in xen_alloc_p2m_entry()
616 if (p2m) in xen_alloc_p2m_entry()
617 free_p2m_page(p2m); in xen_alloc_p2m_entry()