/linux-6.6.21/drivers/staging/media/sunxi/cedrus/ |
D | cedrus_video.c | 578 struct vb2_queue *dst_vq) in cedrus_queue_init() argument 599 dst_vq->type = V4L2_BUF_TYPE_VIDEO_CAPTURE; in cedrus_queue_init() 600 dst_vq->io_modes = VB2_MMAP | VB2_DMABUF; in cedrus_queue_init() 601 dst_vq->drv_priv = ctx; in cedrus_queue_init() 602 dst_vq->buf_struct_size = sizeof(struct cedrus_buffer); in cedrus_queue_init() 603 dst_vq->ops = &cedrus_qops; in cedrus_queue_init() 604 dst_vq->mem_ops = &vb2_dma_contig_memops; in cedrus_queue_init() 605 dst_vq->timestamp_flags = V4L2_BUF_FLAG_TIMESTAMP_COPY; in cedrus_queue_init() 606 dst_vq->lock = &ctx->dev->dev_mutex; in cedrus_queue_init() 607 dst_vq->dev = ctx->dev->dev; in cedrus_queue_init() [all …]
|
/linux-6.6.21/drivers/media/platform/samsung/exynos-gsc/ |
D | gsc-m2m.c | 572 struct vb2_queue *dst_vq) in queue_init() argument 592 memset(dst_vq, 0, sizeof(*dst_vq)); in queue_init() 593 dst_vq->type = V4L2_BUF_TYPE_VIDEO_CAPTURE_MPLANE; in queue_init() 594 dst_vq->io_modes = VB2_MMAP | VB2_USERPTR | VB2_DMABUF; in queue_init() 595 dst_vq->drv_priv = ctx; in queue_init() 596 dst_vq->ops = &gsc_m2m_qops; in queue_init() 597 dst_vq->mem_ops = &vb2_dma_contig_memops; in queue_init() 598 dst_vq->buf_struct_size = sizeof(struct v4l2_m2m_buffer); in queue_init() 599 dst_vq->timestamp_flags = V4L2_BUF_FLAG_TIMESTAMP_COPY; in queue_init() 600 dst_vq->lock = &ctx->gsc_dev->lock; in queue_init() [all …]
|
/linux-6.6.21/drivers/media/platform/amphion/ |
D | vpu_v4l2.c | 637 static int vpu_m2m_queue_init(void *priv, struct vb2_queue *src_vq, struct vb2_queue *dst_vq) in vpu_m2m_queue_init() argument 659 dst_vq->type = V4L2_BUF_TYPE_VIDEO_CAPTURE_MPLANE; in vpu_m2m_queue_init() 660 inst->cap_format.type = dst_vq->type; in vpu_m2m_queue_init() 661 dst_vq->io_modes = VB2_MMAP | VB2_DMABUF; in vpu_m2m_queue_init() 662 dst_vq->timestamp_flags = V4L2_BUF_FLAG_TIMESTAMP_COPY; in vpu_m2m_queue_init() 663 dst_vq->ops = &vpu_vb2_ops; in vpu_m2m_queue_init() 664 dst_vq->mem_ops = &vb2_dma_contig_memops; in vpu_m2m_queue_init() 666 dst_vq->mem_ops = &vb2_vmalloc_memops; in vpu_m2m_queue_init() 667 dst_vq->drv_priv = inst; in vpu_m2m_queue_init() 668 dst_vq->buf_struct_size = sizeof(struct vpu_vb2_buffer); in vpu_m2m_queue_init() [all …]
|
/linux-6.6.21/drivers/media/platform/mediatek/vcodec/decoder/ |
D | mtk_vcodec_dec.c | 94 struct vb2_queue *src_vq, *dst_vq; in vidioc_decoder_cmd() local 102 dst_vq = v4l2_m2m_get_vq(ctx->m2m_ctx, in vidioc_decoder_cmd() 112 if (!vb2_is_streaming(dst_vq)) { in vidioc_decoder_cmd() 121 vb2_clear_last_buffer_dequeued(dst_vq); in vidioc_decoder_cmd() 981 struct vb2_queue *dst_vq) in mtk_vcodec_dec_queue_init() argument 1004 dst_vq->type = V4L2_BUF_TYPE_VIDEO_CAPTURE_MPLANE; in mtk_vcodec_dec_queue_init() 1005 dst_vq->io_modes = VB2_DMABUF | VB2_MMAP; in mtk_vcodec_dec_queue_init() 1006 dst_vq->drv_priv = ctx; in mtk_vcodec_dec_queue_init() 1007 dst_vq->buf_struct_size = sizeof(struct mtk_video_dec_buf); in mtk_vcodec_dec_queue_init() 1008 dst_vq->ops = ctx->dev->vdec_pdata->vdec_vb2_ops; in mtk_vcodec_dec_queue_init() [all …]
|
/linux-6.6.21/drivers/media/platform/st/stm32/dma2d/ |
D | dma2d.c | 194 struct vb2_queue *dst_vq) in queue_init() argument 213 dst_vq->type = V4L2_BUF_TYPE_VIDEO_CAPTURE; in queue_init() 214 dst_vq->io_modes = VB2_MMAP | VB2_DMABUF; in queue_init() 215 dst_vq->drv_priv = ctx; in queue_init() 216 dst_vq->ops = &dma2d_qops; in queue_init() 217 dst_vq->mem_ops = &vb2_dma_contig_memops; in queue_init() 218 dst_vq->buf_struct_size = sizeof(struct v4l2_m2m_buffer); in queue_init() 219 dst_vq->timestamp_flags = V4L2_BUF_FLAG_TIMESTAMP_COPY; in queue_init() 220 dst_vq->lock = &ctx->dev->mutex; in queue_init() 221 dst_vq->dev = ctx->dev->v4l2_dev.dev; in queue_init() [all …]
|
/linux-6.6.21/drivers/staging/media/imx/ |
D | imx-media-csc-scaler.c | 582 struct vb2_queue *dst_vq) in ipu_csc_scaler_queue_init() argument 602 memset(dst_vq, 0, sizeof(*dst_vq)); in ipu_csc_scaler_queue_init() 603 dst_vq->type = V4L2_BUF_TYPE_VIDEO_CAPTURE; in ipu_csc_scaler_queue_init() 604 dst_vq->io_modes = VB2_MMAP | VB2_DMABUF; in ipu_csc_scaler_queue_init() 605 dst_vq->drv_priv = ctx; in ipu_csc_scaler_queue_init() 606 dst_vq->buf_struct_size = sizeof(struct v4l2_m2m_buffer); in ipu_csc_scaler_queue_init() 607 dst_vq->ops = &ipu_csc_scaler_qops; in ipu_csc_scaler_queue_init() 608 dst_vq->mem_ops = &vb2_dma_contig_memops; in ipu_csc_scaler_queue_init() 609 dst_vq->timestamp_flags = V4L2_BUF_FLAG_TIMESTAMP_COPY; in ipu_csc_scaler_queue_init() 610 dst_vq->lock = &ctx->priv->mutex; in ipu_csc_scaler_queue_init() [all …]
|
/linux-6.6.21/drivers/media/platform/sunxi/sun8i-rotate/ |
D | sun8i_rotate.c | 530 struct vb2_queue *dst_vq) in rotate_queue_init() argument 550 dst_vq->type = V4L2_BUF_TYPE_VIDEO_CAPTURE; in rotate_queue_init() 551 dst_vq->io_modes = VB2_MMAP | VB2_DMABUF; in rotate_queue_init() 552 dst_vq->drv_priv = ctx; in rotate_queue_init() 553 dst_vq->buf_struct_size = sizeof(struct v4l2_m2m_buffer); in rotate_queue_init() 554 dst_vq->min_buffers_needed = 2; in rotate_queue_init() 555 dst_vq->ops = &rotate_qops; in rotate_queue_init() 556 dst_vq->mem_ops = &vb2_dma_contig_memops; in rotate_queue_init() 557 dst_vq->timestamp_flags = V4L2_BUF_FLAG_TIMESTAMP_COPY; in rotate_queue_init() 558 dst_vq->lock = &ctx->dev->dev_mutex; in rotate_queue_init() [all …]
|
/linux-6.6.21/drivers/media/platform/mediatek/mdp3/ |
D | mtk-mdp3-m2m.c | 467 struct vb2_queue *dst_vq) in mdp_m2m_queue_init() argument 486 dst_vq->type = V4L2_BUF_TYPE_VIDEO_CAPTURE_MPLANE; in mdp_m2m_queue_init() 487 dst_vq->io_modes = VB2_MMAP | VB2_DMABUF; in mdp_m2m_queue_init() 488 dst_vq->ops = &mdp_m2m_qops; in mdp_m2m_queue_init() 489 dst_vq->mem_ops = &vb2_dma_contig_memops; in mdp_m2m_queue_init() 490 dst_vq->drv_priv = ctx; in mdp_m2m_queue_init() 491 dst_vq->buf_struct_size = sizeof(struct v4l2_m2m_buffer); in mdp_m2m_queue_init() 492 dst_vq->timestamp_flags = V4L2_BUF_FLAG_TIMESTAMP_COPY; in mdp_m2m_queue_init() 493 dst_vq->dev = &ctx->mdp_dev->pdev->dev; in mdp_m2m_queue_init() 494 dst_vq->lock = &ctx->ctx_lock; in mdp_m2m_queue_init() [all …]
|
/linux-6.6.21/drivers/media/platform/samsung/exynos4-is/ |
D | fimc-m2m.c | 548 struct vb2_queue *dst_vq) in queue_init() argument 567 dst_vq->type = V4L2_BUF_TYPE_VIDEO_CAPTURE_MPLANE; in queue_init() 568 dst_vq->io_modes = VB2_MMAP | VB2_USERPTR | VB2_DMABUF; in queue_init() 569 dst_vq->drv_priv = ctx; in queue_init() 570 dst_vq->ops = &fimc_qops; in queue_init() 571 dst_vq->mem_ops = &vb2_dma_contig_memops; in queue_init() 572 dst_vq->buf_struct_size = sizeof(struct v4l2_m2m_buffer); in queue_init() 573 dst_vq->timestamp_flags = V4L2_BUF_FLAG_TIMESTAMP_COPY; in queue_init() 574 dst_vq->lock = &ctx->fimc_dev->lock; in queue_init() 575 dst_vq->dev = &ctx->fimc_dev->pdev->dev; in queue_init() [all …]
|
/linux-6.6.21/drivers/media/platform/samsung/s5p-g2d/ |
D | g2d.c | 141 struct vb2_queue *dst_vq) in queue_init() argument 160 dst_vq->type = V4L2_BUF_TYPE_VIDEO_CAPTURE; in queue_init() 161 dst_vq->io_modes = VB2_MMAP | VB2_USERPTR; in queue_init() 162 dst_vq->drv_priv = ctx; in queue_init() 163 dst_vq->ops = &g2d_qops; in queue_init() 164 dst_vq->mem_ops = &vb2_dma_contig_memops; in queue_init() 165 dst_vq->buf_struct_size = sizeof(struct v4l2_m2m_buffer); in queue_init() 166 dst_vq->timestamp_flags = V4L2_BUF_FLAG_TIMESTAMP_COPY; in queue_init() 167 dst_vq->lock = &ctx->dev->mutex; in queue_init() 168 dst_vq->dev = ctx->dev->v4l2_dev.dev; in queue_init() [all …]
|
/linux-6.6.21/drivers/media/platform/nxp/imx8-isi/ |
D | imx8-isi-m2m.c | 279 struct vb2_queue *dst_vq) in mxc_isi_m2m_queue_init() argument 299 dst_vq->type = V4L2_BUF_TYPE_VIDEO_CAPTURE_MPLANE; in mxc_isi_m2m_queue_init() 300 dst_vq->io_modes = VB2_MMAP | VB2_DMABUF; in mxc_isi_m2m_queue_init() 301 dst_vq->drv_priv = ctx; in mxc_isi_m2m_queue_init() 302 dst_vq->buf_struct_size = sizeof(struct mxc_isi_m2m_buffer); in mxc_isi_m2m_queue_init() 303 dst_vq->ops = &mxc_isi_m2m_vb2_qops; in mxc_isi_m2m_queue_init() 304 dst_vq->mem_ops = &vb2_dma_contig_memops; in mxc_isi_m2m_queue_init() 305 dst_vq->timestamp_flags = V4L2_BUF_FLAG_TIMESTAMP_COPY; in mxc_isi_m2m_queue_init() 306 dst_vq->lock = &ctx->vb2_lock; in mxc_isi_m2m_queue_init() 307 dst_vq->dev = m2m->isi->dev; in mxc_isi_m2m_queue_init() [all …]
|
/linux-6.6.21/drivers/media/platform/nxp/ |
D | mx2_emmaprp.c | 685 struct vb2_queue *dst_vq) in queue_init() argument 704 dst_vq->type = V4L2_BUF_TYPE_VIDEO_CAPTURE; in queue_init() 705 dst_vq->io_modes = VB2_MMAP | VB2_USERPTR | VB2_DMABUF; in queue_init() 706 dst_vq->drv_priv = ctx; in queue_init() 707 dst_vq->buf_struct_size = sizeof(struct v4l2_m2m_buffer); in queue_init() 708 dst_vq->ops = &emmaprp_qops; in queue_init() 709 dst_vq->mem_ops = &vb2_dma_contig_memops; in queue_init() 710 dst_vq->timestamp_flags = V4L2_BUF_FLAG_TIMESTAMP_COPY; in queue_init() 711 dst_vq->dev = ctx->dev->v4l2_dev.dev; in queue_init() 712 dst_vq->lock = &ctx->dev->dev_mutex; in queue_init() [all …]
|
/linux-6.6.21/drivers/media/test-drivers/visl/ |
D | visl-video.c | 706 struct vb2_queue *dst_vq) in visl_queue_init() argument 726 dst_vq->type = V4L2_BUF_TYPE_VIDEO_CAPTURE_MPLANE; in visl_queue_init() 727 dst_vq->io_modes = VB2_MMAP | VB2_DMABUF; in visl_queue_init() 728 dst_vq->drv_priv = ctx; in visl_queue_init() 729 dst_vq->buf_struct_size = sizeof(struct v4l2_m2m_buffer); in visl_queue_init() 730 dst_vq->ops = &visl_qops; in visl_queue_init() 731 dst_vq->mem_ops = &vb2_vmalloc_memops; in visl_queue_init() 732 dst_vq->timestamp_flags = V4L2_BUF_FLAG_TIMESTAMP_COPY; in visl_queue_init() 733 dst_vq->lock = &ctx->vb_mutex; in visl_queue_init() 735 return vb2_queue_init(dst_vq); in visl_queue_init()
|
/linux-6.6.21/drivers/media/platform/verisilicon/ |
D | hantro_drv.c | 203 queue_init(void *priv, struct vb2_queue *src_vq, struct vb2_queue *dst_vq) in queue_init() argument 231 dst_vq->bidirectional = true; in queue_init() 232 dst_vq->mem_ops = &vb2_dma_contig_memops; in queue_init() 233 dst_vq->dma_attrs = DMA_ATTR_ALLOC_SINGLE_PAGES; in queue_init() 239 dst_vq->dma_attrs |= DMA_ATTR_NO_KERNEL_MAPPING; in queue_init() 241 dst_vq->type = V4L2_BUF_TYPE_VIDEO_CAPTURE_MPLANE; in queue_init() 242 dst_vq->io_modes = VB2_MMAP | VB2_DMABUF; in queue_init() 243 dst_vq->drv_priv = ctx; in queue_init() 244 dst_vq->ops = &hantro_queue_ops; in queue_init() 245 dst_vq->buf_struct_size = sizeof(struct hantro_decoded_buffer); in queue_init() [all …]
|
/linux-6.6.21/drivers/media/platform/sunxi/sun8i-di/ |
D | sun8i-di.c | 667 struct vb2_queue *dst_vq) in deinterlace_queue_init() argument 687 dst_vq->type = V4L2_BUF_TYPE_VIDEO_CAPTURE; in deinterlace_queue_init() 688 dst_vq->io_modes = VB2_MMAP | VB2_DMABUF; in deinterlace_queue_init() 689 dst_vq->drv_priv = ctx; in deinterlace_queue_init() 690 dst_vq->buf_struct_size = sizeof(struct v4l2_m2m_buffer); in deinterlace_queue_init() 691 dst_vq->min_buffers_needed = 2; in deinterlace_queue_init() 692 dst_vq->ops = &deinterlace_qops; in deinterlace_queue_init() 693 dst_vq->mem_ops = &vb2_dma_contig_memops; in deinterlace_queue_init() 694 dst_vq->timestamp_flags = V4L2_BUF_FLAG_TIMESTAMP_COPY; in deinterlace_queue_init() 695 dst_vq->lock = &ctx->dev->dev_mutex; in deinterlace_queue_init() [all …]
|
/linux-6.6.21/drivers/media/platform/nvidia/tegra-vde/ |
D | v4l2.c | 337 struct vb2_queue *dst_vq) in tegra_queue_init() argument 386 dst_vq->buf_struct_size = sizeof(struct tegra_m2m_buffer); in tegra_queue_init() 387 dst_vq->timestamp_flags = V4L2_BUF_FLAG_TIMESTAMP_COPY; in tegra_queue_init() 388 dst_vq->type = V4L2_BUF_TYPE_VIDEO_CAPTURE_MPLANE; in tegra_queue_init() 389 dst_vq->io_modes = VB2_DMABUF | VB2_MMAP; in tegra_queue_init() 390 dst_vq->lock = &vde->v4l2_lock; in tegra_queue_init() 391 dst_vq->dma_attrs = dma_attrs; in tegra_queue_init() 392 dst_vq->mem_ops = mem_ops; in tegra_queue_init() 393 dst_vq->ops = &tegra_qops; in tegra_queue_init() 394 dst_vq->drv_priv = ctx; in tegra_queue_init() [all …]
|
/linux-6.6.21/drivers/media/platform/rockchip/rga/ |
D | rga.c | 94 queue_init(void *priv, struct vb2_queue *src_vq, struct vb2_queue *dst_vq) in queue_init() argument 113 dst_vq->type = V4L2_BUF_TYPE_VIDEO_CAPTURE; in queue_init() 114 dst_vq->io_modes = VB2_MMAP | VB2_DMABUF; in queue_init() 115 dst_vq->drv_priv = ctx; in queue_init() 116 dst_vq->ops = &rga_qops; in queue_init() 117 dst_vq->mem_ops = &vb2_dma_sg_memops; in queue_init() 118 dst_vq->buf_struct_size = sizeof(struct v4l2_m2m_buffer); in queue_init() 119 dst_vq->timestamp_flags = V4L2_BUF_FLAG_TIMESTAMP_COPY; in queue_init() 120 dst_vq->lock = &ctx->rga->mutex; in queue_init() 121 dst_vq->dev = ctx->rga->v4l2_dev.dev; in queue_init() [all …]
|
/linux-6.6.21/drivers/staging/media/rkvdec/ |
D | rkvdec.c | 719 struct vb2_queue *dst_vq) in rkvdec_queue_init() argument 749 dst_vq->bidirectional = true; in rkvdec_queue_init() 750 dst_vq->mem_ops = &vb2_dma_contig_memops; in rkvdec_queue_init() 751 dst_vq->dma_attrs = DMA_ATTR_ALLOC_SINGLE_PAGES | in rkvdec_queue_init() 753 dst_vq->type = V4L2_BUF_TYPE_VIDEO_CAPTURE_MPLANE; in rkvdec_queue_init() 754 dst_vq->io_modes = VB2_MMAP | VB2_DMABUF; in rkvdec_queue_init() 755 dst_vq->drv_priv = ctx; in rkvdec_queue_init() 756 dst_vq->ops = &rkvdec_queue_ops; in rkvdec_queue_init() 757 dst_vq->buf_struct_size = sizeof(struct rkvdec_decoded_buffer); in rkvdec_queue_init() 758 dst_vq->timestamp_flags = V4L2_BUF_FLAG_TIMESTAMP_COPY; in rkvdec_queue_init() [all …]
|
/linux-6.6.21/drivers/media/platform/ |
D | m2m-deinterlace.c | 796 struct vb2_queue *dst_vq) in queue_init() argument 820 dst_vq->type = V4L2_BUF_TYPE_VIDEO_CAPTURE; in queue_init() 821 dst_vq->io_modes = VB2_MMAP | VB2_USERPTR | VB2_DMABUF; in queue_init() 822 dst_vq->drv_priv = ctx; in queue_init() 823 dst_vq->buf_struct_size = sizeof(struct v4l2_m2m_buffer); in queue_init() 824 dst_vq->ops = &deinterlace_qops; in queue_init() 825 dst_vq->mem_ops = &vb2_dma_contig_memops; in queue_init() 826 dst_vq->timestamp_flags = V4L2_BUF_FLAG_TIMESTAMP_COPY; in queue_init() 827 dst_vq->dev = ctx->dev->v4l2_dev.dev; in queue_init() 828 dst_vq->lock = &ctx->dev->dev_mutex; in queue_init() [all …]
|
/linux-6.6.21/drivers/media/platform/mediatek/vcodec/encoder/ |
D | mtk_vcodec_enc.c | 711 struct vb2_queue *src_vq, *dst_vq; in vidioc_encoder_cmd() local 730 dst_vq = v4l2_m2m_get_vq(ctx->m2m_ctx, in vidioc_encoder_cmd() 740 if (!vb2_is_streaming(dst_vq)) { in vidioc_encoder_cmd() 750 vb2_clear_last_buffer_dequeued(dst_vq); in vidioc_encoder_cmd() 1399 struct vb2_queue *dst_vq) in mtk_vcodec_enc_queue_init() argument 1423 dst_vq->type = V4L2_BUF_TYPE_VIDEO_CAPTURE_MPLANE; in mtk_vcodec_enc_queue_init() 1424 dst_vq->io_modes = VB2_DMABUF | VB2_MMAP | VB2_USERPTR; in mtk_vcodec_enc_queue_init() 1425 dst_vq->drv_priv = ctx; in mtk_vcodec_enc_queue_init() 1426 dst_vq->buf_struct_size = sizeof(struct v4l2_m2m_buffer); in mtk_vcodec_enc_queue_init() 1427 dst_vq->ops = &mtk_venc_vb2_ops; in mtk_vcodec_enc_queue_init() [all …]
|
/linux-6.6.21/drivers/staging/media/meson/vdec/ |
D | vdec.c | 815 struct vb2_queue *dst_vq) in m2m_queue_init() argument 834 dst_vq->type = V4L2_BUF_TYPE_VIDEO_CAPTURE_MPLANE; in m2m_queue_init() 835 dst_vq->io_modes = VB2_MMAP | VB2_DMABUF; in m2m_queue_init() 836 dst_vq->timestamp_flags = V4L2_BUF_FLAG_TIMESTAMP_COPY; in m2m_queue_init() 837 dst_vq->ops = &vdec_vb2_ops; in m2m_queue_init() 838 dst_vq->mem_ops = &vb2_dma_contig_memops; in m2m_queue_init() 839 dst_vq->drv_priv = sess; in m2m_queue_init() 840 dst_vq->buf_struct_size = sizeof(struct dummy_buf); in m2m_queue_init() 841 dst_vq->min_buffers_needed = 1; in m2m_queue_init() 842 dst_vq->dev = sess->core->dev; in m2m_queue_init() [all …]
|
/linux-6.6.21/drivers/media/platform/mediatek/mdp/ |
D | mtk_mdp_m2m.c | 919 struct vb2_queue *dst_vq) in mtk_mdp_m2m_queue_init() argument 939 memset(dst_vq, 0, sizeof(*dst_vq)); in mtk_mdp_m2m_queue_init() 940 dst_vq->type = V4L2_BUF_TYPE_VIDEO_CAPTURE_MPLANE; in mtk_mdp_m2m_queue_init() 941 dst_vq->io_modes = VB2_MMAP | VB2_DMABUF; in mtk_mdp_m2m_queue_init() 942 dst_vq->drv_priv = ctx; in mtk_mdp_m2m_queue_init() 943 dst_vq->ops = &mtk_mdp_m2m_qops; in mtk_mdp_m2m_queue_init() 944 dst_vq->mem_ops = &vb2_dma_contig_memops; in mtk_mdp_m2m_queue_init() 945 dst_vq->buf_struct_size = sizeof(struct v4l2_m2m_buffer); in mtk_mdp_m2m_queue_init() 946 dst_vq->timestamp_flags = V4L2_BUF_FLAG_TIMESTAMP_COPY; in mtk_mdp_m2m_queue_init() 947 dst_vq->dev = &ctx->mdp_dev->pdev->dev; in mtk_mdp_m2m_queue_init() [all …]
|
/linux-6.6.21/drivers/media/platform/st/sti/bdisp/ |
D | bdisp-v4l2.c | 541 struct vb2_queue *src_vq, struct vb2_queue *dst_vq) in queue_init() argument 561 memset(dst_vq, 0, sizeof(*dst_vq)); in queue_init() 562 dst_vq->type = V4L2_BUF_TYPE_VIDEO_CAPTURE; in queue_init() 563 dst_vq->io_modes = VB2_MMAP | VB2_DMABUF; in queue_init() 564 dst_vq->drv_priv = ctx; in queue_init() 565 dst_vq->ops = &bdisp_qops; in queue_init() 566 dst_vq->mem_ops = &vb2_dma_contig_memops; in queue_init() 567 dst_vq->buf_struct_size = sizeof(struct v4l2_m2m_buffer); in queue_init() 568 dst_vq->timestamp_flags = V4L2_BUF_FLAG_TIMESTAMP_COPY; in queue_init() 569 dst_vq->lock = &ctx->bdisp_dev->lock; in queue_init() [all …]
|
/linux-6.6.21/drivers/media/platform/amlogic/meson-ge2d/ |
D | ge2d.c | 399 queue_init(void *priv, struct vb2_queue *src_vq, struct vb2_queue *dst_vq) in queue_init() argument 418 dst_vq->type = V4L2_BUF_TYPE_VIDEO_CAPTURE; in queue_init() 419 dst_vq->io_modes = VB2_MMAP | VB2_DMABUF; in queue_init() 420 dst_vq->drv_priv = ctx; in queue_init() 421 dst_vq->ops = &ge2d_qops; in queue_init() 422 dst_vq->mem_ops = &vb2_dma_contig_memops; in queue_init() 423 dst_vq->buf_struct_size = sizeof(struct v4l2_m2m_buffer); in queue_init() 424 dst_vq->timestamp_flags = V4L2_BUF_FLAG_TIMESTAMP_COPY; in queue_init() 425 dst_vq->lock = &ctx->ge2d->mutex; in queue_init() 426 dst_vq->dev = ctx->ge2d->v4l2_dev.dev; in queue_init() [all …]
|
/linux-6.6.21/drivers/media/platform/chips-media/ |
D | coda-common.c | 911 struct vb2_queue *dst_vq; in coda_s_fmt_vid_out() local 939 dst_vq = v4l2_m2m_get_vq(ctx->fh.m2m_ctx, V4L2_BUF_TYPE_VIDEO_CAPTURE); in coda_s_fmt_vid_out() 940 if (!dst_vq) in coda_s_fmt_vid_out() 949 if (vb2_is_busy(dst_vq)) in coda_s_fmt_vid_out() 1112 struct vb2_queue *dst_vq; in coda_wake_up_capture_queue() local 1116 dst_vq = v4l2_m2m_get_vq(ctx->fh.m2m_ctx, V4L2_BUF_TYPE_VIDEO_CAPTURE); in coda_wake_up_capture_queue() 1117 dst_vq->last_buffer_dequeued = true; in coda_wake_up_capture_queue() 1118 wake_up(&dst_vq->done_wq); in coda_wake_up_capture_queue() 1181 struct vb2_queue *dst_vq; in coda_mark_last_dst_buf() local 1186 dst_vq = v4l2_m2m_get_vq(ctx->fh.m2m_ctx, V4L2_BUF_TYPE_VIDEO_CAPTURE); in coda_mark_last_dst_buf() [all …]
|