Lines Matching refs:dst_buf
227 struct s5p_mfc_buf *dst_buf; in s5p_mfc_handle_frame_all_extracted() local
233 dst_buf = list_entry(ctx->dst_queue.next, in s5p_mfc_handle_frame_all_extracted()
236 dst_buf->b->vb2_buf.index); in s5p_mfc_handle_frame_all_extracted()
237 vb2_set_plane_payload(&dst_buf->b->vb2_buf, 0, 0); in s5p_mfc_handle_frame_all_extracted()
238 vb2_set_plane_payload(&dst_buf->b->vb2_buf, 1, 0); in s5p_mfc_handle_frame_all_extracted()
239 list_del(&dst_buf->list); in s5p_mfc_handle_frame_all_extracted()
240 dst_buf->flags |= MFC_BUF_FLAG_EOS; in s5p_mfc_handle_frame_all_extracted()
242 dst_buf->b->sequence = (ctx->sequence++); in s5p_mfc_handle_frame_all_extracted()
246 dst_buf->b->field = V4L2_FIELD_NONE; in s5p_mfc_handle_frame_all_extracted()
248 dst_buf->b->field = V4L2_FIELD_INTERLACED; in s5p_mfc_handle_frame_all_extracted()
249 dst_buf->b->flags |= V4L2_BUF_FLAG_LAST; in s5p_mfc_handle_frame_all_extracted()
251 ctx->dec_dst_flag &= ~(1 << dst_buf->b->vb2_buf.index); in s5p_mfc_handle_frame_all_extracted()
252 vb2_buffer_done(&dst_buf->b->vb2_buf, VB2_BUF_STATE_DONE); in s5p_mfc_handle_frame_all_extracted()
259 struct s5p_mfc_buf *dst_buf, *src_buf; in s5p_mfc_handle_frame_copy_time() local
274 list_for_each_entry(dst_buf, &ctx->dst_queue, list) { in s5p_mfc_handle_frame_copy_time()
275 u32 addr = (u32)vb2_dma_contig_plane_dma_addr(&dst_buf->b->vb2_buf, 0); in s5p_mfc_handle_frame_copy_time()
278 dst_buf->b->timecode = src_buf->b->timecode; in s5p_mfc_handle_frame_copy_time()
279 dst_buf->b->vb2_buf.timestamp = in s5p_mfc_handle_frame_copy_time()
281 dst_buf->b->flags &= in s5p_mfc_handle_frame_copy_time()
283 dst_buf->b->flags |= in s5p_mfc_handle_frame_copy_time()
288 dst_buf->b->flags |= in s5p_mfc_handle_frame_copy_time()
292 dst_buf->b->flags |= in s5p_mfc_handle_frame_copy_time()
296 dst_buf->b->flags |= in s5p_mfc_handle_frame_copy_time()
315 struct s5p_mfc_buf *dst_buf; in s5p_mfc_handle_frame_new() local
339 list_for_each_entry(dst_buf, &ctx->dst_queue, list) { in s5p_mfc_handle_frame_new()
340 u32 addr = (u32)vb2_dma_contig_plane_dma_addr(&dst_buf->b->vb2_buf, 0); in s5p_mfc_handle_frame_new()
344 list_del(&dst_buf->list); in s5p_mfc_handle_frame_new()
346 dst_buf->b->sequence = ctx->sequence; in s5p_mfc_handle_frame_new()
351 dst_buf->b->field = V4L2_FIELD_NONE; in s5p_mfc_handle_frame_new()
353 dst_buf->b->field = in s5p_mfc_handle_frame_new()
355 vb2_set_plane_payload(&dst_buf->b->vb2_buf, 0, in s5p_mfc_handle_frame_new()
357 vb2_set_plane_payload(&dst_buf->b->vb2_buf, 1, in s5p_mfc_handle_frame_new()
359 clear_bit(dst_buf->b->vb2_buf.index, in s5p_mfc_handle_frame_new()
362 vb2_buffer_done(&dst_buf->b->vb2_buf, err ? in s5p_mfc_handle_frame_new()