Lines Matching refs:dst_buf
186 struct s5p_mfc_buf *dst_buf; in s5p_mfc_handle_frame_all_extracted() local
192 dst_buf = list_entry(ctx->dst_queue.next, in s5p_mfc_handle_frame_all_extracted()
195 dst_buf->b->vb2_buf.index); in s5p_mfc_handle_frame_all_extracted()
196 vb2_set_plane_payload(&dst_buf->b->vb2_buf, 0, 0); in s5p_mfc_handle_frame_all_extracted()
197 vb2_set_plane_payload(&dst_buf->b->vb2_buf, 1, 0); in s5p_mfc_handle_frame_all_extracted()
198 list_del(&dst_buf->list); in s5p_mfc_handle_frame_all_extracted()
199 dst_buf->flags |= MFC_BUF_FLAG_EOS; in s5p_mfc_handle_frame_all_extracted()
201 dst_buf->b->sequence = (ctx->sequence++); in s5p_mfc_handle_frame_all_extracted()
205 dst_buf->b->field = V4L2_FIELD_NONE; in s5p_mfc_handle_frame_all_extracted()
207 dst_buf->b->field = V4L2_FIELD_INTERLACED; in s5p_mfc_handle_frame_all_extracted()
208 dst_buf->b->flags |= V4L2_BUF_FLAG_LAST; in s5p_mfc_handle_frame_all_extracted()
210 ctx->dec_dst_flag &= ~(1 << dst_buf->b->vb2_buf.index); in s5p_mfc_handle_frame_all_extracted()
211 vb2_buffer_done(&dst_buf->b->vb2_buf, VB2_BUF_STATE_DONE); in s5p_mfc_handle_frame_all_extracted()
218 struct s5p_mfc_buf *dst_buf, *src_buf; in s5p_mfc_handle_frame_copy_time() local
231 list_for_each_entry(dst_buf, &ctx->dst_queue, list) { in s5p_mfc_handle_frame_copy_time()
232 if (vb2_dma_contig_plane_dma_addr(&dst_buf->b->vb2_buf, 0) in s5p_mfc_handle_frame_copy_time()
234 dst_buf->b->timecode = in s5p_mfc_handle_frame_copy_time()
236 dst_buf->b->timestamp = in s5p_mfc_handle_frame_copy_time()
238 dst_buf->b->flags &= in s5p_mfc_handle_frame_copy_time()
240 dst_buf->b->flags |= in s5p_mfc_handle_frame_copy_time()
245 dst_buf->b->flags |= in s5p_mfc_handle_frame_copy_time()
249 dst_buf->b->flags |= in s5p_mfc_handle_frame_copy_time()
253 dst_buf->b->flags |= in s5p_mfc_handle_frame_copy_time()
270 struct s5p_mfc_buf *dst_buf; in s5p_mfc_handle_frame_new() local
292 list_for_each_entry(dst_buf, &ctx->dst_queue, list) { in s5p_mfc_handle_frame_new()
294 if (vb2_dma_contig_plane_dma_addr(&dst_buf->b->vb2_buf, 0) in s5p_mfc_handle_frame_new()
296 list_del(&dst_buf->list); in s5p_mfc_handle_frame_new()
298 dst_buf->b->sequence = ctx->sequence; in s5p_mfc_handle_frame_new()
303 dst_buf->b->field = V4L2_FIELD_NONE; in s5p_mfc_handle_frame_new()
305 dst_buf->b->field = in s5p_mfc_handle_frame_new()
307 vb2_set_plane_payload(&dst_buf->b->vb2_buf, 0, in s5p_mfc_handle_frame_new()
309 vb2_set_plane_payload(&dst_buf->b->vb2_buf, 1, in s5p_mfc_handle_frame_new()
311 clear_bit(dst_buf->b->vb2_buf.index, in s5p_mfc_handle_frame_new()
314 vb2_buffer_done(&dst_buf->b->vb2_buf, err ? in s5p_mfc_handle_frame_new()