Lines Matching refs:dmabuf
196 struct dma_buf *dmabuf; member
673 static void fastrpc_release(struct dma_buf *dmabuf) in fastrpc_release() argument
675 struct fastrpc_buf *buffer = dmabuf->priv; in fastrpc_release()
680 static int fastrpc_dma_buf_attach(struct dma_buf *dmabuf, in fastrpc_dma_buf_attach() argument
684 struct fastrpc_buf *buffer = dmabuf->priv; in fastrpc_dma_buf_attach()
710 static void fastrpc_dma_buf_detatch(struct dma_buf *dmabuf, in fastrpc_dma_buf_detatch() argument
714 struct fastrpc_buf *buffer = dmabuf->priv; in fastrpc_dma_buf_detatch()
723 static int fastrpc_vmap(struct dma_buf *dmabuf, struct iosys_map *map) in fastrpc_vmap() argument
725 struct fastrpc_buf *buf = dmabuf->priv; in fastrpc_vmap()
732 static int fastrpc_mmap(struct dma_buf *dmabuf, in fastrpc_mmap() argument
735 struct fastrpc_buf *buf = dmabuf->priv; in fastrpc_mmap()
738 dma_resv_assert_held(dmabuf->resv); in fastrpc_mmap()
1617 buf->dmabuf = dma_buf_export(&exp_info); in fastrpc_dmabuf_alloc()
1618 if (IS_ERR(buf->dmabuf)) { in fastrpc_dmabuf_alloc()
1619 err = PTR_ERR(buf->dmabuf); in fastrpc_dmabuf_alloc()
1624 bp.fd = dma_buf_fd(buf->dmabuf, O_ACCMODE); in fastrpc_dmabuf_alloc()
1626 dma_buf_put(buf->dmabuf); in fastrpc_dmabuf_alloc()