Searched refs:IOMMU_PAGE_SIZE (Results 1 – 8 of 8) sorted by relevance
/Linux-v4.19/arch/powerpc/kernel/ |
D | iommu.c | 469 npages = iommu_num_pages(vaddr, slen, IOMMU_PAGE_SIZE(tbl)); in ppc_iommu_map_sg() 563 IOMMU_PAGE_SIZE(tbl)); in ppc_iommu_map_sg() 594 IOMMU_PAGE_SIZE(tbl)); in ppc_iommu_unmap_sg() 788 npages = iommu_num_pages(uaddr, size, IOMMU_PAGE_SIZE(tbl)); in iommu_map_page() 823 IOMMU_PAGE_SIZE(tbl)); in iommu_unmap_page() 1114 if (PAGE_SIZE < IOMMU_PAGE_SIZE(tbl)) { in iommu_add_device() 1116 __func__, IOMMU_PAGE_SIZE(tbl), in iommu_add_device()
|
/Linux-v4.19/arch/powerpc/include/asm/ |
D | iommu.h | 40 #define IOMMU_PAGE_SIZE(tblptr) (ASM_CONST(1) << (tblptr)->it_page_shift) macro 42 #define IOMMU_PAGE_ALIGN(addr, tblptr) _ALIGN_UP(addr, IOMMU_PAGE_SIZE(tblptr))
|
/Linux-v4.19/arch/powerpc/platforms/pseries/ |
D | vio.c | 525 if (vio_cmo_alloc(viodev, roundup(size, IOMMU_PAGE_SIZE(tbl)))) { in vio_dma_iommu_map_page() 532 vio_cmo_dealloc(viodev, roundup(size, IOMMU_PAGE_SIZE(tbl))); in vio_dma_iommu_map_page() 550 vio_cmo_dealloc(viodev, roundup(size, IOMMU_PAGE_SIZE(tbl))); in vio_dma_iommu_unmap_page() 565 alloc_size += roundup(sgl->length, IOMMU_PAGE_SIZE(tbl)); in vio_dma_iommu_map_sg() 581 alloc_size -= roundup(sgl->dma_length, IOMMU_PAGE_SIZE(tbl)); in vio_dma_iommu_map_sg() 601 alloc_size += roundup(sgl->dma_length, IOMMU_PAGE_SIZE(tbl)); in vio_dma_iommu_unmap_sg()
|
/Linux-v4.19/arch/powerpc/platforms/powernv/ |
D | npu-dma.c | 213 IOMMU_PAGE_SIZE(tbl)); in pnv_npu_set_window() 221 IOMMU_PAGE_SIZE(tbl)); in pnv_npu_set_window()
|
D | pci-ioda.c | 2406 IOMMU_PAGE_SIZE(tbl)); in pnv_pci_ioda2_set_window() 2418 IOMMU_PAGE_SIZE(tbl)); in pnv_pci_ioda2_set_window()
|
/Linux-v4.19/arch/powerpc/kvm/ |
D | book3s_64_vio_hv.c | 336 ++i, pgoff += IOMMU_PAGE_SIZE(tbl)) { in kvmppc_rm_tce_iommu_map()
|
D | book3s_64_vio.c | 481 ++i, pgoff += IOMMU_PAGE_SIZE(tbl)) { in kvmppc_tce_iommu_map()
|
/Linux-v4.19/drivers/vfio/ |
D | vfio_iommu_spapr_tce.c | 545 tce += IOMMU_PAGE_SIZE(tbl); in tce_iommu_build() 602 tce += IOMMU_PAGE_SIZE(tbl); in tce_iommu_build_v2()
|