Lines Matching refs:iopte
80 #define IOPTE_IS_DUMMY(iommu, iopte) \ argument
81 ((iopte_val(*iopte) & IOPTE_PAGE) == (iommu)->dummy_page_pa)
83 static inline void iopte_make_dummy(struct iommu *iommu, iopte_t *iopte) in iopte_make_dummy() argument
85 unsigned long val = iopte_val(*iopte); in iopte_make_dummy()
90 iopte_val(*iopte) = val; in iopte_make_dummy()
205 iopte_t *iopte; in dma_4u_alloc_coherent() local
223 iopte = alloc_npages(dev, iommu, size >> IO_PAGE_SHIFT); in dma_4u_alloc_coherent()
225 if (unlikely(iopte == NULL)) { in dma_4u_alloc_coherent()
231 ((iopte - iommu->page_table) << IO_PAGE_SHIFT)); in dma_4u_alloc_coherent()
236 iopte_val(*iopte) = (IOPTE_CONSISTENT(0UL) | in dma_4u_alloc_coherent()
239 iopte++; in dma_4u_alloc_coherent()
681 iopte_t *iopte; in dma_4u_sync_single_for_cpu() local
684 iopte = iommu->page_table + in dma_4u_sync_single_for_cpu()
686 ctx = (iopte_val(*iopte) & IOPTE_CONTEXT) >> 47UL; in dma_4u_sync_single_for_cpu()
717 iopte_t *iopte; in dma_4u_sync_sg_for_cpu() local
720 iopte = iommu->page_table + ((sglist[0].dma_address - in dma_4u_sync_sg_for_cpu()
722 ctx = (iopte_val(*iopte) & IOPTE_CONTEXT) >> 47UL; in dma_4u_sync_sg_for_cpu()