Lines Matching refs:prot
140 int prot = coherent ? IOMMU_CACHE : 0; in dma_direction_to_prot() local
144 return prot | IOMMU_READ | IOMMU_WRITE; in dma_direction_to_prot()
146 return prot | IOMMU_READ; in dma_direction_to_prot()
148 return prot | IOMMU_WRITE; in dma_direction_to_prot()
282 gfp_t gfp, int prot, dma_addr_t *handle, in iommu_dma_alloc() argument
307 if (!(prot & IOMMU_CACHE)) { in iommu_dma_alloc()
320 if (iommu_map_sg(domain, dma_addr, sgt.sgl, sgt.orig_nents, prot) in iommu_dma_alloc()
363 unsigned long offset, size_t size, int prot) in iommu_dma_map_page() argument
377 if (iommu_map(domain, dma_addr, phys - iova_off, len, prot)) { in iommu_dma_map_page()
441 int nents, int prot) in iommu_dma_map_sg() argument
494 if (iommu_map_sg(domain, dma_addr, sg, nents, prot) < iova_len) in iommu_dma_map_sg()