Home
last modified time | relevance | path

Searched refs:vfd (Results 1 – 25 of 58) sorted by relevance

123

/drivers/media/platform/vivid/
Dvivid-core.c657 struct video_device *vfd; in vivid_create_instance() local
1170 vfd = &dev->vid_cap_dev; in vivid_create_instance()
1171 snprintf(vfd->name, sizeof(vfd->name), in vivid_create_instance()
1173 vfd->fops = &vivid_fops; in vivid_create_instance()
1174 vfd->ioctl_ops = &vivid_ioctl_ops; in vivid_create_instance()
1175 vfd->device_caps = dev->vid_cap_caps; in vivid_create_instance()
1176 vfd->release = video_device_release_empty; in vivid_create_instance()
1177 vfd->v4l2_dev = &dev->v4l2_dev; in vivid_create_instance()
1178 vfd->queue = &dev->vb_vid_cap_q; in vivid_create_instance()
1179 vfd->tvnorms = tvnorms_cap; in vivid_create_instance()
[all …]
/drivers/media/v4l2-core/
Dv4l2-ioctl.c41 #define is_valid_ioctl(vfd, cmd) test_bit(_IOC_NR(cmd), (vfd)->valid_ioctls) argument
897 struct video_device *vfd = video_devdata(file); in check_fmt() local
898 const struct v4l2_ioctl_ops *ops = vfd->ioctl_ops; in check_fmt()
899 bool is_vid = vfd->vfl_type == VFL_TYPE_GRABBER; in check_fmt()
900 bool is_vbi = vfd->vfl_type == VFL_TYPE_VBI; in check_fmt()
901 bool is_sdr = vfd->vfl_type == VFL_TYPE_SDR; in check_fmt()
902 bool is_tch = vfd->vfl_type == VFL_TYPE_TOUCH; in check_fmt()
903 bool is_rx = vfd->vfl_dir != VFL_DIR_TX; in check_fmt()
904 bool is_tx = vfd->vfl_dir != VFL_DIR_RX; in check_fmt()
1003 struct video_device *vfd = video_devdata(file); in v4l_querycap() local
[all …]
/drivers/staging/media/imx/
Dimx-media-capture.c523 struct video_device *vfd = priv->vdev.vfd; in capture_open() local
533 ret = v4l2_pipeline_pm_use(&vfd->entity, 1); in capture_open()
544 struct video_device *vfd = priv->vdev.vfd; in capture_release() local
555 v4l2_pipeline_pm_use(&vfd->entity, 0); in capture_release()
635 struct video_device *vfd = vdev->vfd; in imx_media_capture_device_register() local
643 vfd->v4l2_dev = sd->v4l2_dev; in imx_media_capture_device_register()
645 ret = video_register_device(vfd, VFL_TYPE_GRABBER, -1); in imx_media_capture_device_register()
671 ret = media_entity_pads_init(&vfd->entity, 1, &priv->vdev_pad); in imx_media_capture_device_register()
679 &vfd->entity, 0, 0); in imx_media_capture_device_register()
700 v4l2_info(sd, "Registered %s as /dev/%s\n", vfd->name, in imx_media_capture_device_register()
[all …]
Dimx-media-dev.c361 vdev->vfd->entity.name, entity->name, srcpad->index); in imx_media_add_vdev_to_pad()
366 vdev->vfd->entity.name, entity->name, srcpad->index); in imx_media_add_vdev_to_pad()
399 link = list_first_entry(&vdev->vfd->entity.links, in imx_media_create_pad_vdev_lists()
448 struct video_device *vfd, in imx_media_inherit_controls() argument
458 vfd->entity.name, sd->entity.name); in imx_media_inherit_controls()
460 ret = v4l2_ctrl_add_handler(vfd->ctrl_handler, in imx_media_inherit_controls()
478 ret = imx_media_inherit_controls(imxmd, vfd, pad->entity); in imx_media_inherit_controls()
493 struct video_device *vfd; in imx_media_link_notify() local
525 vfd = imxpad->vdev[i]->vfd; in imx_media_link_notify()
528 vfd->entity.name); in imx_media_link_notify()
[all …]
/drivers/media/platform/exynos4-is/
Dfimc-m2m.c372 v4l2_err(&fimc->m2m.vfd, "queue (%d) busy\n", f->type); in fimc_m2m_s_fmt_mplane()
438 v4l2_err(&fimc->m2m.vfd, in fimc_m2m_try_crop()
508 v4l2_err(&fimc->m2m.vfd, "Out of scaler range\n"); in fimc_m2m_s_crop()
623 v4l2_fh_init(&ctx->fh, &fimc->m2m.vfd); in fimc_m2m_open()
715 struct video_device *vfd = &fimc->m2m.vfd; in fimc_register_m2m_device() local
720 memset(vfd, 0, sizeof(*vfd)); in fimc_register_m2m_device()
721 vfd->fops = &fimc_m2m_fops; in fimc_register_m2m_device()
722 vfd->ioctl_ops = &fimc_m2m_ioctl_ops; in fimc_register_m2m_device()
723 vfd->v4l2_dev = v4l2_dev; in fimc_register_m2m_device()
724 vfd->minor = -1; in fimc_register_m2m_device()
[all …]
Dfimc-capture.c1734 struct video_device *vfd = &fimc->vid_cap.ve.vdev; in fimc_register_capture_device() local
1752 memset(vfd, 0, sizeof(*vfd)); in fimc_register_capture_device()
1753 snprintf(vfd->name, sizeof(vfd->name), "fimc.%d.capture", fimc->id); in fimc_register_capture_device()
1755 vfd->fops = &fimc_capture_fops; in fimc_register_capture_device()
1756 vfd->ioctl_ops = &fimc_capture_ioctl_ops; in fimc_register_capture_device()
1757 vfd->v4l2_dev = v4l2_dev; in fimc_register_capture_device()
1758 vfd->minor = -1; in fimc_register_capture_device()
1759 vfd->release = video_device_release_empty; in fimc_register_capture_device()
1760 vfd->queue = q; in fimc_register_capture_device()
1761 vfd->lock = &fimc->lock; in fimc_register_capture_device()
[all …]
Dfimc-lite.c1270 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 …]
/drivers/media/pci/solo6x10/
Dsolo6x10-v4l2.c440 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 …]
Dsolo6x10-v4l2-enc.c548 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 …]
/drivers/media/common/saa7146/
Dsaa7146_fops.c590 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 …]
/drivers/media/platform/s5p-g2d/
Dg2d.c624 struct video_device *vfd; in g2d_probe() local
690 vfd = video_device_alloc(); in g2d_probe()
691 if (!vfd) { in g2d_probe()
696 *vfd = g2d_videodev; in g2d_probe()
697 vfd->lock = &dev->mutex; in g2d_probe()
698 vfd->v4l2_dev = &dev->v4l2_dev; in g2d_probe()
699 ret = video_register_device(vfd, VFL_TYPE_GRABBER, 0); in g2d_probe()
704 video_set_drvdata(vfd, dev); in g2d_probe()
705 snprintf(vfd->name, sizeof(vfd->name), "%s", g2d_videodev.name); in g2d_probe()
706 dev->vfd = vfd; in g2d_probe()
[all …]
/drivers/media/platform/
Dmx2_emmaprp.c205 struct video_device *vfd; member
895 struct video_device *vfd; in emmaprp_probe() local
925 vfd = video_device_alloc(); in emmaprp_probe()
926 if (!vfd) { in emmaprp_probe()
932 *vfd = emmaprp_videodev; in emmaprp_probe()
933 vfd->lock = &pcdev->dev_mutex; in emmaprp_probe()
934 vfd->v4l2_dev = &pcdev->v4l2_dev; in emmaprp_probe()
936 video_set_drvdata(vfd, pcdev); in emmaprp_probe()
937 snprintf(vfd->name, sizeof(vfd->name), "%s", emmaprp_videodev.name); in emmaprp_probe()
938 pcdev->vfd = vfd; in emmaprp_probe()
[all …]
Dvim2m.c142 struct video_device vfd; member
995 struct video_device *vfd; in vim2m_probe() local
1011 dev->vfd = vim2m_videodev; in vim2m_probe()
1012 vfd = &dev->vfd; in vim2m_probe()
1013 vfd->lock = &dev->dev_mutex; in vim2m_probe()
1014 vfd->v4l2_dev = &dev->v4l2_dev; in vim2m_probe()
1016 ret = video_register_device(vfd, VFL_TYPE_GRABBER, 0); in vim2m_probe()
1022 video_set_drvdata(vfd, dev); in vim2m_probe()
1023 snprintf(vfd->name, sizeof(vfd->name), "%s", vim2m_videodev.name); in vim2m_probe()
1025 "Device registered as /dev/video%d\n", vfd->num); in vim2m_probe()
[all …]
Dm2m-deinterlace.c130 struct video_device vfd; member
1002 struct video_device *vfd; in deinterlace_probe() local
1031 vfd = &pcdev->vfd; in deinterlace_probe()
1032 *vfd = deinterlace_videodev; in deinterlace_probe()
1033 vfd->lock = &pcdev->dev_mutex; in deinterlace_probe()
1034 vfd->v4l2_dev = &pcdev->v4l2_dev; in deinterlace_probe()
1036 ret = video_register_device(vfd, VFL_TYPE_GRABBER, 0); in deinterlace_probe()
1042 video_set_drvdata(vfd, pcdev); in deinterlace_probe()
1043 snprintf(vfd->name, sizeof(vfd->name), "%s", deinterlace_videodev.name); in deinterlace_probe()
1045 " Device registered as /dev/video%d\n", vfd->num); in deinterlace_probe()
[all …]
/drivers/media/platform/s5p-mfc/
Ds5p_mfc.c1268 struct video_device *vfd; in s5p_mfc_probe() local
1339 vfd = video_device_alloc(); in s5p_mfc_probe()
1340 if (!vfd) { in s5p_mfc_probe()
1345 vfd->fops = &s5p_mfc_fops; in s5p_mfc_probe()
1346 vfd->ioctl_ops = get_dec_v4l2_ioctl_ops(); in s5p_mfc_probe()
1347 vfd->release = video_device_release; in s5p_mfc_probe()
1348 vfd->lock = &dev->mfc_mutex; in s5p_mfc_probe()
1349 vfd->v4l2_dev = &dev->v4l2_dev; in s5p_mfc_probe()
1350 vfd->vfl_dir = VFL_DIR_M2M; in s5p_mfc_probe()
1351 snprintf(vfd->name, sizeof(vfd->name), "%s", S5P_MFC_DEC_NAME); in s5p_mfc_probe()
[all …]
/drivers/media/platform/omap/
Domap_vout.c1045 strlcpy(cap->card, vout->vfd->name, sizeof(cap->card)); in vidioc_querycap()
1806 struct video_device *vfd; in omap_vout_setup_video_data() local
1856 vfd = vout->vfd = video_device_alloc(); in omap_vout_setup_video_data()
1858 if (!vfd) { in omap_vout_setup_video_data()
1864 vfd->ctrl_handler = hdl; in omap_vout_setup_video_data()
1865 vfd->release = video_device_release; in omap_vout_setup_video_data()
1866 vfd->ioctl_ops = &vout_ioctl_ops; in omap_vout_setup_video_data()
1868 strlcpy(vfd->name, VOUT_NAME, sizeof(vfd->name)); in omap_vout_setup_video_data()
1870 vfd->fops = &omap_vout_fops; in omap_vout_setup_video_data()
1871 vfd->v4l2_dev = &vout->vid_dev->v4l2_dev; in omap_vout_setup_video_data()
[all …]
Domap_vout_vrfb.c96 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()
/drivers/media/platform/s3c-camif/
Dcamif-capture.c1113 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 …]
/drivers/media/platform/blackfin/
Dbfin_capture.c787 struct video_device *vfd; in bcap_probe() local
814 vfd = &bcap_dev->video_dev; in bcap_probe()
816 vfd->release = video_device_release_empty; in bcap_probe()
817 vfd->fops = &bcap_fops; in bcap_probe()
818 vfd->ioctl_ops = &bcap_ioctl_ops; in bcap_probe()
819 vfd->tvnorms = 0; in bcap_probe()
820 vfd->v4l2_dev = &bcap_dev->v4l2_dev; in bcap_probe()
821 strncpy(vfd->name, CAPTURE_DRV_NAME, sizeof(vfd->name)); in bcap_probe()
863 vfd->lock = &bcap_dev->mutex; in bcap_probe()
864 vfd->queue = q; in bcap_probe()
[all …]
/drivers/media/pci/saa7164/
Dsaa7164-vbi.c696 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()
Dsaa7164-encoder.c994 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()
/drivers/media/usb/tm6000/
Dtm6000-video.c1608 struct video_device *vfd, in vdev_init() argument
1612 *vfd = *template; in vdev_init()
1613 vfd->v4l2_dev = &dev->v4l2_dev; in vdev_init()
1614 vfd->release = video_device_release_empty; in vdev_init()
1615 vfd->lock = &dev->lock; in vdev_init()
1617 snprintf(vfd->name, sizeof(vfd->name), "%s %s", dev->name, type_name); in vdev_init()
1619 video_set_drvdata(vfd, dev); in vdev_init()
1650 vdev_init(dev, &dev->vfd, &tm6000_template, "video"); in tm6000_v4l2_register()
1652 dev->vfd.ctrl_handler = &dev->ctrl_handler; in tm6000_v4l2_register()
1658 ret = video_register_device(&dev->vfd, VFL_TYPE_GRABBER, video_nr); in tm6000_v4l2_register()
[all …]
/drivers/media/platform/coda/
Dcoda-common.c320 unsigned int i = vdev - dev->vfd; in to_coda_video_device()
2236 struct video_device *vfd = &dev->vfd[i]; in coda_register_device() local
2241 strlcpy(vfd->name, dev->devtype->vdevs[i]->name, sizeof(vfd->name)); in coda_register_device()
2242 vfd->fops = &coda_fops; in coda_register_device()
2243 vfd->ioctl_ops = &coda_ioctl_ops; in coda_register_device()
2244 vfd->release = video_device_release_empty, in coda_register_device()
2245 vfd->lock = &dev->dev_mutex; in coda_register_device()
2246 vfd->v4l2_dev = &dev->v4l2_dev; in coda_register_device()
2247 vfd->vfl_dir = VFL_DIR_M2M; in coda_register_device()
2248 video_set_drvdata(vfd, dev); in coda_register_device()
[all …]
/drivers/media/pci/cx88/
Dcx88-core.c1019 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()
/drivers/media/pci/cx23885/
Dcx23885-video.c158 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()

123