Lines Matching refs:P2M_PER_PAGE
92 #define MAX_P2M_PFN (P2M_TOP_PER_PAGE * P2M_MID_PER_PAGE * P2M_PER_PAGE)
131 return pfn / (P2M_MID_PER_PAGE * P2M_PER_PAGE); in p2m_top_index()
136 return (pfn / P2M_PER_PAGE) % P2M_MID_PER_PAGE; in p2m_mid_index()
167 for (i = 0; i < P2M_PER_PAGE; i++) in p2m_init()
175 for (i = 0; i < P2M_PER_PAGE; i++) in p2m_init_identity()
240 pfn += P2M_PER_PAGE) { in xen_build_mfn_list_list()
259 pfn += (P2M_MID_PER_PAGE - 1) * P2M_PER_PAGE; in xen_build_mfn_list_list()
297 xen_p2m_size = ALIGN(xen_start_info->nr_pages, P2M_PER_PAGE); in xen_build_dynamic_phys_to_machine()
364 chunk = (pfn & (P2M_PER_PAGE * P2M_MID_PER_PAGE - 1)) ? in xen_rebuild_p2m_list()
365 P2M_PER_PAGE : P2M_PER_PAGE * P2M_MID_PER_PAGE; in xen_rebuild_p2m_list()
375 chunk = P2M_PER_PAGE; in xen_rebuild_p2m_list()
387 if (chunk == P2M_PER_PAGE) { in xen_rebuild_p2m_list()
595 p2m_init_identity(p2m, pfn & ~(P2M_PER_PAGE - 1)); in xen_alloc_p2m_entry()
619 xen_p2m_last_pfn = ALIGN(pfn + 1, P2M_PER_PAGE); in xen_alloc_p2m_entry()