/linux/include/media/ |
A D | v4l2-mem2mem.h | 235 m2m_ctx->next_buf_last = false; in v4l2_m2m_clear_state() 236 m2m_ctx->is_draining = false; in v4l2_m2m_clear_state() 237 m2m_ctx->has_stopped = false; in v4l2_m2m_clear_state() 248 m2m_ctx->next_buf_last = false; in v4l2_m2m_mark_stopped() 249 m2m_ctx->is_draining = false; in v4l2_m2m_mark_stopped() 250 m2m_ctx->has_stopped = true; in v4l2_m2m_mark_stopped() 265 return m2m_ctx->is_draining && m2m_ctx->next_buf_last; in v4l2_m2m_dst_buf_is_last() 277 return m2m_ctx->has_stopped; in v4l2_m2m_has_stopped() 295 return m2m_ctx->is_draining && vbuf == m2m_ctx->last_src_buf; in v4l2_m2m_is_last_draining_src_buf() 717 return &m2m_ctx->out_q_ctx.q; in v4l2_m2m_get_src_vq() [all …]
|
/linux/drivers/media/v4l2-core/ |
A D | v4l2-mem2mem.c | 436 m2m_ctx); in v4l2_m2m_cancel_job() 641 m2m_ctx->last_src_buf = v4l2_m2m_last_src_buf(m2m_ctx); in v4l2_update_last_buf_state() 1172 m2m_ctx = kzalloc(sizeof *m2m_ctx, GFP_KERNEL); in v4l2_m2m_ctx_init() 1173 if (!m2m_ctx) in v4l2_m2m_ctx_init() 1204 return m2m_ctx; in v4l2_m2m_ctx_init() 1206 kfree(m2m_ctx); in v4l2_m2m_ctx_init() 1219 kfree(m2m_ctx); in v4l2_m2m_ctx_release() 1290 WARN_ON(m2m_ctx && m2m_ctx_obj != m2m_ctx); in v4l2_m2m_request_queue() 1302 WARN_ON(!m2m_ctx); in v4l2_m2m_request_queue() 1304 if (m2m_ctx) in v4l2_m2m_request_queue() [all …]
|
/linux/drivers/media/platform/exynos-gsc/ |
A D | gsc-m2m.c | 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() 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() 271 if (ctx->m2m_ctx) in gsc_m2m_buf_queue() 272 v4l2_m2m_buf_queue(ctx->m2m_ctx, vbuf); in gsc_m2m_buf_queue() 333 vq = v4l2_m2m_get_vq(ctx->m2m_ctx, f->type); in gsc_m2m_s_fmt_mplane() 649 if (IS_ERR(ctx->m2m_ctx)) { in gsc_m2m_open() 651 ret = PTR_ERR(ctx->m2m_ctx); in gsc_m2m_open() [all …]
|
/linux/drivers/media/platform/mtk-vcodec/ |
A D | mtk_vcodec_dec_stateful.c | 154 v4l2_m2m_buf_queue(ctx->m2m_ctx, vb); in get_free_buffer() 170 v4l2_m2m_buf_queue(ctx->m2m_ctx, vb); in get_free_buffer() 305 src_buf = v4l2_m2m_next_src_buf(ctx->m2m_ctx); in mtk_vdec_worker() 312 dst_buf = v4l2_m2m_next_dst_buf(ctx->m2m_ctx); in mtk_vdec_worker() 342 src_buf = v4l2_m2m_src_buf_remove(ctx->m2m_ctx); in mtk_vdec_worker() 345 dst_buf = v4l2_m2m_dst_buf_remove(ctx->m2m_ctx); in mtk_vdec_worker() 389 src_buf = v4l2_m2m_src_buf_remove(ctx->m2m_ctx); in mtk_vdec_worker() 405 dst_buf = v4l2_m2m_dst_buf_remove(ctx->m2m_ctx); in mtk_vdec_worker() 454 v4l2_m2m_buf_queue(ctx->m2m_ctx, vb2_v4l2); in vb2ops_vdec_stateful_buf_queue() 473 src_buf = v4l2_m2m_next_src_buf(ctx->m2m_ctx); in vb2ops_vdec_stateful_buf_queue() [all …]
|
A 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() 683 ret = v4l2_m2m_dqbuf(file, ctx->m2m_ctx, buf); in vidioc_venc_dqbuf() 732 dst_vq = v4l2_m2m_get_vq(ctx->m2m_ctx, in vidioc_encoder_cmd() 736 src_vq = v4l2_m2m_get_vq(ctx->m2m_ctx, in vidioc_encoder_cmd() 748 v4l2_m2m_try_schedule(ctx->m2m_ctx); in vidioc_encoder_cmd() 994 v4l2_m2m_buf_queue(ctx->m2m_ctx, in vb2ops_venc_stop_streaming() 1299 ctx->m2m_ctx->q_lock = &ctx->dev->dev_mutex; in mtk_vcodec_enc_set_default_params() [all …]
|
A D | mtk_vcodec_dec_stateless.c | 175 vb2_v4l2_src = v4l2_m2m_next_src_buf(ctx->m2m_ctx); in mtk_vdec_worker() 177 v4l2_m2m_job_finish(dev->m2m_dev_dec, ctx->m2m_ctx); in mtk_vdec_worker() 182 vb2_v4l2_dst = v4l2_m2m_next_dst_buf(ctx->m2m_ctx); in mtk_vdec_worker() 184 v4l2_m2m_job_finish(dev->m2m_dev_dec, ctx->m2m_ctx); in mtk_vdec_worker() 226 v4l2_m2m_buf_done_and_job_finish(dev->m2m_dev_dec, ctx->m2m_ctx, in mtk_vdec_worker() 240 v4l2_m2m_buf_queue(ctx->m2m_ctx, vb2_v4l2); in vb2ops_vdec_stateless_buf_queue() 315 src_vq = v4l2_m2m_get_vq(ctx->m2m_ctx, in mtk_init_vdec_params()
|
A D | mtk_vcodec_dec.c | 77 dst_vq = v4l2_m2m_get_vq(ctx->m2m_ctx, in vidioc_decoder_cmd() 81 src_vq = v4l2_m2m_get_vq(ctx->m2m_ctx, in vidioc_decoder_cmd() 91 v4l2_m2m_buf_queue(ctx->m2m_ctx, &ctx->empty_flush_buf.vb); in vidioc_decoder_cmd() 92 v4l2_m2m_try_schedule(ctx->m2m_ctx); in vidioc_decoder_cmd() 128 ctx->m2m_ctx->q_lock = &ctx->dev->dev_mutex; in mtk_vcodec_dec_set_default_params() 129 ctx->fh.m2m_ctx = ctx->m2m_ctx; in mtk_vcodec_dec_set_default_params() 180 return v4l2_m2m_qbuf(file, ctx->m2m_ctx, buf); in vidioc_vdec_qbuf() 194 return v4l2_m2m_dqbuf(file, ctx->m2m_ctx, buf); in vidioc_vdec_dqbuf() 417 vb2_is_busy(&ctx->m2m_ctx->out_q_ctx.q)) { in vidioc_vdec_s_fmt() 427 vb2_is_busy(&ctx->m2m_ctx->cap_q_ctx.q)) { in vidioc_vdec_s_fmt() [all …]
|
/linux/drivers/staging/media/imx/ |
A D | imx-media-csc-scaler.c | 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() 248 vq = v4l2_m2m_get_vq(ctx->fh.m2m_ctx, f->type); in ipu_csc_scaler_s_fmt() 512 other_q = v4l2_m2m_get_vq(ctx->fh.m2m_ctx, in ipu_csc_scaler_start_streaming() 674 out_q = v4l2_m2m_get_vq(ctx->fh.m2m_ctx, in ipu_csc_scaler_s_ctrl() 687 cap_q = v4l2_m2m_get_vq(ctx->fh.m2m_ctx, in ipu_csc_scaler_s_ctrl() 771 if (IS_ERR(ctx->fh.m2m_ctx)) { in ipu_csc_scaler_open() 772 ret = PTR_ERR(ctx->fh.m2m_ctx); in ipu_csc_scaler_open() 786 ctx->fh.m2m_ctx); in ipu_csc_scaler_open() 791 v4l2_m2m_ctx_release(ctx->fh.m2m_ctx); in ipu_csc_scaler_open() [all …]
|
/linux/drivers/media/test-drivers/vicodec/ |
A D | vicodec-core.c | 285 v4l2_m2m_get_vq(ctx->fh.m2m_ctx, in device_process() 433 v4l2_m2m_mark_stopped(ctx->fh.m2m_ctx); in device_run() 460 ctx->fh.m2m_ctx); in device_run() 674 v4l2_m2m_dst_buf_remove(ctx->fh.m2m_ctx); in job_ready() 1231 v4l2_m2m_has_stopped(ctx->fh.m2m_ctx)) in vicodec_encoder_cmd() 1235 v4l2_m2m_has_stopped(ctx->fh.m2m_ctx)) in vicodec_encoder_cmd() 1260 v4l2_m2m_has_stopped(ctx->fh.m2m_ctx)) in vicodec_decoder_cmd() 1264 v4l2_m2m_has_stopped(ctx->fh.m2m_ctx)) in vicodec_decoder_cmd() 1915 if (IS_ERR(ctx->fh.m2m_ctx)) { in vicodec_open() 1916 rc = PTR_ERR(ctx->fh.m2m_ctx); in vicodec_open() [all …]
|
/linux/drivers/media/platform/mtk-jpeg/ |
A 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() 816 return v4l2_m2m_src_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() 946 v4l2_m2m_src_buf_remove(ctx->fh.m2m_ctx); in mtk_jpeg_enc_device_run() 947 v4l2_m2m_dst_buf_remove(ctx->fh.m2m_ctx); in mtk_jpeg_enc_device_run() 997 v4l2_m2m_src_buf_remove(ctx->fh.m2m_ctx); in mtk_jpeg_dec_device_run() 998 v4l2_m2m_dst_buf_remove(ctx->fh.m2m_ctx); in mtk_jpeg_dec_device_run() 1227 if (IS_ERR(ctx->fh.m2m_ctx)) { in mtk_jpeg_open() 1228 ret = PTR_ERR(ctx->fh.m2m_ctx); in mtk_jpeg_open() [all …]
|
/linux/drivers/media/platform/sti/hva/ |
A 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() 990 if (ctx->fh.m2m_ctx) in hva_buf_queue() 991 v4l2_m2m_buf_queue(ctx->fh.m2m_ctx, vbuf); in hva_buf_queue() 1094 vb2_is_streaming(&ctx->fh.m2m_ctx->out_q_ctx.q), in hva_stop_streaming() 1195 if (IS_ERR(ctx->fh.m2m_ctx)) { in hva_open() 1196 ret = PTR_ERR(ctx->fh.m2m_ctx); in hva_open() [all …]
|
/linux/drivers/media/platform/sunxi/sun8i-rotate/ |
A 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() 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() 471 v4l2_m2m_buf_queue(ctx->fh.m2m_ctx, vbuf); in rotate_buf_queue() 592 vq = v4l2_m2m_get_vq(ctx->fh.m2m_ctx, in rotate_s_ctrl() 669 if (IS_ERR(ctx->fh.m2m_ctx)) { in rotate_open() 670 ret = PTR_ERR(ctx->fh.m2m_ctx); in rotate_open() [all …]
|
/linux/drivers/media/platform/qcom/venus/ |
A D | helpers.c | 421 struct v4l2_m2m_ctx *m2m_ctx = inst->m2m_ctx; in return_buf_error() local 424 v4l2_m2m_src_buf_remove_by_buf(m2m_ctx, vbuf); in return_buf_error() 1396 struct v4l2_m2m_ctx *m2m_ctx = inst->m2m_ctx; in venus_helper_find_buf() local 1479 struct v4l2_m2m_ctx *m2m_ctx = inst->m2m_ctx; in venus_helper_vb2_buf_queue() local 1482 v4l2_m2m_buf_queue(m2m_ctx, vbuf); in venus_helper_vb2_buf_queue() 1570 struct v4l2_m2m_ctx *m2m_ctx = inst->m2m_ctx; in venus_helper_vb2_queue_error() local 1573 q = v4l2_m2m_get_src_vq(m2m_ctx); in venus_helper_vb2_queue_error() 1575 q = v4l2_m2m_get_dst_vq(m2m_ctx); in venus_helper_vb2_queue_error() 1582 struct v4l2_m2m_ctx *m2m_ctx = inst->m2m_ctx; in venus_helper_process_initial_cap_bufs() local 1600 struct v4l2_m2m_ctx *m2m_ctx = inst->m2m_ctx; in venus_helper_process_initial_out_bufs() local [all …]
|
/linux/drivers/media/platform/ |
A 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() 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() 740 if (IS_ERR(ctx->fh.m2m_ctx)) { in emmaprp_open() 741 int ret = PTR_ERR(ctx->fh.m2m_ctx); in emmaprp_open() [all …]
|
A D | m2m-deinterlace.c | 153 if (v4l2_m2m_num_src_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() 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() 784 v4l2_m2m_buf_queue(ctx->fh.m2m_ctx, vbuf); in deinterlace_buf_queue() 855 if (IS_ERR(ctx->fh.m2m_ctx)) { in deinterlace_open() 856 int ret = PTR_ERR(ctx->fh.m2m_ctx); in deinterlace_open() 873 ctx, ctx->fh.m2m_ctx); in deinterlace_open() [all …]
|
A 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() 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() 1251 if (IS_ERR(ctx->fh.m2m_ctx)) { in jpu_open() 1252 ret = PTR_ERR(ctx->fh.m2m_ctx); in jpu_open() [all …]
|
/linux/drivers/media/platform/sunxi/sun8i-di/ |
A 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() 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() 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() 573 vbuf = v4l2_m2m_src_buf_remove(ctx->fh.m2m_ctx); in deinterlace_queue_cleanup() 740 if (IS_ERR(ctx->fh.m2m_ctx)) { in deinterlace_open() 741 ret = PTR_ERR(ctx->fh.m2m_ctx); in deinterlace_open() [all …]
|
/linux/drivers/staging/media/rkvdec/ |
A 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 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() 640 run->bufs.src = v4l2_m2m_next_src_buf(ctx->fh.m2m_ctx); in rkvdec_run_preamble() 797 if (IS_ERR(ctx->fh.m2m_ctx)) { in rkvdec_open() 798 ret = PTR_ERR(ctx->fh.m2m_ctx); in rkvdec_open() [all …]
|
/linux/drivers/media/platform/exynos4-is/ |
A 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() 649 if (IS_ERR(ctx->fh.m2m_ctx)) { in fimc_m2m_open() 650 ret = PTR_ERR(ctx->fh.m2m_ctx); in fimc_m2m_open() 665 v4l2_m2m_ctx_release(ctx->fh.m2m_ctx); in fimc_m2m_open() [all …]
|
/linux/drivers/media/platform/meson/ge2d/ |
A D | ge2d.c | 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() 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() 683 vq = v4l2_m2m_get_vq(ctx->fh.m2m_ctx, f->type); in vidioc_s_fmt_out() 853 if (IS_ERR(ctx->fh.m2m_ctx)) { in ge2d_open() 854 ret = PTR_ERR(ctx->fh.m2m_ctx); in ge2d_open() [all …]
|
/linux/drivers/staging/media/hantro/ |
A D | hantro_postproc.c | 93 dst_buf = v4l2_m2m_next_dst_buf(ctx->fh.m2m_ctx); in hantro_postproc_enable() 130 struct v4l2_m2m_ctx *m2m_ctx = ctx->fh.m2m_ctx; in hantro_postproc_alloc() local 131 struct vb2_queue *cap_queue = &m2m_ctx->cap_q_ctx.q; in hantro_postproc_alloc()
|
/linux/drivers/media/platform/s5p-g2d/ |
A D | g2d.c | 129 v4l2_m2m_buf_queue(ctx->fh.m2m_ctx, vbuf); in g2d_buf_queue() 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() 554 dst = v4l2_m2m_dst_buf_remove(ctx->fh.m2m_ctx); in g2d_isr() [all …]
|
/linux/drivers/media/platform/mtk-mdp/ |
A 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() 698 vq = v4l2_m2m_get_vq(ctx->m2m_ctx, f->type); in mtk_mdp_m2m_s_fmt_mplane() 1086 if (IS_ERR(ctx->m2m_ctx)) { in mtk_mdp_m2m_open() 1088 ret = PTR_ERR(ctx->m2m_ctx); in mtk_mdp_m2m_open() 1091 ctx->fh.m2m_ctx = ctx->m2m_ctx; in mtk_mdp_m2m_open() 1127 v4l2_m2m_ctx_release(ctx->m2m_ctx); in mtk_mdp_m2m_open() [all …]
|
/linux/drivers/staging/media/meson/vdec/ |
A 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() 731 v4l2_m2m_clear_state(sess->m2m_ctx); in vdec_decoder_cmd() 744 v4l2_m2m_mark_stopped(sess->m2m_ctx); in vdec_decoder_cmd() 892 if (IS_ERR(sess->m2m_ctx)) { in vdec_open() 894 ret = PTR_ERR(sess->m2m_ctx); in vdec_open() 920 sess->fh.m2m_ctx = sess->m2m_ctx; in vdec_open() [all …]
|
/linux/drivers/media/platform/sti/bdisp/ |
A D | bdisp-v4l2.c | 190 src_vb = v4l2_m2m_src_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() 618 if (IS_ERR(ctx->fh.m2m_ctx)) { in bdisp_open() 620 ret = PTR_ERR(ctx->fh.m2m_ctx); in bdisp_open() 656 v4l2_m2m_ctx_release(ctx->fh.m2m_ctx); in bdisp_release() 806 vq = v4l2_m2m_get_vq(ctx->fh.m2m_ctx, f->type); in bdisp_s_fmt() [all …]
|