Searched refs:IOMMU_PAGE_SIZE (Results 1 – 8 of 8) sorted by relevance
/linux/arch/powerpc/include/asm/ |
A 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/arch/powerpc/kernel/ |
A D | iommu.c | 500 npages = iommu_num_pages(vaddr, slen, IOMMU_PAGE_SIZE(tbl)); in ppc_iommu_map_sg() 593 IOMMU_PAGE_SIZE(tbl)); in ppc_iommu_map_sg() 623 IOMMU_PAGE_SIZE(tbl)); in ppc_iommu_unmap_sg() 854 npages = iommu_num_pages(uaddr, size, IOMMU_PAGE_SIZE(tbl)); in iommu_map_page() 887 IOMMU_PAGE_SIZE(tbl)); in iommu_unmap_page()
|
/linux/arch/powerpc/platforms/pseries/ |
A D | vio.c | 523 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() 547 vio_cmo_dealloc(viodev, roundup(size, IOMMU_PAGE_SIZE(tbl))); in vio_dma_iommu_unmap_page() 561 alloc_size += roundup(sgl->length, IOMMU_PAGE_SIZE(tbl)); in vio_dma_iommu_map_sg() 572 alloc_size -= roundup(sgl->dma_length, IOMMU_PAGE_SIZE(tbl)); in vio_dma_iommu_map_sg() 596 alloc_size += roundup(sgl->dma_length, IOMMU_PAGE_SIZE(tbl)); in vio_dma_iommu_unmap_sg()
|
A D | iommu.c | 114 const unsigned long pagesize = IOMMU_PAGE_SIZE(tbl); in tce_build_pSeries()
|
/linux/drivers/vfio/ |
A 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/arch/powerpc/kvm/ |
A D | book3s_64_vio_hv.c | 374 ++i, pgoff += IOMMU_PAGE_SIZE(tbl)) { in kvmppc_rm_tce_iommu_map()
|
A D | book3s_64_vio.c | 539 ++i, pgoff += IOMMU_PAGE_SIZE(tbl)) { in kvmppc_tce_iommu_map()
|
/linux/arch/powerpc/platforms/powernv/ |
A D | pci-ioda.c | 1650 IOMMU_PAGE_SIZE(tbl)); in pnv_pci_ioda2_set_window() 1662 IOMMU_PAGE_SIZE(tbl)); in pnv_pci_ioda2_set_window()
|
Completed in 24 milliseconds