/linux-6.1.9/drivers/media/test-drivers/vivid/ |
D | vivid-core.c | 1417 struct video_device *vfd; in vivid_create_devnodes() local 1421 vfd = &dev->vid_cap_dev; in vivid_create_devnodes() 1422 snprintf(vfd->name, sizeof(vfd->name), in vivid_create_devnodes() 1424 vfd->fops = &vivid_fops; in vivid_create_devnodes() 1425 vfd->ioctl_ops = &vivid_ioctl_ops; in vivid_create_devnodes() 1426 vfd->device_caps = dev->vid_cap_caps; in vivid_create_devnodes() 1427 vfd->release = video_device_release_empty; in vivid_create_devnodes() 1428 vfd->v4l2_dev = &dev->v4l2_dev; in vivid_create_devnodes() 1429 vfd->queue = &dev->vb_vid_cap_q; in vivid_create_devnodes() 1430 vfd->tvnorms = tvnorms_cap; in vivid_create_devnodes() [all …]
|
/linux-6.1.9/drivers/staging/media/imx/ |
D | imx-media-dev-common.c | 101 vdev->vfd->entity.name, entity->name, srcpad->index); in imx_media_add_vdev_to_pad() 173 link = list_first_entry(&vdev->vfd->entity.links, in imx_media_create_pad_vdev_lists() 212 struct video_device *vfd, in imx_media_inherit_controls() argument 222 vfd->entity.name, sd->entity.name); in imx_media_inherit_controls() 224 ret = v4l2_ctrl_add_handler(vfd->ctrl_handler, in imx_media_inherit_controls() 242 ret = imx_media_inherit_controls(imxmd, vfd, pad->entity); in imx_media_inherit_controls() 258 struct video_device *vfd; in imx_media_link_notify() local 289 vfd = pad_vdev->vdev->vfd; in imx_media_link_notify() 290 if (!vfd->ctrl_handler) in imx_media_link_notify() 294 vfd->entity.name); in imx_media_link_notify() [all …]
|
D | imx-media-capture.c | 778 struct video_device *vfd = priv->vdev.vfd; in capture_open() local 790 ret = v4l2_pipeline_pm_get(&vfd->entity); in capture_open() 802 struct video_device *vfd = priv->vdev.vfd; in capture_release() local 812 v4l2_pipeline_pm_put(&vfd->entity); in capture_release() 907 struct video_device *vfd = vdev->vfd; in imx_media_capture_device_register() local 913 vfd->v4l2_dev = v4l2_dev; in imx_media_capture_device_register() 921 ret = video_register_device(vfd, VFL_TYPE_VIDEO, -1); in imx_media_capture_device_register() 927 dev_info(priv->dev, "Registered %s as /dev/%s\n", vfd->name, in imx_media_capture_device_register() 928 video_device_node_name(vfd)); in imx_media_capture_device_register() 934 &vfd->entity, 0, link_flags); in imx_media_capture_device_register() [all …]
|
D | imx-media-csc-scaler.c | 134 v4l2_err(ctx->priv->vdev.vfd->v4l2_dev, in device_run() 250 v4l2_err(ctx->priv->vdev.vfd->v4l2_dev, "%s: queue busy\n", in ipu_csc_scaler_s_fmt() 520 v4l2_warn(ctx->priv->vdev.vfd->v4l2_dev, "removing old ICC\n"); in ipu_csc_scaler_start_streaming() 538 v4l2_err(ctx->priv->vdev.vfd->v4l2_dev, "%s: error %d\n", in ipu_csc_scaler_start_streaming() 850 struct video_device *vfd = vdev->vfd; in imx_media_csc_scaler_device_register() local 853 vfd->v4l2_dev = &priv->md->v4l2_dev; in imx_media_csc_scaler_device_register() 855 ret = video_register_device(vfd, VFL_TYPE_VIDEO, -1); in imx_media_csc_scaler_device_register() 857 v4l2_err(vfd->v4l2_dev, "Failed to register video device\n"); in imx_media_csc_scaler_device_register() 861 v4l2_info(vfd->v4l2_dev, "Registered %s as /dev/%s\n", vfd->name, in imx_media_csc_scaler_device_register() 862 video_device_node_name(vfd)); in imx_media_csc_scaler_device_register() [all …]
|
/linux-6.1.9/drivers/media/v4l2-core/ |
D | v4l2-ioctl.c | 40 #define is_valid_ioctl(vfd, cmd) test_bit(_IOC_NR(cmd), (vfd)->valid_ioctls) argument 930 struct video_device *vfd = video_devdata(file); in check_fmt() local 931 const struct v4l2_ioctl_ops *ops = vfd->ioctl_ops; in check_fmt() 932 bool is_vid = vfd->vfl_type == VFL_TYPE_VIDEO && in check_fmt() 933 (vfd->device_caps & vid_caps); in check_fmt() 934 bool is_vbi = vfd->vfl_type == VFL_TYPE_VBI; in check_fmt() 935 bool is_sdr = vfd->vfl_type == VFL_TYPE_SDR; in check_fmt() 936 bool is_tch = vfd->vfl_type == VFL_TYPE_TOUCH; in check_fmt() 937 bool is_meta = vfd->vfl_type == VFL_TYPE_VIDEO && in check_fmt() 938 (vfd->device_caps & meta_caps); in check_fmt() [all …]
|
/linux-6.1.9/drivers/media/platform/amphion/ |
D | vpu_v4l2.c | 641 v4l2_fh_init(&inst->fh, func->vfd); in vpu_v4l2_open() 701 struct video_device *vfd; in vpu_add_func() local 707 if (func->vfd) in vpu_add_func() 713 func->vfd = NULL; in vpu_add_func() 717 vfd = video_device_alloc(); in vpu_add_func() 718 if (!vfd) { in vpu_add_func() 723 vfd->release = video_device_release; in vpu_add_func() 724 vfd->vfl_dir = VFL_DIR_M2M; in vpu_add_func() 725 vfd->v4l2_dev = &vpu->v4l2_dev; in vpu_add_func() 726 vfd->device_caps = V4L2_CAP_VIDEO_M2M_MPLANE | V4L2_CAP_STREAMING; in vpu_add_func() [all …]
|
/linux-6.1.9/drivers/media/platform/samsung/exynos4-is/ |
D | fimc-m2m.c | 355 v4l2_err(&fimc->m2m.vfd, "queue (%d) busy\n", f->type); in fimc_m2m_s_fmt_mplane() 436 v4l2_err(&fimc->m2m.vfd, in fimc_m2m_try_selection() 511 v4l2_err(&fimc->m2m.vfd, "Out of scaler range\n"); in fimc_m2m_s_selection() 625 v4l2_fh_init(&ctx->fh, &fimc->m2m.vfd); in fimc_m2m_open() 717 struct video_device *vfd = &fimc->m2m.vfd; in fimc_register_m2m_device() local 722 memset(vfd, 0, sizeof(*vfd)); in fimc_register_m2m_device() 723 vfd->fops = &fimc_m2m_fops; in fimc_register_m2m_device() 724 vfd->ioctl_ops = &fimc_m2m_ioctl_ops; in fimc_register_m2m_device() 725 vfd->v4l2_dev = v4l2_dev; in fimc_register_m2m_device() 726 vfd->minor = -1; in fimc_register_m2m_device() [all …]
|
/linux-6.1.9/drivers/staging/media/deprecated/saa7146/common/ |
D | saa7146_fops.c | 591 int saa7146_register_device(struct video_device *vfd, struct saa7146_dev *dev, in saa7146_register_device() argument 599 vfd->fops = &video_fops; in saa7146_register_device() 601 vfd->ioctl_ops = &dev->ext_vv_data->vid_ops; in saa7146_register_device() 603 vfd->ioctl_ops = &dev->ext_vv_data->vbi_ops; in saa7146_register_device() 604 vfd->release = video_device_release_empty; in saa7146_register_device() 605 vfd->lock = &dev->v4l2_lock; in saa7146_register_device() 606 vfd->v4l2_dev = &dev->v4l2_dev; in saa7146_register_device() 607 vfd->tvnorms = 0; in saa7146_register_device() 609 vfd->tvnorms |= dev->ext_vv_data->stds[i].id; in saa7146_register_device() 610 strscpy(vfd->name, name, sizeof(vfd->name)); in saa7146_register_device() [all …]
|
/linux-6.1.9/drivers/media/pci/solo6x10/ |
D | solo6x10-v4l2.c | 424 input->std = solo_dev->vfd->tvnorms; in solo_enum_input() 647 solo_dev->vfd = video_device_alloc(); in solo_v4l2_init() 648 if (!solo_dev->vfd) in solo_v4l2_init() 651 *solo_dev->vfd = solo_v4l2_template; in solo_v4l2_init() 652 solo_dev->vfd->v4l2_dev = &solo_dev->v4l2_dev; in solo_v4l2_init() 653 solo_dev->vfd->queue = &solo_dev->vidq; in solo_v4l2_init() 654 solo_dev->vfd->lock = &solo_dev->lock; in solo_v4l2_init() 661 solo_dev->vfd->ctrl_handler = &solo_dev->disp_hdl; in solo_v4l2_init() 663 video_set_drvdata(solo_dev->vfd, solo_dev); in solo_v4l2_init() 691 ret = video_register_device(solo_dev->vfd, VFL_TYPE_VIDEO, nr); in solo_v4l2_init() [all …]
|
D | solo6x10-v4l2-enc.c | 539 v4l2_event_queue(solo_enc->vfd, &ev); in solo_enc_fillbuf() 786 input->std = solo_enc->vfd->tvnorms; in solo_enc_enum_input() 1295 solo_enc->vfd = video_device_alloc(); in solo_enc_alloc() 1296 if (!solo_enc->vfd) in solo_enc_alloc() 1299 *solo_enc->vfd = solo_enc_template; in solo_enc_alloc() 1300 solo_enc->vfd->v4l2_dev = &solo_dev->v4l2_dev; in solo_enc_alloc() 1301 solo_enc->vfd->ctrl_handler = hdl; in solo_enc_alloc() 1302 solo_enc->vfd->queue = &solo_enc->vidq; in solo_enc_alloc() 1303 solo_enc->vfd->lock = &solo_enc->lock; in solo_enc_alloc() 1304 video_set_drvdata(solo_enc->vfd, solo_enc); in solo_enc_alloc() [all …]
|
/linux-6.1.9/drivers/staging/media/sunxi/cedrus/ |
D | cedrus.c | 444 struct video_device *vfd; in cedrus_probe() local 453 dev->vfd = cedrus_video_device; in cedrus_probe() 478 vfd = &dev->vfd; in cedrus_probe() 479 vfd->lock = &dev->dev_mutex; in cedrus_probe() 480 vfd->v4l2_dev = &dev->v4l2_dev; in cedrus_probe() 482 snprintf(vfd->name, sizeof(vfd->name), "%s", cedrus_video_device.name); in cedrus_probe() 483 video_set_drvdata(vfd, dev); in cedrus_probe() 503 ret = video_register_device(vfd, VFL_TYPE_VIDEO, 0); in cedrus_probe() 510 "Device registered as /dev/video%d\n", vfd->num); in cedrus_probe() 512 ret = v4l2_m2m_register_media_controller(dev->m2m_dev, vfd, in cedrus_probe() [all …]
|
/linux-6.1.9/drivers/media/platform/ti/omap/ |
D | omap_vout.c | 577 strscpy(cap->card, vout->vfd->name, sizeof(cap->card)); in vidioc_querycap() 1310 struct video_device *vfd; in omap_vout_setup_video_data() local 1373 vfd = vout->vfd = video_device_alloc(); in omap_vout_setup_video_data() 1375 if (!vfd) { in omap_vout_setup_video_data() 1381 vfd->ctrl_handler = hdl; in omap_vout_setup_video_data() 1382 vfd->release = video_device_release; in omap_vout_setup_video_data() 1383 vfd->ioctl_ops = &vout_ioctl_ops; in omap_vout_setup_video_data() 1385 strscpy(vfd->name, VOUT_NAME, sizeof(vfd->name)); in omap_vout_setup_video_data() 1387 vfd->fops = &omap_vout_fops; in omap_vout_setup_video_data() 1388 vfd->v4l2_dev = &vout->vid_dev->v4l2_dev; in omap_vout_setup_video_data() [all …]
|
/linux-6.1.9/drivers/media/platform/ti/cal/ |
D | cal-video.c | 918 struct video_device *vfd = &ctx->vdev; in cal_ctx_v4l2_register() local 944 ret = video_register_device(vfd, VFL_TYPE_VIDEO, cal_video_nr); in cal_ctx_v4l2_register() 952 &vfd->entity, 0, in cal_ctx_v4l2_register() 958 video_unregister_device(vfd); in cal_ctx_v4l2_register() 963 video_device_node_name(vfd)); in cal_ctx_v4l2_register() 978 struct video_device *vfd = &ctx->vdev; in cal_ctx_v4l2_init() local 1004 vfd->fops = &cal_fops; in cal_ctx_v4l2_init() 1005 vfd->device_caps = V4L2_CAP_VIDEO_CAPTURE | V4L2_CAP_STREAMING in cal_ctx_v4l2_init() 1007 vfd->v4l2_dev = &ctx->cal->v4l2_dev; in cal_ctx_v4l2_init() 1008 vfd->queue = q; in cal_ctx_v4l2_init() [all …]
|
/linux-6.1.9/drivers/media/platform/st/stm32/dma2d/ |
D | dma2d.c | 605 struct video_device *vfd; in dma2d_probe() local 653 vfd = video_device_alloc(); in dma2d_probe() 654 if (!vfd) { in dma2d_probe() 660 *vfd = dma2d_videodev; in dma2d_probe() 661 vfd->lock = &dev->mutex; in dma2d_probe() 662 vfd->v4l2_dev = &dev->v4l2_dev; in dma2d_probe() 663 vfd->device_caps = V4L2_CAP_VIDEO_M2M | V4L2_CAP_STREAMING; in dma2d_probe() 673 ret = video_register_device(vfd, VFL_TYPE_VIDEO, 0); in dma2d_probe() 679 video_set_drvdata(vfd, dev); in dma2d_probe() 680 dev->vfd = vfd; in dma2d_probe() [all …]
|
/linux-6.1.9/drivers/media/platform/samsung/s5p-mfc/ |
D | s5p_mfc.c | 1270 struct video_device *vfd; in s5p_mfc_probe() local 1337 vfd = video_device_alloc(); in s5p_mfc_probe() 1338 if (!vfd) { in s5p_mfc_probe() 1343 vfd->fops = &s5p_mfc_fops; in s5p_mfc_probe() 1344 vfd->ioctl_ops = get_dec_v4l2_ioctl_ops(); in s5p_mfc_probe() 1345 vfd->release = video_device_release; in s5p_mfc_probe() 1346 vfd->lock = &dev->mfc_mutex; in s5p_mfc_probe() 1347 vfd->v4l2_dev = &dev->v4l2_dev; in s5p_mfc_probe() 1348 vfd->vfl_dir = VFL_DIR_M2M; in s5p_mfc_probe() 1349 vfd->device_caps = V4L2_CAP_VIDEO_M2M_MPLANE | V4L2_CAP_STREAMING; in s5p_mfc_probe() [all …]
|
/linux-6.1.9/drivers/media/platform/samsung/s5p-g2d/ |
D | g2d.c | 625 struct video_device *vfd; in g2d_probe() local 684 vfd = video_device_alloc(); in g2d_probe() 685 if (!vfd) { in g2d_probe() 690 *vfd = g2d_videodev; in g2d_probe() 691 set_bit(V4L2_FL_QUIRK_INVERTED_CROP, &vfd->flags); in g2d_probe() 692 vfd->lock = &dev->mutex; in g2d_probe() 693 vfd->v4l2_dev = &dev->v4l2_dev; in g2d_probe() 694 vfd->device_caps = V4L2_CAP_VIDEO_M2M | V4L2_CAP_STREAMING; in g2d_probe() 713 ret = video_register_device(vfd, VFL_TYPE_VIDEO, 0); in g2d_probe() 718 video_set_drvdata(vfd, dev); in g2d_probe() [all …]
|
/linux-6.1.9/drivers/media/platform/verisilicon/ |
D | hantro_drv.c | 790 struct video_device *vfd; in hantro_add_func() local 802 vfd = &func->vdev; in hantro_add_func() 803 vfd->fops = &hantro_fops; in hantro_add_func() 804 vfd->release = video_device_release_empty; in hantro_add_func() 805 vfd->lock = &vpu->vpu_mutex; in hantro_add_func() 806 vfd->v4l2_dev = &vpu->v4l2_dev; in hantro_add_func() 807 vfd->vfl_dir = VFL_DIR_M2M; in hantro_add_func() 808 vfd->device_caps = V4L2_CAP_STREAMING | V4L2_CAP_VIDEO_M2M_MPLANE; in hantro_add_func() 809 vfd->ioctl_ops = &hantro_ioctl_ops; in hantro_add_func() 810 snprintf(vfd->name, sizeof(vfd->name), "%s-%s", match->compatible, in hantro_add_func() [all …]
|
/linux-6.1.9/drivers/media/platform/nxp/ |
D | mx2_emmaprp.c | 198 struct video_device *vfd; member 806 struct video_device *vfd; in emmaprp_probe() local 834 vfd = video_device_alloc(); in emmaprp_probe() 835 if (!vfd) { in emmaprp_probe() 841 *vfd = emmaprp_videodev; in emmaprp_probe() 842 vfd->lock = &pcdev->dev_mutex; in emmaprp_probe() 843 vfd->v4l2_dev = &pcdev->v4l2_dev; in emmaprp_probe() 845 video_set_drvdata(vfd, pcdev); in emmaprp_probe() 846 pcdev->vfd = vfd; in emmaprp_probe() 848 " Device registered as /dev/video%d\n", vfd->num); in emmaprp_probe() [all …]
|
/linux-6.1.9/drivers/media/test-drivers/vicodec/ |
D | vicodec-core.c | 98 struct video_device vfd; member 1819 struct video_device *vfd = video_devdata(file); in vicodec_open() local 1827 if (mutex_lock_interruptible(vfd->lock)) in vicodec_open() 1835 if (vfd == &dev->stateful_enc.vfd) in vicodec_open() 1837 else if (vfd == &dev->stateless_dec.vfd) in vicodec_open() 1923 mutex_unlock(vfd->lock); in vicodec_open() 1929 struct video_device *vfd = video_devdata(file); in vicodec_release() local 1932 mutex_lock(vfd->lock); in vicodec_release() 1934 mutex_unlock(vfd->lock); in vicodec_release() 2030 struct video_device *vfd; in register_instance() local [all …]
|
/linux-6.1.9/drivers/media/platform/rockchip/rga/ |
D | rga.c | 802 struct video_device *vfd; in rga_probe() local 845 vfd = video_device_alloc(); in rga_probe() 846 if (!vfd) { in rga_probe() 851 *vfd = rga_videodev; in rga_probe() 852 vfd->lock = &rga->mutex; in rga_probe() 853 vfd->v4l2_dev = &rga->v4l2_dev; in rga_probe() 855 video_set_drvdata(vfd, rga); in rga_probe() 856 rga->vfd = vfd; in rga_probe() 903 ret = video_register_device(vfd, VFL_TYPE_VIDEO, -1); in rga_probe() 910 vfd->name, video_device_node_name(vfd)); in rga_probe() [all …]
|
/linux-6.1.9/drivers/media/platform/nxp/dw100/ |
D | dw100.c | 69 struct video_device vfd; member 1482 struct video_device *vfd = &dw_dev->vfd; in dw100_init_video_device() local 1484 vfd->vfl_dir = VFL_DIR_M2M; in dw100_init_video_device() 1485 vfd->fops = &dw100_fops; in dw100_init_video_device() 1486 vfd->device_caps = V4L2_CAP_VIDEO_M2M_MPLANE | V4L2_CAP_STREAMING; in dw100_init_video_device() 1487 vfd->ioctl_ops = &dw100_ioctl_ops; in dw100_init_video_device() 1488 vfd->minor = -1; in dw100_init_video_device() 1489 vfd->release = video_device_release_empty; in dw100_init_video_device() 1490 vfd->v4l2_dev = &dw_dev->v4l2_dev; in dw100_init_video_device() 1491 vfd->lock = &dw_dev->vfd_mutex; in dw100_init_video_device() [all …]
|
/linux-6.1.9/drivers/media/platform/samsung/s3c-camif/ |
D | camif-capture.c | 1103 struct video_device *vfd = &vp->vdev; in s3c_camif_register_video_node() local 1107 memset(vfd, 0, sizeof(*vfd)); in s3c_camif_register_video_node() 1108 snprintf(vfd->name, sizeof(vfd->name), "camif-%s", in s3c_camif_register_video_node() 1111 vfd->fops = &s3c_camif_fops; in s3c_camif_register_video_node() 1112 vfd->ioctl_ops = &s3c_camif_ioctl_ops; in s3c_camif_register_video_node() 1113 vfd->v4l2_dev = &camif->v4l2_dev; in s3c_camif_register_video_node() 1114 vfd->minor = -1; in s3c_camif_register_video_node() 1115 vfd->release = video_device_release_empty; in s3c_camif_register_video_node() 1116 vfd->lock = &camif->lock; in s3c_camif_register_video_node() 1138 ret = media_entity_pads_init(&vfd->entity, 1, &vp->pad); in s3c_camif_register_video_node() [all …]
|
/linux-6.1.9/drivers/media/platform/sunxi/sun8i-rotate/ |
D | sun8i_rotate.c | 739 struct video_device *vfd; in rotate_probe() local 746 dev->vfd = rotate_video_device; in rotate_probe() 795 vfd = &dev->vfd; in rotate_probe() 796 vfd->lock = &dev->dev_mutex; in rotate_probe() 797 vfd->v4l2_dev = &dev->v4l2_dev; in rotate_probe() 799 snprintf(vfd->name, sizeof(vfd->name), "%s", in rotate_probe() 801 video_set_drvdata(vfd, dev); in rotate_probe() 803 ret = video_register_device(vfd, VFL_TYPE_VIDEO, 0); in rotate_probe() 811 "Device registered as /dev/video%d\n", vfd->num); in rotate_probe() 829 video_unregister_device(&dev->vfd); in rotate_probe() [all …]
|
/linux-6.1.9/drivers/media/platform/amlogic/meson-ge2d/ |
D | ge2d.c | 88 struct video_device *vfd; member 923 struct video_device *vfd; in ge2d_probe() local 982 vfd = video_device_alloc(); in ge2d_probe() 983 if (!vfd) { in ge2d_probe() 989 *vfd = ge2d_videodev; in ge2d_probe() 990 vfd->lock = &ge2d->mutex; in ge2d_probe() 991 vfd->v4l2_dev = &ge2d->v4l2_dev; in ge2d_probe() 993 video_set_drvdata(vfd, ge2d); in ge2d_probe() 994 ge2d->vfd = vfd; in ge2d_probe() 1004 ret = video_register_device(vfd, VFL_TYPE_VIDEO, -1); in ge2d_probe() [all …]
|
/linux-6.1.9/drivers/media/platform/sunxi/sun8i-di/ |
D | sun8i-di.c | 805 struct video_device *vfd; in deinterlace_probe() local 812 dev->vfd = deinterlace_video_device; in deinterlace_probe() 868 vfd = &dev->vfd; in deinterlace_probe() 869 vfd->lock = &dev->dev_mutex; in deinterlace_probe() 870 vfd->v4l2_dev = &dev->v4l2_dev; in deinterlace_probe() 872 snprintf(vfd->name, sizeof(vfd->name), "%s", in deinterlace_probe() 874 video_set_drvdata(vfd, dev); in deinterlace_probe() 876 ret = video_register_device(vfd, VFL_TYPE_VIDEO, 0); in deinterlace_probe() 884 "Device registered as /dev/video%d\n", vfd->num); in deinterlace_probe() 902 video_unregister_device(&dev->vfd); in deinterlace_probe() [all …]
|