Lines Matching refs:coherent_flag
48 int coherent_flag; member
107 static void __dma_clear_buffer(struct page *page, size_t size, int coherent_flag) in __dma_clear_buffer() argument
119 if (coherent_flag != COHERENT) in __dma_clear_buffer()
125 if (coherent_flag != COHERENT) in __dma_clear_buffer()
130 if (coherent_flag != COHERENT) { in __dma_clear_buffer()
142 gfp_t gfp, int coherent_flag) in __dma_alloc_buffer() argument
158 __dma_clear_buffer(page, size, coherent_flag); in __dma_alloc_buffer()
179 int coherent_flag, gfp_t gfp);
394 int coherent_flag, gfp_t gfp) in __alloc_from_contiguous() argument
405 __dma_clear_buffer(page, size, coherent_flag); in __alloc_from_contiguous()
481 args->want_vaddr, args->coherent_flag, in cma_allocator_alloc()
549 .coherent_flag = is_coherent ? COHERENT : NORMAL, in __dma_alloc()
854 int coherent_flag) in __iommu_alloc_buffer() argument
879 __dma_clear_buffer(page, size, coherent_flag); in __iommu_alloc_buffer()
929 __dma_clear_buffer(pages[i], PAGE_SIZE << order, coherent_flag); in __iommu_alloc_buffer()
1044 dma_addr_t *handle, int coherent_flag, in __iommu_alloc_simple() argument
1050 if (coherent_flag == COHERENT) in __iommu_alloc_simple()
1069 dma_addr_t handle, size_t size, int coherent_flag) in __iommu_free_atomic() argument
1072 if (coherent_flag == COHERENT) in __iommu_free_atomic()
1084 int coherent_flag = dev->dma_coherent ? COHERENT : NORMAL; in arm_iommu_alloc_attrs() local
1089 if (coherent_flag == COHERENT || !gfpflags_allow_blocking(gfp)) in arm_iommu_alloc_attrs()
1091 coherent_flag, attrs); in arm_iommu_alloc_attrs()
1093 pages = __iommu_alloc_buffer(dev, size, gfp, attrs, coherent_flag); in arm_iommu_alloc_attrs()
1149 int coherent_flag = dev->dma_coherent ? COHERENT : NORMAL; in arm_iommu_free_attrs() local
1153 if (coherent_flag == COHERENT || __in_atomic_pool(cpu_addr, size)) { in arm_iommu_free_attrs()
1154 __iommu_free_atomic(dev, cpu_addr, handle, size, coherent_flag); in arm_iommu_free_attrs()