Home
last modified time | relevance | path

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

/Linux-v5.4/arch/powerpc/include/asm/
Diommu.h27 #define IOMMU_PAGE_SIZE(tblptr) (ASM_CONST(1) << (tblptr)->it_page_shift) macro
29 #define IOMMU_PAGE_ALIGN(addr, tblptr) _ALIGN_UP(addr, IOMMU_PAGE_SIZE(tblptr))
/Linux-v5.4/arch/powerpc/kernel/
Diommu.c457 npages = iommu_num_pages(vaddr, slen, IOMMU_PAGE_SIZE(tbl)); in ppc_iommu_map_sg()
551 IOMMU_PAGE_SIZE(tbl)); in ppc_iommu_map_sg()
582 IOMMU_PAGE_SIZE(tbl)); in ppc_iommu_unmap_sg()
810 npages = iommu_num_pages(uaddr, size, IOMMU_PAGE_SIZE(tbl)); in iommu_map_page()
843 IOMMU_PAGE_SIZE(tbl)); in iommu_unmap_page()
/Linux-v5.4/arch/powerpc/platforms/pseries/
Dvio.c521 if (vio_cmo_alloc(viodev, roundup(size, IOMMU_PAGE_SIZE(tbl)))) in vio_dma_iommu_map_page()
530 vio_cmo_dealloc(viodev, roundup(size, IOMMU_PAGE_SIZE(tbl))); in vio_dma_iommu_map_page()
545 vio_cmo_dealloc(viodev, roundup(size, IOMMU_PAGE_SIZE(tbl))); in vio_dma_iommu_unmap_page()
559 alloc_size += roundup(sgl->length, IOMMU_PAGE_SIZE(tbl)); in vio_dma_iommu_map_sg()
569 alloc_size -= roundup(sgl->dma_length, IOMMU_PAGE_SIZE(tbl)); in vio_dma_iommu_map_sg()
593 alloc_size += roundup(sgl->dma_length, IOMMU_PAGE_SIZE(tbl)); in vio_dma_iommu_unmap_sg()
/Linux-v5.4/arch/powerpc/platforms/powernv/
Dnpu-dma.c146 IOMMU_PAGE_SIZE(tbl)); in pnv_npu_set_window()
154 IOMMU_PAGE_SIZE(tbl)); in pnv_npu_set_window()
Dpci-ioda.c2298 IOMMU_PAGE_SIZE(tbl)); in pnv_pci_ioda2_set_window()
2310 IOMMU_PAGE_SIZE(tbl)); in pnv_pci_ioda2_set_window()
/Linux-v5.4/drivers/vfio/
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-v5.4/arch/powerpc/kvm/
Dbook3s_64_vio_hv.c375 ++i, pgoff += IOMMU_PAGE_SIZE(tbl)) { in kvmppc_rm_tce_iommu_map()
Dbook3s_64_vio.c529 ++i, pgoff += IOMMU_PAGE_SIZE(tbl)) { in kvmppc_tce_iommu_map()