/drivers/media/v4l2-core/ |
D | v4l2-mem2mem.c | 114 static struct v4l2_m2m_queue_ctx *get_queue_ctx(struct v4l2_m2m_ctx *m2m_ctx, in get_queue_ctx() argument 118 return &m2m_ctx->out_q_ctx; in get_queue_ctx() 120 return &m2m_ctx->cap_q_ctx; in get_queue_ctx() 123 struct vb2_queue *v4l2_m2m_get_vq(struct v4l2_m2m_ctx *m2m_ctx, in v4l2_m2m_get_vq() argument 128 q_ctx = get_queue_ctx(m2m_ctx, type); in v4l2_m2m_get_vq() 297 struct v4l2_m2m_ctx *m2m_ctx) in __v4l2_m2m_try_queue() argument 302 dprintk("Trying to schedule a job for m2m_ctx: %p\n", m2m_ctx); in __v4l2_m2m_try_queue() 304 if (!m2m_ctx->out_q_ctx.q.streaming in __v4l2_m2m_try_queue() 305 || !m2m_ctx->cap_q_ctx.q.streaming) { in __v4l2_m2m_try_queue() 313 if (m2m_ctx->job_flags & TRANS_ABORT) { in __v4l2_m2m_try_queue() [all …]
|
/drivers/media/platform/exynos-gsc/ |
D | gsc-m2m.c | 67 while (v4l2_m2m_num_src_bufs_ready(ctx->m2m_ctx) > 0) { in __gsc_m2m_cleanup_queue() 68 src_vb = v4l2_m2m_src_buf_remove(ctx->m2m_ctx); in __gsc_m2m_cleanup_queue() 72 while (v4l2_m2m_num_dst_bufs_ready(ctx->m2m_ctx) > 0) { in __gsc_m2m_cleanup_queue() 73 dst_vb = v4l2_m2m_dst_buf_remove(ctx->m2m_ctx); in __gsc_m2m_cleanup_queue() 93 if (!ctx || !ctx->m2m_ctx) in gsc_m2m_job_finish() 96 src_vb = v4l2_m2m_src_buf_remove(ctx->m2m_ctx); in gsc_m2m_job_finish() 97 dst_vb = v4l2_m2m_dst_buf_remove(ctx->m2m_ctx); in gsc_m2m_job_finish() 111 ctx->m2m_ctx); in gsc_m2m_job_finish() 129 src_vb = v4l2_m2m_next_src_buf(ctx->m2m_ctx); in gsc_get_bufs() 134 dst_vb = v4l2_m2m_next_dst_buf(ctx->m2m_ctx); in gsc_get_bufs() [all …]
|
/drivers/staging/media/imx/ |
D | imx-media-csc-scaler.c | 96 src_buf = v4l2_m2m_src_buf_remove(ctx->fh.m2m_ctx); in ipu_ic_pp_complete() 97 dst_buf = v4l2_m2m_dst_buf_remove(ctx->fh.m2m_ctx); in ipu_ic_pp_complete() 109 v4l2_m2m_job_finish(priv->m2m_dev, ctx->fh.m2m_ctx); in ipu_ic_pp_complete() 121 src_buf = v4l2_m2m_next_src_buf(ctx->fh.m2m_ctx); in device_run() 122 dst_buf = v4l2_m2m_next_dst_buf(ctx->fh.m2m_ctx); in device_run() 142 v4l2_m2m_src_buf_remove(ctx->fh.m2m_ctx); in device_run() 143 v4l2_m2m_dst_buf_remove(ctx->fh.m2m_ctx); in device_run() 146 v4l2_m2m_job_finish(priv->m2m_dev, ctx->fh.m2m_ctx); in device_run() 248 vq = v4l2_m2m_get_vq(ctx->fh.m2m_ctx, f->type); in ipu_csc_scaler_s_fmt() 485 v4l2_m2m_buf_queue(ctx->fh.m2m_ctx, to_vb2_v4l2_buffer(vb)); in ipu_csc_scaler_buf_queue() [all …]
|
/drivers/media/platform/mtk-vcodec/ |
D | mtk_vcodec_dec.c | 196 v4l2_m2m_buf_queue(ctx->m2m_ctx, vb); in get_free_buffer() 212 v4l2_m2m_buf_queue(ctx->m2m_ctx, vb); in get_free_buffer() 357 src_buf = v4l2_m2m_next_src_buf(ctx->m2m_ctx); in mtk_vdec_worker() 359 v4l2_m2m_job_finish(dev->m2m_dev_dec, ctx->m2m_ctx); in mtk_vdec_worker() 364 dst_buf = v4l2_m2m_next_dst_buf(ctx->m2m_ctx); in mtk_vdec_worker() 366 v4l2_m2m_job_finish(dev->m2m_dev_dec, ctx->m2m_ctx); in mtk_vdec_worker() 395 src_buf = v4l2_m2m_src_buf_remove(ctx->m2m_ctx); in mtk_vdec_worker() 398 dst_buf = v4l2_m2m_dst_buf_remove(ctx->m2m_ctx); in mtk_vdec_worker() 411 v4l2_m2m_job_finish(dev->m2m_dev_dec, ctx->m2m_ctx); in mtk_vdec_worker() 418 v4l2_m2m_job_finish(dev->m2m_dev_dec, ctx->m2m_ctx); in mtk_vdec_worker() [all …]
|
D | mtk_vcodec_enc.c | 391 vq = v4l2_m2m_get_vq(ctx->m2m_ctx, f->type); in vidioc_venc_s_fmt_cap() 455 vq = v4l2_m2m_get_vq(ctx->m2m_ctx, f->type); in vidioc_venc_s_fmt_out() 521 vq = v4l2_m2m_get_vq(ctx->m2m_ctx, f->type); in vidioc_venc_g_fmt() 664 return v4l2_m2m_qbuf(file, ctx->m2m_ctx, buf); in vidioc_venc_qbuf() 678 return v4l2_m2m_dqbuf(file, ctx->m2m_ctx, buf); in vidioc_venc_dqbuf() 787 v4l2_m2m_buf_queue(ctx->m2m_ctx, to_vb2_v4l2_buffer(vb)); in vb2ops_venc_buf_queue() 807 if (!vb2_start_streaming_called(&ctx->m2m_ctx->cap_q_ctx.q)) in vb2ops_venc_start_streaming() 810 if (!vb2_start_streaming_called(&ctx->m2m_ctx->out_q_ctx.q)) in vb2ops_venc_start_streaming() 868 while ((dst_buf = v4l2_m2m_dst_buf_remove(ctx->m2m_ctx))) { in vb2ops_venc_stop_streaming() 873 while ((src_buf = v4l2_m2m_src_buf_remove(ctx->m2m_ctx))) in vb2ops_venc_stop_streaming() [all …]
|
D | mtk_vcodec_dec_drv.c | 114 ctx->m2m_ctx = v4l2_m2m_ctx_init(dev->m2m_dev_dec, ctx, in fops_vcodec_open() 116 if (IS_ERR((__force void *)ctx->m2m_ctx)) { in fops_vcodec_open() 117 ret = PTR_ERR((__force void *)ctx->m2m_ctx); in fops_vcodec_open() 122 src_vq = v4l2_m2m_get_vq(ctx->m2m_ctx, in fops_vcodec_open() 159 v4l2_m2m_ctx_release(ctx->m2m_ctx); in fops_vcodec_open() 186 v4l2_m2m_ctx_release(ctx->m2m_ctx); in fops_vcodec_release()
|
/drivers/media/test-drivers/vicodec/ |
D | vicodec-core.c | 285 v4l2_m2m_get_vq(ctx->fh.m2m_ctx, in device_process() 413 src_buf = v4l2_m2m_next_src_buf(ctx->fh.m2m_ctx); in device_run() 414 dst_buf = v4l2_m2m_dst_buf_remove(ctx->fh.m2m_ctx); in device_run() 430 v4l2_m2m_is_last_draining_src_buf(ctx->fh.m2m_ctx, src_buf)) { in device_run() 433 v4l2_m2m_mark_stopped(ctx->fh.m2m_ctx); in device_run() 437 src_buf = v4l2_m2m_src_buf_remove(ctx->fh.m2m_ctx); in device_run() 441 src_buf = v4l2_m2m_src_buf_remove(ctx->fh.m2m_ctx); in device_run() 457 v4l2_m2m_job_finish(dev->stateful_enc.m2m_dev, ctx->fh.m2m_ctx); in device_run() 460 ctx->fh.m2m_ctx); in device_run() 462 v4l2_m2m_job_finish(dev->stateful_dec.m2m_dev, ctx->fh.m2m_ctx); in device_run() [all …]
|
/drivers/media/platform/mtk-jpeg/ |
D | mtk_jpeg_core.c | 315 vq = v4l2_m2m_get_vq(ctx->fh.m2m_ctx, f->type); in mtk_jpeg_g_fmt_vid_mplane() 421 vq = v4l2_m2m_get_vq(ctx->fh.m2m_ctx, f->type); in mtk_jpeg_s_fmt_mplane() 770 v4l2_m2m_buf_queue(ctx->fh.m2m_ctx, to_vb2_v4l2_buffer(vb)); in mtk_jpeg_enc_buf_queue() 801 ctx->fh.m2m_ctx, V4L2_BUF_TYPE_VIDEO_CAPTURE_MPLANE); in mtk_jpeg_dec_buf_queue() 809 v4l2_m2m_buf_queue(ctx->fh.m2m_ctx, to_vb2_v4l2_buffer(vb)); in mtk_jpeg_dec_buf_queue() 816 return v4l2_m2m_src_buf_remove(ctx->fh.m2m_ctx); in mtk_jpeg_buf_remove() 818 return v4l2_m2m_dst_buf_remove(ctx->fh.m2m_ctx); in mtk_jpeg_buf_remove() 844 vb = v4l2_m2m_next_src_buf(ctx->fh.m2m_ctx); in mtk_jpeg_dec_stop_streaming() 920 src_buf = v4l2_m2m_next_src_buf(ctx->fh.m2m_ctx); in mtk_jpeg_enc_device_run() 921 dst_buf = v4l2_m2m_next_dst_buf(ctx->fh.m2m_ctx); in mtk_jpeg_enc_device_run() [all …]
|
/drivers/media/platform/sti/hva/ |
D | hva-v4l2.c | 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() 571 vq = v4l2_m2m_get_vq(ctx->fh.m2m_ctx, buf->type); in hva_qbuf() 584 return v4l2_m2m_qbuf(file, ctx->fh.m2m_ctx, buf); in hva_qbuf() 821 src_buf = v4l2_m2m_src_buf_remove(ctx->fh.m2m_ctx); in hva_run_work() 822 dst_buf = v4l2_m2m_dst_buf_remove(ctx->fh.m2m_ctx); in hva_run_work() 852 v4l2_m2m_job_finish(ctx->hva_dev->m2m_dev, ctx->fh.m2m_ctx); in hva_run_work() 878 if (!v4l2_m2m_num_src_bufs_ready(ctx->fh.m2m_ctx)) { in hva_job_ready() 884 if (!v4l2_m2m_num_dst_bufs_ready(ctx->fh.m2m_ctx)) { in hva_job_ready() 990 if (ctx->fh.m2m_ctx) in hva_buf_queue() [all …]
|
/drivers/media/platform/sunxi/sun8i-rotate/ |
D | sun8i_rotate.c | 70 src = v4l2_m2m_next_src_buf(ctx->fh.m2m_ctx); in rotate_device_run() 71 dst = v4l2_m2m_next_dst_buf(ctx->fh.m2m_ctx); in rotate_device_run() 160 buffer = v4l2_m2m_dst_buf_remove(ctx->fh.m2m_ctx); in rotate_irq() 163 buffer = v4l2_m2m_src_buf_remove(ctx->fh.m2m_ctx); in rotate_irq() 166 v4l2_m2m_job_finish(ctx->dev->m2m_dev, ctx->fh.m2m_ctx); in rotate_irq() 350 vq = v4l2_m2m_get_vq(ctx->fh.m2m_ctx, f->type); in rotate_s_fmt_vid_cap() 370 vq = v4l2_m2m_get_vq(ctx->fh.m2m_ctx, f->type); in rotate_s_fmt_vid_out() 378 vq = v4l2_m2m_get_vq(ctx->fh.m2m_ctx, V4L2_BUF_TYPE_VIDEO_CAPTURE); in rotate_s_fmt_vid_out() 471 v4l2_m2m_buf_queue(ctx->fh.m2m_ctx, vbuf); in rotate_buf_queue() 481 vbuf = v4l2_m2m_src_buf_remove(ctx->fh.m2m_ctx); in rotate_queue_cleanup() [all …]
|
/drivers/media/platform/ |
D | mx2_emmaprp.c | 243 v4l2_m2m_job_finish(pcdev->m2m_dev, ctx->fh.m2m_ctx); in emmaprp_job_abort() 278 src_buf = v4l2_m2m_next_src_buf(ctx->fh.m2m_ctx); in emmaprp_device_run() 279 dst_buf = v4l2_m2m_next_dst_buf(ctx->fh.m2m_ctx); in emmaprp_device_run() 353 src_vb = v4l2_m2m_src_buf_remove(curr_ctx->fh.m2m_ctx); in emmaprp_irq() 354 dst_vb = v4l2_m2m_dst_buf_remove(curr_ctx->fh.m2m_ctx); in emmaprp_irq() 371 v4l2_m2m_job_finish(pcdev->m2m_dev, curr_ctx->fh.m2m_ctx); in emmaprp_irq() 432 vq = v4l2_m2m_get_vq(ctx->fh.m2m_ctx, f->type); in vidioc_g_fmt() 537 vq = v4l2_m2m_get_vq(ctx->fh.m2m_ctx, f->type); in vidioc_s_fmt() 673 v4l2_m2m_buf_queue(ctx->fh.m2m_ctx, vbuf); in emmaprp_buf_queue() 738 ctx->fh.m2m_ctx = v4l2_m2m_ctx_init(pcdev->m2m_dev, ctx, &queue_init); in emmaprp_open() [all …]
|
D | m2m-deinterlace.c | 153 if (v4l2_m2m_num_src_bufs_ready(ctx->fh.m2m_ctx) > 0 && in deinterlace_job_ready() 154 v4l2_m2m_num_dst_bufs_ready(ctx->fh.m2m_ctx) > 0 && in deinterlace_job_ready() 174 v4l2_m2m_job_finish(pcdev->m2m_dev, ctx->fh.m2m_ctx); in deinterlace_job_abort() 185 src_vb = v4l2_m2m_src_buf_remove(curr_ctx->fh.m2m_ctx); in dma_callback() 186 dst_vb = v4l2_m2m_dst_buf_remove(curr_ctx->fh.m2m_ctx); in dma_callback() 197 v4l2_m2m_job_finish(pcdev->m2m_dev, curr_ctx->fh.m2m_ctx); in dma_callback() 216 src_buf = v4l2_m2m_next_src_buf(ctx->fh.m2m_ctx); in deinterlace_issue_dma() 217 dst_buf = v4l2_m2m_next_dst_buf(ctx->fh.m2m_ctx); in deinterlace_issue_dma() 486 vq = v4l2_m2m_get_vq(ctx->fh.m2m_ctx, f->type); in vidioc_g_fmt() 583 vq = v4l2_m2m_get_vq(ctx->fh.m2m_ctx, f->type); in vidioc_s_fmt() [all …]
|
D | rcar_jpu.c | 840 if (!v4l2_m2m_get_vq(ctx->fh.m2m_ctx, f->type)) in jpu_try_fmt() 850 struct v4l2_m2m_ctx *m2m_ctx = ctx->fh.m2m_ctx; in jpu_s_fmt() local 855 vq = v4l2_m2m_get_vq(m2m_ctx, f->type); in jpu_s_fmt() 881 if (!v4l2_m2m_get_vq(ctx->fh.m2m_ctx, f->type)) in jpu_g_fmt() 943 return v4l2_m2m_streamon(file, ctx->fh.m2m_ctx, type); in jpu_streamon() 1115 if (ctx->fh.m2m_ctx) in jpu_buf_queue() 1116 v4l2_m2m_buf_queue(ctx->fh.m2m_ctx, vbuf); in jpu_buf_queue() 1168 vb = v4l2_m2m_src_buf_remove(ctx->fh.m2m_ctx); in jpu_stop_streaming() 1170 vb = v4l2_m2m_dst_buf_remove(ctx->fh.m2m_ctx); in jpu_stop_streaming() 1254 ctx->fh.m2m_ctx = v4l2_m2m_ctx_init(jpu->m2m_dev, ctx, jpu_queue_init); in jpu_open() [all …]
|
/drivers/media/platform/sunxi/sun8i-di/ |
D | sun8i-di.c | 70 src = v4l2_m2m_next_src_buf(ctx->fh.m2m_ctx); in deinterlace_device_run() 71 dst = v4l2_m2m_next_dst_buf(ctx->fh.m2m_ctx); in deinterlace_device_run() 184 return v4l2_m2m_num_src_bufs_ready(ctx->fh.m2m_ctx) >= 1 && in deinterlace_job_ready() 185 v4l2_m2m_num_dst_bufs_ready(ctx->fh.m2m_ctx) >= 2; in deinterlace_job_ready() 228 dst = v4l2_m2m_dst_buf_remove(ctx->fh.m2m_ctx); in deinterlace_irq() 234 src = v4l2_m2m_src_buf_remove(ctx->fh.m2m_ctx); in deinterlace_irq() 239 v4l2_m2m_job_finish(ctx->dev->m2m_dev, ctx->fh.m2m_ctx); in deinterlace_irq() 454 vq = v4l2_m2m_get_vq(ctx->fh.m2m_ctx, f->type); in deinterlace_s_fmt_vid_cap() 474 vq = v4l2_m2m_get_vq(ctx->fh.m2m_ctx, f->type); in deinterlace_s_fmt_vid_out() 563 v4l2_m2m_buf_queue(ctx->fh.m2m_ctx, vbuf); in deinterlace_buf_queue() [all …]
|
/drivers/staging/media/rkvdec/ |
D | rkvdec.c | 281 vq = v4l2_m2m_get_vq(ctx->fh.m2m_ctx, in rkvdec_s_capture_fmt() 298 struct v4l2_m2m_ctx *m2m_ctx = ctx->fh.m2m_ctx; in rkvdec_s_output_fmt() local 309 vq = v4l2_m2m_get_vq(m2m_ctx, V4L2_BUF_TYPE_VIDEO_OUTPUT_MPLANE); in rkvdec_s_output_fmt() 320 peer_vq = v4l2_m2m_get_vq(m2m_ctx, V4L2_BUF_TYPE_VIDEO_CAPTURE_MPLANE); in rkvdec_s_output_fmt() 491 v4l2_m2m_buf_queue(ctx->fh.m2m_ctx, vbuf); in rkvdec_buf_queue() 539 vbuf = v4l2_m2m_src_buf_remove(ctx->fh.m2m_ctx); in rkvdec_queue_cleanup() 541 vbuf = v4l2_m2m_dst_buf_remove(ctx->fh.m2m_ctx); in rkvdec_queue_cleanup() 648 src_buf = v4l2_m2m_next_src_buf(ctx->fh.m2m_ctx); in rkvdec_job_finish_no_pm() 649 dst_buf = v4l2_m2m_next_dst_buf(ctx->fh.m2m_ctx); in rkvdec_job_finish_no_pm() 653 v4l2_m2m_buf_done_and_job_finish(ctx->dev->m2m_dev, ctx->fh.m2m_ctx, in rkvdec_job_finish_no_pm() [all …]
|
/drivers/media/platform/qcom/venus/ |
D | helpers.c | 374 struct v4l2_m2m_ctx *m2m_ctx = inst->m2m_ctx; in return_buf_error() local 377 v4l2_m2m_src_buf_remove_by_buf(m2m_ctx, vbuf); in return_buf_error() 379 v4l2_m2m_dst_buf_remove_by_buf(m2m_ctx, vbuf); in return_buf_error() 1273 struct v4l2_m2m_ctx *m2m_ctx = inst->m2m_ctx; in venus_helper_find_buf() local 1276 return v4l2_m2m_src_buf_remove_by_idx(m2m_ctx, idx); in venus_helper_find_buf() 1278 return v4l2_m2m_dst_buf_remove_by_idx(m2m_ctx, idx); in venus_helper_find_buf() 1343 struct v4l2_m2m_ctx *m2m_ctx = inst->m2m_ctx; in venus_helper_vb2_buf_queue() local 1348 v4l2_m2m_buf_queue(m2m_ctx, vbuf); in venus_helper_vb2_buf_queue() 1383 while ((buf = v4l2_m2m_src_buf_remove(inst->m2m_ctx))) in venus_helper_buffers_done() 1386 while ((buf = v4l2_m2m_dst_buf_remove(inst->m2m_ctx))) in venus_helper_buffers_done() [all …]
|
/drivers/media/platform/exynos4-is/ |
D | fimc-m2m.c | 43 if (!ctx || !ctx->fh.m2m_ctx) in fimc_m2m_job_finish() 46 src_vb = v4l2_m2m_src_buf_remove(ctx->fh.m2m_ctx); in fimc_m2m_job_finish() 47 dst_vb = v4l2_m2m_dst_buf_remove(ctx->fh.m2m_ctx); in fimc_m2m_job_finish() 55 ctx->fh.m2m_ctx); in fimc_m2m_job_finish() 114 src_vb = v4l2_m2m_next_src_buf(ctx->fh.m2m_ctx); in fimc_device_run() 119 dst_vb = v4l2_m2m_next_dst_buf(ctx->fh.m2m_ctx); in fimc_device_run() 212 v4l2_m2m_buf_queue(ctx->fh.m2m_ctx, vbuf); in fimc_buf_queue() 352 vq = v4l2_m2m_get_vq(ctx->fh.m2m_ctx, f->type); in fimc_m2m_s_fmt_mplane() 648 ctx->fh.m2m_ctx = v4l2_m2m_ctx_init(fimc->m2m.m2m_dev, ctx, queue_init); in fimc_m2m_open() 649 if (IS_ERR(ctx->fh.m2m_ctx)) { in fimc_m2m_open() [all …]
|
/drivers/staging/media/hantro/ |
D | hantro_postproc.c | 79 dst_buf = v4l2_m2m_next_dst_buf(ctx->fh.m2m_ctx); in hantro_postproc_enable() 116 struct v4l2_m2m_ctx *m2m_ctx = ctx->fh.m2m_ctx; in hantro_postproc_alloc() local 117 struct vb2_queue *cap_queue = &m2m_ctx->cap_q_ctx.q; in hantro_postproc_alloc()
|
/drivers/media/platform/s5p-g2d/ |
D | g2d.c | 129 v4l2_m2m_buf_queue(ctx->fh.m2m_ctx, vbuf); in g2d_buf_queue() 251 ctx->fh.m2m_ctx = v4l2_m2m_ctx_init(dev->m2m_dev, ctx, &queue_init); in g2d_open() 252 if (IS_ERR(ctx->fh.m2m_ctx)) { in g2d_open() 253 ret = PTR_ERR(ctx->fh.m2m_ctx); in g2d_open() 280 v4l2_m2m_ctx_release(ctx->fh.m2m_ctx); in g2d_release() 314 vq = v4l2_m2m_get_vq(ctx->fh.m2m_ctx, f->type); in vidioc_g_fmt() 374 vq = v4l2_m2m_get_vq(ctx->fh.m2m_ctx, f->type); in vidioc_s_fmt() 511 src = v4l2_m2m_next_src_buf(ctx->fh.m2m_ctx); in device_run() 512 dst = v4l2_m2m_next_dst_buf(ctx->fh.m2m_ctx); in device_run() 553 src = v4l2_m2m_src_buf_remove(ctx->fh.m2m_ctx); in g2d_isr() [all …]
|
/drivers/media/platform/mtk-mdp/ |
D | mtk_mdp_m2m.c | 409 return v4l2_m2m_src_buf_remove(ctx->m2m_ctx); in mtk_mdp_m2m_buf_remove() 411 return v4l2_m2m_dst_buf_remove(ctx->m2m_ctx); in mtk_mdp_m2m_buf_remove() 465 src_vbuf = v4l2_m2m_next_src_buf(ctx->m2m_ctx); in mtk_mdp_m2m_get_bufs() 468 dst_vbuf = v4l2_m2m_next_dst_buf(ctx->m2m_ctx); in mtk_mdp_m2m_get_bufs() 484 src_vbuf = v4l2_m2m_src_buf_remove(ctx->m2m_ctx); in mtk_mdp_process_done() 485 dst_vbuf = v4l2_m2m_dst_buf_remove(ctx->m2m_ctx); in mtk_mdp_process_done() 494 v4l2_m2m_job_finish(ctx->mdp_dev->m2m_dev, ctx->m2m_ctx); in mtk_mdp_process_done() 581 v4l2_m2m_buf_queue(ctx->m2m_ctx, to_vb2_v4l2_buffer(vb)); in mtk_mdp_m2m_buf_queue() 701 vq = v4l2_m2m_get_vq(ctx->m2m_ctx, f->type); in mtk_mdp_m2m_s_fmt_mplane() 732 return v4l2_m2m_reqbufs(file, ctx->m2m_ctx, reqbufs); in mtk_mdp_m2m_reqbufs() [all …]
|
/drivers/staging/media/meson/vdec/ |
D | vdec.c | 156 v4l2_m2m_job_finish(sess->m2m_dev, sess->m2m_ctx); in vdec_m2m_job_abort() 265 struct v4l2_m2m_ctx *m2m_ctx = sess->m2m_ctx; in vdec_vb2_buf_queue() local 267 v4l2_m2m_buf_queue(m2m_ctx, vbuf); in vdec_vb2_buf_queue() 352 while ((buf = v4l2_m2m_src_buf_remove(sess->m2m_ctx))) in vdec_start_streaming() 354 while ((buf = v4l2_m2m_dst_buf_remove(sess->m2m_ctx))) in vdec_start_streaming() 422 while ((buf = v4l2_m2m_src_buf_remove(sess->m2m_ctx))) in vdec_stop_streaming() 431 while ((buf = v4l2_m2m_dst_buf_remove(sess->m2m_ctx))) in vdec_stop_streaming() 731 v4l2_m2m_clear_state(sess->m2m_ctx); in vdec_decoder_cmd() 744 v4l2_m2m_mark_stopped(sess->m2m_ctx); in vdec_decoder_cmd() 891 sess->m2m_ctx = v4l2_m2m_ctx_init(sess->m2m_dev, sess, m2m_queue_init); in vdec_open() [all …]
|
D | codec_hevc_common.c | 62 u32 buf_num = v4l2_m2m_num_dst_bufs_ready(sess->m2m_ctx); in codec_hevc_setup_buffers_gxbb() 71 v4l2_m2m_for_each_dst_buf(sess->m2m_ctx, buf) { in codec_hevc_setup_buffers_gxbb() 124 v4l2_m2m_for_each_dst_buf(sess->m2m_ctx, buf) { in codec_hevc_setup_buffers_gxl() 178 v4l2_m2m_for_each_dst_buf(sess->m2m_ctx, buf) { in codec_hevc_alloc_fbc_buffers() 231 v4l2_m2m_for_each_dst_buf(sess->m2m_ctx, buf) { in codec_hevc_alloc_mmu_headers()
|
/drivers/media/test-drivers/ |
D | vim2m.c | 574 if (v4l2_m2m_num_src_bufs_ready(ctx->fh.m2m_ctx) < ctx->translen in job_ready() 575 || v4l2_m2m_num_dst_bufs_ready(ctx->fh.m2m_ctx) < ctx->translen) { in job_ready() 602 src_buf = v4l2_m2m_next_src_buf(ctx->fh.m2m_ctx); in device_run() 603 dst_buf = v4l2_m2m_next_dst_buf(ctx->fh.m2m_ctx); in device_run() 634 src_vb = v4l2_m2m_src_buf_remove(curr_ctx->fh.m2m_ctx); in device_work() 635 dst_vb = v4l2_m2m_dst_buf_remove(curr_ctx->fh.m2m_ctx); in device_work() 646 v4l2_m2m_job_finish(vim2m_dev->m2m_dev, curr_ctx->fh.m2m_ctx); in device_work() 734 vq = v4l2_m2m_get_vq(ctx->fh.m2m_ctx, f->type); in vidioc_g_fmt() 848 vq = v4l2_m2m_get_vq(ctx->fh.m2m_ctx, f->type); in vidioc_s_fmt() 1061 v4l2_m2m_buf_queue(ctx->fh.m2m_ctx, vbuf); in vim2m_buf_queue() [all …]
|
/drivers/media/platform/sti/bdisp/ |
D | bdisp-v4l2.c | 185 if (WARN(!ctx || !ctx->fh.m2m_ctx, "Null hardware context\n")) in bdisp_job_finish() 190 src_vb = v4l2_m2m_src_buf_remove(ctx->fh.m2m_ctx); in bdisp_job_finish() 191 dst_vb = v4l2_m2m_dst_buf_remove(ctx->fh.m2m_ctx); in bdisp_job_finish() 204 ctx->fh.m2m_ctx); in bdisp_job_finish() 290 src_vb = v4l2_m2m_next_src_buf(ctx->fh.m2m_ctx); in bdisp_get_bufs() 295 dst_vb = v4l2_m2m_next_dst_buf(ctx->fh.m2m_ctx); in bdisp_get_bufs() 494 if (ctx->fh.m2m_ctx) in bdisp_buf_queue() 495 v4l2_m2m_buf_queue(ctx->fh.m2m_ctx, vbuf); in bdisp_buf_queue() 508 while ((buf = v4l2_m2m_src_buf_remove(ctx->fh.m2m_ctx))) in bdisp_start_streaming() 511 while ((buf = v4l2_m2m_dst_buf_remove(ctx->fh.m2m_ctx))) in bdisp_start_streaming() [all …]
|
/drivers/media/platform/s5p-jpeg/ |
D | jpeg-core.c | 768 struct vb2_v4l2_buffer *vb = v4l2_m2m_next_src_buf(ctx->fh.m2m_ctx); in exynos4_jpeg_parse_decode_h_tbl() 805 struct vb2_v4l2_buffer *vb = v4l2_m2m_next_src_buf(ctx->fh.m2m_ctx); in exynos4_jpeg_parse_huff_tbl() 864 struct vb2_v4l2_buffer *vb = v4l2_m2m_next_src_buf(ctx->fh.m2m_ctx); in exynos4_jpeg_parse_decode_q_tbl() 895 struct vb2_v4l2_buffer *vb = v4l2_m2m_next_src_buf(ctx->fh.m2m_ctx); in exynos4_jpeg_parse_q_tbl() 984 ctx->fh.m2m_ctx = v4l2_m2m_ctx_init(jpeg->m2m_dev, ctx, queue_init); in s5p_jpeg_open() 985 if (IS_ERR(ctx->fh.m2m_ctx)) { in s5p_jpeg_open() 986 ret = PTR_ERR(ctx->fh.m2m_ctx); in s5p_jpeg_open() 1015 v4l2_m2m_ctx_release(ctx->fh.m2m_ctx); in s5p_jpeg_release() 1338 vq = v4l2_m2m_get_vq(ct->fh.m2m_ctx, f->type); in s5p_jpeg_g_fmt() 1593 vq = v4l2_m2m_get_vq(ct->fh.m2m_ctx, f->type); in s5p_jpeg_s_fmt() [all …]
|