Lines Matching refs:m2m
37 curr_ctx = v4l2_m2m_get_curr_priv(gsc->m2m.m2m_dev); in gsc_m2m_ctx_stop_req()
99 v4l2_m2m_job_finish(ctx->gsc_dev->m2m.m2m_dev, in gsc_m2m_job_finish()
150 if (gsc->m2m.ctx != ctx) { in gsc_m2m_device_run()
152 gsc->m2m.ctx, ctx); in gsc_m2m_device_run()
154 gsc->m2m.ctx = ctx; in gsc_m2m_device_run()
630 v4l2_fh_init(&ctx->fh, gsc->m2m.vfd); in gsc_m2m_open()
650 ctx->m2m_ctx = v4l2_m2m_ctx_init(gsc->m2m.m2m_dev, ctx, queue_init); in gsc_m2m_open()
657 if (gsc->m2m.refcnt++ == 0) in gsc_m2m_open()
682 task_pid_nr(current), gsc->state, gsc->m2m.refcnt); in gsc_m2m_release()
691 if (--gsc->m2m.refcnt <= 0) in gsc_m2m_release()
765 gsc->m2m.vfd = &gsc->vdev; in gsc_register_m2m_device()
766 gsc->m2m.m2m_dev = v4l2_m2m_init(&gsc_m2m_ops); in gsc_register_m2m_device()
767 if (IS_ERR(gsc->m2m.m2m_dev)) { in gsc_register_m2m_device()
769 ret = PTR_ERR(gsc->m2m.m2m_dev); in gsc_register_m2m_device()
784 v4l2_m2m_release(gsc->m2m.m2m_dev); in gsc_register_m2m_device()
786 video_device_release(gsc->m2m.vfd); in gsc_register_m2m_device()
794 v4l2_m2m_release(gsc->m2m.m2m_dev); in gsc_unregister_m2m_device()