Lines Matching refs:m2m_ctx

565 	if (v4l2_m2m_is_last_draining_src_buf(ctx->fh.m2m_ctx, src_buf)) {  in mxc_jpeg_check_and_set_last_buffer()
567 v4l2_m2m_mark_stopped(ctx->fh.m2m_ctx); in mxc_jpeg_check_and_set_last_buffer()
608 dst_buf = v4l2_m2m_next_dst_buf(ctx->fh.m2m_ctx); in mxc_jpeg_dec_irq()
609 src_buf = v4l2_m2m_next_src_buf(ctx->fh.m2m_ctx); in mxc_jpeg_dec_irq()
672 v4l2_m2m_src_buf_remove(ctx->fh.m2m_ctx); in mxc_jpeg_dec_irq()
673 v4l2_m2m_dst_buf_remove(ctx->fh.m2m_ctx); in mxc_jpeg_dec_irq()
677 v4l2_m2m_job_finish(jpeg->m2m_dev, ctx->fh.m2m_ctx); in mxc_jpeg_dec_irq()
1019 src_buf = v4l2_m2m_next_src_buf(ctx->fh.m2m_ctx); in mxc_jpeg_device_run()
1020 dst_buf = v4l2_m2m_next_dst_buf(ctx->fh.m2m_ctx); in mxc_jpeg_device_run()
1046 v4l2_m2m_src_buf_remove(ctx->fh.m2m_ctx); in mxc_jpeg_device_run()
1047 v4l2_m2m_dst_buf_remove(ctx->fh.m2m_ctx); in mxc_jpeg_device_run()
1051 v4l2_m2m_job_finish(jpeg->m2m_dev, ctx->fh.m2m_ctx); in mxc_jpeg_device_run()
1058 v4l2_m2m_job_finish(jpeg->m2m_dev, ctx->fh.m2m_ctx); in mxc_jpeg_device_run()
1107 if (!vb2_is_streaming(v4l2_m2m_get_src_vq(fh->m2m_ctx))) in mxc_jpeg_decoder_cmd()
1115 v4l2_m2m_has_stopped(fh->m2m_ctx)) { in mxc_jpeg_decoder_cmd()
1121 v4l2_m2m_has_stopped(fh->m2m_ctx)) in mxc_jpeg_decoder_cmd()
1122 vb2_clear_last_buffer_dequeued(&fh->m2m_ctx->cap_q_ctx.q); in mxc_jpeg_decoder_cmd()
1137 if (!vb2_is_streaming(v4l2_m2m_get_src_vq(fh->m2m_ctx)) || in mxc_jpeg_encoder_cmd()
1138 !vb2_is_streaming(v4l2_m2m_get_dst_vq(fh->m2m_ctx))) in mxc_jpeg_encoder_cmd()
1146 v4l2_m2m_has_stopped(fh->m2m_ctx)) in mxc_jpeg_encoder_cmd()
1150 v4l2_m2m_has_stopped(fh->m2m_ctx)) in mxc_jpeg_encoder_cmd()
1151 vb2_clear_last_buffer_dequeued(&fh->m2m_ctx->cap_q_ctx.q); in mxc_jpeg_encoder_cmd()
1207 v4l2_m2m_update_start_streaming_state(ctx->fh.m2m_ctx, q); in mxc_jpeg_start_streaming()
1233 vbuf = v4l2_m2m_src_buf_remove(ctx->fh.m2m_ctx); in mxc_jpeg_stop_streaming()
1235 vbuf = v4l2_m2m_dst_buf_remove(ctx->fh.m2m_ctx); in mxc_jpeg_stop_streaming()
1241 v4l2_m2m_update_stop_streaming_state(ctx->fh.m2m_ctx, q); in mxc_jpeg_stop_streaming()
1243 v4l2_m2m_has_stopped(ctx->fh.m2m_ctx)) { in mxc_jpeg_stop_streaming()
1434 if (!v4l2_m2m_num_src_bufs_ready(ctx->fh.m2m_ctx)) in mxc_jpeg_parse()
1449 v4l2_m2m_dst_buf_is_last(ctx->fh.m2m_ctx)) { in mxc_jpeg_buf_queue()
1455 v4l2_m2m_last_buffer_done(ctx->fh.m2m_ctx, vbuf); in mxc_jpeg_buf_queue()
1475 v4l2_m2m_buf_queue(ctx->fh.m2m_ctx, vbuf); in mxc_jpeg_buf_queue()
1659 ctx->fh.m2m_ctx = v4l2_m2m_ctx_init(mxc_jpeg->m2m_dev, ctx, in mxc_jpeg_open()
1662 if (IS_ERR(ctx->fh.m2m_ctx)) { in mxc_jpeg_open()
1663 ret = PTR_ERR(ctx->fh.m2m_ctx); in mxc_jpeg_open()
1685 v4l2_m2m_ctx_release(ctx->fh.m2m_ctx); in mxc_jpeg_open()
1883 vq = v4l2_m2m_get_vq(ctx->fh.m2m_ctx, f->type); in mxc_jpeg_s_fmt()
1955 dst_vq = v4l2_m2m_get_vq(ctx->fh.m2m_ctx, cap_type); in mxc_jpeg_s_fmt_vid_out()
2072 v4l2_m2m_ctx_release(ctx->fh.m2m_ctx); in mxc_jpeg_release()