Lines Matching refs:dst_buf

193 	struct s5p_mfc_buf *dst_buf;  in s5p_mfc_handle_frame_all_extracted()  local
199 dst_buf = list_entry(ctx->dst_queue.next, in s5p_mfc_handle_frame_all_extracted()
202 dst_buf->b->v4l2_buf.index); in s5p_mfc_handle_frame_all_extracted()
203 vb2_set_plane_payload(dst_buf->b, 0, 0); in s5p_mfc_handle_frame_all_extracted()
204 vb2_set_plane_payload(dst_buf->b, 1, 0); in s5p_mfc_handle_frame_all_extracted()
205 list_del(&dst_buf->list); in s5p_mfc_handle_frame_all_extracted()
207 dst_buf->b->v4l2_buf.sequence = (ctx->sequence++); in s5p_mfc_handle_frame_all_extracted()
211 dst_buf->b->v4l2_buf.field = V4L2_FIELD_NONE; in s5p_mfc_handle_frame_all_extracted()
213 dst_buf->b->v4l2_buf.field = V4L2_FIELD_INTERLACED; in s5p_mfc_handle_frame_all_extracted()
215 ctx->dec_dst_flag &= ~(1 << dst_buf->b->v4l2_buf.index); in s5p_mfc_handle_frame_all_extracted()
216 vb2_buffer_done(dst_buf->b, VB2_BUF_STATE_DONE); in s5p_mfc_handle_frame_all_extracted()
223 struct s5p_mfc_buf *dst_buf, *src_buf; in s5p_mfc_handle_frame_copy_time() local
236 list_for_each_entry(dst_buf, &ctx->dst_queue, list) { in s5p_mfc_handle_frame_copy_time()
237 if (vb2_dma_contig_plane_dma_addr(dst_buf->b, 0) == dec_y_addr) { in s5p_mfc_handle_frame_copy_time()
238 dst_buf->b->v4l2_buf.timecode = in s5p_mfc_handle_frame_copy_time()
240 dst_buf->b->v4l2_buf.timestamp = in s5p_mfc_handle_frame_copy_time()
242 dst_buf->b->v4l2_buf.flags &= in s5p_mfc_handle_frame_copy_time()
244 dst_buf->b->v4l2_buf.flags |= in s5p_mfc_handle_frame_copy_time()
249 dst_buf->b->v4l2_buf.flags |= in s5p_mfc_handle_frame_copy_time()
253 dst_buf->b->v4l2_buf.flags |= in s5p_mfc_handle_frame_copy_time()
257 dst_buf->b->v4l2_buf.flags |= in s5p_mfc_handle_frame_copy_time()
274 struct s5p_mfc_buf *dst_buf; in s5p_mfc_handle_frame_new() local
296 list_for_each_entry(dst_buf, &ctx->dst_queue, list) { in s5p_mfc_handle_frame_new()
298 if (vb2_dma_contig_plane_dma_addr(dst_buf->b, 0) == dspl_y_addr) { in s5p_mfc_handle_frame_new()
299 list_del(&dst_buf->list); in s5p_mfc_handle_frame_new()
301 dst_buf->b->v4l2_buf.sequence = ctx->sequence; in s5p_mfc_handle_frame_new()
306 dst_buf->b->v4l2_buf.field = V4L2_FIELD_NONE; in s5p_mfc_handle_frame_new()
308 dst_buf->b->v4l2_buf.field = in s5p_mfc_handle_frame_new()
310 vb2_set_plane_payload(dst_buf->b, 0, ctx->luma_size); in s5p_mfc_handle_frame_new()
311 vb2_set_plane_payload(dst_buf->b, 1, ctx->chroma_size); in s5p_mfc_handle_frame_new()
312 clear_bit(dst_buf->b->v4l2_buf.index, in s5p_mfc_handle_frame_new()
315 vb2_buffer_done(dst_buf->b, in s5p_mfc_handle_frame_new()