Home
last modified time | relevance | path

Searched refs:IOMMU_PAGE_SIZE (Results 1 – 10 of 10) sorted by relevance

/OK3568_Linux_fs/kernel/arch/powerpc/include/asm/
H A Diommu.h27 #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))
/OK3568_Linux_fs/kernel/arch/powerpc/kernel/
H A Diommu.c450 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()
/OK3568_Linux_fs/kernel/arch/powerpc/platforms/pseries/
H A Dvio.c522 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()
/OK3568_Linux_fs/kernel/drivers/video/rockchip/mpp/
H A Dmpp_rkvenc.c47 #define IOMMU_PAGE_SIZE SZ_4K macro
546 iommu_unmap(mpp->iommu_info->domain, enc->aux_iova, IOMMU_PAGE_SIZE); in rkvenc_isr()
1140 iommu_unmap(mpp->iommu_info->domain, enc->aux_iova, IOMMU_PAGE_SIZE); in rkvenc_iommu_handle_work()
1146 page_to_phys(enc->aux_page), IOMMU_PAGE_SIZE, in rkvenc_iommu_handle_work()
1252 iommu_unmap(mpp->iommu_info->domain, enc->aux_iova, IOMMU_PAGE_SIZE); in rkvenc_exit()
H A Dmpp_rkvdec.c46 #define IOMMU_PAGE_SIZE SZ_4K macro
1070 iommu_unmap(mpp->iommu_info->domain, dec->aux_iova, IOMMU_PAGE_SIZE); in rkvdec_3328_isr()
1308 iommu_unmap(mpp->iommu_info->domain, dec->aux_iova, IOMMU_PAGE_SIZE); in rkvdec_3328_iommu_hdl()
1312 page_iova = round_down(iova, IOMMU_PAGE_SIZE); in rkvdec_3328_iommu_hdl()
1314 page_to_phys(dec->aux_page), IOMMU_PAGE_SIZE, in rkvdec_3328_iommu_hdl()
1447 iommu_unmap(mpp->iommu_info->domain, dec->aux_iova, IOMMU_PAGE_SIZE); in rkvdec_3328_exit()
/OK3568_Linux_fs/kernel/arch/powerpc/platforms/powernv/
H A Dnpu-dma.c147 IOMMU_PAGE_SIZE(tbl)); in pnv_npu_set_window()
155 IOMMU_PAGE_SIZE(tbl)); in pnv_npu_set_window()
H A Dpci-ioda.c1793 IOMMU_PAGE_SIZE(tbl)); in pnv_pci_ioda2_set_window()
1805 IOMMU_PAGE_SIZE(tbl)); in pnv_pci_ioda2_set_window()
/OK3568_Linux_fs/kernel/drivers/vfio/
H A Dvfio_iommu_spapr_tce.c536 tce += IOMMU_PAGE_SIZE(tbl); in tce_iommu_build()
595 tce += IOMMU_PAGE_SIZE(tbl); in tce_iommu_build_v2()
/OK3568_Linux_fs/kernel/arch/powerpc/kvm/
H A Dbook3s_64_vio_hv.c382 ++i, pgoff += IOMMU_PAGE_SIZE(tbl)) { in kvmppc_rm_tce_iommu_map()
H A Dbook3s_64_vio.c548 ++i, pgoff += IOMMU_PAGE_SIZE(tbl)) { in kvmppc_tce_iommu_map()