Searched refs:IOMMU_PAGE_SIZE (Results 1 – 7 of 7) sorted by relevance
| /Linux-v6.6/arch/powerpc/include/asm/ |
| D | iommu.h | 27 #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-v6.6/arch/powerpc/platforms/pseries/ |
| D | vio.c | 524 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()
|
| D | iommu.c | 125 const unsigned long pagesize = IOMMU_PAGE_SIZE(tbl); in tce_build_pSeries()
|
| /Linux-v6.6/arch/powerpc/kernel/ |
| D | iommu.c | 509 npages = iommu_num_pages(vaddr, slen, IOMMU_PAGE_SIZE(tbl)); in ppc_iommu_map_sg() 602 IOMMU_PAGE_SIZE(tbl)); in ppc_iommu_map_sg() 632 IOMMU_PAGE_SIZE(tbl)); in ppc_iommu_unmap_sg() 868 npages = iommu_num_pages(uaddr, size, IOMMU_PAGE_SIZE(tbl)); in iommu_map_page() 901 IOMMU_PAGE_SIZE(tbl)); in iommu_unmap_page()
|
| /Linux-v6.6/drivers/vfio/ |
| D | vfio_iommu_spapr_tce.c | 537 tce += IOMMU_PAGE_SIZE(tbl); in tce_iommu_build() 596 tce += IOMMU_PAGE_SIZE(tbl); in tce_iommu_build_v2()
|
| /Linux-v6.6/arch/powerpc/kvm/ |
| D | book3s_64_vio.c | 559 ++i, pgoff += IOMMU_PAGE_SIZE(tbl)) { in kvmppc_tce_iommu_map()
|
| /Linux-v6.6/arch/powerpc/platforms/powernv/ |
| D | pci-ioda.c | 1291 IOMMU_PAGE_SIZE(tbl)); in pnv_pci_ioda2_set_window() 1303 IOMMU_PAGE_SIZE(tbl)); in pnv_pci_ioda2_set_window()
|