/Linux-v5.15/drivers/media/v4l2-core/ |
D | v4l2-mem2mem.c | 232 void *v4l2_m2m_get_curr_priv(struct v4l2_m2m_dev *m2m_dev) in v4l2_m2m_get_curr_priv() argument 237 spin_lock_irqsave(&m2m_dev->job_spinlock, flags); in v4l2_m2m_get_curr_priv() 238 if (m2m_dev->curr_ctx) in v4l2_m2m_get_curr_priv() 239 ret = m2m_dev->curr_ctx->priv; in v4l2_m2m_get_curr_priv() 240 spin_unlock_irqrestore(&m2m_dev->job_spinlock, flags); in v4l2_m2m_get_curr_priv() 255 static void v4l2_m2m_try_run(struct v4l2_m2m_dev *m2m_dev) in v4l2_m2m_try_run() argument 259 spin_lock_irqsave(&m2m_dev->job_spinlock, flags); in v4l2_m2m_try_run() 260 if (NULL != m2m_dev->curr_ctx) { in v4l2_m2m_try_run() 261 spin_unlock_irqrestore(&m2m_dev->job_spinlock, flags); in v4l2_m2m_try_run() 266 if (list_empty(&m2m_dev->job_queue)) { in v4l2_m2m_try_run() [all …]
|
/Linux-v5.15/include/media/ |
D | v4l2-mem2mem.h | 111 struct v4l2_m2m_dev *m2m_dev; member 142 void *v4l2_m2m_get_curr_priv(struct v4l2_m2m_dev *m2m_dev); 191 void v4l2_m2m_job_finish(struct v4l2_m2m_dev *m2m_dev, 217 void v4l2_m2m_buf_done_and_job_finish(struct v4l2_m2m_dev *m2m_dev, 316 void v4l2_m2m_suspend(struct v4l2_m2m_dev *m2m_dev); 327 void v4l2_m2m_resume(struct v4l2_m2m_dev *m2m_dev); 510 void v4l2_m2m_unregister_media_controller(struct v4l2_m2m_dev *m2m_dev); 511 int v4l2_m2m_register_media_controller(struct v4l2_m2m_dev *m2m_dev, 515 v4l2_m2m_unregister_media_controller(struct v4l2_m2m_dev *m2m_dev) in v4l2_m2m_unregister_media_controller() argument 520 v4l2_m2m_register_media_controller(struct v4l2_m2m_dev *m2m_dev, in v4l2_m2m_register_media_controller() argument [all …]
|
/Linux-v5.15/drivers/staging/media/sunxi/cedrus/ |
D | cedrus.c | 279 ctx->fh.m2m_ctx = v4l2_m2m_ctx_init(dev->m2m_dev, ctx, in cedrus_open() 402 dev->m2m_dev = v4l2_m2m_init(&cedrus_m2m_ops); in cedrus_probe() 403 if (IS_ERR(dev->m2m_dev)) { in cedrus_probe() 406 ret = PTR_ERR(dev->m2m_dev); in cedrus_probe() 429 ret = v4l2_m2m_register_media_controller(dev->m2m_dev, vfd, in cedrus_probe() 448 v4l2_m2m_unregister_media_controller(dev->m2m_dev); in cedrus_probe() 452 v4l2_m2m_release(dev->m2m_dev); in cedrus_probe() 465 v4l2_m2m_unregister_media_controller(dev->m2m_dev); in cedrus_remove() 469 v4l2_m2m_release(dev->m2m_dev); in cedrus_remove()
|
D | cedrus_hw.c | 121 ctx = v4l2_m2m_get_curr_priv(dev->m2m_dev); in cedrus_irq() 140 v4l2_m2m_buf_done_and_job_finish(ctx->dev->m2m_dev, ctx->fh.m2m_ctx, in cedrus_irq()
|
/Linux-v5.15/drivers/media/platform/ |
D | mx2_emmaprp.c | 206 struct v4l2_m2m_dev *m2m_dev; member 243 v4l2_m2m_job_finish(pcdev->m2m_dev, ctx->fh.m2m_ctx); in emmaprp_job_abort() 341 curr_ctx = v4l2_m2m_get_curr_priv(pcdev->m2m_dev); in emmaprp_irq() 371 v4l2_m2m_job_finish(pcdev->m2m_dev, curr_ctx->fh.m2m_ctx); in emmaprp_irq() 738 ctx->fh.m2m_ctx = v4l2_m2m_ctx_init(pcdev->m2m_dev, ctx, &queue_init); in emmaprp_open() 865 pcdev->m2m_dev = v4l2_m2m_init(&m2m_ops); in emmaprp_probe() 866 if (IS_ERR(pcdev->m2m_dev)) { in emmaprp_probe() 868 ret = PTR_ERR(pcdev->m2m_dev); in emmaprp_probe() 882 v4l2_m2m_release(pcdev->m2m_dev); in emmaprp_probe() 900 v4l2_m2m_release(pcdev->m2m_dev); in emmaprp_remove()
|
D | m2m-deinterlace.c | 131 struct v4l2_m2m_dev *m2m_dev; member 174 v4l2_m2m_job_finish(pcdev->m2m_dev, ctx->fh.m2m_ctx); in deinterlace_job_abort() 197 v4l2_m2m_job_finish(pcdev->m2m_dev, curr_ctx->fh.m2m_ctx); in dma_callback() 854 ctx->fh.m2m_ctx = v4l2_m2m_ctx_init(pcdev->m2m_dev, ctx, &queue_init); in deinterlace_open() 968 pcdev->m2m_dev = v4l2_m2m_init(&m2m_ops); in deinterlace_probe() 969 if (IS_ERR(pcdev->m2m_dev)) { in deinterlace_probe() 971 ret = PTR_ERR(pcdev->m2m_dev); in deinterlace_probe() 992 v4l2_m2m_release(pcdev->m2m_dev); in deinterlace_remove()
|
D | rcar_jpu.c | 210 struct v4l2_m2m_dev *m2m_dev; member 1250 ctx->fh.m2m_ctx = v4l2_m2m_ctx_init(jpu->m2m_dev, ctx, jpu_queue_init); in jpu_open() 1344 v4l2_m2m_job_finish(ctx->jpu->m2m_dev, ctx->fh.m2m_ctx); in jpu_cleanup() 1520 curr_ctx = v4l2_m2m_get_curr_priv(jpu->m2m_dev); in jpu_irq_handler() 1566 v4l2_m2m_job_finish(jpu->m2m_dev, curr_ctx->fh.m2m_ctx); in jpu_irq_handler() 1640 jpu->m2m_dev = v4l2_m2m_init(&jpu_m2m_ops); in jpu_probe() 1641 if (IS_ERR(jpu->m2m_dev)) { in jpu_probe() 1643 ret = PTR_ERR(jpu->m2m_dev); in jpu_probe() 1701 v4l2_m2m_release(jpu->m2m_dev); in jpu_probe() 1715 v4l2_m2m_release(jpu->m2m_dev); in jpu_remove()
|
D | imx-pxp.c | 199 struct v4l2_m2m_dev *m2m_dev; member 938 curr_ctx = v4l2_m2m_get_curr_priv(dev->m2m_dev); in pxp_job_finish() 954 v4l2_m2m_job_finish(dev->m2m_dev, curr_ctx->fh.m2m_ctx); in pxp_job_finish() 1548 ctx->fh.m2m_ctx = v4l2_m2m_ctx_init(dev->m2m_dev, ctx, &queue_init); in pxp_open() 1702 dev->m2m_dev = v4l2_m2m_init(&m2m_ops); in pxp_probe() 1703 if (IS_ERR(dev->m2m_dev)) { in pxp_probe() 1705 ret = PTR_ERR(dev->m2m_dev); in pxp_probe() 1718 v4l2_m2m_release(dev->m2m_dev); in pxp_probe() 1738 v4l2_m2m_release(dev->m2m_dev); in pxp_remove()
|
/Linux-v5.15/drivers/media/test-drivers/vicodec/ |
D | vicodec-core.c | 101 struct v4l2_m2m_dev *m2m_dev; member 457 v4l2_m2m_job_finish(dev->stateful_enc.m2m_dev, ctx->fh.m2m_ctx); in device_run() 459 v4l2_m2m_job_finish(dev->stateless_dec.m2m_dev, in device_run() 462 v4l2_m2m_job_finish(dev->stateful_dec.m2m_dev, ctx->fh.m2m_ctx); in device_run() 1902 ctx->fh.m2m_ctx = v4l2_m2m_ctx_init(dev->stateful_enc.m2m_dev, in vicodec_open() 1906 ctx->fh.m2m_ctx = v4l2_m2m_ctx_init(dev->stateless_dec.m2m_dev, in vicodec_open() 1910 ctx->fh.m2m_ctx = v4l2_m2m_ctx_init(dev->stateful_dec.m2m_dev, in vicodec_open() 2039 dev_instance->m2m_dev = v4l2_m2m_init(&m2m_ops); in register_instance() 2040 if (IS_ERR(dev_instance->m2m_dev)) { in register_instance() 2042 return PTR_ERR(dev_instance->m2m_dev); in register_instance() [all …]
|
/Linux-v5.15/drivers/staging/media/rkvdec/ |
D | rkvdec.c | 620 v4l2_m2m_buf_done_and_job_finish(ctx->dev->m2m_dev, ctx->fh.m2m_ctx, in rkvdec_job_finish_no_pm() 795 ctx->fh.m2m_ctx = v4l2_m2m_ctx_init(rkvdec->m2m_dev, ctx, in rkvdec_open() 847 rkvdec->m2m_dev = v4l2_m2m_init(&rkvdec_m2m_ops); in rkvdec_v4l2_init() 848 if (IS_ERR(rkvdec->m2m_dev)) { in rkvdec_v4l2_init() 850 ret = PTR_ERR(rkvdec->m2m_dev); in rkvdec_v4l2_init() 879 ret = v4l2_m2m_register_media_controller(rkvdec->m2m_dev, &rkvdec->vdev, in rkvdec_v4l2_init() 896 v4l2_m2m_unregister_media_controller(rkvdec->m2m_dev); in rkvdec_v4l2_init() 903 v4l2_m2m_release(rkvdec->m2m_dev); in rkvdec_v4l2_init() 913 v4l2_m2m_unregister_media_controller(rkvdec->m2m_dev); in rkvdec_v4l2_cleanup() 916 v4l2_m2m_release(rkvdec->m2m_dev); in rkvdec_v4l2_cleanup() [all …]
|
/Linux-v5.15/drivers/media/platform/mtk-jpeg/ |
D | mtk_jpeg_core.c | 950 v4l2_m2m_job_finish(jpeg->m2m_dev, ctx->fh.m2m_ctx); in mtk_jpeg_enc_device_run() 972 v4l2_m2m_job_finish(jpeg->m2m_dev, ctx->fh.m2m_ctx); in mtk_jpeg_dec_device_run() 1001 v4l2_m2m_job_finish(jpeg->m2m_dev, ctx->fh.m2m_ctx); in mtk_jpeg_dec_device_run() 1082 ctx = v4l2_m2m_get_curr_priv(jpeg->m2m_dev); in mtk_jpeg_enc_done() 1098 v4l2_m2m_job_finish(jpeg->m2m_dev, ctx->fh.m2m_ctx); in mtk_jpeg_enc_done() 1138 ctx = v4l2_m2m_get_curr_priv(jpeg->m2m_dev); in mtk_jpeg_dec_irq() 1165 v4l2_m2m_job_finish(jpeg->m2m_dev, ctx->fh.m2m_ctx); in mtk_jpeg_dec_irq() 1225 ctx->fh.m2m_ctx = v4l2_m2m_ctx_init(jpeg->m2m_dev, ctx, in mtk_jpeg_open() 1323 ctx = v4l2_m2m_get_curr_priv(jpeg->m2m_dev); in mtk_jpeg_job_timeout_work() 1333 v4l2_m2m_job_finish(jpeg->m2m_dev, ctx->fh.m2m_ctx); in mtk_jpeg_job_timeout_work() [all …]
|
D | mtk_jpeg_core.h | 98 struct v4l2_m2m_dev *m2m_dev; member
|
/Linux-v5.15/drivers/media/platform/exynos-gsc/ |
D | gsc-m2m.c | 33 curr_ctx = v4l2_m2m_get_curr_priv(gsc->m2m.m2m_dev); in gsc_m2m_ctx_stop_req() 110 v4l2_m2m_job_finish(ctx->gsc_dev->m2m.m2m_dev, in gsc_m2m_job_finish() 648 ctx->m2m_ctx = v4l2_m2m_ctx_init(gsc->m2m.m2m_dev, ctx, queue_init); in gsc_m2m_open() 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 return PTR_ERR(gsc->m2m.m2m_dev); in gsc_register_m2m_device() 783 v4l2_m2m_release(gsc->m2m.m2m_dev); in gsc_register_m2m_device() 791 v4l2_m2m_release(gsc->m2m.m2m_dev); in gsc_unregister_m2m_device()
|
/Linux-v5.15/drivers/media/platform/exynos4-is/ |
D | fimc-m2m.c | 54 v4l2_m2m_job_finish(ctx->fimc_dev->m2m.m2m_dev, in fimc_m2m_job_finish() 648 ctx->fh.m2m_ctx = v4l2_m2m_ctx_init(fimc->m2m.m2m_dev, ctx, queue_init); in fimc_m2m_open() 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()
|
/Linux-v5.15/drivers/staging/media/hantro/ |
D | hantro_drv.c | 76 v4l2_m2m_buf_done_and_job_finish(ctx->dev->m2m_dev, ctx->fh.m2m_ctx, in hantro_job_finish_no_pm() 96 v4l2_m2m_get_curr_priv(vpu->m2m_dev); in hantro_irq_done() 117 ctx = v4l2_m2m_get_curr_priv(vpu->m2m_dev); in hantro_watchdog() 527 ctx->fh.m2m_ctx = v4l2_m2m_ctx_init(vpu->m2m_dev, ctx, queue_init); in hantro_open() 971 vpu->m2m_dev = v4l2_m2m_init(&vpu_m2m_ops); in hantro_probe() 972 if (IS_ERR(vpu->m2m_dev)) { in hantro_probe() 974 ret = PTR_ERR(vpu->m2m_dev); in hantro_probe() 1012 v4l2_m2m_release(vpu->m2m_dev); in hantro_probe() 1032 v4l2_m2m_release(vpu->m2m_dev); in hantro_remove()
|
/Linux-v5.15/drivers/media/test-drivers/ |
D | vim2m.c | 200 struct v4l2_m2m_dev *m2m_dev; member 641 v4l2_m2m_job_finish(vim2m_dev->m2m_dev, curr_ctx->fh.m2m_ctx); in device_work() 1214 ctx->fh.m2m_ctx = v4l2_m2m_ctx_init(dev->m2m_dev, ctx, &queue_init); in vim2m_open() 1264 v4l2_m2m_release(dev->m2m_dev); in vim2m_device_release() 1329 dev->m2m_dev = v4l2_m2m_init(&m2m_ops); in vim2m_probe() 1330 if (IS_ERR(dev->m2m_dev)) { in vim2m_probe() 1332 ret = PTR_ERR(dev->m2m_dev); in vim2m_probe() 1333 dev->m2m_dev = NULL; in vim2m_probe() 1354 ret = v4l2_m2m_register_media_controller(dev->m2m_dev, vfd, in vim2m_probe() 1371 v4l2_m2m_unregister_media_controller(dev->m2m_dev); in vim2m_probe() [all …]
|
/Linux-v5.15/drivers/media/platform/sti/bdisp/ |
D | bdisp-v4l2.c | 203 v4l2_m2m_job_finish(ctx->bdisp_dev->m2m.m2m_dev, in bdisp_job_finish() 218 curr_ctx = v4l2_m2m_get_curr_priv(bdisp->m2m.m2m_dev); in bdisp_ctx_stop_req() 616 ctx->fh.m2m_ctx = v4l2_m2m_ctx_init(bdisp->m2m.m2m_dev, ctx, in bdisp_open() 1063 bdisp->m2m.m2m_dev = v4l2_m2m_init(&bdisp_m2m_ops); in bdisp_register_device() 1064 if (IS_ERR(bdisp->m2m.m2m_dev)) { in bdisp_register_device() 1066 return PTR_ERR(bdisp->m2m.m2m_dev); in bdisp_register_device() 1073 v4l2_m2m_release(bdisp->m2m.m2m_dev); in bdisp_register_device() 1085 if (bdisp->m2m.m2m_dev) in bdisp_unregister_device() 1086 v4l2_m2m_release(bdisp->m2m.m2m_dev); in bdisp_unregister_device() 1111 ctx = v4l2_m2m_get_curr_priv(bdisp->m2m.m2m_dev); in bdisp_irq_thread() [all …]
|
/Linux-v5.15/drivers/media/platform/s5p-g2d/ |
D | g2d.c | 251 ctx->fh.m2m_ctx = v4l2_m2m_ctx_init(dev->m2m_dev, ctx, &queue_init); in g2d_open() 567 v4l2_m2m_job_finish(dev->m2m_dev, ctx->fh.m2m_ctx); in g2d_isr() 703 dev->m2m_dev = v4l2_m2m_init(&g2d_m2m_ops); in g2d_probe() 704 if (IS_ERR(dev->m2m_dev)) { in g2d_probe() 706 ret = PTR_ERR(dev->m2m_dev); in g2d_probe() 732 v4l2_m2m_release(dev->m2m_dev); in g2d_probe() 754 v4l2_m2m_release(dev->m2m_dev); in g2d_remove()
|
/Linux-v5.15/drivers/staging/media/imx/ |
D | imx-media-csc-scaler.c | 38 struct v4l2_m2m_dev *m2m_dev; member 109 v4l2_m2m_job_finish(priv->m2m_dev, ctx->fh.m2m_ctx); in ipu_ic_pp_complete() 146 v4l2_m2m_job_finish(priv->m2m_dev, ctx->fh.m2m_ctx); in device_run() 769 ctx->fh.m2m_ctx = v4l2_m2m_ctx_init(priv->m2m_dev, ctx, in ipu_csc_scaler_open() 832 v4l2_m2m_release(priv->m2m_dev); in ipu_csc_scaler_video_device_release() 905 priv->m2m_dev = v4l2_m2m_init(&m2m_ops); in imx_media_csc_scaler_device_init() 906 if (IS_ERR(priv->m2m_dev)) { in imx_media_csc_scaler_device_init() 907 ret = PTR_ERR(priv->m2m_dev); in imx_media_csc_scaler_device_init()
|
/Linux-v5.15/drivers/media/platform/sunxi/sun8i-rotate/ |
D | sun8i_rotate.c | 146 ctx = v4l2_m2m_get_curr_priv(dev->m2m_dev); in rotate_irq() 166 v4l2_m2m_job_finish(ctx->dev->m2m_dev, ctx->fh.m2m_ctx); in rotate_irq() 667 ctx->fh.m2m_ctx = v4l2_m2m_ctx_init(dev->m2m_dev, ctx, in rotate_open() 813 dev->m2m_dev = v4l2_m2m_init(&rotate_m2m_ops); in rotate_probe() 814 if (IS_ERR(dev->m2m_dev)) { in rotate_probe() 817 ret = PTR_ERR(dev->m2m_dev); in rotate_probe() 840 v4l2_m2m_release(dev->m2m_dev); in rotate_remove()
|
/Linux-v5.15/drivers/media/platform/meson/ge2d/ |
D | ge2d.c | 87 struct v4l2_m2m_dev *m2m_dev; member 313 v4l2_m2m_job_finish(ge2d->m2m_dev, ctx->fh.m2m_ctx); in ge2d_isr() 856 ctx->fh.m2m_ctx = v4l2_m2m_ctx_init(ge2d->m2m_dev, ctx, &queue_init); in ge2d_open() 1003 ge2d->m2m_dev = v4l2_m2m_init(&ge2d_m2m_ops); in ge2d_probe() 1004 if (IS_ERR(ge2d->m2m_dev)) { in ge2d_probe() 1006 ret = PTR_ERR(ge2d->m2m_dev); in ge2d_probe() 1022 v4l2_m2m_release(ge2d->m2m_dev); in ge2d_probe() 1038 v4l2_m2m_release(ge2d->m2m_dev); in ge2d_remove()
|
/Linux-v5.15/drivers/media/platform/sunxi/sun8i-di/ |
D | sun8i-di.c | 204 ctx = v4l2_m2m_get_curr_priv(dev->m2m_dev); in deinterlace_irq() 239 v4l2_m2m_job_finish(ctx->dev->m2m_dev, ctx->fh.m2m_ctx); in deinterlace_irq() 738 ctx->fh.m2m_ctx = v4l2_m2m_ctx_init(dev->m2m_dev, ctx, in deinterlace_open() 888 dev->m2m_dev = v4l2_m2m_init(&deinterlace_m2m_ops); in deinterlace_probe() 889 if (IS_ERR(dev->m2m_dev)) { in deinterlace_probe() 892 ret = PTR_ERR(dev->m2m_dev); in deinterlace_probe() 915 v4l2_m2m_release(dev->m2m_dev); in deinterlace_remove()
|
/Linux-v5.15/drivers/media/platform/rockchip/rga/ |
D | rga.c | 86 v4l2_m2m_job_finish(rga->m2m_dev, ctx->fh.m2m_ctx); in rga_isr() 388 ctx->fh.m2m_ctx = v4l2_m2m_ctx_init(rga->m2m_dev, ctx, &queue_init); in rga_open() 862 rga->m2m_dev = v4l2_m2m_init(&rga_m2m_ops); in rga_probe() 863 if (IS_ERR(rga->m2m_dev)) { in rga_probe() 865 ret = PTR_ERR(rga->m2m_dev); in rga_probe() 946 v4l2_m2m_release(rga->m2m_dev); in rga_remove()
|
/Linux-v5.15/drivers/media/platform/mtk-mdp/ |
D | mtk_mdp_m2m.c | 477 ctx = v4l2_m2m_get_curr_priv(mdp->m2m_dev); in mtk_mdp_process_done() 491 v4l2_m2m_job_finish(ctx->mdp_dev->m2m_dev, ctx->m2m_ctx); in mtk_mdp_process_done() 1084 ctx->m2m_ctx = v4l2_m2m_ctx_init(mdp->m2m_dev, ctx, in mtk_mdp_m2m_open() 1199 mdp->m2m_dev = v4l2_m2m_init(&mtk_mdp_m2m_ops); in mtk_mdp_register_m2m_device() 1200 if (IS_ERR(mdp->m2m_dev)) { in mtk_mdp_register_m2m_device() 1202 ret = PTR_ERR(mdp->m2m_dev); in mtk_mdp_register_m2m_device() 1217 v4l2_m2m_release(mdp->m2m_dev); in mtk_mdp_register_m2m_device() 1228 v4l2_m2m_release(mdp->m2m_dev); in mtk_mdp_unregister_m2m_device()
|
/Linux-v5.15/drivers/staging/media/meson/vdec/ |
D | vdec.c | 156 v4l2_m2m_job_finish(sess->m2m_dev, sess->m2m_ctx); in vdec_m2m_job_abort() 884 sess->m2m_dev = v4l2_m2m_init(&vdec_m2m_ops); in vdec_open() 885 if (IS_ERR(sess->m2m_dev)) { in vdec_open() 887 ret = PTR_ERR(sess->m2m_dev); in vdec_open() 891 sess->m2m_ctx = v4l2_m2m_ctx_init(sess->m2m_dev, sess, m2m_queue_init); in vdec_open() 926 v4l2_m2m_release(sess->m2m_dev); in vdec_open() 938 v4l2_m2m_release(sess->m2m_dev); in vdec_close()
|