Lines Matching refs:dma_buf
27 struct dma_buf;
72 int (*attach)(struct dma_buf *, struct dma_buf_attachment *);
83 void (*detach)(struct dma_buf *, struct dma_buf_attachment *);
179 void (*release)(struct dma_buf *);
211 int (*begin_cpu_access)(struct dma_buf *, enum dma_data_direction);
244 int (*begin_cpu_access_partial)(struct dma_buf *dmabuf,
265 int (*end_cpu_access)(struct dma_buf *, enum dma_data_direction);
285 int (*end_cpu_access_partial)(struct dma_buf *dmabuf,
324 int (*mmap)(struct dma_buf *, struct vm_area_struct *vma);
326 void *(*vmap)(struct dma_buf *);
327 void (*vunmap)(struct dma_buf *, void *vaddr);
342 int (*get_uuid)(struct dma_buf *dmabuf, uuid_t *uuid);
356 int (*get_flags)(struct dma_buf *dmabuf, unsigned long *flags);
373 typedef int (*dma_buf_destructor)(struct dma_buf *dmabuf, void *dtor_data);
410 struct dma_buf { struct
439 struct dma_buf *dmabuf; argument
512 struct dma_buf *dmabuf;
573 static inline void get_dma_buf(struct dma_buf *dmabuf) in get_dma_buf()
586 static inline bool dma_buf_is_dynamic(struct dma_buf *dmabuf) in dma_buf_is_dynamic()
605 int get_each_dmabuf(int (*callback)(const struct dma_buf *dmabuf,
608 struct dma_buf_attachment *dma_buf_attach(struct dma_buf *dmabuf,
611 dma_buf_dynamic_attach(struct dma_buf *dmabuf, struct device *dev,
614 void dma_buf_detach(struct dma_buf *dmabuf,
619 struct dma_buf *dma_buf_export(const struct dma_buf_export_info *exp_info);
621 int dma_buf_fd(struct dma_buf *dmabuf, int flags);
622 struct dma_buf *dma_buf_get(int fd);
623 void dma_buf_put(struct dma_buf *dmabuf);
629 void dma_buf_move_notify(struct dma_buf *dma_buf);
630 int dma_buf_begin_cpu_access(struct dma_buf *dma_buf,
632 int dma_buf_begin_cpu_access_partial(struct dma_buf *dma_buf,
635 int dma_buf_end_cpu_access(struct dma_buf *dma_buf,
637 int dma_buf_end_cpu_access_partial(struct dma_buf *dma_buf,
641 int dma_buf_mmap(struct dma_buf *, struct vm_area_struct *,
643 void *dma_buf_vmap(struct dma_buf *);
644 void dma_buf_vunmap(struct dma_buf *, void *vaddr);
645 long dma_buf_set_name(struct dma_buf *dmabuf, const char *name);
646 int dma_buf_get_flags(struct dma_buf *dmabuf, unsigned long *flags);
647 int dma_buf_get_uuid(struct dma_buf *dmabuf, uuid_t *uuid);
656 static inline void dma_buf_set_destructor(struct dma_buf *dmabuf, in dma_buf_set_destructor()