Lines Matching defs:buf
4 #include <linux/dma-buf.h>
42 static int mmap_udmabuf(struct dma_buf *buf, struct vm_area_struct *vma)
44 struct udmabuf *ubuf = buf->priv;
54 static struct sg_table *get_sg_table(struct device *dev, struct dma_buf *buf,
57 struct udmabuf *ubuf = buf->priv;
101 static void release_udmabuf(struct dma_buf *buf)
103 struct udmabuf *ubuf = buf->priv;
116 static int begin_cpu_udmabuf(struct dma_buf *buf,
119 struct udmabuf *ubuf = buf->priv;
124 ubuf->sg = get_sg_table(dev, buf, direction);
137 static int end_cpu_udmabuf(struct dma_buf *buf,
140 struct udmabuf *ubuf = buf->priv;
170 struct dma_buf *buf;
237 buf = dma_buf_export(&exp_info);
238 if (IS_ERR(buf)) {
239 ret = PTR_ERR(buf);
246 return dma_buf_fd(buf, flags);