/Linux-v5.4/drivers/media/platform/vivid/ |
D | vivid-core.c | 663 struct video_device *vfd; in vivid_create_instance() local 1271 vfd = &dev->vid_cap_dev; in vivid_create_instance() 1272 vfd->fops = &vivid_fops; in vivid_create_instance() 1273 vfd->ioctl_ops = &vivid_ioctl_ops; in vivid_create_instance() 1274 vfd->device_caps = dev->vid_cap_caps; in vivid_create_instance() 1275 vfd->release = video_device_release_empty; in vivid_create_instance() 1276 vfd->v4l2_dev = &dev->v4l2_dev; in vivid_create_instance() 1277 vfd->queue = &dev->vb_vid_cap_q; in vivid_create_instance() 1278 vfd->tvnorms = tvnorms_cap; in vivid_create_instance() 1284 vfd->lock = &dev->mutex; in vivid_create_instance() [all …]
|
/Linux-v5.4/drivers/media/v4l2-core/ |
D | v4l2-ioctl.c | 38 #define is_valid_ioctl(vfd, cmd) test_bit(_IOC_NR(cmd), (vfd)->valid_ioctls) argument 935 struct video_device *vfd = video_devdata(file); in check_fmt() local 936 const struct v4l2_ioctl_ops *ops = vfd->ioctl_ops; in check_fmt() 937 bool is_vid = vfd->vfl_type == VFL_TYPE_GRABBER; in check_fmt() 938 bool is_vbi = vfd->vfl_type == VFL_TYPE_VBI; in check_fmt() 939 bool is_sdr = vfd->vfl_type == VFL_TYPE_SDR; in check_fmt() 940 bool is_tch = vfd->vfl_type == VFL_TYPE_TOUCH; in check_fmt() 941 bool is_rx = vfd->vfl_dir != VFL_DIR_TX; in check_fmt() 942 bool is_tx = vfd->vfl_dir != VFL_DIR_RX; in check_fmt() 1051 struct video_device *vfd = video_devdata(file); in v4l_querycap() local [all …]
|
/Linux-v5.4/drivers/staging/media/imx/ |
D | imx-media-dev-common.c | 109 vdev->vfd->entity.name, entity->name, srcpad->index); in imx_media_add_vdev_to_pad() 181 link = list_first_entry(&vdev->vfd->entity.links, in imx_media_create_pad_vdev_lists() 222 struct video_device *vfd, in imx_media_inherit_controls() argument 232 vfd->entity.name, sd->entity.name); in imx_media_inherit_controls() 234 ret = v4l2_ctrl_add_handler(vfd->ctrl_handler, in imx_media_inherit_controls() 252 ret = imx_media_inherit_controls(imxmd, vfd, pad->entity); in imx_media_inherit_controls() 268 struct video_device *vfd; in imx_media_link_notify() local 299 vfd = pad_vdev->vdev->vfd; in imx_media_link_notify() 302 vfd->entity.name); in imx_media_link_notify() 303 v4l2_ctrl_handler_free(vfd->ctrl_handler); in imx_media_link_notify() [all …]
|
D | imx-media-capture.c | 634 struct video_device *vfd = priv->vdev.vfd; in capture_open() local 644 ret = v4l2_pipeline_pm_use(&vfd->entity, 1); in capture_open() 655 struct video_device *vfd = priv->vdev.vfd; in capture_release() local 665 v4l2_pipeline_pm_use(&vfd->entity, 0); in capture_release() 733 struct video_device *vfd = vdev->vfd; in imx_media_capture_device_register() local 741 vfd->v4l2_dev = v4l2_dev; in imx_media_capture_device_register() 743 ret = video_register_device(vfd, VFL_TYPE_GRABBER, -1); in imx_media_capture_device_register() 769 ret = media_entity_pads_init(&vfd->entity, 1, &priv->vdev_pad); in imx_media_capture_device_register() 777 &vfd->entity, 0, 0); in imx_media_capture_device_register() 800 v4l2_info(sd, "Registered %s as /dev/%s\n", vfd->name, in imx_media_capture_device_register() [all …]
|
D | imx-media-csc-scaler.c | 132 v4l2_err(ctx->priv->vdev.vfd->v4l2_dev, in device_run() 247 v4l2_err(ctx->priv->vdev.vfd->v4l2_dev, "%s: queue busy\n", in ipu_csc_scaler_s_fmt() 517 v4l2_warn(ctx->priv->vdev.vfd->v4l2_dev, "removing old ICC\n"); in ipu_csc_scaler_start_streaming() 535 v4l2_err(ctx->priv->vdev.vfd->v4l2_dev, "%s: error %d\n", in ipu_csc_scaler_start_streaming() 847 struct video_device *vfd = vdev->vfd; in imx_media_csc_scaler_device_register() local 850 vfd->v4l2_dev = &priv->md->v4l2_dev; in imx_media_csc_scaler_device_register() 852 ret = video_register_device(vfd, VFL_TYPE_GRABBER, -1); in imx_media_csc_scaler_device_register() 854 v4l2_err(vfd->v4l2_dev, "Failed to register video device\n"); in imx_media_csc_scaler_device_register() 858 v4l2_info(vfd->v4l2_dev, "Registered %s as /dev/%s\n", vfd->name, in imx_media_csc_scaler_device_register() 859 video_device_node_name(vfd)); in imx_media_csc_scaler_device_register() [all …]
|
/Linux-v5.4/drivers/media/platform/exynos4-is/ |
D | fimc-m2m.c | 358 v4l2_err(&fimc->m2m.vfd, "queue (%d) busy\n", f->type); in fimc_m2m_s_fmt_mplane() 439 v4l2_err(&fimc->m2m.vfd, in fimc_m2m_try_selection() 514 v4l2_err(&fimc->m2m.vfd, "Out of scaler range\n"); in fimc_m2m_s_selection() 628 v4l2_fh_init(&ctx->fh, &fimc->m2m.vfd); in fimc_m2m_open() 720 struct video_device *vfd = &fimc->m2m.vfd; in fimc_register_m2m_device() local 725 memset(vfd, 0, sizeof(*vfd)); in fimc_register_m2m_device() 726 vfd->fops = &fimc_m2m_fops; in fimc_register_m2m_device() 727 vfd->ioctl_ops = &fimc_m2m_ioctl_ops; in fimc_register_m2m_device() 728 vfd->v4l2_dev = v4l2_dev; in fimc_register_m2m_device() 729 vfd->minor = -1; in fimc_register_m2m_device() [all …]
|
D | fimc-capture.c | 1733 struct video_device *vfd = &fimc->vid_cap.ve.vdev; in fimc_register_capture_device() local 1751 memset(vfd, 0, sizeof(*vfd)); in fimc_register_capture_device() 1752 snprintf(vfd->name, sizeof(vfd->name), "fimc.%d.capture", fimc->id); in fimc_register_capture_device() 1754 vfd->fops = &fimc_capture_fops; in fimc_register_capture_device() 1755 vfd->ioctl_ops = &fimc_capture_ioctl_ops; in fimc_register_capture_device() 1756 vfd->v4l2_dev = v4l2_dev; in fimc_register_capture_device() 1757 vfd->minor = -1; in fimc_register_capture_device() 1758 vfd->release = video_device_release_empty; in fimc_register_capture_device() 1759 vfd->queue = q; in fimc_register_capture_device() 1760 vfd->lock = &fimc->lock; in fimc_register_capture_device() [all …]
|
D | fimc-lite.c | 1256 struct video_device *vfd = &fimc->ve.vdev; in fimc_lite_subdev_registered() local 1259 memset(vfd, 0, sizeof(*vfd)); in fimc_lite_subdev_registered() 1262 snprintf(vfd->name, sizeof(vfd->name), "fimc-lite.%d.capture", in fimc_lite_subdev_registered() 1265 vfd->fops = &fimc_lite_fops; in fimc_lite_subdev_registered() 1266 vfd->ioctl_ops = &fimc_lite_ioctl_ops; in fimc_lite_subdev_registered() 1267 vfd->v4l2_dev = sd->v4l2_dev; in fimc_lite_subdev_registered() 1268 vfd->minor = -1; in fimc_lite_subdev_registered() 1269 vfd->release = video_device_release_empty; in fimc_lite_subdev_registered() 1270 vfd->queue = q; in fimc_lite_subdev_registered() 1271 vfd->device_caps = V4L2_CAP_VIDEO_CAPTURE_MPLANE | V4L2_CAP_STREAMING; in fimc_lite_subdev_registered() [all …]
|
/Linux-v5.4/drivers/staging/media/sunxi/cedrus/ |
D | cedrus.c | 314 struct video_device *vfd; in cedrus_probe() local 321 dev->vfd = cedrus_video_device; in cedrus_probe() 342 vfd = &dev->vfd; in cedrus_probe() 343 vfd->lock = &dev->dev_mutex; in cedrus_probe() 344 vfd->v4l2_dev = &dev->v4l2_dev; in cedrus_probe() 346 snprintf(vfd->name, sizeof(vfd->name), "%s", cedrus_video_device.name); in cedrus_probe() 347 video_set_drvdata(vfd, dev); in cedrus_probe() 365 ret = video_register_device(vfd, VFL_TYPE_GRABBER, 0); in cedrus_probe() 372 "Device registered as /dev/video%d\n", vfd->num); in cedrus_probe() 374 ret = v4l2_m2m_register_media_controller(dev->m2m_dev, vfd, in cedrus_probe() [all …]
|
/Linux-v5.4/drivers/media/common/saa7146/ |
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-v5.4/drivers/media/pci/solo6x10/ |
D | solo6x10-v4l2.c | 428 input->std = solo_dev->vfd->tvnorms; in solo_enum_input() 651 solo_dev->vfd = video_device_alloc(); in solo_v4l2_init() 652 if (!solo_dev->vfd) in solo_v4l2_init() 655 *solo_dev->vfd = solo_v4l2_template; in solo_v4l2_init() 656 solo_dev->vfd->v4l2_dev = &solo_dev->v4l2_dev; in solo_v4l2_init() 657 solo_dev->vfd->queue = &solo_dev->vidq; in solo_v4l2_init() 658 solo_dev->vfd->lock = &solo_dev->lock; in solo_v4l2_init() 665 solo_dev->vfd->ctrl_handler = &solo_dev->disp_hdl; in solo_v4l2_init() 667 video_set_drvdata(solo_dev->vfd, solo_dev); in solo_v4l2_init() 695 ret = video_register_device(solo_dev->vfd, VFL_TYPE_GRABBER, nr); in solo_v4l2_init() [all …]
|
D | solo6x10-v4l2-enc.c | 539 v4l2_event_queue(solo_enc->vfd, &ev); in solo_enc_fillbuf() 789 input->std = solo_enc->vfd->tvnorms; in solo_enc_enum_input() 1297 solo_enc->vfd = video_device_alloc(); in solo_enc_alloc() 1298 if (!solo_enc->vfd) in solo_enc_alloc() 1301 *solo_enc->vfd = solo_enc_template; in solo_enc_alloc() 1302 solo_enc->vfd->v4l2_dev = &solo_dev->v4l2_dev; in solo_enc_alloc() 1303 solo_enc->vfd->ctrl_handler = hdl; in solo_enc_alloc() 1304 solo_enc->vfd->queue = &solo_enc->vidq; in solo_enc_alloc() 1305 solo_enc->vfd->lock = &solo_enc->lock; in solo_enc_alloc() 1306 video_set_drvdata(solo_enc->vfd, solo_enc); in solo_enc_alloc() [all …]
|
/Linux-v5.4/drivers/media/platform/omap/ |
D | omap_vout.c | 576 strscpy(cap->card, vout->vfd->name, sizeof(cap->card)); in vidioc_querycap() 1308 struct video_device *vfd; in omap_vout_setup_video_data() local 1371 vfd = vout->vfd = video_device_alloc(); in omap_vout_setup_video_data() 1373 if (!vfd) { in omap_vout_setup_video_data() 1379 vfd->ctrl_handler = hdl; in omap_vout_setup_video_data() 1380 vfd->release = video_device_release; in omap_vout_setup_video_data() 1381 vfd->ioctl_ops = &vout_ioctl_ops; in omap_vout_setup_video_data() 1383 strscpy(vfd->name, VOUT_NAME, sizeof(vfd->name)); in omap_vout_setup_video_data() 1385 vfd->fops = &omap_vout_fops; in omap_vout_setup_video_data() 1386 vfd->v4l2_dev = &vout->vid_dev->v4l2_dev; in omap_vout_setup_video_data() [all …]
|
/Linux-v5.4/drivers/media/platform/s5p-g2d/ |
D | g2d.c | 622 struct video_device *vfd; in g2d_probe() local 687 vfd = video_device_alloc(); in g2d_probe() 688 if (!vfd) { in g2d_probe() 693 *vfd = g2d_videodev; in g2d_probe() 694 set_bit(V4L2_FL_QUIRK_INVERTED_CROP, &vfd->flags); in g2d_probe() 695 vfd->lock = &dev->mutex; in g2d_probe() 696 vfd->v4l2_dev = &dev->v4l2_dev; in g2d_probe() 697 vfd->device_caps = V4L2_CAP_VIDEO_M2M | V4L2_CAP_STREAMING; in g2d_probe() 698 ret = video_register_device(vfd, VFL_TYPE_GRABBER, 0); in g2d_probe() 703 video_set_drvdata(vfd, dev); in g2d_probe() [all …]
|
/Linux-v5.4/drivers/media/platform/s5p-mfc/ |
D | s5p_mfc.c | 1269 struct video_device *vfd; in s5p_mfc_probe() local 1336 vfd = video_device_alloc(); in s5p_mfc_probe() 1337 if (!vfd) { in s5p_mfc_probe() 1342 vfd->fops = &s5p_mfc_fops; in s5p_mfc_probe() 1343 vfd->ioctl_ops = get_dec_v4l2_ioctl_ops(); in s5p_mfc_probe() 1344 vfd->release = video_device_release; in s5p_mfc_probe() 1345 vfd->lock = &dev->mfc_mutex; in s5p_mfc_probe() 1346 vfd->v4l2_dev = &dev->v4l2_dev; in s5p_mfc_probe() 1347 vfd->vfl_dir = VFL_DIR_M2M; in s5p_mfc_probe() 1348 vfd->device_caps = V4L2_CAP_VIDEO_M2M_MPLANE | V4L2_CAP_STREAMING; in s5p_mfc_probe() [all …]
|
/Linux-v5.4/drivers/staging/media/hantro/ |
D | hantro_drv.c | 632 struct video_device *vfd; in hantro_add_func() local 644 vfd = &func->vdev; in hantro_add_func() 645 vfd->fops = &hantro_fops; in hantro_add_func() 646 vfd->release = video_device_release_empty; in hantro_add_func() 647 vfd->lock = &vpu->vpu_mutex; in hantro_add_func() 648 vfd->v4l2_dev = &vpu->v4l2_dev; in hantro_add_func() 649 vfd->vfl_dir = VFL_DIR_M2M; in hantro_add_func() 650 vfd->device_caps = V4L2_CAP_STREAMING | V4L2_CAP_VIDEO_M2M_MPLANE; in hantro_add_func() 651 vfd->ioctl_ops = &hantro_ioctl_ops; in hantro_add_func() 652 snprintf(vfd->name, sizeof(vfd->name), "%s-%s", match->compatible, in hantro_add_func() [all …]
|
/Linux-v5.4/drivers/media/platform/ |
D | mx2_emmaprp.c | 198 struct video_device *vfd; member 806 struct video_device *vfd; in emmaprp_probe() local 836 vfd = video_device_alloc(); in emmaprp_probe() 837 if (!vfd) { in emmaprp_probe() 843 *vfd = emmaprp_videodev; in emmaprp_probe() 844 vfd->lock = &pcdev->dev_mutex; in emmaprp_probe() 845 vfd->v4l2_dev = &pcdev->v4l2_dev; in emmaprp_probe() 847 video_set_drvdata(vfd, pcdev); in emmaprp_probe() 848 pcdev->vfd = vfd; in emmaprp_probe() 850 " Device registered as /dev/video%d\n", vfd->num); in emmaprp_probe() [all …]
|
D | m2m-deinterlace.c | 123 struct video_device vfd; member 922 struct video_device *vfd; in deinterlace_probe() local 951 vfd = &pcdev->vfd; in deinterlace_probe() 952 *vfd = deinterlace_videodev; in deinterlace_probe() 953 vfd->lock = &pcdev->dev_mutex; in deinterlace_probe() 954 vfd->v4l2_dev = &pcdev->v4l2_dev; in deinterlace_probe() 956 ret = video_register_device(vfd, VFL_TYPE_GRABBER, 0); in deinterlace_probe() 962 video_set_drvdata(vfd, pcdev); in deinterlace_probe() 964 " Device registered as /dev/video%d\n", vfd->num); in deinterlace_probe() 978 video_unregister_device(&pcdev->vfd); in deinterlace_probe() [all …]
|
D | vim2m.c | 192 struct video_device vfd; member 1271 struct vim2m_dev *dev = container_of(vdev, struct vim2m_dev, vfd); in vim2m_device_release() 1311 struct video_device *vfd; in vim2m_probe() local 1325 dev->vfd = vim2m_videodev; in vim2m_probe() 1326 vfd = &dev->vfd; in vim2m_probe() 1327 vfd->lock = &dev->dev_mutex; in vim2m_probe() 1328 vfd->v4l2_dev = &dev->v4l2_dev; in vim2m_probe() 1330 ret = video_register_device(vfd, VFL_TYPE_GRABBER, 0); in vim2m_probe() 1336 video_set_drvdata(vfd, dev); in vim2m_probe() 1338 "Device registered as /dev/video%d\n", vfd->num); in vim2m_probe() [all …]
|
D | imx-pxp.c | 190 struct video_device vfd; member 1640 struct video_device *vfd; in pxp_probe() local 1693 dev->vfd = pxp_videodev; in pxp_probe() 1694 vfd = &dev->vfd; in pxp_probe() 1695 vfd->lock = &dev->dev_mutex; in pxp_probe() 1696 vfd->v4l2_dev = &dev->v4l2_dev; in pxp_probe() 1698 video_set_drvdata(vfd, dev); in pxp_probe() 1699 snprintf(vfd->name, sizeof(vfd->name), "%s", pxp_videodev.name); in pxp_probe() 1701 "Device registered as /dev/video%d\n", vfd->num); in pxp_probe() 1712 ret = video_register_device(vfd, VFL_TYPE_GRABBER, 0); in pxp_probe() [all …]
|
/Linux-v5.4/drivers/media/platform/rockchip/rga/ |
D | rga.c | 802 struct video_device *vfd; in rga_probe() local 848 vfd = video_device_alloc(); in rga_probe() 849 if (!vfd) { in rga_probe() 854 *vfd = rga_videodev; in rga_probe() 855 vfd->lock = &rga->mutex; in rga_probe() 856 vfd->v4l2_dev = &rga->v4l2_dev; in rga_probe() 858 video_set_drvdata(vfd, rga); in rga_probe() 859 rga->vfd = vfd; in rga_probe() 892 ret = video_register_device(vfd, VFL_TYPE_GRABBER, -1); in rga_probe() 899 vfd->name, video_device_node_name(vfd)); in rga_probe() [all …]
|
/Linux-v5.4/drivers/media/platform/vicodec/ |
D | vicodec-core.c | 98 struct video_device vfd; member 1886 struct video_device *vfd = video_devdata(file); in vicodec_open() local 1894 if (mutex_lock_interruptible(vfd->lock)) in vicodec_open() 1902 if (vfd == &dev->stateful_enc.vfd) in vicodec_open() 1904 else if (vfd == &dev->stateless_dec.vfd) in vicodec_open() 1990 mutex_unlock(vfd->lock); in vicodec_open() 1996 struct video_device *vfd = video_devdata(file); in vicodec_release() local 1999 mutex_lock(vfd->lock); in vicodec_release() 2001 mutex_unlock(vfd->lock); in vicodec_release() 2096 struct video_device *vfd; in register_instance() local [all …]
|
/Linux-v5.4/drivers/media/platform/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-v5.4/drivers/media/pci/saa7164/ |
D | saa7164-vbi.c | 681 struct video_device *vfd; in saa7164_vbi_alloc() local 686 vfd = video_device_alloc(); in saa7164_vbi_alloc() 687 if (NULL == vfd) in saa7164_vbi_alloc() 690 *vfd = *template; in saa7164_vbi_alloc() 691 snprintf(vfd->name, sizeof(vfd->name), "%s %s (%s)", dev->name, in saa7164_vbi_alloc() 694 vfd->v4l2_dev = &dev->v4l2_dev; in saa7164_vbi_alloc() 695 vfd->release = video_device_release; in saa7164_vbi_alloc() 696 return vfd; in saa7164_vbi_alloc()
|
/Linux-v5.4/drivers/media/usb/tm6000/ |
D | tm6000-video.c | 1588 struct video_device *vfd, in vdev_init() argument 1592 *vfd = *template; in vdev_init() 1593 vfd->v4l2_dev = &dev->v4l2_dev; in vdev_init() 1594 vfd->release = video_device_release_empty; in vdev_init() 1595 vfd->lock = &dev->lock; in vdev_init() 1597 snprintf(vfd->name, sizeof(vfd->name), "%s %s", dev->name, type_name); in vdev_init() 1599 video_set_drvdata(vfd, dev); in vdev_init() 1630 vdev_init(dev, &dev->vfd, &tm6000_template, "video"); in tm6000_v4l2_register() 1632 dev->vfd.ctrl_handler = &dev->ctrl_handler; in tm6000_v4l2_register() 1633 dev->vfd.device_caps = V4L2_CAP_VIDEO_CAPTURE | V4L2_CAP_STREAMING | in tm6000_v4l2_register() [all …]
|