Lines Matching refs:dma_buf
35 struct dma_buf *dmabuf;
219 static int dmabuf_exp_ops_attach(struct dma_buf *dma_buf, in dmabuf_exp_ops_attach() argument
234 static void dmabuf_exp_ops_detach(struct dma_buf *dma_buf, in dmabuf_exp_ops_detach() argument
326 static void dmabuf_exp_ops_release(struct dma_buf *dma_buf) in dmabuf_exp_ops_release() argument
328 struct gntdev_dmabuf *gntdev_dmabuf = dma_buf->priv; in dmabuf_exp_ops_release()
338 static void *dmabuf_exp_ops_kmap(struct dma_buf *dma_buf, in dmabuf_exp_ops_kmap() argument
345 static void dmabuf_exp_ops_kunmap(struct dma_buf *dma_buf, in dmabuf_exp_ops_kunmap() argument
351 static int dmabuf_exp_ops_mmap(struct dma_buf *dma_buf, in dmabuf_exp_ops_mmap() argument
603 struct dma_buf *dma_buf; in dmabuf_imp_to_refs() local
609 dma_buf = dma_buf_get(fd); in dmabuf_imp_to_refs()
610 if (IS_ERR(dma_buf)) in dmabuf_imp_to_refs()
611 return ERR_CAST(dma_buf); in dmabuf_imp_to_refs()
622 attach = dma_buf_attach(dma_buf, dev); in dmabuf_imp_to_refs()
682 dma_buf_detach(dma_buf, attach); in dmabuf_imp_to_refs()
686 dma_buf_put(dma_buf); in dmabuf_imp_to_refs()
716 struct dma_buf *dma_buf; in dmabuf_imp_release() local
732 dma_buf = attach->dmabuf; in dmabuf_imp_release()
734 dma_buf_put(dma_buf); in dmabuf_imp_release()