Lines Matching refs:coherent
436 * @coherent: Is the DMA master cache-coherent?
441 static int dma_info_to_prot(enum dma_data_direction dir, bool coherent, unsigned long attrs)
443 int prot = coherent ? IOMMU_CACHE : 0;
659 bool coherent = dev_is_dma_coherent(dev);
660 int ioprot = dma_info_to_prot(DMA_BIDIRECTIONAL, coherent, attrs);
801 bool coherent = dev_is_dma_coherent(dev);
802 int prot = dma_info_to_prot(dir, coherent, attrs);
806 if (!coherent && !(attrs & DMA_ATTR_SKIP_CPU_SYNC) && dma_handle != DMA_MAPPING_ERROR) {
1035 /* Non-coherent atomic allocation? Easy */
1042 * If it the address is remapped, then it's either non-coherent
1051 /* Lowmem means a coherent atomic or CMA allocation */
1071 bool coherent = dev_is_dma_coherent(dev);
1085 if (IS_ENABLED(CONFIG_DMA_REMAP) && (!coherent || PageHighMem(page))) {
1093 if (!coherent) {
1110 bool coherent = dev_is_dma_coherent(dev);
1111 int ioprot = dma_info_to_prot(DMA_BIDIRECTIONAL, coherent, attrs);
1121 if (IS_ENABLED(CONFIG_DMA_DIRECT_REMAP) && !gfpflags_allow_blocking(gfp) && !coherent) {