/Linux-v4.19/drivers/media/platform/vivid/ |
D | vivid-core.c | 645 struct video_device *vfd; in vivid_create_instance() local 1159 vfd = &dev->vid_cap_dev; in vivid_create_instance() 1160 snprintf(vfd->name, sizeof(vfd->name), in vivid_create_instance() 1162 vfd->fops = &vivid_fops; in vivid_create_instance() 1163 vfd->ioctl_ops = &vivid_ioctl_ops; in vivid_create_instance() 1164 vfd->device_caps = dev->vid_cap_caps; in vivid_create_instance() 1165 vfd->release = video_device_release_empty; in vivid_create_instance() 1166 vfd->v4l2_dev = &dev->v4l2_dev; in vivid_create_instance() 1167 vfd->queue = &dev->vb_vid_cap_q; in vivid_create_instance() 1168 vfd->tvnorms = tvnorms_cap; in vivid_create_instance() [all …]
|
/Linux-v4.19/drivers/media/v4l2-core/ |
D | v4l2-ioctl.c | 42 #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() 1041 struct video_device *vfd = video_devdata(file); in v4l_querycap() local [all …]
|
/Linux-v4.19/drivers/staging/media/imx/ |
D | imx-media-capture.c | 516 struct video_device *vfd = priv->vdev.vfd; in capture_open() local 526 ret = v4l2_pipeline_pm_use(&vfd->entity, 1); in capture_open() 537 struct video_device *vfd = priv->vdev.vfd; in capture_release() local 548 v4l2_pipeline_pm_use(&vfd->entity, 0); in capture_release() 628 struct video_device *vfd = vdev->vfd; in imx_media_capture_device_register() local 636 vfd->v4l2_dev = sd->v4l2_dev; in imx_media_capture_device_register() 638 ret = video_register_device(vfd, VFL_TYPE_GRABBER, -1); in imx_media_capture_device_register() 664 ret = media_entity_pads_init(&vfd->entity, 1, &priv->vdev_pad); in imx_media_capture_device_register() 672 &vfd->entity, 0, 0); in imx_media_capture_device_register() 693 v4l2_info(sd, "Registered %s as /dev/%s\n", vfd->name, in imx_media_capture_device_register() [all …]
|
D | imx-media-dev.c | 262 vdev->vfd->entity.name, entity->name, srcpad->index); in imx_media_add_vdev_to_pad() 335 link = list_first_entry(&vdev->vfd->entity.links, in imx_media_create_pad_vdev_lists() 380 struct video_device *vfd, in imx_media_inherit_controls() argument 390 vfd->entity.name, sd->entity.name); in imx_media_inherit_controls() 392 ret = v4l2_ctrl_add_handler(vfd->ctrl_handler, in imx_media_inherit_controls() 410 ret = imx_media_inherit_controls(imxmd, vfd, pad->entity); in imx_media_inherit_controls() 425 struct video_device *vfd; in imx_media_link_notify() local 458 vfd = pad_vdev->vdev->vfd; in imx_media_link_notify() 461 vfd->entity.name); in imx_media_link_notify() 462 v4l2_ctrl_handler_free(vfd->ctrl_handler); in imx_media_link_notify() [all …]
|
/Linux-v4.19/drivers/media/platform/exynos4-is/ |
D | fimc-m2m.c | 364 v4l2_err(&fimc->m2m.vfd, "queue (%d) busy\n", f->type); in fimc_m2m_s_fmt_mplane() 430 v4l2_err(&fimc->m2m.vfd, in fimc_m2m_try_crop() 500 v4l2_err(&fimc->m2m.vfd, "Out of scaler range\n"); in fimc_m2m_s_crop() 615 v4l2_fh_init(&ctx->fh, &fimc->m2m.vfd); in fimc_m2m_open() 707 struct video_device *vfd = &fimc->m2m.vfd; in fimc_register_m2m_device() local 712 memset(vfd, 0, sizeof(*vfd)); in fimc_register_m2m_device() 713 vfd->fops = &fimc_m2m_fops; in fimc_register_m2m_device() 714 vfd->ioctl_ops = &fimc_m2m_ioctl_ops; in fimc_register_m2m_device() 715 vfd->v4l2_dev = v4l2_dev; in fimc_register_m2m_device() 716 vfd->minor = -1; in fimc_register_m2m_device() [all …]
|
D | fimc-capture.c | 1740 struct video_device *vfd = &fimc->vid_cap.ve.vdev; in fimc_register_capture_device() local 1758 memset(vfd, 0, sizeof(*vfd)); in fimc_register_capture_device() 1759 snprintf(vfd->name, sizeof(vfd->name), "fimc.%d.capture", fimc->id); in fimc_register_capture_device() 1761 vfd->fops = &fimc_capture_fops; in fimc_register_capture_device() 1762 vfd->ioctl_ops = &fimc_capture_ioctl_ops; in fimc_register_capture_device() 1763 vfd->v4l2_dev = v4l2_dev; in fimc_register_capture_device() 1764 vfd->minor = -1; in fimc_register_capture_device() 1765 vfd->release = video_device_release_empty; in fimc_register_capture_device() 1766 vfd->queue = q; in fimc_register_capture_device() 1767 vfd->lock = &fimc->lock; in fimc_register_capture_device() [all …]
|
D | fimc-lite.c | 1270 struct video_device *vfd = &fimc->ve.vdev; in fimc_lite_subdev_registered() local 1273 memset(vfd, 0, sizeof(*vfd)); in fimc_lite_subdev_registered() 1276 snprintf(vfd->name, sizeof(vfd->name), "fimc-lite.%d.capture", in fimc_lite_subdev_registered() 1279 vfd->fops = &fimc_lite_fops; in fimc_lite_subdev_registered() 1280 vfd->ioctl_ops = &fimc_lite_ioctl_ops; in fimc_lite_subdev_registered() 1281 vfd->v4l2_dev = sd->v4l2_dev; in fimc_lite_subdev_registered() 1282 vfd->minor = -1; in fimc_lite_subdev_registered() 1283 vfd->release = video_device_release_empty; in fimc_lite_subdev_registered() 1284 vfd->queue = q; in fimc_lite_subdev_registered() 1306 ret = media_entity_pads_init(&vfd->entity, 1, &fimc->vd_pad); in fimc_lite_subdev_registered() [all …]
|
/Linux-v4.19/drivers/media/pci/solo6x10/ |
D | solo6x10-v4l2.c | 440 input->std = solo_dev->vfd->tvnorms; in solo_enum_input() 665 solo_dev->vfd = video_device_alloc(); in solo_v4l2_init() 666 if (!solo_dev->vfd) in solo_v4l2_init() 669 *solo_dev->vfd = solo_v4l2_template; in solo_v4l2_init() 670 solo_dev->vfd->v4l2_dev = &solo_dev->v4l2_dev; in solo_v4l2_init() 671 solo_dev->vfd->queue = &solo_dev->vidq; in solo_v4l2_init() 672 solo_dev->vfd->lock = &solo_dev->lock; in solo_v4l2_init() 679 solo_dev->vfd->ctrl_handler = &solo_dev->disp_hdl; in solo_v4l2_init() 681 video_set_drvdata(solo_dev->vfd, solo_dev); in solo_v4l2_init() 709 ret = video_register_device(solo_dev->vfd, VFL_TYPE_GRABBER, nr); in solo_v4l2_init() [all …]
|
D | solo6x10-v4l2-enc.c | 548 v4l2_event_queue(solo_enc->vfd, &ev); in solo_enc_fillbuf() 801 input->std = solo_enc->vfd->tvnorms; in solo_enc_enum_input() 1314 solo_enc->vfd = video_device_alloc(); in solo_enc_alloc() 1315 if (!solo_enc->vfd) in solo_enc_alloc() 1318 *solo_enc->vfd = solo_enc_template; in solo_enc_alloc() 1319 solo_enc->vfd->v4l2_dev = &solo_dev->v4l2_dev; in solo_enc_alloc() 1320 solo_enc->vfd->ctrl_handler = hdl; in solo_enc_alloc() 1321 solo_enc->vfd->queue = &solo_enc->vidq; in solo_enc_alloc() 1322 solo_enc->vfd->lock = &solo_enc->lock; in solo_enc_alloc() 1323 video_set_drvdata(solo_enc->vfd, solo_enc); in solo_enc_alloc() [all …]
|
/Linux-v4.19/drivers/media/common/saa7146/ |
D | saa7146_fops.c | 590 int saa7146_register_device(struct video_device *vfd, struct saa7146_dev *dev, in saa7146_register_device() argument 598 vfd->fops = &video_fops; in saa7146_register_device() 600 vfd->ioctl_ops = &dev->ext_vv_data->vid_ops; in saa7146_register_device() 602 vfd->ioctl_ops = &dev->ext_vv_data->vbi_ops; in saa7146_register_device() 603 vfd->release = video_device_release_empty; in saa7146_register_device() 604 vfd->lock = &dev->v4l2_lock; in saa7146_register_device() 605 vfd->v4l2_dev = &dev->v4l2_dev; in saa7146_register_device() 606 vfd->tvnorms = 0; in saa7146_register_device() 608 vfd->tvnorms |= dev->ext_vv_data->stds[i].id; in saa7146_register_device() 609 strlcpy(vfd->name, name, sizeof(vfd->name)); in saa7146_register_device() [all …]
|
/Linux-v4.19/drivers/media/platform/vicodec/ |
D | vicodec-core.c | 1219 struct video_device *vfd = video_devdata(file); in vicodec_open() local 1226 if (mutex_lock_interruptible(vfd->lock)) in vicodec_open() 1234 if (vfd == &dev->enc_vfd) in vicodec_open() 1290 mutex_unlock(vfd->lock); in vicodec_open() 1296 struct video_device *vfd = video_devdata(file); in vicodec_release() local 1302 mutex_lock(vfd->lock); in vicodec_release() 1304 mutex_unlock(vfd->lock); in vicodec_release() 1337 struct video_device *vfd; in vicodec_probe() local 1378 vfd = &dev->enc_vfd; in vicodec_probe() 1379 vfd->lock = &dev->enc_mutex; in vicodec_probe() [all …]
|
/Linux-v4.19/drivers/media/platform/s5p-g2d/ |
D | g2d.c | 611 struct video_device *vfd; in g2d_probe() local 676 vfd = video_device_alloc(); in g2d_probe() 677 if (!vfd) { in g2d_probe() 682 *vfd = g2d_videodev; in g2d_probe() 683 vfd->lock = &dev->mutex; in g2d_probe() 684 vfd->v4l2_dev = &dev->v4l2_dev; in g2d_probe() 685 ret = video_register_device(vfd, VFL_TYPE_GRABBER, 0); in g2d_probe() 690 video_set_drvdata(vfd, dev); in g2d_probe() 691 dev->vfd = vfd; in g2d_probe() 693 vfd->num); in g2d_probe() [all …]
|
/Linux-v4.19/drivers/media/platform/rockchip/rga/ |
D | rga.c | 810 struct video_device *vfd; in rga_probe() local 857 vfd = video_device_alloc(); in rga_probe() 858 if (!vfd) { in rga_probe() 863 *vfd = rga_videodev; in rga_probe() 864 vfd->lock = &rga->mutex; in rga_probe() 865 vfd->v4l2_dev = &rga->v4l2_dev; in rga_probe() 867 video_set_drvdata(vfd, rga); in rga_probe() 868 rga->vfd = vfd; in rga_probe() 901 ret = video_register_device(vfd, VFL_TYPE_GRABBER, -1); in rga_probe() 908 vfd->name, video_device_node_name(vfd)); in rga_probe() [all …]
|
/Linux-v4.19/drivers/media/platform/s5p-mfc/ |
D | s5p_mfc.c | 1266 struct video_device *vfd; in s5p_mfc_probe() local 1333 vfd = video_device_alloc(); in s5p_mfc_probe() 1334 if (!vfd) { in s5p_mfc_probe() 1339 vfd->fops = &s5p_mfc_fops; in s5p_mfc_probe() 1340 vfd->ioctl_ops = get_dec_v4l2_ioctl_ops(); in s5p_mfc_probe() 1341 vfd->release = video_device_release; in s5p_mfc_probe() 1342 vfd->lock = &dev->mfc_mutex; in s5p_mfc_probe() 1343 vfd->v4l2_dev = &dev->v4l2_dev; in s5p_mfc_probe() 1344 vfd->vfl_dir = VFL_DIR_M2M; in s5p_mfc_probe() 1345 snprintf(vfd->name, sizeof(vfd->name), "%s", S5P_MFC_DEC_NAME); in s5p_mfc_probe() [all …]
|
/Linux-v4.19/drivers/media/platform/ |
D | mx2_emmaprp.c | 205 struct video_device *vfd; member 883 struct video_device *vfd; in emmaprp_probe() local 913 vfd = video_device_alloc(); in emmaprp_probe() 914 if (!vfd) { in emmaprp_probe() 920 *vfd = emmaprp_videodev; in emmaprp_probe() 921 vfd->lock = &pcdev->dev_mutex; in emmaprp_probe() 922 vfd->v4l2_dev = &pcdev->v4l2_dev; in emmaprp_probe() 924 video_set_drvdata(vfd, pcdev); in emmaprp_probe() 925 pcdev->vfd = vfd; in emmaprp_probe() 927 " Device registered as /dev/video%d\n", vfd->num); in emmaprp_probe() [all …]
|
D | vim2m.c | 142 struct video_device vfd; member 998 struct video_device *vfd; in vim2m_probe() local 1014 dev->vfd = vim2m_videodev; in vim2m_probe() 1015 vfd = &dev->vfd; in vim2m_probe() 1016 vfd->lock = &dev->dev_mutex; in vim2m_probe() 1017 vfd->v4l2_dev = &dev->v4l2_dev; in vim2m_probe() 1019 ret = video_register_device(vfd, VFL_TYPE_GRABBER, 0); in vim2m_probe() 1025 video_set_drvdata(vfd, dev); in vim2m_probe() 1027 "Device registered as /dev/video%d\n", vfd->num); in vim2m_probe() 1046 vfd, MEDIA_ENT_F_PROC_VIDEO_SCALER); in vim2m_probe() [all …]
|
D | m2m-deinterlace.c | 130 struct video_device vfd; member 990 struct video_device *vfd; in deinterlace_probe() local 1019 vfd = &pcdev->vfd; in deinterlace_probe() 1020 *vfd = deinterlace_videodev; in deinterlace_probe() 1021 vfd->lock = &pcdev->dev_mutex; in deinterlace_probe() 1022 vfd->v4l2_dev = &pcdev->v4l2_dev; in deinterlace_probe() 1024 ret = video_register_device(vfd, VFL_TYPE_GRABBER, 0); in deinterlace_probe() 1030 video_set_drvdata(vfd, pcdev); in deinterlace_probe() 1032 " Device registered as /dev/video%d\n", vfd->num); in deinterlace_probe() 1046 video_unregister_device(&pcdev->vfd); in deinterlace_probe() [all …]
|
/Linux-v4.19/drivers/media/platform/omap/ |
D | omap_vout.c | 1045 strlcpy(cap->card, vout->vfd->name, sizeof(cap->card)); in vidioc_querycap() 1809 struct video_device *vfd; in omap_vout_setup_video_data() local 1859 vfd = vout->vfd = video_device_alloc(); in omap_vout_setup_video_data() 1861 if (!vfd) { in omap_vout_setup_video_data() 1867 vfd->ctrl_handler = hdl; in omap_vout_setup_video_data() 1868 vfd->release = video_device_release; in omap_vout_setup_video_data() 1869 vfd->ioctl_ops = &vout_ioctl_ops; in omap_vout_setup_video_data() 1871 strlcpy(vfd->name, VOUT_NAME, sizeof(vfd->name)); in omap_vout_setup_video_data() 1873 vfd->fops = &omap_vout_fops; in omap_vout_setup_video_data() 1874 vfd->v4l2_dev = &vout->vid_dev->v4l2_dev; in omap_vout_setup_video_data() [all …]
|
D | omap_vout_vrfb.c | 96 struct video_device *vfd; in omap_vout_setup_vrfb_bufs() local 105 vfd = vout->vfd; in omap_vout_setup_vrfb_bufs() 154 vfd->minor); in omap_vout_setup_vrfb_bufs()
|
/Linux-v4.19/drivers/media/platform/s3c-camif/ |
D | camif-capture.c | 1113 struct video_device *vfd = &vp->vdev; in s3c_camif_register_video_node() local 1117 memset(vfd, 0, sizeof(*vfd)); in s3c_camif_register_video_node() 1118 snprintf(vfd->name, sizeof(vfd->name), "camif-%s", in s3c_camif_register_video_node() 1121 vfd->fops = &s3c_camif_fops; in s3c_camif_register_video_node() 1122 vfd->ioctl_ops = &s3c_camif_ioctl_ops; in s3c_camif_register_video_node() 1123 vfd->v4l2_dev = &camif->v4l2_dev; in s3c_camif_register_video_node() 1124 vfd->minor = -1; in s3c_camif_register_video_node() 1125 vfd->release = video_device_release_empty; in s3c_camif_register_video_node() 1126 vfd->lock = &camif->lock; in s3c_camif_register_video_node() 1148 ret = media_entity_pads_init(&vfd->entity, 1, &vp->pad); in s3c_camif_register_video_node() [all …]
|
/Linux-v4.19/drivers/media/pci/saa7164/ |
D | saa7164-vbi.c | 696 struct video_device *vfd; in saa7164_vbi_alloc() local 701 vfd = video_device_alloc(); in saa7164_vbi_alloc() 702 if (NULL == vfd) in saa7164_vbi_alloc() 705 *vfd = *template; in saa7164_vbi_alloc() 706 snprintf(vfd->name, sizeof(vfd->name), "%s %s (%s)", dev->name, in saa7164_vbi_alloc() 709 vfd->v4l2_dev = &dev->v4l2_dev; in saa7164_vbi_alloc() 710 vfd->release = video_device_release; in saa7164_vbi_alloc() 711 return vfd; in saa7164_vbi_alloc()
|
D | saa7164-encoder.c | 994 struct video_device *vfd; in saa7164_encoder_alloc() local 999 vfd = video_device_alloc(); in saa7164_encoder_alloc() 1000 if (NULL == vfd) in saa7164_encoder_alloc() 1003 *vfd = *template; in saa7164_encoder_alloc() 1004 snprintf(vfd->name, sizeof(vfd->name), "%s %s (%s)", dev->name, in saa7164_encoder_alloc() 1007 vfd->v4l2_dev = &dev->v4l2_dev; in saa7164_encoder_alloc() 1008 vfd->release = video_device_release; in saa7164_encoder_alloc() 1009 return vfd; in saa7164_encoder_alloc()
|
/Linux-v4.19/drivers/media/usb/tm6000/ |
D | tm6000-video.c | 1595 struct video_device *vfd, in vdev_init() argument 1599 *vfd = *template; in vdev_init() 1600 vfd->v4l2_dev = &dev->v4l2_dev; in vdev_init() 1601 vfd->release = video_device_release_empty; in vdev_init() 1602 vfd->lock = &dev->lock; in vdev_init() 1604 snprintf(vfd->name, sizeof(vfd->name), "%s %s", dev->name, type_name); in vdev_init() 1606 video_set_drvdata(vfd, dev); in vdev_init() 1637 vdev_init(dev, &dev->vfd, &tm6000_template, "video"); in tm6000_v4l2_register() 1639 dev->vfd.ctrl_handler = &dev->ctrl_handler; in tm6000_v4l2_register() 1645 ret = video_register_device(&dev->vfd, VFL_TYPE_GRABBER, video_nr); in tm6000_v4l2_register() [all …]
|
/Linux-v4.19/drivers/media/pci/cx88/ |
D | cx88-core.c | 1019 struct video_device *vfd, in cx88_vdev_init() argument 1023 *vfd = *template_; in cx88_vdev_init() 1031 vfd->v4l2_dev = &core->v4l2_dev; in cx88_vdev_init() 1032 vfd->dev_parent = &pci->dev; in cx88_vdev_init() 1033 vfd->release = video_device_release_empty; in cx88_vdev_init() 1034 vfd->lock = &core->lock; in cx88_vdev_init() 1035 snprintf(vfd->name, sizeof(vfd->name), "%s %s (%s)", in cx88_vdev_init()
|
/Linux-v4.19/drivers/media/pci/cx23885/ |
D | cx23885-video.c | 158 struct video_device *vfd; in cx23885_vdev_init() local 161 vfd = video_device_alloc(); in cx23885_vdev_init() 162 if (NULL == vfd) in cx23885_vdev_init() 164 *vfd = *template; in cx23885_vdev_init() 165 vfd->v4l2_dev = &dev->v4l2_dev; in cx23885_vdev_init() 166 vfd->release = video_device_release; in cx23885_vdev_init() 167 vfd->lock = &dev->lock; in cx23885_vdev_init() 168 snprintf(vfd->name, sizeof(vfd->name), "%s (%s)", in cx23885_vdev_init() 170 video_set_drvdata(vfd, dev); in cx23885_vdev_init() 171 return vfd; in cx23885_vdev_init()
|