Lines Matching refs:coherent
454 static int dma_info_to_prot(enum dma_data_direction dir, bool coherent, in dma_info_to_prot() argument
457 int prot = coherent ? IOMMU_CACHE : 0; in dma_info_to_prot()
662 bool coherent = dev_is_dma_coherent(dev); in __iommu_dma_alloc_noncontiguous() local
663 int ioprot = dma_info_to_prot(DMA_BIDIRECTIONAL, coherent, attrs); in __iommu_dma_alloc_noncontiguous()
850 bool coherent = dev_is_dma_coherent(dev); in iommu_dma_map_page() local
851 int prot = dma_info_to_prot(dir, coherent, attrs); in iommu_dma_map_page()
887 if (!coherent && !(attrs & DMA_ATTR_SKIP_CPU_SYNC)) in iommu_dma_map_page()
1204 bool coherent = dev_is_dma_coherent(dev); in iommu_dma_alloc_pages() local
1216 if (IS_ENABLED(CONFIG_DMA_REMAP) && (!coherent || PageHighMem(page))) { in iommu_dma_alloc_pages()
1224 if (!coherent) in iommu_dma_alloc_pages()
1241 bool coherent = dev_is_dma_coherent(dev); in iommu_dma_alloc() local
1242 int ioprot = dma_info_to_prot(DMA_BIDIRECTIONAL, coherent, attrs); in iommu_dma_alloc()
1255 !gfpflags_allow_blocking(gfp) && !coherent) in iommu_dma_alloc()