Lines Matching refs:dst_buf
190 struct s5p_mfc_buf *dst_buf; in s5p_mfc_handle_frame_all_extracted() local
196 dst_buf = list_entry(ctx->dst_queue.next, in s5p_mfc_handle_frame_all_extracted()
199 dst_buf->b->v4l2_buf.index); in s5p_mfc_handle_frame_all_extracted()
200 vb2_set_plane_payload(dst_buf->b, 0, 0); in s5p_mfc_handle_frame_all_extracted()
201 vb2_set_plane_payload(dst_buf->b, 1, 0); in s5p_mfc_handle_frame_all_extracted()
202 list_del(&dst_buf->list); in s5p_mfc_handle_frame_all_extracted()
204 dst_buf->b->v4l2_buf.sequence = (ctx->sequence++); in s5p_mfc_handle_frame_all_extracted()
208 dst_buf->b->v4l2_buf.field = V4L2_FIELD_NONE; in s5p_mfc_handle_frame_all_extracted()
210 dst_buf->b->v4l2_buf.field = V4L2_FIELD_INTERLACED; in s5p_mfc_handle_frame_all_extracted()
212 ctx->dec_dst_flag &= ~(1 << dst_buf->b->v4l2_buf.index); in s5p_mfc_handle_frame_all_extracted()
213 vb2_buffer_done(dst_buf->b, VB2_BUF_STATE_DONE); in s5p_mfc_handle_frame_all_extracted()
220 struct s5p_mfc_buf *dst_buf, *src_buf; in s5p_mfc_handle_frame_copy_time() local
230 list_for_each_entry(dst_buf, &ctx->dst_queue, list) { in s5p_mfc_handle_frame_copy_time()
231 if (vb2_dma_contig_plane_dma_addr(dst_buf->b, 0) == dec_y_addr) { in s5p_mfc_handle_frame_copy_time()
232 dst_buf->b->v4l2_buf.timecode = in s5p_mfc_handle_frame_copy_time()
234 dst_buf->b->v4l2_buf.timestamp = in s5p_mfc_handle_frame_copy_time()
236 dst_buf->b->v4l2_buf.flags &= in s5p_mfc_handle_frame_copy_time()
238 dst_buf->b->v4l2_buf.flags |= in s5p_mfc_handle_frame_copy_time()
243 dst_buf->b->v4l2_buf.flags |= in s5p_mfc_handle_frame_copy_time()
247 dst_buf->b->v4l2_buf.flags |= in s5p_mfc_handle_frame_copy_time()
251 dst_buf->b->v4l2_buf.flags |= in s5p_mfc_handle_frame_copy_time()
263 struct s5p_mfc_buf *dst_buf; in s5p_mfc_handle_frame_new() local
285 list_for_each_entry(dst_buf, &ctx->dst_queue, list) { in s5p_mfc_handle_frame_new()
287 if (vb2_dma_contig_plane_dma_addr(dst_buf->b, 0) == dspl_y_addr) { in s5p_mfc_handle_frame_new()
288 list_del(&dst_buf->list); in s5p_mfc_handle_frame_new()
290 dst_buf->b->v4l2_buf.sequence = ctx->sequence; in s5p_mfc_handle_frame_new()
295 dst_buf->b->v4l2_buf.field = V4L2_FIELD_NONE; in s5p_mfc_handle_frame_new()
297 dst_buf->b->v4l2_buf.field = in s5p_mfc_handle_frame_new()
299 vb2_set_plane_payload(dst_buf->b, 0, ctx->luma_size); in s5p_mfc_handle_frame_new()
300 vb2_set_plane_payload(dst_buf->b, 1, ctx->chroma_size); in s5p_mfc_handle_frame_new()
301 clear_bit(dst_buf->b->v4l2_buf.index, in s5p_mfc_handle_frame_new()
304 vb2_buffer_done(dst_buf->b, in s5p_mfc_handle_frame_new()