Lines Matching defs:coherent
379 * @coherent: Is the DMA master cache-coherent?
384 static int dma_info_to_prot(enum dma_data_direction dir, bool coherent,
387 int prot = coherent ? IOMMU_CACHE : 0;
591 bool coherent = dev_is_dma_coherent(dev);
592 int ioprot = dma_info_to_prot(DMA_BIDIRECTIONAL, coherent, attrs);
732 bool coherent = dev_is_dma_coherent(dev);
733 int prot = dma_info_to_prot(dir, coherent, attrs);
737 if (!coherent && !(attrs & DMA_ATTR_SKIP_CPU_SYNC) &&
955 /* Non-coherent atomic allocation? Easy */
962 * If it the address is remapped, then it's either non-coherent
970 /* Lowmem means a coherent atomic or CMA allocation */
990 bool coherent = dev_is_dma_coherent(dev);
1002 if (IS_ENABLED(CONFIG_DMA_REMAP) && (!coherent || PageHighMem(page))) {
1010 if (!coherent)
1027 bool coherent = dev_is_dma_coherent(dev);
1028 int ioprot = dma_info_to_prot(DMA_BIDIRECTIONAL, coherent, attrs);
1041 !gfpflags_allow_blocking(gfp) && !coherent)