Lines Matching defs:vb2_mem_ops
118 struct vb2_mem_ops { struct
119 void *(*alloc)(struct vb2_buffer *vb,
122 void (*put)(void *buf_priv);
123 struct dma_buf *(*get_dmabuf)(struct vb2_buffer *vb,
127 void *(*get_userptr)(struct vb2_buffer *vb,
131 void (*put_userptr)(void *buf_priv);
133 void (*prepare)(void *buf_priv);
134 void (*finish)(void *buf_priv);
136 void *(*attach_dmabuf)(struct vb2_buffer *vb,
140 void (*detach_dmabuf)(void *buf_priv);
141 int (*map_dmabuf)(void *buf_priv);
142 void (*unmap_dmabuf)(void *buf_priv);
144 void *(*vaddr)(struct vb2_buffer *vb, void *buf_priv);
145 void *(*cookie)(struct vb2_buffer *vb, void *buf_priv);
147 unsigned int (*num_users)(void *buf_priv);
149 int (*mmap)(void *buf_priv, struct vm_area_struct *vma);