Lines Matching refs:dst_buf
221 struct s5p_mfc_buf *dst_buf; in s5p_mfc_handle_frame_all_extracted() local
227 dst_buf = list_entry(ctx->dst_queue.next, in s5p_mfc_handle_frame_all_extracted()
230 dst_buf->b->vb2_buf.index); in s5p_mfc_handle_frame_all_extracted()
231 vb2_set_plane_payload(&dst_buf->b->vb2_buf, 0, 0); in s5p_mfc_handle_frame_all_extracted()
232 vb2_set_plane_payload(&dst_buf->b->vb2_buf, 1, 0); in s5p_mfc_handle_frame_all_extracted()
233 list_del(&dst_buf->list); in s5p_mfc_handle_frame_all_extracted()
234 dst_buf->flags |= MFC_BUF_FLAG_EOS; in s5p_mfc_handle_frame_all_extracted()
236 dst_buf->b->sequence = (ctx->sequence++); in s5p_mfc_handle_frame_all_extracted()
240 dst_buf->b->field = V4L2_FIELD_NONE; in s5p_mfc_handle_frame_all_extracted()
242 dst_buf->b->field = V4L2_FIELD_INTERLACED; in s5p_mfc_handle_frame_all_extracted()
243 dst_buf->b->flags |= V4L2_BUF_FLAG_LAST; in s5p_mfc_handle_frame_all_extracted()
245 ctx->dec_dst_flag &= ~(1 << dst_buf->b->vb2_buf.index); in s5p_mfc_handle_frame_all_extracted()
246 vb2_buffer_done(&dst_buf->b->vb2_buf, VB2_BUF_STATE_DONE); in s5p_mfc_handle_frame_all_extracted()
253 struct s5p_mfc_buf *dst_buf, *src_buf; in s5p_mfc_handle_frame_copy_time() local
266 list_for_each_entry(dst_buf, &ctx->dst_queue, list) { in s5p_mfc_handle_frame_copy_time()
267 u32 addr = (u32)vb2_dma_contig_plane_dma_addr(&dst_buf->b->vb2_buf, 0); in s5p_mfc_handle_frame_copy_time()
270 dst_buf->b->timecode = src_buf->b->timecode; in s5p_mfc_handle_frame_copy_time()
271 dst_buf->b->vb2_buf.timestamp = in s5p_mfc_handle_frame_copy_time()
273 dst_buf->b->flags &= in s5p_mfc_handle_frame_copy_time()
275 dst_buf->b->flags |= in s5p_mfc_handle_frame_copy_time()
280 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()
305 struct s5p_mfc_buf *dst_buf; in s5p_mfc_handle_frame_new() local
327 list_for_each_entry(dst_buf, &ctx->dst_queue, list) { in s5p_mfc_handle_frame_new()
328 u32 addr = (u32)vb2_dma_contig_plane_dma_addr(&dst_buf->b->vb2_buf, 0); in s5p_mfc_handle_frame_new()
332 list_del(&dst_buf->list); in s5p_mfc_handle_frame_new()
334 dst_buf->b->sequence = ctx->sequence; in s5p_mfc_handle_frame_new()
339 dst_buf->b->field = V4L2_FIELD_NONE; in s5p_mfc_handle_frame_new()
341 dst_buf->b->field = in s5p_mfc_handle_frame_new()
343 vb2_set_plane_payload(&dst_buf->b->vb2_buf, 0, in s5p_mfc_handle_frame_new()
345 vb2_set_plane_payload(&dst_buf->b->vb2_buf, 1, in s5p_mfc_handle_frame_new()
347 clear_bit(dst_buf->b->vb2_buf.index, in s5p_mfc_handle_frame_new()
350 vb2_buffer_done(&dst_buf->b->vb2_buf, err ? in s5p_mfc_handle_frame_new()