Lines Matching refs:P2M_PER_PAGE
90 #define MAX_P2M_PFN (P2M_TOP_PER_PAGE * P2M_MID_PER_PAGE * P2M_PER_PAGE)
129 return pfn / (P2M_MID_PER_PAGE * P2M_PER_PAGE); in p2m_top_index()
134 return (pfn / P2M_PER_PAGE) % P2M_MID_PER_PAGE; in p2m_mid_index()
139 return pfn % P2M_PER_PAGE; in p2m_index()
170 for (i = 0; i < P2M_PER_PAGE; i++) in p2m_init()
178 for (i = 0; i < P2M_PER_PAGE; i++) in p2m_init_identity()
243 pfn += P2M_PER_PAGE) { in xen_build_mfn_list_list()
262 pfn += (P2M_MID_PER_PAGE - 1) * P2M_PER_PAGE; in xen_build_mfn_list_list()
300 xen_p2m_size = ALIGN(xen_start_info->nr_pages, P2M_PER_PAGE); in xen_build_dynamic_phys_to_machine()
367 chunk = (pfn & (P2M_PER_PAGE * P2M_MID_PER_PAGE - 1)) ? in xen_rebuild_p2m_list()
368 P2M_PER_PAGE : P2M_PER_PAGE * P2M_MID_PER_PAGE; in xen_rebuild_p2m_list()
378 chunk = P2M_PER_PAGE; in xen_rebuild_p2m_list()
390 if (chunk == P2M_PER_PAGE) { in xen_rebuild_p2m_list()
598 p2m_init_identity(p2m, pfn & ~(P2M_PER_PAGE - 1)); in xen_alloc_p2m_entry()
622 xen_p2m_last_pfn = ALIGN(pfn + 1, P2M_PER_PAGE); in xen_alloc_p2m_entry()