Lines Matching refs:SPRD_IOMMU_PAGE_SHIFT
20 #define SPRD_IOMMU_PAGE_SHIFT 12 macro
132 SPRD_IOMMU_PAGE_SHIFT) * sizeof(u32); in sprd_iommu_pgt_size()
172 val = dom->domain.geometry.aperture_start >> SPRD_IOMMU_PAGE_SHIFT; in sprd_iommu_first_vpn()
188 dom->domain.geometry.aperture_start) >> SPRD_IOMMU_PAGE_SHIFT; in sprd_iommu_vpn_range()
194 u32 val = dom->pgt_pa >> SPRD_IOMMU_PAGE_SHIFT; in sprd_iommu_first_ppn()
208 u32 val = sdev->prot_page_pa >> SPRD_IOMMU_PAGE_SHIFT; in sprd_iommu_default_ppn()
279 unsigned int page_num = size >> SPRD_IOMMU_PAGE_SHIFT; in sprd_iommu_map()
298 pgt_base_iova = dom->pgt_va + ((iova - start) >> SPRD_IOMMU_PAGE_SHIFT); in sprd_iommu_map()
302 pgt_base_iova[i] = pabase >> SPRD_IOMMU_PAGE_SHIFT; in sprd_iommu_map()
316 unsigned int page_num = size >> SPRD_IOMMU_PAGE_SHIFT; in sprd_iommu_unmap()
323 pgt_base_iova = dom->pgt_va + ((iova - start) >> SPRD_IOMMU_PAGE_SHIFT); in sprd_iommu_unmap()
366 pa = *(dom->pgt_va + ((iova - start) >> SPRD_IOMMU_PAGE_SHIFT)); in sprd_iommu_iova_to_phys()
367 pa = (pa << SPRD_IOMMU_PAGE_SHIFT) + ((iova - start) & (SPRD_IOMMU_PAGE_SIZE - 1)); in sprd_iommu_iova_to_phys()
423 .pgsize_bitmap = ~0UL << SPRD_IOMMU_PAGE_SHIFT,