Lines Matching full:vaddr
200 int order, void *vaddr) in __dma_release_from_coherent() argument
202 if (mem && vaddr >= mem->virt_base && vaddr < in __dma_release_from_coherent()
204 int page = (vaddr - mem->virt_base) >> PAGE_SHIFT; in __dma_release_from_coherent()
219 * @vaddr: virtual address of allocated pages
227 int dma_release_from_dev_coherent(struct device *dev, int order, void *vaddr) in dma_release_from_dev_coherent() argument
231 return __dma_release_from_coherent(mem, order, vaddr); in dma_release_from_dev_coherent()
235 struct vm_area_struct *vma, void *vaddr, size_t size, int *ret) in __dma_mmap_from_coherent() argument
237 if (mem && vaddr >= mem->virt_base && vaddr + size <= in __dma_mmap_from_coherent()
241 int start = (vaddr - mem->virt_base) >> PAGE_SHIFT; in __dma_mmap_from_coherent()
261 * @vaddr: cpu address returned by dma_alloc_from_dev_coherent
268 * Returns 1 if @vaddr belongs to the device coherent pool and the caller
273 void *vaddr, size_t size, int *ret) in dma_mmap_from_dev_coherent() argument
277 return __dma_mmap_from_coherent(mem, vma, vaddr, size, ret); in dma_mmap_from_dev_coherent()
293 int dma_release_from_global_coherent(int order, void *vaddr) in dma_release_from_global_coherent() argument
299 vaddr); in dma_release_from_global_coherent()
302 int dma_mmap_from_global_coherent(struct vm_area_struct *vma, void *vaddr, in dma_mmap_from_global_coherent() argument
309 vaddr, size, ret); in dma_mmap_from_global_coherent()