Home
last modified time | relevance | path

Searched refs:SPAGE_SIZE (Results 1 – 3 of 3) sorted by relevance

/openbmc/linux/drivers/iommu/
H A Drockchip-iommu.c74 #define SPAGE_SIZE (1 << SPAGE_ORDER) macro
369 for (iova = iova_start; iova < iova_end; iova += SPAGE_SIZE) in rk_iommu_zap_lines()
709 rk_iommu_zap_iova(rk_domain, iova, SPAGE_SIZE); in rk_iommu_zap_iova_first_last()
710 if (size > SPAGE_SIZE) in rk_iommu_zap_iova_first_last()
711 rk_iommu_zap_iova(rk_domain, iova + size - SPAGE_SIZE, in rk_iommu_zap_iova_first_last()
712 SPAGE_SIZE); in rk_iommu_zap_iova_first_last()
735 pt_dma = dma_map_single(dma_dev, page_table, SPAGE_SIZE, DMA_TO_DEVICE); in rk_dte_get_page_table()
757 unsigned int pte_total = size / SPAGE_SIZE; in rk_iommu_unmap_iova()
771 return pte_count * SPAGE_SIZE; in rk_iommu_unmap_iova()
779 unsigned int pte_total = size / SPAGE_SIZE; in rk_iommu_map_iova()
[all …]
H A Dexynos-iommu.c35 #define SPAGE_SIZE (1 << SPAGE_ORDER) macro
39 #define SPAGE_MASK (~(SPAGE_SIZE - 1))
101 #define spage_offs(iova) (iova & (SPAGE_SIZE - 1))
104 #define NUM_LV2ENTRIES (SECT_SIZE / SPAGE_SIZE)
119 #define SPAGES_PER_LPAGE (LPAGE_SIZE / SPAGE_SIZE)
459 iova += SPAGE_SIZE; in __sysmmu_tlb_invalidate_entry()
463 writel((iova & SPAGE_MASK) + (num_inv - 1) * SPAGE_SIZE, in __sysmmu_tlb_invalidate_entry()
710 num_inv = min_t(unsigned int, size / SPAGE_SIZE, 64); in sysmmu_tlb_invalidate_entry()
1163 if (size == SPAGE_SIZE) { in lv2set_page()
1315 size = SPAGE_SIZE; in exynos_iommu_unmap()
[all …]
H A Dsun50i-iommu.c96 #define SPAGE_SIZE 4096 macro
341 sun50i_iommu_zap_iova(iommu, iova + SPAGE_SIZE); in sun50i_iommu_zap_range()
342 if (size > SPAGE_SIZE) { in sun50i_iommu_zap_range()
344 sun50i_iommu_zap_iova(iommu, iova + size + SPAGE_SIZE); in sun50i_iommu_zap_range()
860 sun50i_iommu_zap_range(iommu, iova, SPAGE_SIZE); in sun50i_iommu_report_fault()