Lines Matching defs:attrs
635 * @attrs: DMA attributes for the mapping
640 unsigned long attrs)
644 if (attrs & DMA_ATTR_PRIVILEGED)
836 unsigned long attrs)
842 int ioprot = dma_info_to_prot(DMA_BIDIRECTIONAL, coherent, attrs);
859 if (attrs & DMA_ATTR_ALLOC_SINGLE_PAGES)
911 unsigned long attrs)
918 attrs);
937 unsigned long attrs)
946 PAGE_KERNEL, attrs);
1032 unsigned long attrs)
1036 int prot = dma_info_to_prot(dir, coherent, attrs);
1060 iova_mask(iovad), dir, attrs);
1069 if (!(attrs & DMA_ATTR_SKIP_CPU_SYNC) &&
1078 if (!coherent && !(attrs & DMA_ATTR_SKIP_CPU_SYNC))
1083 swiotlb_tbl_unmap_single(dev, phys, size, dir, attrs);
1088 size_t size, enum dma_data_direction dir, unsigned long attrs)
1097 if (!(attrs & DMA_ATTR_SKIP_CPU_SYNC) && !dev_is_dma_coherent(dev))
1103 swiotlb_tbl_unmap_single(dev, phys, size, dir, attrs);
1201 int nents, enum dma_data_direction dir, unsigned long attrs)
1208 sg_dma_len(s), dir, attrs);
1212 int nents, enum dma_data_direction dir, unsigned long attrs)
1221 s->offset, s->length, dir, attrs);
1230 iommu_dma_unmap_sg_swiotlb(dev, sg, i, dir, attrs | DMA_ATTR_SKIP_CPU_SYNC);
1242 int nents, enum dma_data_direction dir, unsigned long attrs)
1248 int prot = dma_info_to_prot(dir, dev_is_dma_coherent(dev), attrs);
1264 return iommu_dma_map_sg_swiotlb(dev, sg, nents, dir, attrs);
1266 if (!(attrs & DMA_ATTR_SKIP_CPU_SYNC))
1362 int nents, enum dma_data_direction dir, unsigned long attrs)
1369 iommu_dma_unmap_sg_swiotlb(dev, sg, nents, dir, attrs);
1373 if (!(attrs & DMA_ATTR_SKIP_CPU_SYNC))
1412 size_t size, enum dma_data_direction dir, unsigned long attrs)
1415 dma_info_to_prot(dir, false, attrs) | IOMMU_MMIO,
1420 size_t size, enum dma_data_direction dir, unsigned long attrs)
1457 dma_addr_t handle, unsigned long attrs)
1464 struct page **pagep, gfp_t gfp, unsigned long attrs)
1479 pgprot_t prot = dma_pgprot(dev, PAGE_KERNEL, attrs);
1501 dma_addr_t *handle, gfp_t gfp, unsigned long attrs)
1504 int ioprot = dma_info_to_prot(DMA_BIDIRECTIONAL, coherent, attrs);
1511 !(attrs & DMA_ATTR_FORCE_CONTIGUOUS)) {
1513 dma_pgprot(dev, PAGE_KERNEL, attrs), attrs);
1521 cpu_addr = iommu_dma_alloc_pages(dev, size, &page, gfp, attrs);
1537 unsigned long attrs)
1543 vma->vm_page_prot = dma_pgprot(dev, vma->vm_page_prot, attrs);
1568 unsigned long attrs)