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);
392 int coherent_flag, gfp_t gfp) in __alloc_from_contiguous() argument
403 __dma_clear_buffer(page, size, coherent_flag); in __alloc_from_contiguous()
479 args->want_vaddr, args->coherent_flag, in cma_allocator_alloc()
547 .coherent_flag = is_coherent ? COHERENT : NORMAL, in __dma_alloc()
858 int coherent_flag) in __iommu_alloc_buffer() argument
883 __dma_clear_buffer(page, size, coherent_flag); in __iommu_alloc_buffer()
933 __dma_clear_buffer(pages[i], PAGE_SIZE << order, coherent_flag); in __iommu_alloc_buffer()
1047 dma_addr_t *handle, int coherent_flag, in __iommu_alloc_simple() argument
1053 if (coherent_flag == COHERENT) in __iommu_alloc_simple()
1072 dma_addr_t handle, size_t size, int coherent_flag) in __iommu_free_atomic() argument
1075 if (coherent_flag == COHERENT) in __iommu_free_atomic()
1087 int coherent_flag = dev->dma_coherent ? COHERENT : NORMAL; in arm_iommu_alloc_attrs() local
1092 if (coherent_flag == COHERENT || !gfpflags_allow_blocking(gfp)) in arm_iommu_alloc_attrs()
1094 coherent_flag, attrs); in arm_iommu_alloc_attrs()
1105 pages = __iommu_alloc_buffer(dev, size, gfp, attrs, coherent_flag); in arm_iommu_alloc_attrs()
1161 int coherent_flag = dev->dma_coherent ? COHERENT : NORMAL; in arm_iommu_free_attrs() local
1165 if (coherent_flag == COHERENT || __in_atomic_pool(cpu_addr, size)) { in arm_iommu_free_attrs()
1166 __iommu_free_atomic(dev, cpu_addr, handle, size, coherent_flag); in arm_iommu_free_attrs()