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
876 __dma_clear_buffer(page, size, coherent_flag); in __iommu_alloc_buffer()
926 __dma_clear_buffer(pages[i], PAGE_SIZE << order, coherent_flag); in __iommu_alloc_buffer()
1041 dma_addr_t *handle, int coherent_flag, in __iommu_alloc_simple() argument
1047 if (coherent_flag == COHERENT) in __iommu_alloc_simple()
1066 dma_addr_t handle, size_t size, int coherent_flag) in __iommu_free_atomic() argument
1069 if (coherent_flag == COHERENT) in __iommu_free_atomic()
1081 int coherent_flag = dev->dma_coherent ? COHERENT : NORMAL; in arm_iommu_alloc_attrs() local
1086 if (coherent_flag == COHERENT || !gfpflags_allow_blocking(gfp)) in arm_iommu_alloc_attrs()
1088 coherent_flag, attrs); in arm_iommu_alloc_attrs()
1090 pages = __iommu_alloc_buffer(dev, size, gfp, attrs, coherent_flag); in arm_iommu_alloc_attrs()
1146 int coherent_flag = dev->dma_coherent ? COHERENT : NORMAL; in arm_iommu_free_attrs() local
1150 if (coherent_flag == COHERENT || __in_atomic_pool(cpu_addr, size)) { in arm_iommu_free_attrs()
1151 __iommu_free_atomic(dev, cpu_addr, handle, size, coherent_flag); in arm_iommu_free_attrs()