Lines Matching refs:prot
344 int prot = coherent ? IOMMU_CACHE : 0; in dma_info_to_prot() local
347 prot |= IOMMU_PRIV; in dma_info_to_prot()
351 return prot | IOMMU_READ | IOMMU_WRITE; in dma_info_to_prot()
353 return prot | IOMMU_READ; in dma_info_to_prot()
355 return prot | IOMMU_WRITE; in dma_info_to_prot()
527 unsigned long attrs, int prot, dma_addr_t *handle, in iommu_dma_alloc() argument
563 if (!(prot & IOMMU_CACHE)) { in iommu_dma_alloc()
575 if (iommu_map_sg(domain, iova, sgt.sgl, sgt.orig_nents, prot) in iommu_dma_alloc()
618 size_t size, int prot) in __iommu_dma_map() argument
634 if (iommu_map(domain, iova, phys - iova_off, size, prot)) { in __iommu_dma_map()
642 unsigned long offset, size_t size, int prot) in iommu_dma_map_page() argument
644 return __iommu_dma_map(dev, page_to_phys(page) + offset, size, prot); in iommu_dma_map_page()
736 int nents, int prot) in iommu_dma_map_sg() argument
794 if (iommu_map_sg(domain, iova, sg, nents, prot) < iova_len) in iommu_dma_map_sg()
850 int prot = IOMMU_WRITE | IOMMU_NOEXEC | IOMMU_MMIO; in iommu_dma_get_msi_page() local
862 iova = __iommu_dma_map(dev, msi_addr, size, prot); in iommu_dma_get_msi_page()