Lines Matching refs:m2m
54 v4l2_m2m_job_finish(ctx->fimc_dev->m2m.m2m_dev, in fimc_m2m_job_finish()
130 if (fimc->m2m.ctx != ctx) { in fimc_device_run()
132 fimc->m2m.ctx = ctx; in fimc_device_run()
355 v4l2_err(&fimc->m2m.vfd, "queue (%d) busy\n", f->type); in fimc_m2m_s_fmt_mplane()
436 v4l2_err(&fimc->m2m.vfd, in fimc_m2m_try_selection()
511 v4l2_err(&fimc->m2m.vfd, "Out of scaler range\n"); in fimc_m2m_s_selection()
625 v4l2_fh_init(&ctx->fh, &fimc->m2m.vfd); in fimc_m2m_open()
648 ctx->fh.m2m_ctx = v4l2_m2m_ctx_init(fimc->m2m.m2m_dev, ctx, queue_init); in fimc_m2m_open()
654 if (fimc->m2m.refcnt++ == 0) in fimc_m2m_open()
683 task_pid_nr(current), fimc->state, fimc->m2m.refcnt); in fimc_m2m_release()
692 if (--fimc->m2m.refcnt <= 0) in fimc_m2m_release()
717 struct video_device *vfd = &fimc->m2m.vfd; in fimc_register_m2m_device()
736 fimc->m2m.m2m_dev = v4l2_m2m_init(&m2m_ops); in fimc_register_m2m_device()
737 if (IS_ERR(fimc->m2m.m2m_dev)) { in fimc_register_m2m_device()
739 return PTR_ERR(fimc->m2m.m2m_dev); in fimc_register_m2m_device()
757 v4l2_m2m_release(fimc->m2m.m2m_dev); in fimc_register_m2m_device()
766 if (fimc->m2m.m2m_dev) in fimc_unregister_m2m_device()
767 v4l2_m2m_release(fimc->m2m.m2m_dev); in fimc_unregister_m2m_device()
769 if (video_is_registered(&fimc->m2m.vfd)) { in fimc_unregister_m2m_device()
770 video_unregister_device(&fimc->m2m.vfd); in fimc_unregister_m2m_device()
771 media_entity_cleanup(&fimc->m2m.vfd.entity); in fimc_unregister_m2m_device()