Lines Matching refs:dstbuf

111 	struct mtk_video_dec_buf *dstbuf;  in get_display_buffer()  local
127 dstbuf = container_of(disp_frame_buffer, struct mtk_video_dec_buf, in get_display_buffer()
130 if (dstbuf->used) { in get_display_buffer()
131 vb2_set_plane_payload(&dstbuf->vb.vb2_buf, 0, in get_display_buffer()
133 vb2_set_plane_payload(&dstbuf->vb.vb2_buf, 1, in get_display_buffer()
136 dstbuf->ready_to_display = true; in get_display_buffer()
141 dstbuf->vb.vb2_buf.index, in get_display_buffer()
142 dstbuf->queued_in_vb2); in get_display_buffer()
144 v4l2_m2m_buf_done(&dstbuf->vb, VB2_BUF_STATE_DONE); in get_display_buffer()
148 return &dstbuf->vb.vb2_buf; in get_display_buffer()
161 struct mtk_video_dec_buf *dstbuf; in get_free_buffer() local
178 dstbuf = container_of(free_frame_buffer, struct mtk_video_dec_buf, in get_free_buffer()
182 if (dstbuf->used) { in get_free_buffer()
183 if ((dstbuf->queued_in_vb2) && in get_free_buffer()
184 (dstbuf->queued_in_v4l2) && in get_free_buffer()
196 dstbuf->vb.vb2_buf.index, in get_free_buffer()
197 dstbuf->queued_in_vb2); in get_free_buffer()
198 v4l2_m2m_buf_queue(ctx->m2m_ctx, &dstbuf->vb); in get_free_buffer()
199 } else if ((dstbuf->queued_in_vb2 == false) && in get_free_buffer()
200 (dstbuf->queued_in_v4l2 == true)) { in get_free_buffer()
214 dstbuf->vb.vb2_buf.index); in get_free_buffer()
215 v4l2_m2m_buf_queue(ctx->m2m_ctx, &dstbuf->vb); in get_free_buffer()
216 dstbuf->queued_in_vb2 = true; in get_free_buffer()
228 dstbuf->vb.vb2_buf.index, in get_free_buffer()
229 dstbuf->queued_in_vb2, in get_free_buffer()
230 dstbuf->queued_in_v4l2); in get_free_buffer()
232 dstbuf->used = false; in get_free_buffer()
235 return &dstbuf->vb.vb2_buf; in get_free_buffer()