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()
313 vbuf->flags = b->flags & ~V4L2_BUFFER_MASK_FLAGS; in vb2_fill_vb2_v4l2_buffer()
320 vbuf->flags &= ~V4L2_BUF_FLAG_TSTAMP_SRC_MASK; in vb2_fill_vb2_v4l2_buffer()
330 vbuf->flags &= ~V4L2_BUF_FLAG_TIMECODE; in vb2_fill_vb2_v4l2_buffer()
331 vbuf->field = b->field; in vb2_fill_vb2_v4l2_buffer()
333 vbuf->flags &= ~V4L2_BUF_FLAG_M2M_HOLD_CAPTURE_BUF; in vb2_fill_vb2_v4l2_buffer()
336 vbuf->flags &= ~V4L2_BUFFER_OUT_FLAGS; in vb2_fill_vb2_v4l2_buffer()
338 vbuf->flags &= ~V4L2_BUF_FLAG_LAST; in vb2_fill_vb2_v4l2_buffer()
372 struct vb2_v4l2_buffer *vbuf; in vb2_queue_or_prepare_buf() local
398 vbuf = to_vb2_v4l2_buffer(vb); in vb2_queue_or_prepare_buf()
412 memset(vbuf->planes, 0, in vb2_queue_or_prepare_buf()
413 sizeof(vbuf->planes[0]) * vb->num_planes); in vb2_queue_or_prepare_buf()
483 vbuf->request_fd = b->request_fd; in vb2_queue_or_prepare_buf()
495 struct vb2_v4l2_buffer *vbuf = to_vb2_v4l2_buffer(vb); in __fill_v4l2_buffer() local
505 b->flags = vbuf->flags; in __fill_v4l2_buffer()
506 b->field = vbuf->field; in __fill_v4l2_buffer()
508 b->timecode = vbuf->timecode; in __fill_v4l2_buffer()
509 b->sequence = vbuf->sequence; in __fill_v4l2_buffer()
590 if (vbuf->request_fd >= 0) { in __fill_v4l2_buffer()
592 b->request_fd = vbuf->request_fd; in __fill_v4l2_buffer()
603 struct vb2_v4l2_buffer *vbuf = to_vb2_v4l2_buffer(vb); in __fill_vb2_buffer() local
611 planes[plane].m = vbuf->planes[plane].m; in __fill_vb2_buffer()
612 planes[plane].length = vbuf->planes[plane].length; in __fill_vb2_buffer()
614 planes[plane].bytesused = vbuf->planes[plane].bytesused; in __fill_vb2_buffer()
615 planes[plane].data_offset = vbuf->planes[plane].data_offset; in __fill_vb2_buffer()