Home
last modified time | relevance | path

Searched refs:IOMMU_PAGE_SIZE (Results 1 – 5 of 5) sorted by relevance

/linux/arch/powerpc/include/asm/
H A Diommu.h27 #define IOMMU_PAGE_SIZE(tblptr) (ASM_CONST(1) << (tblptr)->it_page_shift) macro
29 #define IOMMU_PAGE_ALIGN(addr, tblptr) ALIGN(addr, IOMMU_PAGE_SIZE(tblptr))
/linux/arch/powerpc/platforms/pseries/
H A Dvio.c524 if (vio_cmo_alloc(viodev, roundup(size, IOMMU_PAGE_SIZE(tbl)))) in vio_dma_iommu_map_page()
533 vio_cmo_dealloc(viodev, roundup(size, IOMMU_PAGE_SIZE(tbl))); in vio_dma_iommu_map_page()
548 vio_cmo_dealloc(viodev, roundup(size, IOMMU_PAGE_SIZE(tbl))); in vio_dma_iommu_unmap_page()
562 alloc_size += roundup(sgl->length, IOMMU_PAGE_SIZE(tbl)); in vio_dma_iommu_map_sg()
573 alloc_size -= roundup(sgl->dma_length, IOMMU_PAGE_SIZE(tbl)); in vio_dma_iommu_map_sg()
597 alloc_size += roundup(sgl->dma_length, IOMMU_PAGE_SIZE(tbl)); in vio_dma_iommu_unmap_sg()
/linux/drivers/vfio/
H A Dvfio_iommu_spapr_tce.c536 tce += IOMMU_PAGE_SIZE(tbl); in tce_iommu_build()
595 tce += IOMMU_PAGE_SIZE(tbl); in tce_iommu_build_v2()
/linux/arch/powerpc/kvm/
H A Dbook3s_64_vio.c557 ++i, pgoff += IOMMU_PAGE_SIZE(tbl)) { in kvmppc_tce_iommu_map()
/linux/arch/powerpc/platforms/powernv/
H A Dpci-ioda.c1291 IOMMU_PAGE_SIZE(tbl)); in pnv_pci_ioda2_set_window()
1303 IOMMU_PAGE_SIZE(tbl)); in pnv_pci_ioda2_set_window()