/drivers/media/platform/exynos-gsc/ |
D | gsc-m2m.c | 578 static int queue_init(void *priv, struct vb2_queue *src_vq, in queue_init() argument 584 memset(src_vq, 0, sizeof(*src_vq)); in queue_init() 585 src_vq->type = V4L2_BUF_TYPE_VIDEO_OUTPUT_MPLANE; in queue_init() 586 src_vq->io_modes = VB2_MMAP | VB2_USERPTR | VB2_DMABUF; in queue_init() 587 src_vq->drv_priv = ctx; in queue_init() 588 src_vq->ops = &gsc_m2m_qops; in queue_init() 589 src_vq->mem_ops = &vb2_dma_contig_memops; in queue_init() 590 src_vq->buf_struct_size = sizeof(struct v4l2_m2m_buffer); in queue_init() 591 src_vq->timestamp_flags = V4L2_BUF_FLAG_TIMESTAMP_COPY; in queue_init() 592 src_vq->lock = &ctx->gsc_dev->lock; in queue_init() [all …]
|
/drivers/media/platform/s5p-g2d/ |
D | g2d.c | 147 static int queue_init(void *priv, struct vb2_queue *src_vq, in queue_init() argument 153 src_vq->type = V4L2_BUF_TYPE_VIDEO_OUTPUT; in queue_init() 154 src_vq->io_modes = VB2_MMAP | VB2_USERPTR; in queue_init() 155 src_vq->drv_priv = ctx; in queue_init() 156 src_vq->ops = &g2d_qops; in queue_init() 157 src_vq->mem_ops = &vb2_dma_contig_memops; in queue_init() 158 src_vq->buf_struct_size = sizeof(struct v4l2_m2m_buffer); in queue_init() 159 src_vq->timestamp_flags = V4L2_BUF_FLAG_TIMESTAMP_COPY; in queue_init() 160 src_vq->lock = &ctx->dev->mutex; in queue_init() 161 src_vq->dev = ctx->dev->v4l2_dev.dev; in queue_init() [all …]
|
/drivers/media/platform/exynos4-is/ |
D | fimc-m2m.c | 545 static int queue_init(void *priv, struct vb2_queue *src_vq, in queue_init() argument 551 src_vq->type = V4L2_BUF_TYPE_VIDEO_OUTPUT_MPLANE; in queue_init() 552 src_vq->io_modes = VB2_MMAP | VB2_USERPTR | VB2_DMABUF; in queue_init() 553 src_vq->drv_priv = ctx; in queue_init() 554 src_vq->ops = &fimc_qops; in queue_init() 555 src_vq->mem_ops = &vb2_dma_contig_memops; in queue_init() 556 src_vq->buf_struct_size = sizeof(struct v4l2_m2m_buffer); in queue_init() 557 src_vq->timestamp_flags = V4L2_BUF_FLAG_TIMESTAMP_COPY; in queue_init() 558 src_vq->lock = &ctx->fimc_dev->lock; in queue_init() 559 src_vq->dev = &ctx->fimc_dev->pdev->dev; in queue_init() [all …]
|
/drivers/media/platform/ |
D | sh_veu.c | 299 static int sh_veu_queue_init(void *priv, struct vb2_queue *src_vq, 932 static int sh_veu_queue_init(void *priv, struct vb2_queue *src_vq, in sh_veu_queue_init() argument 938 memset(src_vq, 0, sizeof(*src_vq)); in sh_veu_queue_init() 939 src_vq->type = V4L2_BUF_TYPE_VIDEO_OUTPUT; in sh_veu_queue_init() 940 src_vq->io_modes = VB2_MMAP | VB2_USERPTR; in sh_veu_queue_init() 941 src_vq->drv_priv = veu; in sh_veu_queue_init() 942 src_vq->buf_struct_size = sizeof(struct v4l2_m2m_buffer); in sh_veu_queue_init() 943 src_vq->ops = &sh_veu_qops; in sh_veu_queue_init() 944 src_vq->mem_ops = &vb2_dma_contig_memops; in sh_veu_queue_init() 945 src_vq->lock = &veu->fop_lock; in sh_veu_queue_init() [all …]
|
D | mx2_emmaprp.c | 752 static int queue_init(void *priv, struct vb2_queue *src_vq, in queue_init() argument 758 src_vq->type = V4L2_BUF_TYPE_VIDEO_OUTPUT; in queue_init() 759 src_vq->io_modes = VB2_MMAP | VB2_USERPTR; in queue_init() 760 src_vq->drv_priv = ctx; in queue_init() 761 src_vq->buf_struct_size = sizeof(struct v4l2_m2m_buffer); in queue_init() 762 src_vq->ops = &emmaprp_qops; in queue_init() 763 src_vq->mem_ops = &vb2_dma_contig_memops; in queue_init() 764 src_vq->timestamp_flags = V4L2_BUF_FLAG_TIMESTAMP_COPY; in queue_init() 765 src_vq->dev = ctx->dev->v4l2_dev.dev; in queue_init() 767 ret = vb2_queue_init(src_vq); in queue_init()
|
D | vim2m.c | 828 static int queue_init(void *priv, struct vb2_queue *src_vq, struct vb2_queue *dst_vq) in queue_init() argument 833 src_vq->type = V4L2_BUF_TYPE_VIDEO_OUTPUT; in queue_init() 834 src_vq->io_modes = VB2_MMAP | VB2_USERPTR | VB2_DMABUF; in queue_init() 835 src_vq->drv_priv = ctx; in queue_init() 836 src_vq->buf_struct_size = sizeof(struct v4l2_m2m_buffer); in queue_init() 837 src_vq->ops = &vim2m_qops; in queue_init() 838 src_vq->mem_ops = &vb2_vmalloc_memops; in queue_init() 839 src_vq->timestamp_flags = V4L2_BUF_FLAG_TIMESTAMP_COPY; in queue_init() 840 src_vq->lock = &ctx->dev->dev_mutex; in queue_init() 842 ret = vb2_queue_init(src_vq); in queue_init()
|
D | rcar_jpu.c | 1197 static int jpu_queue_init(void *priv, struct vb2_queue *src_vq, in jpu_queue_init() argument 1203 memset(src_vq, 0, sizeof(*src_vq)); in jpu_queue_init() 1204 src_vq->type = V4L2_BUF_TYPE_VIDEO_OUTPUT_MPLANE; in jpu_queue_init() 1205 src_vq->io_modes = VB2_MMAP | VB2_DMABUF; in jpu_queue_init() 1206 src_vq->drv_priv = ctx; in jpu_queue_init() 1207 src_vq->buf_struct_size = sizeof(struct jpu_buffer); in jpu_queue_init() 1208 src_vq->ops = &jpu_qops; in jpu_queue_init() 1209 src_vq->mem_ops = &vb2_dma_contig_memops; in jpu_queue_init() 1210 src_vq->timestamp_flags = V4L2_BUF_FLAG_TIMESTAMP_COPY; in jpu_queue_init() 1211 src_vq->lock = &ctx->jpu->mutex; in jpu_queue_init() [all …]
|
D | m2m-deinterlace.c | 861 static int queue_init(void *priv, struct vb2_queue *src_vq, in queue_init() argument 867 src_vq->type = V4L2_BUF_TYPE_VIDEO_OUTPUT; in queue_init() 868 src_vq->io_modes = VB2_MMAP | VB2_USERPTR; in queue_init() 869 src_vq->drv_priv = ctx; in queue_init() 870 src_vq->buf_struct_size = sizeof(struct v4l2_m2m_buffer); in queue_init() 871 src_vq->ops = &deinterlace_qops; in queue_init() 872 src_vq->mem_ops = &vb2_dma_contig_memops; in queue_init() 873 src_vq->timestamp_flags = V4L2_BUF_FLAG_TIMESTAMP_COPY; in queue_init() 874 src_vq->dev = ctx->dev->v4l2_dev.dev; in queue_init() 881 ret = vb2_queue_init(src_vq); in queue_init()
|
/drivers/media/platform/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 …]
|
/drivers/media/platform/coda/ |
D | coda.h | 176 int (*queue_init)(void *priv, struct vb2_queue *src_vq, 252 int coda_encoder_queue_init(void *priv, struct vb2_queue *src_vq, 254 int coda_decoder_queue_init(void *priv, struct vb2_queue *src_vq,
|
D | coda-common.c | 496 struct vb2_queue *src_vq; in coda_try_fmt_vid_cap() local 509 src_vq = v4l2_m2m_get_vq(ctx->fh.m2m_ctx, V4L2_BUF_TYPE_VIDEO_OUTPUT); in coda_try_fmt_vid_cap() 510 if (vb2_is_streaming(src_vq)) { in coda_try_fmt_vid_cap() 694 struct vb2_queue *src_vq; in coda_buf_is_end_of_stream() local 696 src_vq = v4l2_m2m_get_vq(ctx->fh.m2m_ctx, V4L2_BUF_TYPE_VIDEO_OUTPUT); in coda_buf_is_end_of_stream() 1604 int coda_encoder_queue_init(void *priv, struct vb2_queue *src_vq, in coda_encoder_queue_init() argument 1609 src_vq->type = V4L2_BUF_TYPE_VIDEO_OUTPUT; in coda_encoder_queue_init() 1610 src_vq->io_modes = VB2_DMABUF | VB2_MMAP; in coda_encoder_queue_init() 1611 src_vq->mem_ops = &vb2_dma_contig_memops; in coda_encoder_queue_init() 1613 ret = coda_queue_init(priv, src_vq); in coda_encoder_queue_init() [all …]
|
/drivers/media/platform/mtk-vcodec/ |
D | mtk_vcodec_enc.c | 1309 int mtk_vcodec_enc_queue_init(void *priv, struct vb2_queue *src_vq, in mtk_vcodec_enc_queue_init() argument 1320 src_vq->type = V4L2_BUF_TYPE_VIDEO_OUTPUT_MPLANE; in mtk_vcodec_enc_queue_init() 1321 src_vq->io_modes = VB2_DMABUF | VB2_MMAP | VB2_USERPTR; in mtk_vcodec_enc_queue_init() 1322 src_vq->drv_priv = ctx; in mtk_vcodec_enc_queue_init() 1323 src_vq->buf_struct_size = sizeof(struct mtk_video_enc_buf); in mtk_vcodec_enc_queue_init() 1324 src_vq->ops = &mtk_venc_vb2_ops; in mtk_vcodec_enc_queue_init() 1325 src_vq->mem_ops = &vb2_dma_contig_memops; in mtk_vcodec_enc_queue_init() 1326 src_vq->timestamp_flags = V4L2_BUF_FLAG_TIMESTAMP_COPY; in mtk_vcodec_enc_queue_init() 1327 src_vq->lock = &ctx->dev->dev_mutex; in mtk_vcodec_enc_queue_init() 1328 src_vq->dev = &ctx->dev->plat_dev->dev; in mtk_vcodec_enc_queue_init() [all …]
|
D | mtk_vcodec_enc.h | 52 int mtk_vcodec_enc_queue_init(void *priv, struct vb2_queue *src_vq,
|
/drivers/media/platform/ti-vpe/ |
D | vpe.c | 1891 static int queue_init(void *priv, struct vb2_queue *src_vq, in queue_init() argument 1898 memset(src_vq, 0, sizeof(*src_vq)); in queue_init() 1899 src_vq->type = V4L2_BUF_TYPE_VIDEO_OUTPUT_MPLANE; in queue_init() 1900 src_vq->io_modes = VB2_MMAP | VB2_DMABUF; in queue_init() 1901 src_vq->drv_priv = ctx; in queue_init() 1902 src_vq->buf_struct_size = sizeof(struct v4l2_m2m_buffer); in queue_init() 1903 src_vq->ops = &vpe_qops; in queue_init() 1904 src_vq->mem_ops = &vb2_dma_contig_memops; in queue_init() 1905 src_vq->timestamp_flags = V4L2_BUF_FLAG_TIMESTAMP_COPY; in queue_init() 1906 src_vq->lock = &dev->dev_mutex; in queue_init() [all …]
|
/drivers/media/platform/s5p-jpeg/ |
D | jpeg-core.c | 963 static int queue_init(void *priv, struct vb2_queue *src_vq, 2558 static int queue_init(void *priv, struct vb2_queue *src_vq, in queue_init() argument 2564 src_vq->type = V4L2_BUF_TYPE_VIDEO_OUTPUT; in queue_init() 2565 src_vq->io_modes = VB2_MMAP | VB2_USERPTR; in queue_init() 2566 src_vq->drv_priv = ctx; in queue_init() 2567 src_vq->buf_struct_size = sizeof(struct v4l2_m2m_buffer); in queue_init() 2568 src_vq->ops = &s5p_jpeg_qops; in queue_init() 2569 src_vq->mem_ops = &vb2_dma_contig_memops; in queue_init() 2570 src_vq->timestamp_flags = V4L2_BUF_FLAG_TIMESTAMP_COPY; in queue_init() 2571 src_vq->lock = &ctx->jpeg->lock; in queue_init() [all …]
|
/drivers/media/platform/sti/hva/ |
D | hva-v4l2.c | 1107 static int hva_queue_init(void *priv, struct vb2_queue *src_vq, in hva_queue_init() argument 1113 src_vq->type = V4L2_BUF_TYPE_VIDEO_OUTPUT; in hva_queue_init() 1114 src_vq->buf_struct_size = sizeof(struct hva_frame); in hva_queue_init() 1115 src_vq->min_buffers_needed = MIN_FRAMES; in hva_queue_init() 1116 src_vq->dev = ctx->hva_dev->dev; in hva_queue_init() 1118 ret = queue_init(ctx, src_vq); in hva_queue_init()
|
/drivers/media/v4l2-core/ |
D | v4l2-mem2mem.c | 588 int (*queue_init)(void *priv, struct vb2_queue *src_vq, struct vb2_queue *dst_vq)) in v4l2_m2m_ctx_init() argument
|