Searched refs:XEN_PFN_PER_PAGE (Results 1 – 8 of 8) sorted by relevance
56 if ((i % XEN_PFN_PER_PAGE) == 0) { in xen_for_each_gfn()57 page = pages[i / XEN_PFN_PER_PAGE]; in xen_for_each_gfn()77 int h_errs[XEN_PFN_PER_PAGE];78 xen_ulong_t h_idxs[XEN_PFN_PER_PAGE];79 xen_pfn_t h_gpfns[XEN_PFN_PER_PAGE];110 nr_gfn = min_t(typeof(info->nr_fgfn), XEN_PFN_PER_PAGE, info->nr_fgfn); in remap_pte_fn()153 unsigned long range = DIV_ROUND_UP(nr, XEN_PFN_PER_PAGE) << PAGE_SHIFT; in xen_xlate_remap_gfn_array()226 nr_pages = DIV_ROUND_UP(nr_grant_frames, XEN_PFN_PER_PAGE); in xen_xlate_map_ballooned_pages()
364 st->index += nr / XEN_PFN_PER_PAGE; in mmap_batch_fn()480 nr_pages = DIV_ROUND_UP(m.num, XEN_PFN_PER_PAGE); in privcmd_ioctl_mmap_batch()552 BUILD_BUG_ON(((PAGE_SIZE / sizeof(xen_pfn_t)) % XEN_PFN_PER_PAGE) != 0); in privcmd_ioctl_mmap_batch()795 unsigned int nr = DIV_ROUND_UP(kdata.num, XEN_PFN_PER_PAGE); in privcmd_ioctl_mmap_resource()806 page_to_xen_pfn(pages[i / XEN_PFN_PER_PAGE]); in privcmd_ioctl_mmap_resource()808 pfns[i] = pfn + (i % XEN_PFN_PER_PAGE); in privcmd_ioctl_mmap_resource()
26 #define EXTENT_ORDER (fls(XEN_PFN_PER_PAGE) - 1)
129 #define EXTENT_ORDER (fls(XEN_PFN_PER_PAGE) - 1)
1027 if ((i % XEN_PFN_PER_PAGE) == 0) { in gnttab_foreach_grant()1028 xen_pfn = page_to_xen_pfn(pages[i / XEN_PFN_PER_PAGE]); in gnttab_foreach_grant()
23 #define XEN_PFN_PER_PAGE (PAGE_SIZE / XEN_PAGE_SIZE) macro
47 (1<<compound_order(page)) * XEN_PFN_PER_PAGE; in xen_dma_map_page()
52 #define XENBUS_PAGES(_grants) (DIV_ROUND_UP(_grants, XEN_PFN_PER_PAGE))