Lines Matching refs:attrs
34 static pgprot_t __get_dma_pgprot(struct dma_attrs *attrs, pgprot_t prot, in __get_dma_pgprot() argument
37 if (!coherent || dma_get_attr(DMA_ATTR_WRITE_COMBINE, attrs)) in __get_dma_pgprot()
93 struct dma_attrs *attrs) in __dma_alloc_coherent() argument
123 struct dma_attrs *attrs) in __dma_free_coherent() argument
142 struct dma_attrs *attrs) in __dma_alloc() argument
160 ptr = __dma_alloc_coherent(dev, size, dma_handle, flags, attrs); in __dma_alloc()
174 __get_dma_pgprot(attrs, in __dma_alloc()
183 __dma_free_coherent(dev, size, ptr, *dma_handle, attrs); in __dma_alloc()
191 struct dma_attrs *attrs) in __dma_free() argument
202 __dma_free_coherent(dev, size, swiotlb_addr, dma_handle, attrs); in __dma_free()
208 struct dma_attrs *attrs) in __swiotlb_map_page() argument
212 dev_addr = swiotlb_map_page(dev, page, offset, size, dir, attrs); in __swiotlb_map_page()
222 struct dma_attrs *attrs) in __swiotlb_unmap_page() argument
226 swiotlb_unmap_page(dev, dev_addr, size, dir, attrs); in __swiotlb_unmap_page()
231 struct dma_attrs *attrs) in __swiotlb_map_sg_attrs() argument
236 ret = swiotlb_map_sg_attrs(dev, sgl, nelems, dir, attrs); in __swiotlb_map_sg_attrs()
248 struct dma_attrs *attrs) in __swiotlb_unmap_sg_attrs() argument
257 swiotlb_unmap_sg_attrs(dev, sgl, nelems, dir, attrs); in __swiotlb_unmap_sg_attrs()
333 struct dma_attrs *attrs) in __swiotlb_mmap() argument
335 vma->vm_page_prot = __get_dma_pgprot(attrs, vma->vm_page_prot, in __swiotlb_mmap()