Lines Matching refs:dmabuf
118 struct dma_buf *dmabuf; member
508 static void fastrpc_release(struct dma_buf *dmabuf) in fastrpc_release() argument
510 struct fastrpc_buf *buffer = dmabuf->priv; in fastrpc_release()
515 static int fastrpc_dma_buf_attach(struct dma_buf *dmabuf, in fastrpc_dma_buf_attach() argument
519 struct fastrpc_buf *buffer = dmabuf->priv; in fastrpc_dma_buf_attach()
545 static void fastrpc_dma_buf_detatch(struct dma_buf *dmabuf, in fastrpc_dma_buf_detatch() argument
549 struct fastrpc_buf *buffer = dmabuf->priv; in fastrpc_dma_buf_detatch()
558 static void *fastrpc_kmap(struct dma_buf *dmabuf, unsigned long pgnum) in fastrpc_kmap() argument
560 struct fastrpc_buf *buf = dmabuf->priv; in fastrpc_kmap()
565 static void *fastrpc_vmap(struct dma_buf *dmabuf) in fastrpc_vmap() argument
567 struct fastrpc_buf *buf = dmabuf->priv; in fastrpc_vmap()
572 static int fastrpc_mmap(struct dma_buf *dmabuf, in fastrpc_mmap() argument
575 struct fastrpc_buf *buf = dmabuf->priv; in fastrpc_mmap()
1220 buf->dmabuf = dma_buf_export(&exp_info); in fastrpc_dmabuf_alloc()
1221 if (IS_ERR(buf->dmabuf)) { in fastrpc_dmabuf_alloc()
1222 err = PTR_ERR(buf->dmabuf); in fastrpc_dmabuf_alloc()
1227 bp.fd = dma_buf_fd(buf->dmabuf, O_ACCMODE); in fastrpc_dmabuf_alloc()
1229 dma_buf_put(buf->dmabuf); in fastrpc_dmabuf_alloc()
1234 dma_buf_put(buf->dmabuf); in fastrpc_dmabuf_alloc()