Searched refs:SPAGE_SIZE (Results 1 – 3 of 3) sorted by relevance
| /linux/drivers/iommu/ |
| H A D | rockchip-iommu.c | 77 #define SPAGE_SIZE (1 << SPAGE_ORDER) macro 371 for (iova = iova_start; iova < iova_end; iova += SPAGE_SIZE) in rk_iommu_zap_lines() 711 rk_iommu_zap_iova(rk_domain, iova, SPAGE_SIZE); in rk_iommu_zap_iova_first_last() 712 if (size > SPAGE_SIZE) in rk_iommu_zap_iova_first_last() 713 rk_iommu_zap_iova(rk_domain, iova + size - SPAGE_SIZE, in rk_iommu_zap_iova_first_last() 714 SPAGE_SIZE); in rk_iommu_zap_iova_first_last() 734 SPAGE_SIZE); in rk_dte_get_page_table() 738 pt_dma = dma_map_single(rk_domain->dma_dev, page_table, SPAGE_SIZE, DMA_TO_DEVICE); in rk_dte_get_page_table() 760 unsigned int pte_total = size / SPAGE_SIZE; in rk_iommu_unmap_iova() 774 return pte_count * SPAGE_SIZE; in rk_iommu_unmap_iova() [all …]
|
| H A D | exynos-iommu.c | 39 #define SPAGE_SIZE (1 << SPAGE_ORDER) macro 43 #define SPAGE_MASK (~(SPAGE_SIZE - 1)) 105 #define spage_offs(iova) (iova & (SPAGE_SIZE - 1)) 108 #define NUM_LV2ENTRIES (SECT_SIZE / SPAGE_SIZE) 123 #define SPAGES_PER_LPAGE (LPAGE_SIZE / SPAGE_SIZE) 463 iova += SPAGE_SIZE; in __sysmmu_tlb_invalidate_entry() 467 writel((iova & SPAGE_MASK) + (num_inv - 1) * SPAGE_SIZE, in __sysmmu_tlb_invalidate_entry() 714 num_inv = min_t(unsigned int, size / SPAGE_SIZE, 64); in sysmmu_tlb_invalidate_entry() 929 domain->domain.pgsize_bitmap = SECT_SIZE | LPAGE_SIZE | SPAGE_SIZE; in exynos_iommu_domain_alloc_paging() 1180 if (size == SPAGE_SIZE) { in lv2set_page() [all …]
|
| H A D | sun50i-iommu.c | 98 #define SPAGE_SIZE 4096 macro 342 sun50i_iommu_zap_iova(iommu, iova + SPAGE_SIZE); in sun50i_iommu_zap_range() 343 if (size > SPAGE_SIZE) { in sun50i_iommu_zap_range() 345 sun50i_iommu_zap_iova(iommu, iova + size + SPAGE_SIZE); in sun50i_iommu_zap_range() 879 sun50i_iommu_zap_range(iommu, iova, SPAGE_SIZE); in sun50i_iommu_report_fault()
|