Lines Matching refs:dst_buf
404 struct vb2_v4l2_buffer *src_buf, *dst_buf; in device_run() local
410 dst_buf = v4l2_m2m_dst_buf_remove(ctx->fh.m2m_ctx); in device_run()
417 if (device_process(ctx, src_buf, dst_buf)) in device_run()
420 dst_buf->sequence = q_dst->sequence++; in device_run()
421 dst_buf->flags &= ~V4L2_BUF_FLAG_LAST; in device_run()
422 v4l2_m2m_buf_copy_metadata(src_buf, dst_buf, false); in device_run()
427 dst_buf->flags |= V4L2_BUF_FLAG_LAST; in device_run()
442 v4l2_m2m_buf_done(dst_buf, state); in device_run()
546 static void set_last_buffer(struct vb2_v4l2_buffer *dst_buf, in set_last_buffer() argument
553 vb2_set_plane_payload(&dst_buf->vb2_buf, 0, 0); in set_last_buffer()
554 dst_buf->sequence = q_dst->sequence++; in set_last_buffer()
556 v4l2_m2m_buf_copy_metadata(src_buf, dst_buf, !ctx->is_enc); in set_last_buffer()
557 dst_buf->flags |= V4L2_BUF_FLAG_LAST; in set_last_buffer()
558 v4l2_m2m_buf_done(dst_buf, VB2_BUF_STATE_DONE); in set_last_buffer()
669 struct vb2_v4l2_buffer *dst_buf = in job_ready() local
674 set_last_buffer(dst_buf, src_buf, ctx); in job_ready()