Lines Matching +full:4 +full:kb +full:- +full:page
1 /* SPDX-License-Identifier: GPL-2.0 */
5 #include <asm/page.h>
7 /* The hypercall interface supports only 4KB page */
10 #define XEN_PAGE_MASK (~(XEN_PAGE_SIZE-1))
19 (pfn_to_page((unsigned long)(xen_pfn) >> (PAGE_SHIFT - XEN_PAGE_SHIFT)))
20 #define page_to_xen_pfn(page) \ argument
21 ((page_to_pfn(page)) << (PAGE_SHIFT - XEN_PAGE_SHIFT))
26 #define XEN_PFN_UP(x) (((x) + XEN_PAGE_SIZE-1) >> XEN_PAGE_SHIFT)
28 #include <asm/xen/page.h>
30 /* Return the GFN associated to the first 4KB of the page */
31 static inline unsigned long xen_page_to_gfn(struct page *page) in xen_page_to_gfn() argument
33 return pfn_to_gfn(page_to_xen_pfn(page)); in xen_page_to_gfn()