Lines Matching defs:vb

119 	void		*(*alloc)(struct vb2_buffer *vb,
123 struct dma_buf *(*get_dmabuf)(struct vb2_buffer *vb,
127 void *(*get_userptr)(struct vb2_buffer *vb,
136 void *(*attach_dmabuf)(struct vb2_buffer *vb,
144 void *(*vaddr)(struct vb2_buffer *vb, void *buf_priv);
145 void *(*cookie)(struct vb2_buffer *vb, void *buf_priv);
418 * @buf_queue: passes buffer vb to the driver; driver may start
439 int (*buf_out_validate)(struct vb2_buffer *vb);
440 int (*buf_init)(struct vb2_buffer *vb);
441 int (*buf_prepare)(struct vb2_buffer *vb);
442 void (*buf_finish)(struct vb2_buffer *vb);
443 void (*buf_cleanup)(struct vb2_buffer *vb);
450 void (*buf_queue)(struct vb2_buffer *vb);
452 void (*buf_request_complete)(struct vb2_buffer *vb);
473 int (*verify_planes_array)(struct vb2_buffer *vb, const void *pb);
474 void (*init_buffer)(struct vb2_buffer *vb);
475 void (*fill_user_buffer)(struct vb2_buffer *vb, void *pb);
476 int (*fill_vb2_buffer)(struct vb2_buffer *vb, struct vb2_plane *planes);
477 void (*copy_timestamp)(struct vb2_buffer *vb, const void *pb);
702 * @vb: pointer to &struct vb2_buffer to which the plane in
709 void *vb2_plane_vaddr(struct vb2_buffer *vb, unsigned int plane_no);
713 * @vb: pointer to &struct vb2_buffer to which the plane in
723 void *vb2_plane_cookie(struct vb2_buffer *vb, unsigned int plane_no);
728 * @vb: pointer to &struct vb2_buffer to be used.
745 void vb2_buffer_done(struct vb2_buffer *vb, enum vb2_buffer_state state);
776 * @vb: pointer to struct &vb2_buffer.
788 void vb2_core_querybuf(struct vb2_queue *q, struct vb2_buffer *vb, void *pb);
855 * @vb: pointer to struct &vb2_buffer.
871 int vb2_core_prepare_buf(struct vb2_queue *q, struct vb2_buffer *vb, void *pb);
887 * @vb: pointer to struct &vb2_buffer.
909 int vb2_core_qbuf(struct vb2_queue *q, struct vb2_buffer *vb, void *pb,
973 * @vb: pointer to struct &vb2_buffer.
987 struct vb2_buffer *vb, unsigned int plane, unsigned int flags);
1122 * @vb: pointer to struct &vb2_buffer.
1127 typedef int (*vb2_thread_fnc)(struct vb2_buffer *vb, void *priv);
1215 * @vb: pointer to &struct vb2_buffer to which the plane in
1220 static inline void vb2_set_plane_payload(struct vb2_buffer *vb,
1227 if (plane_no < vb->num_planes) {
1228 if (WARN_ON_ONCE(size > vb->planes[plane_no].length))
1229 size = vb->planes[plane_no].length;
1230 vb->planes[plane_no].bytesused = size;
1236 * @vb: pointer to &struct vb2_buffer to which the plane in
1240 static inline unsigned long vb2_get_plane_payload(struct vb2_buffer *vb,
1243 if (plane_no < vb->num_planes)
1244 return vb->planes[plane_no].bytesused;
1250 * @vb: pointer to &struct vb2_buffer to which the plane in
1255 vb2_plane_size(struct vb2_buffer *vb, unsigned int plane_no)
1257 if (plane_no < vb->num_planes)
1258 return vb->planes[plane_no].length;
1313 * @vb: buffer for which plane size should be returned.
1316 bool vb2_buffer_in_use(struct vb2_queue *q, struct vb2_buffer *vb);