• Home
  • Raw
  • Download

Lines Matching refs:attrs

455 		     unsigned long attrs)  in dma_info_to_prot()  argument
459 if (attrs & DMA_ATTR_PRIVILEGED) in dma_info_to_prot()
461 if (attrs & DMA_ATTR_SYS_CACHE_ONLY) in dma_info_to_prot()
463 if (attrs & DMA_ATTR_SYS_CACHE_ONLY_NWA) in dma_info_to_prot()
657 unsigned long attrs) in __iommu_dma_alloc_noncontiguous() argument
663 int ioprot = dma_info_to_prot(DMA_BIDIRECTIONAL, coherent, attrs); in __iommu_dma_alloc_noncontiguous()
680 if (attrs & DMA_ATTR_ALLOC_SINGLE_PAGES) in __iommu_dma_alloc_noncontiguous()
724 unsigned long attrs) in iommu_dma_alloc_remap() argument
731 attrs); in iommu_dma_alloc_remap()
751 unsigned long attrs) in iommu_dma_alloc_noncontiguous() argument
760 PAGE_KERNEL, attrs); in iommu_dma_alloc_noncontiguous()
847 unsigned long attrs) in iommu_dma_map_page() argument
851 int prot = dma_info_to_prot(dir, coherent, attrs); in iommu_dma_map_page()
869 iova_mask(iovad), dir, attrs); in iommu_dma_map_page()
878 if (!(attrs & DMA_ATTR_SKIP_CPU_SYNC) && in iommu_dma_map_page()
887 if (!coherent && !(attrs & DMA_ATTR_SKIP_CPU_SYNC)) in iommu_dma_map_page()
892 swiotlb_tbl_unmap_single(dev, phys, size, dir, attrs); in iommu_dma_map_page()
897 size_t size, enum dma_data_direction dir, unsigned long attrs) in iommu_dma_unmap_page() argument
906 if (!(attrs & DMA_ATTR_SKIP_CPU_SYNC) && !dev_is_dma_coherent(dev)) in iommu_dma_unmap_page()
912 swiotlb_tbl_unmap_single(dev, phys, size, dir, attrs); in iommu_dma_unmap_page()
991 int nents, enum dma_data_direction dir, unsigned long attrs) in iommu_dma_unmap_sg_swiotlb() argument
998 sg_dma_len(s), dir, attrs); in iommu_dma_unmap_sg_swiotlb()
1002 int nents, enum dma_data_direction dir, unsigned long attrs) in iommu_dma_map_sg_swiotlb() argument
1009 s->offset, s->length, dir, attrs); in iommu_dma_map_sg_swiotlb()
1018 iommu_dma_unmap_sg_swiotlb(dev, sg, i, dir, attrs | DMA_ATTR_SKIP_CPU_SYNC); in iommu_dma_map_sg_swiotlb()
1030 int nents, enum dma_data_direction dir, unsigned long attrs) in iommu_dma_map_sg() argument
1036 int prot = dma_info_to_prot(dir, dev_is_dma_coherent(dev), attrs); in iommu_dma_map_sg()
1050 return iommu_dma_map_sg_swiotlb(dev, sg, nents, dir, attrs); in iommu_dma_map_sg()
1052 if (!(attrs & DMA_ATTR_SKIP_CPU_SYNC)) in iommu_dma_map_sg()
1121 int nents, enum dma_data_direction dir, unsigned long attrs) in iommu_dma_unmap_sg() argument
1128 iommu_dma_unmap_sg_swiotlb(dev, sg, nents, dir, attrs); in iommu_dma_unmap_sg()
1132 if (!(attrs & DMA_ATTR_SKIP_CPU_SYNC)) in iommu_dma_unmap_sg()
1150 size_t size, enum dma_data_direction dir, unsigned long attrs) in iommu_dma_map_resource() argument
1153 dma_info_to_prot(dir, false, attrs) | IOMMU_MMIO, in iommu_dma_map_resource()
1158 size_t size, enum dma_data_direction dir, unsigned long attrs) in iommu_dma_unmap_resource() argument
1195 dma_addr_t handle, unsigned long attrs) in iommu_dma_free() argument
1202 struct page **pagep, gfp_t gfp, unsigned long attrs) in iommu_dma_alloc_pages() argument
1217 pgprot_t prot = dma_pgprot(dev, PAGE_KERNEL, attrs); in iommu_dma_alloc_pages()
1239 dma_addr_t *handle, gfp_t gfp, unsigned long attrs) in iommu_dma_alloc() argument
1242 int ioprot = dma_info_to_prot(DMA_BIDIRECTIONAL, coherent, attrs); in iommu_dma_alloc()
1249 !(attrs & DMA_ATTR_FORCE_CONTIGUOUS)) { in iommu_dma_alloc()
1251 dma_pgprot(dev, PAGE_KERNEL, attrs), attrs); in iommu_dma_alloc()
1259 cpu_addr = iommu_dma_alloc_pages(dev, size, &page, gfp, attrs); in iommu_dma_alloc()
1275 unsigned long attrs) in iommu_dma_mmap() argument
1281 vma->vm_page_prot = dma_pgprot(dev, vma->vm_page_prot, attrs); in iommu_dma_mmap()
1306 unsigned long attrs) in iommu_dma_get_sgtable() argument