/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 | 405 vq = v4l2_m2m_get_vq(ctx->m2m_ctx, f->type); in vidioc_venc_s_fmt_cap() 468 vq = v4l2_m2m_get_vq(ctx->m2m_ctx, f->type); in vidioc_venc_s_fmt_out() 527 vq = v4l2_m2m_get_vq(ctx->m2m_ctx, f->type); in vidioc_venc_g_fmt() 668 return v4l2_m2m_qbuf(file, ctx->m2m_ctx, buf); in vidioc_venc_qbuf() 682 return v4l2_m2m_dqbuf(file, ctx->m2m_ctx, buf); in vidioc_venc_dqbuf() 791 v4l2_m2m_buf_queue(ctx->m2m_ctx, to_vb2_v4l2_buffer(vb)); in vb2ops_venc_buf_queue() 811 if (!vb2_start_streaming_called(&ctx->m2m_ctx->cap_q_ctx.q)) in vb2ops_venc_start_streaming() 814 if (!vb2_start_streaming_called(&ctx->m2m_ctx->out_q_ctx.q)) in vb2ops_venc_start_streaming() 883 while ((dst_buf = v4l2_m2m_dst_buf_remove(ctx->m2m_ctx))) { in vb2ops_venc_stop_streaming() 888 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/imx-jpeg/ |
D | mxc-jpeg.c | 552 if (v4l2_m2m_is_last_draining_src_buf(ctx->fh.m2m_ctx, src_buf)) { in mxc_jpeg_check_and_set_last_buffer() 554 v4l2_m2m_mark_stopped(ctx->fh.m2m_ctx); in mxc_jpeg_check_and_set_last_buffer() 595 dst_buf = v4l2_m2m_next_dst_buf(ctx->fh.m2m_ctx); in mxc_jpeg_dec_irq() 596 src_buf = v4l2_m2m_next_src_buf(ctx->fh.m2m_ctx); in mxc_jpeg_dec_irq() 658 v4l2_m2m_src_buf_remove(ctx->fh.m2m_ctx); in mxc_jpeg_dec_irq() 659 v4l2_m2m_dst_buf_remove(ctx->fh.m2m_ctx); in mxc_jpeg_dec_irq() 663 v4l2_m2m_job_finish(jpeg->m2m_dev, ctx->fh.m2m_ctx); in mxc_jpeg_dec_irq() 998 src_buf = v4l2_m2m_next_src_buf(ctx->fh.m2m_ctx); in mxc_jpeg_device_run() 999 dst_buf = v4l2_m2m_next_dst_buf(ctx->fh.m2m_ctx); in mxc_jpeg_device_run() 1025 v4l2_m2m_src_buf_remove(ctx->fh.m2m_ctx); in mxc_jpeg_device_run() [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 | 836 if (!v4l2_m2m_get_vq(ctx->fh.m2m_ctx, f->type)) in jpu_try_fmt() 846 struct v4l2_m2m_ctx *m2m_ctx = ctx->fh.m2m_ctx; in jpu_s_fmt() local 851 vq = v4l2_m2m_get_vq(m2m_ctx, f->type); in jpu_s_fmt() 877 if (!v4l2_m2m_get_vq(ctx->fh.m2m_ctx, f->type)) in jpu_g_fmt() 939 return v4l2_m2m_streamon(file, ctx->fh.m2m_ctx, type); in jpu_streamon() 1111 if (ctx->fh.m2m_ctx) in jpu_buf_queue() 1112 v4l2_m2m_buf_queue(ctx->fh.m2m_ctx, vbuf); in jpu_buf_queue() 1164 vb = v4l2_m2m_src_buf_remove(ctx->fh.m2m_ctx); in jpu_stop_streaming() 1166 vb = v4l2_m2m_dst_buf_remove(ctx->fh.m2m_ctx); in jpu_stop_streaming() 1250 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 | 291 vq = v4l2_m2m_get_vq(ctx->fh.m2m_ctx, in rkvdec_s_capture_fmt() 308 struct v4l2_m2m_ctx *m2m_ctx = ctx->fh.m2m_ctx; in rkvdec_s_output_fmt() local 319 vq = v4l2_m2m_get_vq(m2m_ctx, V4L2_BUF_TYPE_VIDEO_OUTPUT_MPLANE); in rkvdec_s_output_fmt() 330 peer_vq = v4l2_m2m_get_vq(m2m_ctx, V4L2_BUF_TYPE_VIDEO_CAPTURE_MPLANE); in rkvdec_s_output_fmt() 501 v4l2_m2m_buf_queue(ctx->fh.m2m_ctx, vbuf); in rkvdec_buf_queue() 549 vbuf = v4l2_m2m_src_buf_remove(ctx->fh.m2m_ctx); in rkvdec_queue_cleanup() 551 vbuf = v4l2_m2m_dst_buf_remove(ctx->fh.m2m_ctx); in rkvdec_queue_cleanup() 615 src_buf = v4l2_m2m_next_src_buf(ctx->fh.m2m_ctx); in rkvdec_job_finish_no_pm() 616 dst_buf = v4l2_m2m_next_dst_buf(ctx->fh.m2m_ctx); in rkvdec_job_finish_no_pm() 620 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/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/media/platform/meson/ge2d/ |
D | ge2d.c | 282 ctx->in.buf = v4l2_m2m_next_src_buf(ctx->fh.m2m_ctx); in device_run() 283 ctx->out.buf = v4l2_m2m_next_dst_buf(ctx->fh.m2m_ctx); in device_run() 301 src = v4l2_m2m_src_buf_remove(ctx->fh.m2m_ctx); in ge2d_isr() 302 dst = v4l2_m2m_dst_buf_remove(ctx->fh.m2m_ctx); in ge2d_isr() 313 v4l2_m2m_job_finish(ge2d->m2m_dev, ctx->fh.m2m_ctx); in ge2d_isr() 357 v4l2_m2m_buf_queue(ctx->fh.m2m_ctx, vbuf); in ge2d_buf_queue() 379 vbuf = v4l2_m2m_src_buf_remove(ctx->fh.m2m_ctx); in ge2d_stop_streaming() 381 vbuf = v4l2_m2m_dst_buf_remove(ctx->fh.m2m_ctx); in ge2d_stop_streaming() 608 vq = v4l2_m2m_get_vq(ctx->fh.m2m_ctx, f->type); in vidioc_s_fmt_cap() 635 vq = v4l2_m2m_get_vq(ctx->fh.m2m_ctx, f->type); in vidioc_g_fmt() [all …]
|
/drivers/media/platform/qcom/venus/ |
D | helpers.c | 390 struct v4l2_m2m_ctx *m2m_ctx = inst->m2m_ctx; in return_buf_error() local 393 v4l2_m2m_src_buf_remove_by_buf(m2m_ctx, vbuf); in return_buf_error() 395 v4l2_m2m_dst_buf_remove_by_buf(m2m_ctx, vbuf); in return_buf_error() 1359 struct v4l2_m2m_ctx *m2m_ctx = inst->m2m_ctx; in venus_helper_find_buf() local 1362 return v4l2_m2m_src_buf_remove_by_idx(m2m_ctx, idx); in venus_helper_find_buf() 1364 return v4l2_m2m_dst_buf_remove_by_idx(m2m_ctx, idx); in venus_helper_find_buf() 1424 struct v4l2_m2m_ctx *m2m_ctx = inst->m2m_ctx; in venus_helper_vb2_buf_queue() local 1427 v4l2_m2m_buf_queue(m2m_ctx, vbuf); in venus_helper_vb2_buf_queue() 1459 while ((buf = v4l2_m2m_src_buf_remove(inst->m2m_ctx))) in venus_helper_buffers_done() 1462 while ((buf = v4l2_m2m_dst_buf_remove(inst->m2m_ctx))) in venus_helper_buffers_done() [all …]
|
/drivers/staging/media/hantro/ |
D | hantro_postproc.c | 87 dst_buf = v4l2_m2m_next_dst_buf(ctx->fh.m2m_ctx); in hantro_postproc_enable() 124 struct v4l2_m2m_ctx *m2m_ctx = ctx->fh.m2m_ctx; in hantro_postproc_alloc() local 125 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 | 406 return v4l2_m2m_src_buf_remove(ctx->m2m_ctx); in mtk_mdp_m2m_buf_remove() 408 return v4l2_m2m_dst_buf_remove(ctx->m2m_ctx); in mtk_mdp_m2m_buf_remove() 462 src_vbuf = v4l2_m2m_next_src_buf(ctx->m2m_ctx); in mtk_mdp_m2m_get_bufs() 465 dst_vbuf = v4l2_m2m_next_dst_buf(ctx->m2m_ctx); in mtk_mdp_m2m_get_bufs() 481 src_vbuf = v4l2_m2m_src_buf_remove(ctx->m2m_ctx); in mtk_mdp_process_done() 482 dst_vbuf = v4l2_m2m_dst_buf_remove(ctx->m2m_ctx); in mtk_mdp_process_done() 491 v4l2_m2m_job_finish(ctx->mdp_dev->m2m_dev, ctx->m2m_ctx); in mtk_mdp_process_done() 578 v4l2_m2m_buf_queue(ctx->m2m_ctx, to_vb2_v4l2_buffer(vb)); in mtk_mdp_m2m_buf_queue() 698 vq = v4l2_m2m_get_vq(ctx->m2m_ctx, f->type); in mtk_mdp_m2m_s_fmt_mplane() 729 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 …]
|
/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/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() 629 src_vb = v4l2_m2m_src_buf_remove(curr_ctx->fh.m2m_ctx); in device_work() 630 dst_vb = v4l2_m2m_dst_buf_remove(curr_ctx->fh.m2m_ctx); in device_work() 641 v4l2_m2m_job_finish(vim2m_dev->m2m_dev, curr_ctx->fh.m2m_ctx); in device_work() 729 vq = v4l2_m2m_get_vq(ctx->fh.m2m_ctx, f->type); in vidioc_g_fmt() 843 vq = v4l2_m2m_get_vq(ctx->fh.m2m_ctx, f->type); in vidioc_s_fmt() 1056 v4l2_m2m_buf_queue(ctx->fh.m2m_ctx, vbuf); in vim2m_buf_queue() [all …]
|