Lines Matching refs:dmabuf

55 static int dma_heap_attach(struct dma_buf *dmabuf,  in dma_heap_attach()  argument
58 struct sram_dma_heap_buffer *buffer = dmabuf->priv; in dma_heap_attach()
103 static void dma_heap_detatch(struct dma_buf *dmabuf, in dma_heap_detatch() argument
106 struct sram_dma_heap_buffer *buffer = dmabuf->priv; in dma_heap_detatch()
139 static void dma_heap_dma_buf_release(struct dma_buf *dmabuf) in dma_heap_dma_buf_release() argument
141 struct sram_dma_heap_buffer *buffer = dmabuf->priv; in dma_heap_dma_buf_release()
147 static int dma_heap_mmap(struct dma_buf *dmabuf, struct vm_area_struct *vma) in dma_heap_mmap() argument
149 struct sram_dma_heap_buffer *buffer = dmabuf->priv; in dma_heap_mmap()
162 static void *dma_heap_vmap(struct dma_buf *dmabuf) in dma_heap_vmap() argument
164 struct sram_dma_heap_buffer *buffer = dmabuf->priv; in dma_heap_vmap()
188 struct dma_buf *dmabuf; in sram_dma_heap_allocate() local
216 dmabuf = dma_buf_export(&exp_info); in sram_dma_heap_allocate()
217 if (IS_ERR(dmabuf)) { in sram_dma_heap_allocate()
218 ret = PTR_ERR(dmabuf); in sram_dma_heap_allocate()
222 return dmabuf; in sram_dma_heap_allocate()
274 struct dma_buf *dmabuf; in sram_heap_alloc_dma_buf() local
302 dmabuf = dma_buf_export(&exp_info); in sram_heap_alloc_dma_buf()
303 if (IS_ERR(dmabuf)) { in sram_heap_alloc_dma_buf()
304 ret = PTR_ERR(dmabuf); in sram_heap_alloc_dma_buf()
308 return dmabuf; in sram_heap_alloc_dma_buf()
381 void sram_heap_free_dma_buf(struct dma_buf *dmabuf) in sram_heap_free_dma_buf() argument
383 struct sram_dma_heap_buffer *buffer = dmabuf->priv; in sram_heap_free_dma_buf()
390 void *sram_heap_get_vaddr(struct dma_buf *dmabuf) in sram_heap_get_vaddr() argument
392 struct sram_dma_heap_buffer *buffer = dmabuf->priv; in sram_heap_get_vaddr()
398 phys_addr_t sram_heap_get_paddr(struct dma_buf *dmabuf) in sram_heap_get_paddr() argument
400 struct sram_dma_heap_buffer *buffer = dmabuf->priv; in sram_heap_get_paddr()