Searched refs:IOMMU_PAGE_SIZE (Results 1 – 4 of 4) sorted by relevance
/arch/powerpc/include/asm/ |
D | iommu.h | 34 #define IOMMU_PAGE_SIZE (ASM_CONST(1) << IOMMU_PAGE_SHIFT) macro 36 #define IOMMU_PAGE_ALIGN(addr) _ALIGN_UP(addr, IOMMU_PAGE_SIZE)
|
/arch/powerpc/kernel/ |
D | iommu.c | 302 npages = iommu_num_pages(vaddr, slen, IOMMU_PAGE_SIZE); in iommu_map_sg() 397 IOMMU_PAGE_SIZE); in iommu_map_sg() 432 IOMMU_PAGE_SIZE); in iommu_unmap_sg() 584 npages = iommu_num_pages(uaddr, size, IOMMU_PAGE_SIZE); in iommu_map_page() 617 npages = iommu_num_pages(dma_handle, size, IOMMU_PAGE_SIZE); in iommu_unmap_page()
|
D | vio.c | 524 if (vio_cmo_alloc(viodev, roundup(size, IOMMU_PAGE_SIZE))) { in vio_dma_iommu_map_page() 531 vio_cmo_dealloc(viodev, roundup(size, IOMMU_PAGE_SIZE)); in vio_dma_iommu_map_page() 547 vio_cmo_dealloc(viodev, roundup(size, IOMMU_PAGE_SIZE)); in vio_dma_iommu_unmap_page() 560 alloc_size += roundup(sgl->length, IOMMU_PAGE_SIZE); in vio_dma_iommu_map_sg() 576 alloc_size -= roundup(sgl->dma_length, IOMMU_PAGE_SIZE); in vio_dma_iommu_map_sg() 594 alloc_size += roundup(sgl->dma_length, IOMMU_PAGE_SIZE); in vio_dma_iommu_unmap_sg()
|
/arch/powerpc/platforms/cell/ |
D | iommu.c | 200 for (i = 0; i < npages; i++, uaddr += IOMMU_PAGE_SIZE) in tce_build_cell()
|