Lines Matching refs:mfn
273 #define is_xen_heap_mfn(mfn) \ argument
274 (__mfn_valid(mfn) && is_xen_heap_page(__mfn_to_page(mfn)))
275 #define is_xen_fixed_mfn(mfn) \ argument
276 ((((mfn) << PAGE_SHIFT) >= __pa(&_stext)) && \
277 (((mfn) << PAGE_SHIFT) <= __pa(&__2M_rwdata_end)))
347 bool fill_ro_mpt(mfn_t mfn);
348 void zap_ro_mpt(mfn_t mfn);
350 bool is_iomem_page(mfn_t mfn);
385 static inline bool get_page_from_mfn(mfn_t mfn, struct domain *d) in get_page_from_mfn() argument
387 struct page_info *page = __mfn_to_page(mfn_x(mfn)); in get_page_from_mfn()
389 if ( unlikely(!mfn_valid(mfn)) || unlikely(!get_page(page, d)) ) in get_page_from_mfn()
392 "Could not get page ref for mfn %"PRI_mfn"\n", mfn_x(mfn)); in get_page_from_mfn()
481 #define _set_gpfn_from_mfn(mfn, pfn) ({ \ argument
482 struct domain *d = page_get_owner(__mfn_to_page(mfn)); \
485 ((void)((mfn) >= (RDWR_COMPAT_MPT_VIRT_END - RDWR_COMPAT_MPT_VIRT_START) / 4 || \
486 (compat_machine_to_phys_mapping[(mfn)] = (unsigned int)(entry))), \
487 machine_to_phys_mapping[(mfn)] = (entry)); \
495 #define set_gpfn_from_mfn(mfn, pfn) do { \ argument
497 _set_gpfn_from_mfn(mfn, pfn); \
502 #define get_gpfn_from_mfn(mfn) (machine_to_phys_mapping[(mfn)]) argument
504 #define mfn_to_gmfn(_d, mfn) \ argument
506 ? get_gpfn_from_mfn(mfn) \
507 : (mfn) )
564 void make_cr3(struct vcpu *v, mfn_t mfn);
626 static inline bool arch_mfn_in_directmap(unsigned long mfn) in arch_mfn_in_directmap() argument
630 return mfn <= (virt_to_mfn(eva - 1) + 1); in arch_mfn_in_directmap()