Lines Matching refs:m2m_ctx
464 vq = v4l2_m2m_get_vq(ctx->fh.m2m_ctx, f->type); in hva_s_fmt_stream()
495 vq = v4l2_m2m_get_vq(ctx->fh.m2m_ctx, f->type); in hva_s_fmt_frame()
570 vq = v4l2_m2m_get_vq(ctx->fh.m2m_ctx, buf->type); in hva_qbuf()
582 return v4l2_m2m_qbuf(file, ctx->fh.m2m_ctx, buf); in hva_qbuf()
819 src_buf = v4l2_m2m_src_buf_remove(ctx->fh.m2m_ctx); in hva_run_work()
820 dst_buf = v4l2_m2m_dst_buf_remove(ctx->fh.m2m_ctx); in hva_run_work()
850 v4l2_m2m_job_finish(ctx->hva_dev->m2m_dev, ctx->fh.m2m_ctx); in hva_run_work()
876 if (!v4l2_m2m_num_src_bufs_ready(ctx->fh.m2m_ctx)) { in hva_job_ready()
882 if (!v4l2_m2m_num_dst_bufs_ready(ctx->fh.m2m_ctx)) { in hva_job_ready()
988 if (ctx->fh.m2m_ctx) in hva_buf_queue()
989 v4l2_m2m_buf_queue(ctx->fh.m2m_ctx, vbuf); in hva_buf_queue()
1007 if (!vb2_start_streaming_called(&ctx->fh.m2m_ctx->cap_q_ctx.q)) in hva_start_streaming()
1010 if (!vb2_start_streaming_called(&ctx->fh.m2m_ctx->out_q_ctx.q)) in hva_start_streaming()
1050 while ((vbuf = v4l2_m2m_src_buf_remove(ctx->fh.m2m_ctx))) in hva_start_streaming()
1054 while ((vbuf = v4l2_m2m_dst_buf_remove(ctx->fh.m2m_ctx))) in hva_start_streaming()
1077 while ((vbuf = v4l2_m2m_src_buf_remove(ctx->fh.m2m_ctx))) in hva_stop_streaming()
1082 while ((vbuf = v4l2_m2m_dst_buf_remove(ctx->fh.m2m_ctx))) in hva_stop_streaming()
1087 vb2_is_streaming(&ctx->fh.m2m_ctx->cap_q_ctx.q)) || in hva_stop_streaming()
1089 vb2_is_streaming(&ctx->fh.m2m_ctx->out_q_ctx.q))) { in hva_stop_streaming()
1092 vb2_is_streaming(&ctx->fh.m2m_ctx->out_q_ctx.q), in hva_stop_streaming()
1093 vb2_is_streaming(&ctx->fh.m2m_ctx->cap_q_ctx.q)); in hva_stop_streaming()
1191 ctx->fh.m2m_ctx = v4l2_m2m_ctx_init(hva->m2m_dev, ctx, in hva_open()
1193 if (IS_ERR(ctx->fh.m2m_ctx)) { in hva_open()
1194 ret = PTR_ERR(ctx->fh.m2m_ctx); in hva_open()
1249 v4l2_m2m_ctx_release(ctx->fh.m2m_ctx); in hva_release()