Subversion Repositories Kolibri OS

Rev

Rev 4568 | Rev 5270 | Go to most recent revision | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 4568 Rev 5056
Line 113... Line 113...
113
 * @attachments: list of dma_buf_attachment that denotes all devices attached.
113
 * @attachments: list of dma_buf_attachment that denotes all devices attached.
114
 * @ops: dma_buf_ops associated with this buffer object.
114
 * @ops: dma_buf_ops associated with this buffer object.
115
 * @exp_name: name of the exporter; useful for debugging.
115
 * @exp_name: name of the exporter; useful for debugging.
116
 * @list_node: node for dma_buf accounting and debugging.
116
 * @list_node: node for dma_buf accounting and debugging.
117
 * @priv: exporter specific private data for this buffer object.
117
 * @priv: exporter specific private data for this buffer object.
-
 
118
 * @resv: reservation object linked to this dma-buf
118
 */
119
 */
119
struct dma_buf {
120
struct dma_buf {
120
	size_t size;
121
	size_t size;
121
	struct file *file;
122
	struct file *file;
122
	struct list_head attachments;
123
	struct list_head attachments;
Line 166... Line 167...
166
							struct device *dev);
167
							struct device *dev);
167
void dma_buf_detach(struct dma_buf *dmabuf,
168
void dma_buf_detach(struct dma_buf *dmabuf,
168
				struct dma_buf_attachment *dmabuf_attach);
169
				struct dma_buf_attachment *dmabuf_attach);
Line 169... Line 170...
169
 
170
 
170
struct dma_buf *dma_buf_export_named(void *priv, const struct dma_buf_ops *ops,
171
struct dma_buf *dma_buf_export_named(void *priv, const struct dma_buf_ops *ops,
-
 
172
			       size_t size, int flags, const char *,
Line 171... Line 173...
171
			       size_t size, int flags, const char *);
173
			       struct reservation_object *);
172
 
174
 
Line 173... Line 175...
173
#define dma_buf_export(priv, ops, size, flags)	\
175
#define dma_buf_export(priv, ops, size, flags, resv)	\
174
	dma_buf_export_named(priv, ops, size, flags, __FILE__)
176
	dma_buf_export_named(priv, ops, size, flags, KBUILD_MODNAME, resv)
175
 
177
 
Line 192... Line 194...
192
 
194
 
193
int dma_buf_mmap(struct dma_buf *, struct vm_area_struct *,
195
int dma_buf_mmap(struct dma_buf *, struct vm_area_struct *,
194
		 unsigned long);
196
		 unsigned long);
195
void *dma_buf_vmap(struct dma_buf *);
197
void *dma_buf_vmap(struct dma_buf *);
-
 
198
void dma_buf_vunmap(struct dma_buf *, void *vaddr);
-
 
199
int dma_buf_debugfs_create_file(const char *name,
196
void dma_buf_vunmap(struct dma_buf *, void *vaddr);
200
				int (*write)(struct seq_file *));