Lines Matching refs:dma_buf

37 struct dma_buf;
75 int (*attach)(struct dma_buf *, struct device *,
78 void (*detach)(struct dma_buf *, struct dma_buf_attachment *);
94 void (*release)(struct dma_buf *);
96 int (*begin_cpu_access)(struct dma_buf *, size_t, size_t,
98 void (*end_cpu_access)(struct dma_buf *, size_t, size_t,
100 void *(*kmap_atomic)(struct dma_buf *, unsigned long);
101 void (*kunmap_atomic)(struct dma_buf *, unsigned long, void *);
102 void *(*kmap)(struct dma_buf *, unsigned long);
103 void (*kunmap)(struct dma_buf *, unsigned long, void *);
105 int (*mmap)(struct dma_buf *, struct vm_area_struct *vma);
107 void *(*vmap)(struct dma_buf *);
108 void (*vunmap)(struct dma_buf *, void *vaddr);
124 struct dma_buf { struct
162 struct dma_buf *dmabuf;
207 static inline void get_dma_buf(struct dma_buf *dmabuf) in get_dma_buf()
212 struct dma_buf_attachment *dma_buf_attach(struct dma_buf *dmabuf,
214 void dma_buf_detach(struct dma_buf *dmabuf,
217 struct dma_buf *dma_buf_export(const struct dma_buf_export_info *exp_info);
219 int dma_buf_fd(struct dma_buf *dmabuf, int flags);
220 struct dma_buf *dma_buf_get(int fd);
221 void dma_buf_put(struct dma_buf *dmabuf);
227 int dma_buf_begin_cpu_access(struct dma_buf *dma_buf, size_t start, size_t len,
229 void dma_buf_end_cpu_access(struct dma_buf *dma_buf, size_t start, size_t len,
231 void *dma_buf_kmap_atomic(struct dma_buf *, unsigned long);
232 void dma_buf_kunmap_atomic(struct dma_buf *, unsigned long, void *);
233 void *dma_buf_kmap(struct dma_buf *, unsigned long);
234 void dma_buf_kunmap(struct dma_buf *, unsigned long, void *);
236 int dma_buf_mmap(struct dma_buf *, struct vm_area_struct *,
238 void *dma_buf_vmap(struct dma_buf *);
239 void dma_buf_vunmap(struct dma_buf *, void *vaddr);