Lines Matching refs:m2m_ctx

284 				v4l2_m2m_get_vq(ctx->fh.m2m_ctx,  in device_process()
409 src_buf = v4l2_m2m_next_src_buf(ctx->fh.m2m_ctx); in device_run()
410 dst_buf = v4l2_m2m_dst_buf_remove(ctx->fh.m2m_ctx); in device_run()
426 v4l2_m2m_is_last_draining_src_buf(ctx->fh.m2m_ctx, src_buf)) { in device_run()
429 v4l2_m2m_mark_stopped(ctx->fh.m2m_ctx); in device_run()
433 src_buf = v4l2_m2m_src_buf_remove(ctx->fh.m2m_ctx); in device_run()
437 src_buf = v4l2_m2m_src_buf_remove(ctx->fh.m2m_ctx); in device_run()
453 v4l2_m2m_job_finish(dev->stateful_enc.m2m_dev, ctx->fh.m2m_ctx); in device_run()
456 ctx->fh.m2m_ctx); in device_run()
458 v4l2_m2m_job_finish(dev->stateful_dec.m2m_dev, ctx->fh.m2m_ctx); in device_run()
468 src_buf = v4l2_m2m_src_buf_remove(ctx->fh.m2m_ctx); in job_remove_src_buf()
587 src_buf = v4l2_m2m_next_src_buf(ctx->fh.m2m_ctx); in job_ready()
599 if (v4l2_m2m_is_last_draining_src_buf(ctx->fh.m2m_ctx, in job_ready()
629 if (v4l2_m2m_is_last_draining_src_buf(ctx->fh.m2m_ctx, in job_ready()
670 v4l2_m2m_dst_buf_remove(ctx->fh.m2m_ctx); in job_ready()
720 !vb2_is_streaming(&ctx->fh.m2m_ctx->cap_q_ctx.q)) in enum_fmt()
767 vq = v4l2_m2m_get_vq(ctx->fh.m2m_ctx, f->type); in vidioc_g_fmt()
976 vq = v4l2_m2m_get_vq(ctx->fh.m2m_ctx, f->type); in vidioc_s_fmt()
1075 struct vb2_queue *vq = v4l2_m2m_get_vq(ctx->fh.m2m_ctx, f->type); in vidioc_s_fmt_vid_out()
1076 struct vb2_queue *vq_cap = v4l2_m2m_get_vq(ctx->fh.m2m_ctx, in vidioc_s_fmt_vid_out()
1218 if (!vb2_is_streaming(&ctx->fh.m2m_ctx->cap_q_ctx.q) || in vicodec_encoder_cmd()
1219 !vb2_is_streaming(&ctx->fh.m2m_ctx->out_q_ctx.q)) in vicodec_encoder_cmd()
1227 v4l2_m2m_has_stopped(ctx->fh.m2m_ctx)) in vicodec_encoder_cmd()
1231 v4l2_m2m_has_stopped(ctx->fh.m2m_ctx)) in vicodec_encoder_cmd()
1232 vb2_clear_last_buffer_dequeued(&ctx->fh.m2m_ctx->cap_q_ctx.q); in vicodec_encoder_cmd()
1247 if (!vb2_is_streaming(&ctx->fh.m2m_ctx->cap_q_ctx.q) || in vicodec_decoder_cmd()
1248 !vb2_is_streaming(&ctx->fh.m2m_ctx->out_q_ctx.q)) in vicodec_decoder_cmd()
1256 v4l2_m2m_has_stopped(ctx->fh.m2m_ctx)) in vicodec_decoder_cmd()
1260 v4l2_m2m_has_stopped(ctx->fh.m2m_ctx)) in vicodec_decoder_cmd()
1261 vb2_clear_last_buffer_dequeued(&ctx->fh.m2m_ctx->cap_q_ctx.q); in vicodec_decoder_cmd()
1426 struct vb2_queue *vq_out = v4l2_m2m_get_vq(ctx->fh.m2m_ctx, in vicodec_buf_queue()
1428 struct vb2_queue *vq_cap = v4l2_m2m_get_vq(ctx->fh.m2m_ctx, in vicodec_buf_queue()
1438 v4l2_m2m_dst_buf_is_last(ctx->fh.m2m_ctx)) { in vicodec_buf_queue()
1448 v4l2_m2m_last_buffer_done(ctx->fh.m2m_ctx, vbuf); in vicodec_buf_queue()
1455 v4l2_m2m_buf_queue(ctx->fh.m2m_ctx, vbuf); in vicodec_buf_queue()
1464 v4l2_m2m_buf_queue(ctx->fh.m2m_ctx, vbuf); in vicodec_buf_queue()
1474 v4l2_m2m_buf_queue(ctx->fh.m2m_ctx, vbuf); in vicodec_buf_queue()
1506 v4l2_m2m_buf_queue(ctx->fh.m2m_ctx, vbuf); in vicodec_buf_queue()
1516 vbuf = v4l2_m2m_src_buf_remove(ctx->fh.m2m_ctx); in vicodec_return_bufs()
1518 vbuf = v4l2_m2m_dst_buf_remove(ctx->fh.m2m_ctx); in vicodec_return_bufs()
1563 v4l2_m2m_update_start_streaming_state(ctx->fh.m2m_ctx, q); in vicodec_start_streaming()
1642 v4l2_m2m_update_stop_streaming_state(ctx->fh.m2m_ctx, q); in vicodec_stop_streaming()
1645 v4l2_m2m_has_stopped(ctx->fh.m2m_ctx)) in vicodec_stop_streaming()
1898 ctx->fh.m2m_ctx = v4l2_m2m_ctx_init(dev->stateful_enc.m2m_dev, in vicodec_open()
1902 ctx->fh.m2m_ctx = v4l2_m2m_ctx_init(dev->stateless_dec.m2m_dev, in vicodec_open()
1906 ctx->fh.m2m_ctx = v4l2_m2m_ctx_init(dev->stateful_dec.m2m_dev, in vicodec_open()
1911 if (IS_ERR(ctx->fh.m2m_ctx)) { in vicodec_open()
1912 rc = PTR_ERR(ctx->fh.m2m_ctx); in vicodec_open()
1933 v4l2_m2m_ctx_release(ctx->fh.m2m_ctx); in vicodec_release()