Lines Matching refs:iopte
74 #define IOPTE_IS_DUMMY(iommu, iopte) \ argument
75 ((iopte_val(*iopte) & IOPTE_PAGE) == (iommu)->dummy_page_pa)
77 static inline void iopte_make_dummy(struct iommu *iommu, iopte_t *iopte) in iopte_make_dummy() argument
79 unsigned long val = iopte_val(*iopte); in iopte_make_dummy()
84 iopte_val(*iopte) = val; in iopte_make_dummy()
288 iopte_t *iopte; in dma_4u_alloc_coherent() local
307 iopte = alloc_npages(dev, iommu, size >> IO_PAGE_SHIFT); in dma_4u_alloc_coherent()
310 if (unlikely(iopte == NULL)) { in dma_4u_alloc_coherent()
316 ((iopte - iommu->page_table) << IO_PAGE_SHIFT)); in dma_4u_alloc_coherent()
321 iopte_val(*iopte) = (IOPTE_CONSISTENT(0UL) | in dma_4u_alloc_coherent()
324 iopte++; in dma_4u_alloc_coherent()
335 iopte_t *iopte; in dma_4u_free_coherent() local
340 iopte = iommu->page_table + in dma_4u_free_coherent()
766 iopte_t *iopte; in dma_4u_sync_single_for_cpu() local
768 iopte = iommu->page_table + in dma_4u_sync_single_for_cpu()
770 ctx = (iopte_val(*iopte) & IOPTE_CONTEXT) >> 47UL; in dma_4u_sync_single_for_cpu()
801 iopte_t *iopte; in dma_4u_sync_sg_for_cpu() local
803 iopte = iommu->page_table + in dma_4u_sync_sg_for_cpu()
805 ctx = (iopte_val(*iopte) & IOPTE_CONTEXT) >> 47UL; in dma_4u_sync_sg_for_cpu()