Home
last modified time | relevance | path

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

/linux-4.1.27/drivers/media/platform/vivid/
Dvivid-core.c649 struct video_device *vfd; in vivid_create_instance() local
1120 vfd = &dev->vid_cap_dev; in vivid_create_instance()
1121 strlcpy(vfd->name, "vivid-vid-cap", sizeof(vfd->name)); in vivid_create_instance()
1122 vfd->fops = &vivid_fops; in vivid_create_instance()
1123 vfd->ioctl_ops = &vivid_ioctl_ops; in vivid_create_instance()
1124 vfd->release = video_device_release_empty; in vivid_create_instance()
1125 vfd->v4l2_dev = &dev->v4l2_dev; in vivid_create_instance()
1126 vfd->queue = &dev->vb_vid_cap_q; in vivid_create_instance()
1127 vfd->tvnorms = tvnorms_cap; in vivid_create_instance()
1133 vfd->lock = &dev->mutex; in vivid_create_instance()
[all …]
/linux-4.1.27/drivers/media/v4l2-core/
Dv4l2-ioctl.c40 #define is_valid_ioctl(vfd, cmd) test_bit(_IOC_NR(cmd), (vfd)->valid_ioctls) argument
918 struct video_device *vfd = video_devdata(file); in check_fmt() local
919 const struct v4l2_ioctl_ops *ops = vfd->ioctl_ops; in check_fmt()
920 bool is_vid = vfd->vfl_type == VFL_TYPE_GRABBER; in check_fmt()
921 bool is_vbi = vfd->vfl_type == VFL_TYPE_VBI; in check_fmt()
922 bool is_sdr = vfd->vfl_type == VFL_TYPE_SDR; in check_fmt()
923 bool is_rx = vfd->vfl_dir != VFL_DIR_TX; in check_fmt()
924 bool is_tx = vfd->vfl_dir != VFL_DIR_RX; in check_fmt()
1048 struct video_device *vfd; in v4l_g_priority() local
1051 vfd = video_devdata(file); in v4l_g_priority()
[all …]
Dv4l2-mem2mem.c528 struct video_device *vfd = video_devdata(file); in v4l2_m2m_poll() local
535 if (test_bit(V4L2_FL_USES_V4L2_FH, &vfd->flags)) { in v4l2_m2m_poll()
Dv4l2-ctrls.c3424 struct video_device *vfd = video_devdata(file); in v4l2_ctrl_log_status() local
3427 if (test_bit(V4L2_FL_USES_V4L2_FH, &vfd->flags) && vfd->v4l2_dev) in v4l2_ctrl_log_status()
3429 vfd->v4l2_dev->name); in v4l2_ctrl_log_status()
Dvideobuf2-core.c2610 struct video_device *vfd = video_devdata(file); in vb2_poll() local
2616 if (test_bit(V4L2_FL_USES_V4L2_FH, &vfd->flags)) { in vb2_poll()
/linux-4.1.27/drivers/media/platform/exynos4-is/
Dfimc-m2m.c377 v4l2_err(&fimc->m2m.vfd, "queue (%d) busy\n", f->type); in fimc_m2m_s_fmt_mplane()
443 v4l2_err(&fimc->m2m.vfd, in fimc_m2m_try_crop()
513 v4l2_err(&fimc->m2m.vfd, "Out of scaler range\n"); in fimc_m2m_s_crop()
626 v4l2_fh_init(&ctx->fh, &fimc->m2m.vfd); in fimc_m2m_open()
718 struct video_device *vfd = &fimc->m2m.vfd; in fimc_register_m2m_device() local
723 memset(vfd, 0, sizeof(*vfd)); in fimc_register_m2m_device()
724 vfd->fops = &fimc_m2m_fops; in fimc_register_m2m_device()
725 vfd->ioctl_ops = &fimc_m2m_ioctl_ops; in fimc_register_m2m_device()
726 vfd->v4l2_dev = v4l2_dev; in fimc_register_m2m_device()
727 vfd->minor = -1; in fimc_register_m2m_device()
[all …]
Dfimc-lite.c1290 struct video_device *vfd = &fimc->ve.vdev; in fimc_lite_subdev_registered() local
1293 memset(vfd, 0, sizeof(*vfd)); in fimc_lite_subdev_registered()
1296 snprintf(vfd->name, sizeof(vfd->name), "fimc-lite.%d.capture", in fimc_lite_subdev_registered()
1299 vfd->fops = &fimc_lite_fops; in fimc_lite_subdev_registered()
1300 vfd->ioctl_ops = &fimc_lite_ioctl_ops; in fimc_lite_subdev_registered()
1301 vfd->v4l2_dev = sd->v4l2_dev; in fimc_lite_subdev_registered()
1302 vfd->minor = -1; in fimc_lite_subdev_registered()
1303 vfd->release = video_device_release_empty; in fimc_lite_subdev_registered()
1304 vfd->queue = q; in fimc_lite_subdev_registered()
1325 ret = media_entity_init(&vfd->entity, 1, &fimc->vd_pad, 0); in fimc_lite_subdev_registered()
[all …]
Dfimc-capture.c1740 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 …]
Dfimc-core.h274 struct video_device vfd; member
/linux-4.1.27/drivers/media/pci/solo6x10/
Dsolo6x10-v4l2.c429 input->std = solo_dev->vfd->tvnorms; in solo_enum_input()
654 solo_dev->vfd = video_device_alloc(); in solo_v4l2_init()
655 if (!solo_dev->vfd) in solo_v4l2_init()
658 *solo_dev->vfd = solo_v4l2_template; in solo_v4l2_init()
659 solo_dev->vfd->v4l2_dev = &solo_dev->v4l2_dev; in solo_v4l2_init()
660 solo_dev->vfd->queue = &solo_dev->vidq; in solo_v4l2_init()
661 solo_dev->vfd->lock = &solo_dev->lock; in solo_v4l2_init()
668 solo_dev->vfd->ctrl_handler = &solo_dev->disp_hdl; in solo_v4l2_init()
670 video_set_drvdata(solo_dev->vfd, solo_dev); in solo_v4l2_init()
703 ret = video_register_device(solo_dev->vfd, VFL_TYPE_GRABBER, nr); in solo_v4l2_init()
[all …]
Dsolo6x10-v4l2-enc.c545 v4l2_event_queue(solo_enc->vfd, &ev); in solo_enc_fillbuf()
800 input->std = solo_enc->vfd->tvnorms; in solo_enc_enum_input()
1318 solo_enc->vfd = video_device_alloc(); in solo_enc_alloc()
1319 if (!solo_enc->vfd) in solo_enc_alloc()
1322 *solo_enc->vfd = solo_enc_template; in solo_enc_alloc()
1323 solo_enc->vfd->v4l2_dev = &solo_dev->v4l2_dev; in solo_enc_alloc()
1324 solo_enc->vfd->ctrl_handler = hdl; in solo_enc_alloc()
1325 solo_enc->vfd->queue = &solo_enc->vidq; in solo_enc_alloc()
1326 solo_enc->vfd->lock = &solo_enc->lock; in solo_enc_alloc()
1327 video_set_drvdata(solo_enc->vfd, solo_enc); in solo_enc_alloc()
[all …]
Dsolo6x10.h152 struct video_device *vfd; member
226 struct video_device *vfd; member
Dsolo6x10-g723.c363 sprintf(name, "Softlogic%d", solo_dev->vfd->num); in solo_g723_init()
Dsolo6x10-core.c440 dev_set_name(dev, "%s-%d-%d", driver, solo_dev->vfd->num, in solo_sysfs_init()
/linux-4.1.27/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 …]
/linux-4.1.27/drivers/media/platform/s5p-mfc/
Ds5p_mfc.c1071 struct video_device *vfd; in s5p_mfc_probe() local
1162 vfd = video_device_alloc(); in s5p_mfc_probe()
1163 if (!vfd) { in s5p_mfc_probe()
1168 vfd->fops = &s5p_mfc_fops; in s5p_mfc_probe()
1169 vfd->ioctl_ops = get_dec_v4l2_ioctl_ops(); in s5p_mfc_probe()
1170 vfd->release = video_device_release; in s5p_mfc_probe()
1171 vfd->lock = &dev->mfc_mutex; in s5p_mfc_probe()
1172 vfd->v4l2_dev = &dev->v4l2_dev; in s5p_mfc_probe()
1173 vfd->vfl_dir = VFL_DIR_M2M; in s5p_mfc_probe()
1174 snprintf(vfd->name, sizeof(vfd->name), "%s", S5P_MFC_DEC_NAME); in s5p_mfc_probe()
[all …]
/linux-4.1.27/drivers/media/platform/s5p-g2d/
Dg2d.c622 struct video_device *vfd; in g2d_probe() local
692 vfd = video_device_alloc(); in g2d_probe()
693 if (!vfd) { in g2d_probe()
698 *vfd = g2d_videodev; in g2d_probe()
699 vfd->lock = &dev->mutex; in g2d_probe()
700 vfd->v4l2_dev = &dev->v4l2_dev; in g2d_probe()
701 ret = video_register_device(vfd, VFL_TYPE_GRABBER, 0); in g2d_probe()
706 video_set_drvdata(vfd, dev); in g2d_probe()
707 snprintf(vfd->name, sizeof(vfd->name), "%s", g2d_videodev.name); in g2d_probe()
708 dev->vfd = vfd; in g2d_probe()
[all …]
Dg2d.h24 struct video_device *vfd; member
/linux-4.1.27/drivers/media/platform/
Dmx2_emmaprp.c205 struct video_device *vfd; member
896 struct video_device *vfd; in emmaprp_probe() local
926 vfd = video_device_alloc(); in emmaprp_probe()
927 if (!vfd) { in emmaprp_probe()
933 *vfd = emmaprp_videodev; in emmaprp_probe()
934 vfd->lock = &pcdev->dev_mutex; in emmaprp_probe()
935 vfd->v4l2_dev = &pcdev->v4l2_dev; in emmaprp_probe()
937 video_set_drvdata(vfd, pcdev); in emmaprp_probe()
938 snprintf(vfd->name, sizeof(vfd->name), "%s", emmaprp_videodev.name); in emmaprp_probe()
939 pcdev->vfd = vfd; in emmaprp_probe()
[all …]
Dvim2m.c145 struct video_device vfd; member
983 struct video_device *vfd; in vim2m_probe() local
999 dev->vfd = vim2m_videodev; in vim2m_probe()
1000 vfd = &dev->vfd; in vim2m_probe()
1001 vfd->lock = &dev->dev_mutex; in vim2m_probe()
1002 vfd->v4l2_dev = &dev->v4l2_dev; in vim2m_probe()
1004 ret = video_register_device(vfd, VFL_TYPE_GRABBER, 0); in vim2m_probe()
1010 video_set_drvdata(vfd, dev); in vim2m_probe()
1011 snprintf(vfd->name, sizeof(vfd->name), "%s", vim2m_videodev.name); in vim2m_probe()
1013 "Device registered as /dev/video%d\n", vfd->num); in vim2m_probe()
[all …]
Dm2m-deinterlace.c130 struct video_device vfd; member
1001 struct video_device *vfd; in deinterlace_probe() local
1029 vfd = &pcdev->vfd; in deinterlace_probe()
1030 *vfd = deinterlace_videodev; in deinterlace_probe()
1031 vfd->lock = &pcdev->dev_mutex; in deinterlace_probe()
1032 vfd->v4l2_dev = &pcdev->v4l2_dev; in deinterlace_probe()
1034 ret = video_register_device(vfd, VFL_TYPE_GRABBER, 0); in deinterlace_probe()
1040 video_set_drvdata(vfd, pcdev); in deinterlace_probe()
1041 snprintf(vfd->name, sizeof(vfd->name), "%s", deinterlace_videodev.name); in deinterlace_probe()
1043 " Device registered as /dev/video%d\n", vfd->num); in deinterlace_probe()
[all …]
/linux-4.1.27/drivers/media/platform/omap/
Domap_vout.c1055 strlcpy(cap->card, vout->vfd->name, sizeof(cap->card)); in vidioc_querycap()
1877 struct video_device *vfd; in omap_vout_setup_video_data() local
1926 vfd = vout->vfd = video_device_alloc(); in omap_vout_setup_video_data()
1928 if (!vfd) { in omap_vout_setup_video_data()
1933 vfd->release = video_device_release; in omap_vout_setup_video_data()
1934 vfd->ioctl_ops = &vout_ioctl_ops; in omap_vout_setup_video_data()
1936 strlcpy(vfd->name, VOUT_NAME, sizeof(vfd->name)); in omap_vout_setup_video_data()
1938 vfd->fops = &omap_vout_fops; in omap_vout_setup_video_data()
1939 vfd->v4l2_dev = &vout->vid_dev->v4l2_dev; in omap_vout_setup_video_data()
1940 vfd->vfl_dir = VFL_DIR_TX; in omap_vout_setup_video_data()
[all …]
Domap_vout_vrfb.c94 struct video_device *vfd; in omap_vout_setup_vrfb_bufs() local
102 vfd = vout->vfd; in omap_vout_setup_vrfb_bufs()
141 " video%d\n", vfd->minor); in omap_vout_setup_vrfb_bufs()
Domap_voutdef.h117 struct video_device *vfd; member
/linux-4.1.27/drivers/media/platform/s3c-camif/
Dcamif-capture.c1125 struct video_device *vfd = &vp->vdev; in s3c_camif_register_video_node() local
1129 memset(vfd, 0, sizeof(*vfd)); in s3c_camif_register_video_node()
1130 snprintf(vfd->name, sizeof(vfd->name), "camif-%s", in s3c_camif_register_video_node()
1133 vfd->fops = &s3c_camif_fops; in s3c_camif_register_video_node()
1134 vfd->ioctl_ops = &s3c_camif_ioctl_ops; in s3c_camif_register_video_node()
1135 vfd->v4l2_dev = &camif->v4l2_dev; in s3c_camif_register_video_node()
1136 vfd->minor = -1; in s3c_camif_register_video_node()
1137 vfd->release = video_device_release_empty; in s3c_camif_register_video_node()
1138 vfd->lock = &camif->lock; in s3c_camif_register_video_node()
1159 ret = media_entity_init(&vfd->entity, 1, &vp->pad, 0); in s3c_camif_register_video_node()
[all …]
/linux-4.1.27/drivers/media/platform/s5p-tv/
Dmixer_video.c166 strlcpy(cap->card, layer->vfd.name, sizeof(cap->card)); in mxr_querycap()
650 struct video_device *vfd = video_devdata(file); in mxr_s_output() local
663 vfd->tvnorms = 0; in mxr_s_output()
665 &vfd->tvnorms); in mxr_s_output()
671 mxr_dbg(mdev, "tvnorms = %08llx\n", vfd->tvnorms); in mxr_s_output()
959 mxr_err(mdev, "watchdog fired for layer %s\n", layer->vfd.name); in mxr_watchdog()
1039 ret = video_register_device(&layer->vfd, VFL_TYPE_GRABBER, -1); in mxr_base_layer_register()
1044 layer->vfd.name, layer->vfd.num); in mxr_base_layer_register()
1050 video_unregister_device(&layer->vfd); in mxr_base_layer_unregister()
1088 layer->vfd = (struct video_device) { in mxr_base_layer_create()
[all …]
Dmixer.h179 struct video_device vfd; member
/linux-4.1.27/drivers/media/platform/blackfin/
Dbfin_capture.c777 struct video_device *vfd; in bcap_probe() local
812 vfd = &bcap_dev->video_dev; in bcap_probe()
814 vfd->release = video_device_release_empty; in bcap_probe()
815 vfd->fops = &bcap_fops; in bcap_probe()
816 vfd->ioctl_ops = &bcap_ioctl_ops; in bcap_probe()
817 vfd->tvnorms = 0; in bcap_probe()
818 vfd->v4l2_dev = &bcap_dev->v4l2_dev; in bcap_probe()
819 strncpy(vfd->name, CAPTURE_DRV_NAME, sizeof(vfd->name)); in bcap_probe()
860 vfd->lock = &bcap_dev->mutex; in bcap_probe()
861 vfd->queue = q; in bcap_probe()
[all …]
/linux-4.1.27/drivers/media/platform/coda/
Dcoda-common.c350 unsigned int i = vdev - dev->vfd; in to_coda_video_device()
1913 struct video_device *vfd = &dev->vfd[i]; in coda_register_device() local
1918 strlcpy(vfd->name, dev->devtype->vdevs[i]->name, sizeof(vfd->name)); in coda_register_device()
1919 vfd->fops = &coda_fops; in coda_register_device()
1920 vfd->ioctl_ops = &coda_ioctl_ops; in coda_register_device()
1921 vfd->release = video_device_release_empty, in coda_register_device()
1922 vfd->lock = &dev->dev_mutex; in coda_register_device()
1923 vfd->v4l2_dev = &dev->v4l2_dev; in coda_register_device()
1924 vfd->vfl_dir = VFL_DIR_M2M; in coda_register_device()
1925 video_set_drvdata(vfd, dev); in coda_register_device()
[all …]
Dcoda.h74 struct video_device vfd[5]; member
/linux-4.1.27/drivers/media/pci/cx23885/
Dcx23885-video.c140 struct video_device *vfd; in cx23885_vdev_init() local
143 vfd = video_device_alloc(); in cx23885_vdev_init()
144 if (NULL == vfd) in cx23885_vdev_init()
146 *vfd = *template; in cx23885_vdev_init()
147 vfd->v4l2_dev = &dev->v4l2_dev; in cx23885_vdev_init()
148 vfd->release = video_device_release; in cx23885_vdev_init()
149 vfd->lock = &dev->lock; in cx23885_vdev_init()
150 snprintf(vfd->name, sizeof(vfd->name), "%s (%s)", in cx23885_vdev_init()
152 video_set_drvdata(vfd, dev); in cx23885_vdev_init()
153 return vfd; in cx23885_vdev_init()
Dcx23885-417.c1493 struct video_device *vfd; in cx23885_video_dev_alloc() local
1498 vfd = video_device_alloc(); in cx23885_video_dev_alloc()
1499 if (NULL == vfd) in cx23885_video_dev_alloc()
1501 *vfd = *template; in cx23885_video_dev_alloc()
1502 snprintf(vfd->name, sizeof(vfd->name), "%s (%s)", in cx23885_video_dev_alloc()
1504 vfd->v4l2_dev = &dev->v4l2_dev; in cx23885_video_dev_alloc()
1505 vfd->release = video_device_release; in cx23885_video_dev_alloc()
1506 return vfd; in cx23885_video_dev_alloc()
/linux-4.1.27/drivers/media/usb/tm6000/
Dtm6000-video.c1613 struct video_device *vfd, in vdev_init() argument
1617 *vfd = *template; in vdev_init()
1618 vfd->v4l2_dev = &dev->v4l2_dev; in vdev_init()
1619 vfd->release = video_device_release_empty; in vdev_init()
1620 vfd->lock = &dev->lock; in vdev_init()
1622 snprintf(vfd->name, sizeof(vfd->name), "%s %s", dev->name, type_name); in vdev_init()
1624 video_set_drvdata(vfd, dev); in vdev_init()
1655 vdev_init(dev, &dev->vfd, &tm6000_template, "video"); in tm6000_v4l2_register()
1657 dev->vfd.ctrl_handler = &dev->ctrl_handler; in tm6000_v4l2_register()
1663 ret = video_register_device(&dev->vfd, VFL_TYPE_GRABBER, video_nr); in tm6000_v4l2_register()
[all …]
Dtm6000.h223 struct video_device vfd; member
/linux-4.1.27/drivers/media/pci/cx88/
Dcx88-core.c990 struct video_device *vfd, in cx88_vdev_init() argument
994 *vfd = *template_; in cx88_vdev_init()
1002 vfd->v4l2_dev = &core->v4l2_dev; in cx88_vdev_init()
1003 vfd->dev_parent = &pci->dev; in cx88_vdev_init()
1004 vfd->release = video_device_release_empty; in cx88_vdev_init()
1005 vfd->lock = &core->lock; in cx88_vdev_init()
1006 snprintf(vfd->name, sizeof(vfd->name), "%s %s (%s)", in cx88_vdev_init()
Dcx88.h652 struct video_device *vfd,
/linux-4.1.27/drivers/media/pci/saa7134/
Dsaa7134-core.c810 struct video_device *vfd; in vdev_init() local
812 vfd = video_device_alloc(); in vdev_init()
813 if (NULL == vfd) in vdev_init()
815 *vfd = *template; in vdev_init()
816 vfd->v4l2_dev = &dev->v4l2_dev; in vdev_init()
817 vfd->release = video_device_release; in vdev_init()
818 snprintf(vfd->name, sizeof(vfd->name), "%s %s (%s)", in vdev_init()
820 video_set_drvdata(vfd, dev); in vdev_init()
821 return vfd; in vdev_init()
/linux-4.1.27/drivers/media/usb/cx231xx/
Dcx231xx-417.c1913 struct video_device *vfd, in cx231xx_video_dev_init() argument
1918 *vfd = *template; in cx231xx_video_dev_init()
1919 snprintf(vfd->name, sizeof(vfd->name), "%s %s (%s)", dev->name, in cx231xx_video_dev_init()
1922 vfd->v4l2_dev = &dev->v4l2_dev; in cx231xx_video_dev_init()
1923 vfd->lock = &dev->lock; in cx231xx_video_dev_init()
1924 vfd->release = video_device_release_empty; in cx231xx_video_dev_init()
1925 vfd->ctrl_handler = &dev->mpeg_ctrl_handler.hdl; in cx231xx_video_dev_init()
1926 video_set_drvdata(vfd, dev); in cx231xx_video_dev_init()
1928 v4l2_disable_ioctl(vfd, VIDIOC_G_FREQUENCY); in cx231xx_video_dev_init()
1929 v4l2_disable_ioctl(vfd, VIDIOC_S_FREQUENCY); in cx231xx_video_dev_init()
[all …]
Dcx231xx-video.c2113 struct video_device *vfd, in cx231xx_vdev_init() argument
2117 *vfd = *template; in cx231xx_vdev_init()
2118 vfd->v4l2_dev = &dev->v4l2_dev; in cx231xx_vdev_init()
2119 vfd->release = video_device_release_empty; in cx231xx_vdev_init()
2120 vfd->lock = &dev->lock; in cx231xx_vdev_init()
2122 snprintf(vfd->name, sizeof(vfd->name), "%s %s", dev->name, type_name); in cx231xx_vdev_init()
2124 video_set_drvdata(vfd, dev); in cx231xx_vdev_init()
2126 v4l2_disable_ioctl(vfd, VIDIOC_G_FREQUENCY); in cx231xx_vdev_init()
2127 v4l2_disable_ioctl(vfd, VIDIOC_S_FREQUENCY); in cx231xx_vdev_init()
2128 v4l2_disable_ioctl(vfd, VIDIOC_G_TUNER); in cx231xx_vdev_init()
[all …]
/linux-4.1.27/drivers/media/pci/saa7164/
Dsaa7164-vbi.c1288 struct video_device *vfd; in saa7164_vbi_alloc() local
1293 vfd = video_device_alloc(); in saa7164_vbi_alloc()
1294 if (NULL == vfd) in saa7164_vbi_alloc()
1297 *vfd = *template; in saa7164_vbi_alloc()
1298 snprintf(vfd->name, sizeof(vfd->name), "%s %s (%s)", dev->name, in saa7164_vbi_alloc()
1301 vfd->v4l2_dev = &dev->v4l2_dev; in saa7164_vbi_alloc()
1302 vfd->release = video_device_release; in saa7164_vbi_alloc()
1303 return vfd; in saa7164_vbi_alloc()
Dsaa7164-encoder.c1339 struct video_device *vfd; in saa7164_encoder_alloc() local
1344 vfd = video_device_alloc(); in saa7164_encoder_alloc()
1345 if (NULL == vfd) in saa7164_encoder_alloc()
1348 *vfd = *template; in saa7164_encoder_alloc()
1349 snprintf(vfd->name, sizeof(vfd->name), "%s %s (%s)", dev->name, in saa7164_encoder_alloc()
1352 vfd->v4l2_dev = &dev->v4l2_dev; in saa7164_encoder_alloc()
1353 vfd->release = video_device_release; in saa7164_encoder_alloc()
1354 return vfd; in saa7164_encoder_alloc()
/linux-4.1.27/drivers/media/platform/ti-vpe/
Dvpe.c353 struct video_device vfd; member
2149 struct video_device *vfd; in vpe_fw_cb() local
2152 vfd = &dev->vfd; in vpe_fw_cb()
2153 *vfd = vpe_videodev; in vpe_fw_cb()
2154 vfd->lock = &dev->dev_mutex; in vpe_fw_cb()
2155 vfd->v4l2_dev = &dev->v4l2_dev; in vpe_fw_cb()
2157 ret = video_register_device(vfd, VFL_TYPE_GRABBER, 0); in vpe_fw_cb()
2171 video_set_drvdata(vfd, dev); in vpe_fw_cb()
2172 snprintf(vfd->name, sizeof(vfd->name), "%s", vpe_videodev.name); in vpe_fw_cb()
2174 vfd->num); in vpe_fw_cb()
[all …]
/linux-4.1.27/drivers/media/platform/davinci/
Dvpfe_capture.c1804 struct video_device *vfd; in vpfe_probe() local
1874 vfd = &vpfe_dev->video_dev; in vpfe_probe()
1876 vfd->release = video_device_release_empty; in vpfe_probe()
1877 vfd->fops = &vpfe_fops; in vpfe_probe()
1878 vfd->ioctl_ops = &vpfe_ioctl_ops; in vpfe_probe()
1879 vfd->tvnorms = 0; in vpfe_probe()
1880 vfd->v4l2_dev = &vpfe_dev->v4l2_dev; in vpfe_probe()
1881 snprintf(vfd->name, sizeof(vfd->name), in vpfe_probe()
1952 vfd->tvnorms |= inps->std; in vpfe_probe()
/linux-4.1.27/drivers/media/usb/usbvision/
Dusbvision-video.c892 struct v4l2_fmtdesc *vfd) in vidioc_enum_fmt_vid_cap() argument
894 if (vfd->index >= USBVISION_SUPPORTED_PALETTES - 1) in vidioc_enum_fmt_vid_cap()
896 strcpy(vfd->description, usbvision_v4l2_format[vfd->index].desc); in vidioc_enum_fmt_vid_cap()
897 vfd->pixelformat = usbvision_v4l2_format[vfd->index].format; in vidioc_enum_fmt_vid_cap()
/linux-4.1.27/drivers/media/usb/em28xx/
Dem28xx-video.c2183 struct video_device *vfd, in em28xx_vdev_init() argument
2187 *vfd = *template; in em28xx_vdev_init()
2188 vfd->v4l2_dev = &dev->v4l2->v4l2_dev; in em28xx_vdev_init()
2189 vfd->lock = &dev->lock; in em28xx_vdev_init()
2191 vfd->tvnorms = 0; in em28xx_vdev_init()
2193 snprintf(vfd->name, sizeof(vfd->name), "%s %s", in em28xx_vdev_init()
2196 video_set_drvdata(vfd, dev); in em28xx_vdev_init()
/linux-4.1.27/drivers/media/platform/exynos-gsc/
Dgsc-m2m.c629 v4l2_fh_init(&ctx->fh, gsc->m2m.vfd); in gsc_m2m_open()
764 gsc->m2m.vfd = &gsc->vdev; in gsc_register_m2m_device()
785 video_device_release(gsc->m2m.vfd); in gsc_register_m2m_device()
Dgsc-core.h219 struct video_device *vfd; member
/linux-4.1.27/drivers/media/pci/bt8xx/
Dbttv-driver.c189 struct video_device *vfd = container_of(cd, struct video_device, dev); in show_card() local
190 struct bttv *btv = video_get_drvdata(vfd); in show_card()
3923 struct video_device *vfd, in vdev_init() argument
3927 *vfd = *template; in vdev_init()
3928 vfd->v4l2_dev = &btv->c.v4l2_dev; in vdev_init()
3929 vfd->release = video_device_release_empty; in vdev_init()
3930 video_set_drvdata(vfd, btv); in vdev_init()
3931 snprintf(vfd->name, sizeof(vfd->name), "BT%d%s %s (%s)", in vdev_init()
3935 v4l2_disable_ioctl(vfd, VIDIOC_G_FREQUENCY); in vdev_init()
3936 v4l2_disable_ioctl(vfd, VIDIOC_S_FREQUENCY); in vdev_init()
[all …]
/linux-4.1.27/Documentation/zh_CN/video4linux/
Dv4l2-framework.txt814 struct video_device *vfd;
823 v4l2_fh_init(&my_fh->fh, vfd);
/linux-4.1.27/drivers/media/platform/s5p-jpeg/
Djpeg-core.c768 struct video_device *vfd = video_devdata(file); in s5p_jpeg_open() local
782 v4l2_fh_init(&ctx->fh, vfd); in s5p_jpeg_open()
789 if (vfd == jpeg->vfd_encoder) { in s5p_jpeg_open()
/linux-4.1.27/Documentation/video4linux/
Dv4l2-framework.txt956 struct video_device *vfd;
965 v4l2_fh_init(&my_fh->fh, vfd);