/linux-6.6.21/drivers/staging/media/sunxi/cedrus/ |
D | cedrus_video.c | 577 int cedrus_queue_init(void *priv, struct vb2_queue *src_vq, in cedrus_queue_init() argument 583 src_vq->type = V4L2_BUF_TYPE_VIDEO_OUTPUT; in cedrus_queue_init() 584 src_vq->io_modes = VB2_MMAP | VB2_DMABUF; in cedrus_queue_init() 585 src_vq->drv_priv = ctx; in cedrus_queue_init() 586 src_vq->buf_struct_size = sizeof(struct cedrus_buffer); in cedrus_queue_init() 587 src_vq->ops = &cedrus_qops; in cedrus_queue_init() 588 src_vq->mem_ops = &vb2_dma_contig_memops; in cedrus_queue_init() 589 src_vq->timestamp_flags = V4L2_BUF_FLAG_TIMESTAMP_COPY; in cedrus_queue_init() 590 src_vq->lock = &ctx->dev->dev_mutex; in cedrus_queue_init() 591 src_vq->dev = ctx->dev->dev; in cedrus_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 642 src_vq->type = V4L2_BUF_TYPE_VIDEO_OUTPUT_MPLANE; in vpu_m2m_queue_init() 643 inst->out_format.type = src_vq->type; in vpu_m2m_queue_init() 644 src_vq->io_modes = VB2_MMAP | VB2_DMABUF; in vpu_m2m_queue_init() 645 src_vq->timestamp_flags = V4L2_BUF_FLAG_TIMESTAMP_COPY; in vpu_m2m_queue_init() 646 src_vq->ops = &vpu_vb2_ops; in vpu_m2m_queue_init() 647 src_vq->mem_ops = &vb2_dma_contig_memops; in vpu_m2m_queue_init() 649 src_vq->mem_ops = &vb2_vmalloc_memops; in vpu_m2m_queue_init() 650 src_vq->drv_priv = inst; in vpu_m2m_queue_init() 651 src_vq->buf_struct_size = sizeof(struct vpu_vb2_buffer); in vpu_m2m_queue_init() [all …]
|
/linux-6.6.21/drivers/media/test-drivers/visl/ |
D | visl-video.c | 705 int visl_queue_init(void *priv, struct vb2_queue *src_vq, in visl_queue_init() argument 711 src_vq->type = V4L2_BUF_TYPE_VIDEO_OUTPUT_MPLANE; in visl_queue_init() 712 src_vq->io_modes = VB2_MMAP | VB2_DMABUF; in visl_queue_init() 713 src_vq->drv_priv = ctx; in visl_queue_init() 714 src_vq->buf_struct_size = sizeof(struct v4l2_m2m_buffer); in visl_queue_init() 715 src_vq->ops = &visl_qops; in visl_queue_init() 716 src_vq->mem_ops = &vb2_vmalloc_memops; in visl_queue_init() 717 src_vq->timestamp_flags = V4L2_BUF_FLAG_TIMESTAMP_COPY; in visl_queue_init() 718 src_vq->lock = &ctx->vb_mutex; in visl_queue_init() 719 src_vq->supports_requests = true; in visl_queue_init() [all …]
|
/linux-6.6.21/drivers/media/platform/samsung/exynos-gsc/ |
D | gsc-m2m.c | 571 static int queue_init(void *priv, struct vb2_queue *src_vq, in queue_init() argument 577 memset(src_vq, 0, sizeof(*src_vq)); in queue_init() 578 src_vq->type = V4L2_BUF_TYPE_VIDEO_OUTPUT_MPLANE; in queue_init() 579 src_vq->io_modes = VB2_MMAP | VB2_USERPTR | VB2_DMABUF; in queue_init() 580 src_vq->drv_priv = ctx; in queue_init() 581 src_vq->ops = &gsc_m2m_qops; in queue_init() 582 src_vq->mem_ops = &vb2_dma_contig_memops; in queue_init() 583 src_vq->buf_struct_size = sizeof(struct v4l2_m2m_buffer); in queue_init() 584 src_vq->timestamp_flags = V4L2_BUF_FLAG_TIMESTAMP_COPY; in queue_init() 585 src_vq->lock = &ctx->gsc_dev->lock; in queue_init() [all …]
|
/linux-6.6.21/drivers/media/platform/nvidia/tegra-vde/ |
D | v4l2.c | 336 struct vb2_queue *src_vq, in tegra_queue_init() argument 359 src_vq->buf_struct_size = sizeof(struct tegra_m2m_buffer); in tegra_queue_init() 360 src_vq->timestamp_flags = V4L2_BUF_FLAG_TIMESTAMP_COPY; in tegra_queue_init() 361 src_vq->type = V4L2_BUF_TYPE_VIDEO_OUTPUT_MPLANE; in tegra_queue_init() 362 src_vq->io_modes = VB2_DMABUF | VB2_MMAP; in tegra_queue_init() 363 src_vq->supports_requests = true; in tegra_queue_init() 364 src_vq->requires_requests = true; in tegra_queue_init() 365 src_vq->lock = &vde->v4l2_lock; in tegra_queue_init() 366 src_vq->dma_attrs = dma_attrs; in tegra_queue_init() 367 src_vq->mem_ops = mem_ops; in tegra_queue_init() [all …]
|
/linux-6.6.21/drivers/media/platform/st/stm32/dma2d/ |
D | dma2d.c | 193 static int queue_init(void *priv, struct vb2_queue *src_vq, in queue_init() argument 199 src_vq->type = V4L2_BUF_TYPE_VIDEO_OUTPUT; in queue_init() 200 src_vq->io_modes = VB2_MMAP | VB2_DMABUF; in queue_init() 201 src_vq->drv_priv = ctx; in queue_init() 202 src_vq->ops = &dma2d_qops; in queue_init() 203 src_vq->mem_ops = &vb2_dma_contig_memops; in queue_init() 204 src_vq->buf_struct_size = sizeof(struct v4l2_m2m_buffer); in queue_init() 205 src_vq->timestamp_flags = V4L2_BUF_FLAG_TIMESTAMP_COPY; in queue_init() 206 src_vq->lock = &ctx->dev->mutex; in queue_init() 207 src_vq->dev = ctx->dev->v4l2_dev.dev; in 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 106 src_vq = v4l2_m2m_get_vq(ctx->m2m_ctx, in vidioc_decoder_cmd() 108 if (!vb2_is_streaming(src_vq)) { in vidioc_decoder_cmd() 980 int mtk_vcodec_dec_queue_init(void *priv, struct vb2_queue *src_vq, in mtk_vcodec_dec_queue_init() argument 988 src_vq->type = V4L2_BUF_TYPE_VIDEO_OUTPUT_MPLANE; in mtk_vcodec_dec_queue_init() 989 src_vq->io_modes = VB2_DMABUF | VB2_MMAP; in mtk_vcodec_dec_queue_init() 990 src_vq->drv_priv = ctx; in mtk_vcodec_dec_queue_init() 991 src_vq->buf_struct_size = sizeof(struct mtk_video_dec_buf); in mtk_vcodec_dec_queue_init() 992 src_vq->ops = ctx->dev->vdec_pdata->vdec_vb2_ops; in mtk_vcodec_dec_queue_init() 993 src_vq->mem_ops = &vb2_dma_contig_memops; in mtk_vcodec_dec_queue_init() [all …]
|
/linux-6.6.21/drivers/staging/media/imx/ |
D | imx-media-csc-scaler.c | 581 static int ipu_csc_scaler_queue_init(void *priv, struct vb2_queue *src_vq, in ipu_csc_scaler_queue_init() argument 587 memset(src_vq, 0, sizeof(*src_vq)); in ipu_csc_scaler_queue_init() 588 src_vq->type = V4L2_BUF_TYPE_VIDEO_OUTPUT; in ipu_csc_scaler_queue_init() 589 src_vq->io_modes = VB2_MMAP | VB2_DMABUF; in ipu_csc_scaler_queue_init() 590 src_vq->drv_priv = ctx; in ipu_csc_scaler_queue_init() 591 src_vq->buf_struct_size = sizeof(struct v4l2_m2m_buffer); in ipu_csc_scaler_queue_init() 592 src_vq->ops = &ipu_csc_scaler_qops; in ipu_csc_scaler_queue_init() 593 src_vq->mem_ops = &vb2_dma_contig_memops; in ipu_csc_scaler_queue_init() 594 src_vq->timestamp_flags = V4L2_BUF_FLAG_TIMESTAMP_COPY; in ipu_csc_scaler_queue_init() 595 src_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 | 529 static int rotate_queue_init(void *priv, struct vb2_queue *src_vq, in rotate_queue_init() argument 535 src_vq->type = V4L2_BUF_TYPE_VIDEO_OUTPUT; in rotate_queue_init() 536 src_vq->io_modes = VB2_MMAP | VB2_DMABUF; in rotate_queue_init() 537 src_vq->drv_priv = ctx; in rotate_queue_init() 538 src_vq->buf_struct_size = sizeof(struct v4l2_m2m_buffer); in rotate_queue_init() 539 src_vq->min_buffers_needed = 1; in rotate_queue_init() 540 src_vq->ops = &rotate_qops; in rotate_queue_init() 541 src_vq->mem_ops = &vb2_dma_contig_memops; in rotate_queue_init() 542 src_vq->timestamp_flags = V4L2_BUF_FLAG_TIMESTAMP_COPY; in rotate_queue_init() 543 src_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 | 466 struct vb2_queue *src_vq, in mdp_m2m_queue_init() argument 472 src_vq->type = V4L2_BUF_TYPE_VIDEO_OUTPUT_MPLANE; in mdp_m2m_queue_init() 473 src_vq->io_modes = VB2_MMAP | VB2_DMABUF; in mdp_m2m_queue_init() 474 src_vq->ops = &mdp_m2m_qops; in mdp_m2m_queue_init() 475 src_vq->mem_ops = &vb2_dma_contig_memops; in mdp_m2m_queue_init() 476 src_vq->drv_priv = ctx; in mdp_m2m_queue_init() 477 src_vq->buf_struct_size = sizeof(struct v4l2_m2m_buffer); in mdp_m2m_queue_init() 478 src_vq->timestamp_flags = V4L2_BUF_FLAG_TIMESTAMP_COPY; in mdp_m2m_queue_init() 479 src_vq->dev = &ctx->mdp_dev->pdev->dev; in mdp_m2m_queue_init() 480 src_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 | 547 static int queue_init(void *priv, struct vb2_queue *src_vq, in queue_init() argument 553 src_vq->type = V4L2_BUF_TYPE_VIDEO_OUTPUT_MPLANE; in queue_init() 554 src_vq->io_modes = VB2_MMAP | VB2_USERPTR | VB2_DMABUF; in queue_init() 555 src_vq->drv_priv = ctx; in queue_init() 556 src_vq->ops = &fimc_qops; in queue_init() 557 src_vq->mem_ops = &vb2_dma_contig_memops; in queue_init() 558 src_vq->buf_struct_size = sizeof(struct v4l2_m2m_buffer); in queue_init() 559 src_vq->timestamp_flags = V4L2_BUF_FLAG_TIMESTAMP_COPY; in queue_init() 560 src_vq->lock = &ctx->fimc_dev->lock; in queue_init() 561 src_vq->dev = &ctx->fimc_dev->pdev->dev; in queue_init() [all …]
|
/linux-6.6.21/drivers/media/platform/samsung/s5p-g2d/ |
D | g2d.c | 140 static int queue_init(void *priv, struct vb2_queue *src_vq, in queue_init() argument 146 src_vq->type = V4L2_BUF_TYPE_VIDEO_OUTPUT; in queue_init() 147 src_vq->io_modes = VB2_MMAP | VB2_USERPTR; in queue_init() 148 src_vq->drv_priv = ctx; in queue_init() 149 src_vq->ops = &g2d_qops; in queue_init() 150 src_vq->mem_ops = &vb2_dma_contig_memops; in queue_init() 151 src_vq->buf_struct_size = sizeof(struct v4l2_m2m_buffer); in queue_init() 152 src_vq->timestamp_flags = V4L2_BUF_FLAG_TIMESTAMP_COPY; in queue_init() 153 src_vq->lock = &ctx->dev->mutex; in queue_init() 154 src_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 | 278 static int mxc_isi_m2m_queue_init(void *priv, struct vb2_queue *src_vq, in mxc_isi_m2m_queue_init() argument 285 src_vq->type = V4L2_BUF_TYPE_VIDEO_OUTPUT_MPLANE; in mxc_isi_m2m_queue_init() 286 src_vq->io_modes = VB2_MMAP | VB2_DMABUF; in mxc_isi_m2m_queue_init() 287 src_vq->drv_priv = ctx; in mxc_isi_m2m_queue_init() 288 src_vq->buf_struct_size = sizeof(struct mxc_isi_m2m_buffer); in mxc_isi_m2m_queue_init() 289 src_vq->ops = &mxc_isi_m2m_vb2_qops; in mxc_isi_m2m_queue_init() 290 src_vq->mem_ops = &vb2_dma_contig_memops; in mxc_isi_m2m_queue_init() 291 src_vq->timestamp_flags = V4L2_BUF_FLAG_TIMESTAMP_COPY; in mxc_isi_m2m_queue_init() 292 src_vq->lock = &ctx->vb2_lock; in mxc_isi_m2m_queue_init() 293 src_vq->dev = m2m->isi->dev; in mxc_isi_m2m_queue_init() [all …]
|
/linux-6.6.21/drivers/media/platform/nxp/ |
D | mx2_emmaprp.c | 684 static int queue_init(void *priv, struct vb2_queue *src_vq, in queue_init() argument 690 src_vq->type = V4L2_BUF_TYPE_VIDEO_OUTPUT; in queue_init() 691 src_vq->io_modes = VB2_MMAP | VB2_USERPTR | VB2_DMABUF; in queue_init() 692 src_vq->drv_priv = ctx; in queue_init() 693 src_vq->buf_struct_size = sizeof(struct v4l2_m2m_buffer); in queue_init() 694 src_vq->ops = &emmaprp_qops; in queue_init() 695 src_vq->mem_ops = &vb2_dma_contig_memops; in queue_init() 696 src_vq->timestamp_flags = V4L2_BUF_FLAG_TIMESTAMP_COPY; in queue_init() 697 src_vq->dev = ctx->dev->v4l2_dev.dev; in queue_init() 698 src_vq->lock = &ctx->dev->dev_mutex; in queue_init() [all …]
|
/linux-6.6.21/drivers/staging/media/rkvdec/ |
D | rkvdec.c | 718 struct vb2_queue *src_vq, in rkvdec_queue_init() argument 725 src_vq->type = V4L2_BUF_TYPE_VIDEO_OUTPUT_MPLANE; in rkvdec_queue_init() 726 src_vq->io_modes = VB2_MMAP | VB2_DMABUF; in rkvdec_queue_init() 727 src_vq->drv_priv = ctx; in rkvdec_queue_init() 728 src_vq->ops = &rkvdec_queue_ops; in rkvdec_queue_init() 729 src_vq->mem_ops = &vb2_dma_contig_memops; in rkvdec_queue_init() 736 src_vq->dma_attrs = DMA_ATTR_ALLOC_SINGLE_PAGES | in rkvdec_queue_init() 738 src_vq->buf_struct_size = sizeof(struct v4l2_m2m_buffer); in rkvdec_queue_init() 739 src_vq->timestamp_flags = V4L2_BUF_FLAG_TIMESTAMP_COPY; in rkvdec_queue_init() 740 src_vq->lock = &rkvdec->vdev_lock; in rkvdec_queue_init() [all …]
|
/linux-6.6.21/drivers/media/platform/sunxi/sun8i-di/ |
D | sun8i-di.c | 666 static int deinterlace_queue_init(void *priv, struct vb2_queue *src_vq, in deinterlace_queue_init() argument 672 src_vq->type = V4L2_BUF_TYPE_VIDEO_OUTPUT; in deinterlace_queue_init() 673 src_vq->io_modes = VB2_MMAP | VB2_DMABUF; in deinterlace_queue_init() 674 src_vq->drv_priv = ctx; in deinterlace_queue_init() 675 src_vq->buf_struct_size = sizeof(struct v4l2_m2m_buffer); in deinterlace_queue_init() 676 src_vq->min_buffers_needed = 1; in deinterlace_queue_init() 677 src_vq->ops = &deinterlace_qops; in deinterlace_queue_init() 678 src_vq->mem_ops = &vb2_dma_contig_memops; in deinterlace_queue_init() 679 src_vq->timestamp_flags = V4L2_BUF_FLAG_TIMESTAMP_COPY; in deinterlace_queue_init() 680 src_vq->lock = &ctx->dev->dev_mutex; in deinterlace_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 99 src_vq->type = V4L2_BUF_TYPE_VIDEO_OUTPUT; in queue_init() 100 src_vq->io_modes = VB2_MMAP | VB2_DMABUF; in queue_init() 101 src_vq->drv_priv = ctx; in queue_init() 102 src_vq->ops = &rga_qops; in queue_init() 103 src_vq->mem_ops = &vb2_dma_sg_memops; in queue_init() 104 src_vq->buf_struct_size = sizeof(struct v4l2_m2m_buffer); in queue_init() 105 src_vq->timestamp_flags = V4L2_BUF_FLAG_TIMESTAMP_COPY; in queue_init() 106 src_vq->lock = &ctx->rga->mutex; in queue_init() 107 src_vq->dev = ctx->rga->v4l2_dev.dev; in queue_init() [all …]
|
/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 208 src_vq->type = V4L2_BUF_TYPE_VIDEO_OUTPUT_MPLANE; in queue_init() 209 src_vq->io_modes = VB2_MMAP | VB2_DMABUF; in queue_init() 210 src_vq->drv_priv = ctx; in queue_init() 211 src_vq->ops = &hantro_queue_ops; in queue_init() 212 src_vq->mem_ops = &vb2_dma_contig_memops; in queue_init() 219 src_vq->dma_attrs = DMA_ATTR_ALLOC_SINGLE_PAGES | in queue_init() 221 src_vq->buf_struct_size = sizeof(struct v4l2_m2m_buffer); in queue_init() 222 src_vq->timestamp_flags = V4L2_BUF_FLAG_TIMESTAMP_COPY; in queue_init() 223 src_vq->lock = &ctx->dev->vpu_mutex; in queue_init() [all …]
|
/linux-6.6.21/drivers/media/platform/ |
D | m2m-deinterlace.c | 795 static int queue_init(void *priv, struct vb2_queue *src_vq, in queue_init() argument 801 src_vq->type = V4L2_BUF_TYPE_VIDEO_OUTPUT; in queue_init() 802 src_vq->io_modes = VB2_MMAP | VB2_USERPTR | VB2_DMABUF; in queue_init() 803 src_vq->drv_priv = ctx; in queue_init() 804 src_vq->buf_struct_size = sizeof(struct v4l2_m2m_buffer); in queue_init() 805 src_vq->ops = &deinterlace_qops; in queue_init() 806 src_vq->mem_ops = &vb2_dma_contig_memops; in queue_init() 807 src_vq->timestamp_flags = V4L2_BUF_FLAG_TIMESTAMP_COPY; in queue_init() 808 src_vq->dev = ctx->dev->v4l2_dev.dev; in queue_init() 809 src_vq->lock = &ctx->dev->dev_mutex; in queue_init() [all …]
|
/linux-6.6.21/drivers/staging/media/meson/vdec/ |
D | vdec.c | 814 static int m2m_queue_init(void *priv, struct vb2_queue *src_vq, in m2m_queue_init() argument 820 src_vq->type = V4L2_BUF_TYPE_VIDEO_OUTPUT_MPLANE; in m2m_queue_init() 821 src_vq->io_modes = VB2_MMAP | VB2_DMABUF; in m2m_queue_init() 822 src_vq->timestamp_flags = V4L2_BUF_FLAG_TIMESTAMP_COPY; in m2m_queue_init() 823 src_vq->ops = &vdec_vb2_ops; in m2m_queue_init() 824 src_vq->mem_ops = &vb2_dma_contig_memops; in m2m_queue_init() 825 src_vq->drv_priv = sess; in m2m_queue_init() 826 src_vq->buf_struct_size = sizeof(struct dummy_buf); in m2m_queue_init() 827 src_vq->min_buffers_needed = 1; in m2m_queue_init() 828 src_vq->dev = sess->core->dev; in m2m_queue_init() [all …]
|
/linux-6.6.21/drivers/media/platform/mediatek/mdp/ |
D | mtk_mdp_m2m.c | 918 static int mtk_mdp_m2m_queue_init(void *priv, struct vb2_queue *src_vq, in mtk_mdp_m2m_queue_init() argument 924 memset(src_vq, 0, sizeof(*src_vq)); in mtk_mdp_m2m_queue_init() 925 src_vq->type = V4L2_BUF_TYPE_VIDEO_OUTPUT_MPLANE; in mtk_mdp_m2m_queue_init() 926 src_vq->io_modes = VB2_MMAP | VB2_DMABUF; in mtk_mdp_m2m_queue_init() 927 src_vq->drv_priv = ctx; in mtk_mdp_m2m_queue_init() 928 src_vq->ops = &mtk_mdp_m2m_qops; in mtk_mdp_m2m_queue_init() 929 src_vq->mem_ops = &vb2_dma_contig_memops; in mtk_mdp_m2m_queue_init() 930 src_vq->buf_struct_size = sizeof(struct v4l2_m2m_buffer); in mtk_mdp_m2m_queue_init() 931 src_vq->timestamp_flags = V4L2_BUF_FLAG_TIMESTAMP_COPY; in mtk_mdp_m2m_queue_init() 932 src_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 546 memset(src_vq, 0, sizeof(*src_vq)); in queue_init() 547 src_vq->type = V4L2_BUF_TYPE_VIDEO_OUTPUT; in queue_init() 548 src_vq->io_modes = VB2_MMAP | VB2_DMABUF; in queue_init() 549 src_vq->drv_priv = ctx; in queue_init() 550 src_vq->ops = &bdisp_qops; in queue_init() 551 src_vq->mem_ops = &vb2_dma_contig_memops; in queue_init() 552 src_vq->buf_struct_size = sizeof(struct v4l2_m2m_buffer); in queue_init() 553 src_vq->timestamp_flags = V4L2_BUF_FLAG_TIMESTAMP_COPY; in queue_init() 554 src_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 404 src_vq->type = V4L2_BUF_TYPE_VIDEO_OUTPUT; in queue_init() 405 src_vq->io_modes = VB2_MMAP | VB2_DMABUF; in queue_init() 406 src_vq->drv_priv = ctx; in queue_init() 407 src_vq->ops = &ge2d_qops; in queue_init() 408 src_vq->mem_ops = &vb2_dma_contig_memops; in queue_init() 409 src_vq->buf_struct_size = sizeof(struct v4l2_m2m_buffer); in queue_init() 410 src_vq->timestamp_flags = V4L2_BUF_FLAG_TIMESTAMP_COPY; in queue_init() 411 src_vq->lock = &ctx->ge2d->mutex; in queue_init() 412 src_vq->dev = ctx->ge2d->v4l2_dev.dev; 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 734 src_vq = v4l2_m2m_get_vq(ctx->m2m_ctx, in vidioc_encoder_cmd() 736 if (!vb2_is_streaming(src_vq)) { in vidioc_encoder_cmd() 1398 int mtk_vcodec_enc_queue_init(void *priv, struct vb2_queue *src_vq, in mtk_vcodec_enc_queue_init() argument 1409 src_vq->type = V4L2_BUF_TYPE_VIDEO_OUTPUT_MPLANE; in mtk_vcodec_enc_queue_init() 1410 src_vq->io_modes = VB2_DMABUF | VB2_MMAP | VB2_USERPTR; in mtk_vcodec_enc_queue_init() 1411 src_vq->drv_priv = ctx; in mtk_vcodec_enc_queue_init() 1412 src_vq->buf_struct_size = sizeof(struct mtk_video_enc_buf); in mtk_vcodec_enc_queue_init() 1413 src_vq->ops = &mtk_venc_vb2_ops; in mtk_vcodec_enc_queue_init() 1414 src_vq->mem_ops = &vb2_dma_contig_memops; in mtk_vcodec_enc_queue_init() [all …]
|
/linux-6.6.21/drivers/media/platform/renesas/ |
D | rcar_jpu.c | 1178 static int jpu_queue_init(void *priv, struct vb2_queue *src_vq, in jpu_queue_init() argument 1184 memset(src_vq, 0, sizeof(*src_vq)); in jpu_queue_init() 1185 src_vq->type = V4L2_BUF_TYPE_VIDEO_OUTPUT_MPLANE; in jpu_queue_init() 1186 src_vq->io_modes = VB2_MMAP | VB2_DMABUF; in jpu_queue_init() 1187 src_vq->drv_priv = ctx; in jpu_queue_init() 1188 src_vq->buf_struct_size = sizeof(struct jpu_buffer); in jpu_queue_init() 1189 src_vq->ops = &jpu_qops; in jpu_queue_init() 1190 src_vq->mem_ops = &vb2_dma_contig_memops; in jpu_queue_init() 1191 src_vq->timestamp_flags = V4L2_BUF_FLAG_TIMESTAMP_COPY; in jpu_queue_init() 1192 src_vq->lock = &ctx->jpu->mutex; in jpu_queue_init() [all …]
|