Searched refs:IOMMU_PAGE_SIZE (Results 1 – 3 of 3) sorted by relevance
/linux-4.1.27/arch/powerpc/include/asm/ |
D | iommu.h | 39 #define IOMMU_PAGE_SIZE(tblptr) (ASM_CONST(1) << (tblptr)->it_page_shift) macro 41 #define IOMMU_PAGE_ALIGN(addr, tblptr) _ALIGN_UP(addr, IOMMU_PAGE_SIZE(tblptr))
|
/linux-4.1.27/arch/powerpc/kernel/ |
D | iommu.c | 470 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() 770 npages = iommu_num_pages(uaddr, size, IOMMU_PAGE_SIZE(tbl)); in iommu_map_page() 804 IOMMU_PAGE_SIZE(tbl)); in iommu_unmap_page() 1150 if (PAGE_SIZE < IOMMU_PAGE_SIZE(tbl)) { in iommu_add_device() 1152 __func__, IOMMU_PAGE_SIZE(tbl), in iommu_add_device()
|
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()
|