Lines Matching refs:dst_buf

225 	struct s5p_mfc_buf *dst_buf;  in s5p_mfc_handle_frame_all_extracted()  local
231 dst_buf = list_entry(ctx->dst_queue.next, in s5p_mfc_handle_frame_all_extracted()
234 dst_buf->b->vb2_buf.index); in s5p_mfc_handle_frame_all_extracted()
235 vb2_set_plane_payload(&dst_buf->b->vb2_buf, 0, 0); in s5p_mfc_handle_frame_all_extracted()
236 vb2_set_plane_payload(&dst_buf->b->vb2_buf, 1, 0); in s5p_mfc_handle_frame_all_extracted()
237 list_del(&dst_buf->list); in s5p_mfc_handle_frame_all_extracted()
238 dst_buf->flags |= MFC_BUF_FLAG_EOS; in s5p_mfc_handle_frame_all_extracted()
240 dst_buf->b->sequence = (ctx->sequence++); in s5p_mfc_handle_frame_all_extracted()
244 dst_buf->b->field = V4L2_FIELD_NONE; in s5p_mfc_handle_frame_all_extracted()
246 dst_buf->b->field = V4L2_FIELD_INTERLACED; in s5p_mfc_handle_frame_all_extracted()
247 dst_buf->b->flags |= V4L2_BUF_FLAG_LAST; in s5p_mfc_handle_frame_all_extracted()
249 ctx->dec_dst_flag &= ~(1 << dst_buf->b->vb2_buf.index); in s5p_mfc_handle_frame_all_extracted()
250 vb2_buffer_done(&dst_buf->b->vb2_buf, VB2_BUF_STATE_DONE); in s5p_mfc_handle_frame_all_extracted()
257 struct s5p_mfc_buf *dst_buf, *src_buf; in s5p_mfc_handle_frame_copy_time() local
270 list_for_each_entry(dst_buf, &ctx->dst_queue, list) { in s5p_mfc_handle_frame_copy_time()
271 u32 addr = (u32)vb2_dma_contig_plane_dma_addr(&dst_buf->b->vb2_buf, 0); in s5p_mfc_handle_frame_copy_time()
274 dst_buf->b->timecode = src_buf->b->timecode; in s5p_mfc_handle_frame_copy_time()
275 dst_buf->b->vb2_buf.timestamp = in s5p_mfc_handle_frame_copy_time()
277 dst_buf->b->flags &= in s5p_mfc_handle_frame_copy_time()
279 dst_buf->b->flags |= in s5p_mfc_handle_frame_copy_time()
284 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()
309 struct s5p_mfc_buf *dst_buf; in s5p_mfc_handle_frame_new() local
331 list_for_each_entry(dst_buf, &ctx->dst_queue, list) { in s5p_mfc_handle_frame_new()
332 u32 addr = (u32)vb2_dma_contig_plane_dma_addr(&dst_buf->b->vb2_buf, 0); in s5p_mfc_handle_frame_new()
336 list_del(&dst_buf->list); in s5p_mfc_handle_frame_new()
338 dst_buf->b->sequence = ctx->sequence; in s5p_mfc_handle_frame_new()
343 dst_buf->b->field = V4L2_FIELD_NONE; in s5p_mfc_handle_frame_new()
345 dst_buf->b->field = in s5p_mfc_handle_frame_new()
347 vb2_set_plane_payload(&dst_buf->b->vb2_buf, 0, in s5p_mfc_handle_frame_new()
349 vb2_set_plane_payload(&dst_buf->b->vb2_buf, 1, in s5p_mfc_handle_frame_new()
351 clear_bit(dst_buf->b->vb2_buf.index, in s5p_mfc_handle_frame_new()
354 vb2_buffer_done(&dst_buf->b->vb2_buf, err ? in s5p_mfc_handle_frame_new()