Lines Matching refs:prot
443 int prot = coherent ? IOMMU_CACHE : 0;
446 prot |= IOMMU_PRIV;
449 prot |= IOMMU_SYS_CACHE_ONLY;
452 prot |= IOMMU_SYS_CACHE_ONLY_NWA;
457 return prot | IOMMU_READ | IOMMU_WRITE;
459 return prot | IOMMU_READ;
461 return prot | IOMMU_WRITE;
544 static dma_addr_t iommu_dma_map_ext(struct device *dev, phys_addr_t phys, size_t size, int prot, u64 dma_mask)
563 if (iommu_map_atomic(domain, iova, phys - iova_off, size, prot)) {
645 * @prot: pgprot_t to use for the remapped mapping
653 static void *iommu_dma_alloc_remap(struct device *dev, size_t size, dma_addr_t *dma_handle, gfp_t gfp, pgprot_t prot,
711 vaddr = dma_common_pages_remap(pages, size, prot, __builtin_return_address(0));
802 int prot = dma_info_to_prot(dir, coherent, attrs);
805 dma_handle = iommu_dma_map_ext(dev, phys, size, prot, dma_get_mask(dev));
914 int prot = dma_info_to_prot(dir, dev_is_dma_coherent(dev), attrs);
977 if (iommu_map_sg_atomic(domain, iova, sg, nents, prot) < iova_len) {
1086 pgprot_t prot = dma_pgprot(dev, PAGE_KERNEL, attrs);
1088 cpu_addr = dma_common_contiguous_remap(page, alloc_size, prot, __builtin_return_address(0));
1286 int prot = IOMMU_WRITE | IOMMU_NOEXEC | IOMMU_MMIO;
1302 if (iommu_map(domain, iova, msi_addr, size, prot)) {