Lines Matching refs:dmabuf
57 static int cma_heap_attach(struct dma_buf *dmabuf, in cma_heap_attach() argument
60 struct cma_heap_buffer *buffer = dmabuf->priv; in cma_heap_attach()
91 static void cma_heap_detach(struct dma_buf *dmabuf, in cma_heap_detach() argument
94 struct cma_heap_buffer *buffer = dmabuf->priv; in cma_heap_detach()
139 cma_heap_dma_buf_begin_cpu_access_partial(struct dma_buf *dmabuf, in cma_heap_dma_buf_begin_cpu_access_partial() argument
144 struct cma_heap_buffer *buffer = dmabuf->priv; in cma_heap_dma_buf_begin_cpu_access_partial()
164 cma_heap_dma_buf_end_cpu_access_partial(struct dma_buf *dmabuf, in cma_heap_dma_buf_end_cpu_access_partial() argument
169 struct cma_heap_buffer *buffer = dmabuf->priv; in cma_heap_dma_buf_end_cpu_access_partial()
188 static int cma_heap_dma_buf_begin_cpu_access(struct dma_buf *dmabuf, in cma_heap_dma_buf_begin_cpu_access() argument
191 struct cma_heap_buffer *buffer = dmabuf->priv; in cma_heap_dma_buf_begin_cpu_access()
208 static int cma_heap_dma_buf_end_cpu_access(struct dma_buf *dmabuf, in cma_heap_dma_buf_end_cpu_access() argument
211 struct cma_heap_buffer *buffer = dmabuf->priv; in cma_heap_dma_buf_end_cpu_access()
246 static int cma_heap_mmap(struct dma_buf *dmabuf, struct vm_area_struct *vma) in cma_heap_mmap() argument
248 struct cma_heap_buffer *buffer = dmabuf->priv; in cma_heap_mmap()
277 static void *cma_heap_vmap(struct dma_buf *dmabuf) in cma_heap_vmap() argument
279 struct cma_heap_buffer *buffer = dmabuf->priv; in cma_heap_vmap()
301 static void cma_heap_vunmap(struct dma_buf *dmabuf, void *vaddr) in cma_heap_vunmap() argument
303 struct cma_heap_buffer *buffer = dmabuf->priv; in cma_heap_vunmap()
313 static void cma_heap_dma_buf_release(struct dma_buf *dmabuf) in cma_heap_dma_buf_release() argument
315 struct cma_heap_buffer *buffer = dmabuf->priv; in cma_heap_dma_buf_release()
359 struct dma_buf *dmabuf; in cma_heap_do_allocate() local
423 dmabuf = dma_buf_export(&exp_info); in cma_heap_do_allocate()
424 if (IS_ERR(dmabuf)) { in cma_heap_do_allocate()
425 ret = PTR_ERR(dmabuf); in cma_heap_do_allocate()
436 return dmabuf; in cma_heap_do_allocate()
462 struct dma_buf *dmabuf; in cma_heap_get_phys() local
469 dmabuf = dma_buf_get(phys->fd); in cma_heap_get_phys()
470 if (IS_ERR_OR_NULL(dmabuf)) in cma_heap_get_phys()
473 buffer = dmabuf->priv; in cma_heap_get_phys()
483 dma_buf_put(dmabuf); in cma_heap_get_phys()