Lines Matching refs:P2M_PER_PAGE
88 #define MAX_P2M_PFN (P2M_TOP_PER_PAGE * P2M_MID_PER_PAGE * P2M_PER_PAGE)
127 return pfn / (P2M_MID_PER_PAGE * P2M_PER_PAGE); in p2m_top_index()
132 return (pfn / P2M_PER_PAGE) % P2M_MID_PER_PAGE; in p2m_mid_index()
137 return pfn % P2M_PER_PAGE; in p2m_index()
168 for (i = 0; i < P2M_PER_PAGE; i++) in p2m_init()
176 for (i = 0; i < P2M_PER_PAGE; i++) in p2m_init_identity()
234 pfn += P2M_PER_PAGE) { in xen_build_mfn_list_list()
253 pfn += (P2M_MID_PER_PAGE - 1) * P2M_PER_PAGE; in xen_build_mfn_list_list()
291 xen_p2m_size = ALIGN(xen_start_info->nr_pages, P2M_PER_PAGE); in xen_build_dynamic_phys_to_machine()
358 chunk = (pfn & (P2M_PER_PAGE * P2M_MID_PER_PAGE - 1)) ? in xen_rebuild_p2m_list()
359 P2M_PER_PAGE : P2M_PER_PAGE * P2M_MID_PER_PAGE; in xen_rebuild_p2m_list()
369 chunk = P2M_PER_PAGE; in xen_rebuild_p2m_list()
385 if (chunk == P2M_PER_PAGE) { in xen_rebuild_p2m_list()
593 p2m_init_identity(p2m, pfn & ~(P2M_PER_PAGE - 1)); in xen_alloc_p2m_entry()