Home
last modified time | relevance | path

Searched refs:XEN_PFN_PER_PAGE (Results 1 – 8 of 8) sorted by relevance

/openbmc/linux/drivers/xen/
H A Dxlate_mmu.c56 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];
109 nr_gfn = min_t(typeof(info->nr_fgfn), XEN_PFN_PER_PAGE, info->nr_fgfn); in remap_pte_fn()
152 unsigned long range = DIV_ROUND_UP(nr, XEN_PFN_PER_PAGE) << PAGE_SHIFT; in xen_xlate_remap_gfn_array()
225 nr_pages = DIV_ROUND_UP(nr_grant_frames, XEN_PFN_PER_PAGE); in xen_xlate_map_ballooned_pages()
H A Dmem-reservation.c26 #define EXTENT_ORDER (fls(XEN_PFN_PER_PAGE) - 1)
H A Dprivcmd.c368 st->index += nr / XEN_PFN_PER_PAGE; in mmap_batch_fn()
484 nr_pages = DIV_ROUND_UP(m.num, XEN_PFN_PER_PAGE); in privcmd_ioctl_mmap_batch()
556 BUILD_BUG_ON(((PAGE_SIZE / sizeof(xen_pfn_t)) % XEN_PFN_PER_PAGE) != 0); in privcmd_ioctl_mmap_batch()
777 unsigned int nr = DIV_ROUND_UP(kdata.num, XEN_PFN_PER_PAGE); in privcmd_ioctl_mmap_resource()
788 page_to_xen_pfn(pages[i / XEN_PFN_PER_PAGE]); in privcmd_ioctl_mmap_resource()
790 pfns[i] = pfn + (i % XEN_PFN_PER_PAGE); in privcmd_ioctl_mmap_resource()
H A Dballoon.c108 #define EXTENT_ORDER (fls(XEN_PFN_PER_PAGE) - 1)
H A Dgrant-table.c1235 if ((i % XEN_PFN_PER_PAGE) == 0) { in gnttab_foreach_grant()
1236 xen_pfn = page_to_xen_pfn(pages[i / XEN_PFN_PER_PAGE]); in gnttab_foreach_grant()
/openbmc/linux/include/xen/
H A Dpage.h23 #define XEN_PFN_PER_PAGE (PAGE_SIZE / XEN_PAGE_SIZE) macro
/openbmc/linux/drivers/xen/xenbus/
H A Dxenbus_client.c52 #define XENBUS_PAGES(_grants) (DIV_ROUND_UP(_grants, XEN_PFN_PER_PAGE))
/openbmc/linux/drivers/block/
H A Dxen-blkfront.c78 #define HAS_EXTRA_REQ (BLKIF_MAX_SEGMENTS_PER_REQUEST < XEN_PFN_PER_PAGE)