Lines Matching refs:vbuf
136 struct vb2_v4l2_buffer *vbuf = to_vb2_v4l2_buffer(vb); in __init_vb2_v4l2_buffer() local
138 vbuf->request_fd = -1; in __init_vb2_v4l2_buffer()
144 struct vb2_v4l2_buffer *vbuf = to_vb2_v4l2_buffer(vb); in __copy_timestamp() local
154 vbuf->flags |= b->flags & V4L2_BUF_FLAG_TIMECODE; in __copy_timestamp()
156 vbuf->timecode = b->timecode; in __copy_timestamp()
179 struct vb2_v4l2_buffer *vbuf = to_vb2_v4l2_buffer(vb); in vb2_fill_vb2_v4l2_buffer() local
180 struct vb2_plane *planes = vbuf->planes; in vb2_fill_vb2_v4l2_buffer()
202 vbuf->sequence = 0; in vb2_fill_vb2_v4l2_buffer()
203 vbuf->request_fd = -1; in vb2_fill_vb2_v4l2_buffer()
204 vbuf->is_held = false; in vb2_fill_vb2_v4l2_buffer()
319 vbuf->flags = b->flags & ~V4L2_BUFFER_MASK_FLAGS; in vb2_fill_vb2_v4l2_buffer()
326 vbuf->flags &= ~V4L2_BUF_FLAG_TSTAMP_SRC_MASK; in vb2_fill_vb2_v4l2_buffer()
336 vbuf->flags &= ~V4L2_BUF_FLAG_TIMECODE; in vb2_fill_vb2_v4l2_buffer()
337 vbuf->field = b->field; in vb2_fill_vb2_v4l2_buffer()
339 vbuf->flags &= ~V4L2_BUF_FLAG_M2M_HOLD_CAPTURE_BUF; in vb2_fill_vb2_v4l2_buffer()
342 vbuf->flags &= ~V4L2_BUFFER_OUT_FLAGS; in vb2_fill_vb2_v4l2_buffer()
344 vbuf->flags &= ~V4L2_BUF_FLAG_LAST; in vb2_fill_vb2_v4l2_buffer()
403 struct vb2_v4l2_buffer *vbuf; in vb2_queue_or_prepare_buf() local
429 vbuf = to_vb2_v4l2_buffer(vb); in vb2_queue_or_prepare_buf()
443 memset(vbuf->planes, 0, in vb2_queue_or_prepare_buf()
444 sizeof(vbuf->planes[0]) * vb->num_planes); in vb2_queue_or_prepare_buf()
519 vbuf->request_fd = b->request_fd; in vb2_queue_or_prepare_buf()
531 struct vb2_v4l2_buffer *vbuf = to_vb2_v4l2_buffer(vb); in __fill_v4l2_buffer() local
541 b->flags = vbuf->flags; in __fill_v4l2_buffer()
542 b->field = vbuf->field; in __fill_v4l2_buffer()
544 b->timecode = vbuf->timecode; in __fill_v4l2_buffer()
545 b->sequence = vbuf->sequence; in __fill_v4l2_buffer()
626 if (vbuf->request_fd >= 0) { in __fill_v4l2_buffer()
628 b->request_fd = vbuf->request_fd; in __fill_v4l2_buffer()
639 struct vb2_v4l2_buffer *vbuf = to_vb2_v4l2_buffer(vb); in __fill_vb2_buffer() local
647 planes[plane].m = vbuf->planes[plane].m; in __fill_vb2_buffer()
648 planes[plane].length = vbuf->planes[plane].length; in __fill_vb2_buffer()
650 planes[plane].bytesused = vbuf->planes[plane].bytesused; in __fill_vb2_buffer()
651 planes[plane].data_offset = vbuf->planes[plane].data_offset; in __fill_vb2_buffer()