Searched refs:IOMMU_PAGE_SIZE (Results 1 – 8 of 8) sorted by relevance
/kernel/linux/linux-5.10/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))
|
/kernel/linux/linux-5.10/arch/powerpc/kernel/ |
D | iommu.c | 450 npages = iommu_num_pages(vaddr, slen, IOMMU_PAGE_SIZE(tbl)); in ppc_iommu_map_sg() 544 IOMMU_PAGE_SIZE(tbl)); in ppc_iommu_map_sg() 575 IOMMU_PAGE_SIZE(tbl)); in ppc_iommu_unmap_sg() 803 npages = iommu_num_pages(uaddr, size, IOMMU_PAGE_SIZE(tbl)); in iommu_map_page() 836 IOMMU_PAGE_SIZE(tbl)); in iommu_unmap_page()
|
/kernel/linux/linux-5.10/arch/powerpc/platforms/pseries/ |
D | vio.c | 522 if (vio_cmo_alloc(viodev, roundup(size, IOMMU_PAGE_SIZE(tbl)))) in vio_dma_iommu_map_page() 531 vio_cmo_dealloc(viodev, roundup(size, IOMMU_PAGE_SIZE(tbl))); in vio_dma_iommu_map_page() 546 vio_cmo_dealloc(viodev, roundup(size, IOMMU_PAGE_SIZE(tbl))); in vio_dma_iommu_unmap_page() 560 alloc_size += roundup(sgl->length, IOMMU_PAGE_SIZE(tbl)); in vio_dma_iommu_map_sg() 570 alloc_size -= roundup(sgl->dma_length, IOMMU_PAGE_SIZE(tbl)); in vio_dma_iommu_map_sg() 594 alloc_size += roundup(sgl->dma_length, IOMMU_PAGE_SIZE(tbl)); in vio_dma_iommu_unmap_sg()
|
/kernel/linux/linux-5.10/arch/powerpc/platforms/powernv/ |
D | npu-dma.c | 147 IOMMU_PAGE_SIZE(tbl)); in pnv_npu_set_window() 155 IOMMU_PAGE_SIZE(tbl)); in pnv_npu_set_window()
|
D | pci-ioda.c | 1793 IOMMU_PAGE_SIZE(tbl)); in pnv_pci_ioda2_set_window() 1805 IOMMU_PAGE_SIZE(tbl)); in pnv_pci_ioda2_set_window()
|
/kernel/linux/linux-5.10/drivers/vfio/ |
D | vfio_iommu_spapr_tce.c | 536 tce += IOMMU_PAGE_SIZE(tbl); in tce_iommu_build() 595 tce += IOMMU_PAGE_SIZE(tbl); in tce_iommu_build_v2()
|
/kernel/linux/linux-5.10/arch/powerpc/kvm/ |
D | book3s_64_vio_hv.c | 382 ++i, pgoff += IOMMU_PAGE_SIZE(tbl)) { in kvmppc_rm_tce_iommu_map()
|
D | book3s_64_vio.c | 548 ++i, pgoff += IOMMU_PAGE_SIZE(tbl)) { in kvmppc_tce_iommu_map()
|