| /linux-4.4.14/drivers/media/platform/vivid/ |
| D | vivid-core.c | 660 struct video_device *vfd; in vivid_create_instance() local 1134 vfd = &dev->vid_cap_dev; in vivid_create_instance() 1135 strlcpy(vfd->name, "vivid-vid-cap", sizeof(vfd->name)); in vivid_create_instance() 1136 vfd->fops = &vivid_fops; in vivid_create_instance() 1137 vfd->ioctl_ops = &vivid_ioctl_ops; in vivid_create_instance() 1138 vfd->release = video_device_release_empty; in vivid_create_instance() 1139 vfd->v4l2_dev = &dev->v4l2_dev; in vivid_create_instance() 1140 vfd->queue = &dev->vb_vid_cap_q; in vivid_create_instance() 1141 vfd->tvnorms = tvnorms_cap; in vivid_create_instance() 1147 vfd->lock = &dev->mutex; in vivid_create_instance() [all …]
|
| /linux-4.4.14/drivers/media/v4l2-core/ |
| D | v4l2-ioctl.c | 39 #define is_valid_ioctl(vfd, cmd) test_bit(_IOC_NR(cmd), (vfd)->valid_ioctls) argument 921 struct video_device *vfd = video_devdata(file); in check_fmt() local 922 const struct v4l2_ioctl_ops *ops = vfd->ioctl_ops; in check_fmt() 923 bool is_vid = vfd->vfl_type == VFL_TYPE_GRABBER; in check_fmt() 924 bool is_vbi = vfd->vfl_type == VFL_TYPE_VBI; in check_fmt() 925 bool is_sdr = vfd->vfl_type == VFL_TYPE_SDR; in check_fmt() 926 bool is_rx = vfd->vfl_dir != VFL_DIR_TX; in check_fmt() 927 bool is_tx = vfd->vfl_dir != VFL_DIR_RX; in check_fmt() 1056 struct video_device *vfd; in v4l_g_priority() local 1059 vfd = video_devdata(file); in v4l_g_priority() [all …]
|
| D | v4l2-mem2mem.c | 554 struct video_device *vfd = video_devdata(file); in v4l2_m2m_poll() local 561 if (test_bit(V4L2_FL_USES_V4L2_FH, &vfd->flags)) { in v4l2_m2m_poll()
|
| D | v4l2-ctrls.c | 3411 struct video_device *vfd = video_devdata(file); in v4l2_ctrl_log_status() local 3414 if (test_bit(V4L2_FL_USES_V4L2_FH, &vfd->flags) && vfd->v4l2_dev) in v4l2_ctrl_log_status() 3416 vfd->v4l2_dev->name); in v4l2_ctrl_log_status()
|
| D | videobuf2-v4l2.c | 770 struct video_device *vfd = video_devdata(file); in vb2_poll() local 776 if (test_bit(V4L2_FL_USES_V4L2_FH, &vfd->flags)) { in vb2_poll()
|
| /linux-4.4.14/drivers/media/platform/exynos4-is/ |
| D | fimc-m2m.c | 378 v4l2_err(&fimc->m2m.vfd, "queue (%d) busy\n", f->type); in fimc_m2m_s_fmt_mplane() 444 v4l2_err(&fimc->m2m.vfd, in fimc_m2m_try_crop() 514 v4l2_err(&fimc->m2m.vfd, "Out of scaler range\n"); in fimc_m2m_s_crop() 627 v4l2_fh_init(&ctx->fh, &fimc->m2m.vfd); in fimc_m2m_open() 719 struct video_device *vfd = &fimc->m2m.vfd; in fimc_register_m2m_device() local 724 memset(vfd, 0, sizeof(*vfd)); in fimc_register_m2m_device() 725 vfd->fops = &fimc_m2m_fops; in fimc_register_m2m_device() 726 vfd->ioctl_ops = &fimc_m2m_ioctl_ops; in fimc_register_m2m_device() 727 vfd->v4l2_dev = v4l2_dev; in fimc_register_m2m_device() 728 vfd->minor = -1; in fimc_register_m2m_device() [all …]
|
| D | fimc-lite.c | 1287 struct video_device *vfd = &fimc->ve.vdev; in fimc_lite_subdev_registered() local 1290 memset(vfd, 0, sizeof(*vfd)); in fimc_lite_subdev_registered() 1293 snprintf(vfd->name, sizeof(vfd->name), "fimc-lite.%d.capture", in fimc_lite_subdev_registered() 1296 vfd->fops = &fimc_lite_fops; in fimc_lite_subdev_registered() 1297 vfd->ioctl_ops = &fimc_lite_ioctl_ops; in fimc_lite_subdev_registered() 1298 vfd->v4l2_dev = sd->v4l2_dev; in fimc_lite_subdev_registered() 1299 vfd->minor = -1; in fimc_lite_subdev_registered() 1300 vfd->release = video_device_release_empty; in fimc_lite_subdev_registered() 1301 vfd->queue = q; in fimc_lite_subdev_registered() 1322 ret = media_entity_init(&vfd->entity, 1, &fimc->vd_pad, 0); in fimc_lite_subdev_registered() [all …]
|
| D | fimc-capture.c | 1737 struct video_device *vfd = &fimc->vid_cap.ve.vdev; in fimc_register_capture_device() local 1755 memset(vfd, 0, sizeof(*vfd)); in fimc_register_capture_device() 1756 snprintf(vfd->name, sizeof(vfd->name), "fimc.%d.capture", fimc->id); in fimc_register_capture_device() 1758 vfd->fops = &fimc_capture_fops; in fimc_register_capture_device() 1759 vfd->ioctl_ops = &fimc_capture_ioctl_ops; in fimc_register_capture_device() 1760 vfd->v4l2_dev = v4l2_dev; in fimc_register_capture_device() 1761 vfd->minor = -1; in fimc_register_capture_device() 1762 vfd->release = video_device_release_empty; in fimc_register_capture_device() 1763 vfd->queue = q; in fimc_register_capture_device() 1764 vfd->lock = &fimc->lock; in fimc_register_capture_device() [all …]
|
| D | fimc-core.h | 274 struct video_device vfd; member
|
| /linux-4.4.14/drivers/media/pci/solo6x10/ |
| D | solo6x10-v4l2.c | 432 input->std = solo_dev->vfd->tvnorms; in solo_enum_input() 657 solo_dev->vfd = video_device_alloc(); in solo_v4l2_init() 658 if (!solo_dev->vfd) in solo_v4l2_init() 661 *solo_dev->vfd = solo_v4l2_template; in solo_v4l2_init() 662 solo_dev->vfd->v4l2_dev = &solo_dev->v4l2_dev; in solo_v4l2_init() 663 solo_dev->vfd->queue = &solo_dev->vidq; in solo_v4l2_init() 664 solo_dev->vfd->lock = &solo_dev->lock; in solo_v4l2_init() 671 solo_dev->vfd->ctrl_handler = &solo_dev->disp_hdl; in solo_v4l2_init() 673 video_set_drvdata(solo_dev->vfd, solo_dev); in solo_v4l2_init() 706 ret = video_register_device(solo_dev->vfd, VFL_TYPE_GRABBER, nr); in solo_v4l2_init() [all …]
|
| D | solo6x10-v4l2-enc.c | 549 v4l2_event_queue(solo_enc->vfd, &ev); in solo_enc_fillbuf() 806 input->std = solo_enc->vfd->tvnorms; in solo_enc_enum_input() 1324 solo_enc->vfd = video_device_alloc(); in solo_enc_alloc() 1325 if (!solo_enc->vfd) in solo_enc_alloc() 1328 *solo_enc->vfd = solo_enc_template; in solo_enc_alloc() 1329 solo_enc->vfd->v4l2_dev = &solo_dev->v4l2_dev; in solo_enc_alloc() 1330 solo_enc->vfd->ctrl_handler = hdl; in solo_enc_alloc() 1331 solo_enc->vfd->queue = &solo_enc->vidq; in solo_enc_alloc() 1332 solo_enc->vfd->lock = &solo_enc->lock; in solo_enc_alloc() 1333 video_set_drvdata(solo_enc->vfd, solo_enc); in solo_enc_alloc() [all …]
|
| D | solo6x10.h | 152 struct video_device *vfd; member 225 struct video_device *vfd; member
|
| D | solo6x10-g723.c | 362 sprintf(name, "Softlogic%d", solo_dev->vfd->num); in solo_g723_init()
|
| D | solo6x10-core.c | 427 dev_set_name(dev, "%s-%d-%d", driver, solo_dev->vfd->num, in solo_sysfs_init()
|
| /linux-4.4.14/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-4.4.14/drivers/media/platform/s5p-mfc/ |
| D | s5p_mfc.c | 1078 struct video_device *vfd; in s5p_mfc_probe() local 1169 vfd = video_device_alloc(); in s5p_mfc_probe() 1170 if (!vfd) { in s5p_mfc_probe() 1175 vfd->fops = &s5p_mfc_fops; in s5p_mfc_probe() 1176 vfd->ioctl_ops = get_dec_v4l2_ioctl_ops(); in s5p_mfc_probe() 1177 vfd->release = video_device_release; in s5p_mfc_probe() 1178 vfd->lock = &dev->mfc_mutex; in s5p_mfc_probe() 1179 vfd->v4l2_dev = &dev->v4l2_dev; in s5p_mfc_probe() 1180 vfd->vfl_dir = VFL_DIR_M2M; in s5p_mfc_probe() 1181 snprintf(vfd->name, sizeof(vfd->name), "%s", S5P_MFC_DEC_NAME); in s5p_mfc_probe() [all …]
|
| /linux-4.4.14/drivers/media/platform/s5p-g2d/ |
| D | g2d.c | 623 struct video_device *vfd; in g2d_probe() local 693 vfd = video_device_alloc(); in g2d_probe() 694 if (!vfd) { in g2d_probe() 699 *vfd = g2d_videodev; in g2d_probe() 700 vfd->lock = &dev->mutex; in g2d_probe() 701 vfd->v4l2_dev = &dev->v4l2_dev; in g2d_probe() 702 ret = video_register_device(vfd, VFL_TYPE_GRABBER, 0); in g2d_probe() 707 video_set_drvdata(vfd, dev); in g2d_probe() 708 snprintf(vfd->name, sizeof(vfd->name), "%s", g2d_videodev.name); in g2d_probe() 709 dev->vfd = vfd; in g2d_probe() [all …]
|
| D | g2d.h | 24 struct video_device *vfd; member
|
| /linux-4.4.14/drivers/media/platform/ |
| D | mx2_emmaprp.c | 205 struct video_device *vfd; member 897 struct video_device *vfd; in emmaprp_probe() local 927 vfd = video_device_alloc(); in emmaprp_probe() 928 if (!vfd) { in emmaprp_probe() 934 *vfd = emmaprp_videodev; in emmaprp_probe() 935 vfd->lock = &pcdev->dev_mutex; in emmaprp_probe() 936 vfd->v4l2_dev = &pcdev->v4l2_dev; in emmaprp_probe() 938 video_set_drvdata(vfd, pcdev); in emmaprp_probe() 939 snprintf(vfd->name, sizeof(vfd->name), "%s", emmaprp_videodev.name); in emmaprp_probe() 940 pcdev->vfd = vfd; in emmaprp_probe() [all …]
|
| D | vim2m.c | 142 struct video_device vfd; member 990 struct video_device *vfd; in vim2m_probe() local 1006 dev->vfd = vim2m_videodev; in vim2m_probe() 1007 vfd = &dev->vfd; in vim2m_probe() 1008 vfd->lock = &dev->dev_mutex; in vim2m_probe() 1009 vfd->v4l2_dev = &dev->v4l2_dev; in vim2m_probe() 1011 ret = video_register_device(vfd, VFL_TYPE_GRABBER, 0); in vim2m_probe() 1017 video_set_drvdata(vfd, dev); in vim2m_probe() 1018 snprintf(vfd->name, sizeof(vfd->name), "%s", vim2m_videodev.name); in vim2m_probe() 1020 "Device registered as /dev/video%d\n", vfd->num); in vim2m_probe() [all …]
|
| D | m2m-deinterlace.c | 130 struct video_device vfd; member 1004 struct video_device *vfd; in deinterlace_probe() local 1032 vfd = &pcdev->vfd; in deinterlace_probe() 1033 *vfd = deinterlace_videodev; in deinterlace_probe() 1034 vfd->lock = &pcdev->dev_mutex; in deinterlace_probe() 1035 vfd->v4l2_dev = &pcdev->v4l2_dev; in deinterlace_probe() 1037 ret = video_register_device(vfd, VFL_TYPE_GRABBER, 0); in deinterlace_probe() 1043 video_set_drvdata(vfd, pcdev); in deinterlace_probe() 1044 snprintf(vfd->name, sizeof(vfd->name), "%s", deinterlace_videodev.name); in deinterlace_probe() 1046 " Device registered as /dev/video%d\n", vfd->num); in deinterlace_probe() [all …]
|
| D | rcar_jpu.c | 1238 struct video_device *vfd = video_devdata(file); in jpu_open() local 1246 v4l2_fh_init(&ctx->fh, vfd); in jpu_open() 1252 ctx->encoder = vfd == &jpu->vfd_encoder; in jpu_open()
|
| /linux-4.4.14/drivers/media/platform/omap/ |
| D | omap_vout.c | 1044 strlcpy(cap->card, vout->vfd->name, sizeof(cap->card)); in vidioc_querycap() 1866 struct video_device *vfd; in omap_vout_setup_video_data() local 1915 vfd = vout->vfd = video_device_alloc(); in omap_vout_setup_video_data() 1917 if (!vfd) { in omap_vout_setup_video_data() 1922 vfd->release = video_device_release; in omap_vout_setup_video_data() 1923 vfd->ioctl_ops = &vout_ioctl_ops; in omap_vout_setup_video_data() 1925 strlcpy(vfd->name, VOUT_NAME, sizeof(vfd->name)); in omap_vout_setup_video_data() 1927 vfd->fops = &omap_vout_fops; in omap_vout_setup_video_data() 1928 vfd->v4l2_dev = &vout->vid_dev->v4l2_dev; in omap_vout_setup_video_data() 1929 vfd->vfl_dir = VFL_DIR_TX; in omap_vout_setup_video_data() [all …]
|
| D | omap_vout_vrfb.c | 94 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()
|
| D | omap_voutdef.h | 117 struct video_device *vfd; member
|
| /linux-4.4.14/drivers/media/platform/s3c-camif/ |
| D | camif-capture.c | 1124 struct video_device *vfd = &vp->vdev; in s3c_camif_register_video_node() local 1128 memset(vfd, 0, sizeof(*vfd)); in s3c_camif_register_video_node() 1129 snprintf(vfd->name, sizeof(vfd->name), "camif-%s", in s3c_camif_register_video_node() 1132 vfd->fops = &s3c_camif_fops; in s3c_camif_register_video_node() 1133 vfd->ioctl_ops = &s3c_camif_ioctl_ops; in s3c_camif_register_video_node() 1134 vfd->v4l2_dev = &camif->v4l2_dev; in s3c_camif_register_video_node() 1135 vfd->minor = -1; in s3c_camif_register_video_node() 1136 vfd->release = video_device_release_empty; in s3c_camif_register_video_node() 1137 vfd->lock = &camif->lock; in s3c_camif_register_video_node() 1158 ret = media_entity_init(&vfd->entity, 1, &vp->pad, 0); in s3c_camif_register_video_node() [all …]
|
| /linux-4.4.14/drivers/media/platform/s5p-tv/ |
| D | mixer_video.c | 166 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() 960 mxr_err(mdev, "watchdog fired for layer %s\n", layer->vfd.name); in mxr_watchdog() 1042 ret = video_register_device(&layer->vfd, VFL_TYPE_GRABBER, -1); in mxr_base_layer_register() 1047 layer->vfd.name, layer->vfd.num); in mxr_base_layer_register() 1053 video_unregister_device(&layer->vfd); in mxr_base_layer_unregister() 1091 layer->vfd = (struct video_device) { in mxr_base_layer_create() [all …]
|
| D | mixer.h | 179 struct video_device vfd; member
|
| /linux-4.4.14/drivers/media/platform/blackfin/ |
| D | bfin_capture.c | 796 struct video_device *vfd; in bcap_probe() local 831 vfd = &bcap_dev->video_dev; in bcap_probe() 833 vfd->release = video_device_release_empty; in bcap_probe() 834 vfd->fops = &bcap_fops; in bcap_probe() 835 vfd->ioctl_ops = &bcap_ioctl_ops; in bcap_probe() 836 vfd->tvnorms = 0; in bcap_probe() 837 vfd->v4l2_dev = &bcap_dev->v4l2_dev; in bcap_probe() 838 strncpy(vfd->name, CAPTURE_DRV_NAME, sizeof(vfd->name)); in bcap_probe() 879 vfd->lock = &bcap_dev->mutex; in bcap_probe() 880 vfd->queue = q; in bcap_probe() [all …]
|
| /linux-4.4.14/drivers/media/pci/saa7164/ |
| D | saa7164-vbi.c | 701 struct video_device *vfd; in saa7164_vbi_alloc() local 706 vfd = video_device_alloc(); in saa7164_vbi_alloc() 707 if (NULL == vfd) in saa7164_vbi_alloc() 710 *vfd = *template; in saa7164_vbi_alloc() 711 snprintf(vfd->name, sizeof(vfd->name), "%s %s (%s)", dev->name, in saa7164_vbi_alloc() 714 vfd->v4l2_dev = &dev->v4l2_dev; in saa7164_vbi_alloc() 715 vfd->release = video_device_release; in saa7164_vbi_alloc() 716 return vfd; in saa7164_vbi_alloc()
|
| D | saa7164-encoder.c | 999 struct video_device *vfd; in saa7164_encoder_alloc() local 1004 vfd = video_device_alloc(); in saa7164_encoder_alloc() 1005 if (NULL == vfd) in saa7164_encoder_alloc() 1008 *vfd = *template; in saa7164_encoder_alloc() 1009 snprintf(vfd->name, sizeof(vfd->name), "%s %s (%s)", dev->name, in saa7164_encoder_alloc() 1012 vfd->v4l2_dev = &dev->v4l2_dev; in saa7164_encoder_alloc() 1013 vfd->release = video_device_release; in saa7164_encoder_alloc() 1014 return vfd; in saa7164_encoder_alloc()
|
| /linux-4.4.14/drivers/media/platform/coda/ |
| D | coda-common.c | 299 unsigned int i = vdev - dev->vfd; in to_coda_video_device() 1932 struct video_device *vfd = &dev->vfd[i]; in coda_register_device() local 1937 strlcpy(vfd->name, dev->devtype->vdevs[i]->name, sizeof(vfd->name)); in coda_register_device() 1938 vfd->fops = &coda_fops; in coda_register_device() 1939 vfd->ioctl_ops = &coda_ioctl_ops; in coda_register_device() 1940 vfd->release = video_device_release_empty, in coda_register_device() 1941 vfd->lock = &dev->dev_mutex; in coda_register_device() 1942 vfd->v4l2_dev = &dev->v4l2_dev; in coda_register_device() 1943 vfd->vfl_dir = VFL_DIR_M2M; in coda_register_device() 1944 video_set_drvdata(vfd, dev); in coda_register_device() [all …]
|
| D | coda.h | 74 struct video_device vfd[5]; member
|
| /linux-4.4.14/drivers/media/pci/cx23885/ |
| D | cx23885-video.c | 140 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()
|
| D | cx23885-417.c | 1496 struct video_device *vfd; in cx23885_video_dev_alloc() local 1501 vfd = video_device_alloc(); in cx23885_video_dev_alloc() 1502 if (NULL == vfd) in cx23885_video_dev_alloc() 1504 *vfd = *template; in cx23885_video_dev_alloc() 1505 snprintf(vfd->name, sizeof(vfd->name), "%s (%s)", in cx23885_video_dev_alloc() 1507 vfd->v4l2_dev = &dev->v4l2_dev; in cx23885_video_dev_alloc() 1508 vfd->release = video_device_release; in cx23885_video_dev_alloc() 1509 return vfd; in cx23885_video_dev_alloc()
|
| /linux-4.4.14/drivers/media/usb/tm6000/ |
| D | tm6000-video.c | 1612 struct video_device *vfd, in vdev_init() argument 1616 *vfd = *template; in vdev_init() 1617 vfd->v4l2_dev = &dev->v4l2_dev; in vdev_init() 1618 vfd->release = video_device_release_empty; in vdev_init() 1619 vfd->lock = &dev->lock; in vdev_init() 1621 snprintf(vfd->name, sizeof(vfd->name), "%s %s", dev->name, type_name); in vdev_init() 1623 video_set_drvdata(vfd, dev); in vdev_init() 1654 vdev_init(dev, &dev->vfd, &tm6000_template, "video"); in tm6000_v4l2_register() 1656 dev->vfd.ctrl_handler = &dev->ctrl_handler; in tm6000_v4l2_register() 1662 ret = video_register_device(&dev->vfd, VFL_TYPE_GRABBER, video_nr); in tm6000_v4l2_register() [all …]
|
| D | tm6000.h | 223 struct video_device vfd; member
|
| /linux-4.4.14/drivers/media/pci/cx88/ |
| D | cx88-core.c | 992 struct video_device *vfd, in cx88_vdev_init() argument 996 *vfd = *template_; in cx88_vdev_init() 1004 vfd->v4l2_dev = &core->v4l2_dev; in cx88_vdev_init() 1005 vfd->dev_parent = &pci->dev; in cx88_vdev_init() 1006 vfd->release = video_device_release_empty; in cx88_vdev_init() 1007 vfd->lock = &core->lock; in cx88_vdev_init() 1008 snprintf(vfd->name, sizeof(vfd->name), "%s %s (%s)", in cx88_vdev_init()
|
| D | cx88.h | 652 struct video_device *vfd,
|
| /linux-4.4.14/drivers/media/pci/saa7134/ |
| D | saa7134-core.c | 813 struct video_device *vfd; in vdev_init() local 815 vfd = video_device_alloc(); in vdev_init() 816 if (NULL == vfd) in vdev_init() 818 *vfd = *template; in vdev_init() 819 vfd->v4l2_dev = &dev->v4l2_dev; in vdev_init() 820 vfd->release = video_device_release; in vdev_init() 821 snprintf(vfd->name, sizeof(vfd->name), "%s %s (%s)", in vdev_init() 823 video_set_drvdata(vfd, dev); in vdev_init() 824 return vfd; in vdev_init()
|
| /linux-4.4.14/drivers/media/usb/cx231xx/ |
| D | cx231xx-417.c | 1914 struct video_device *vfd, in cx231xx_video_dev_init() argument 1919 *vfd = *template; in cx231xx_video_dev_init() 1920 snprintf(vfd->name, sizeof(vfd->name), "%s %s (%s)", dev->name, in cx231xx_video_dev_init() 1923 vfd->v4l2_dev = &dev->v4l2_dev; in cx231xx_video_dev_init() 1924 vfd->lock = &dev->lock; in cx231xx_video_dev_init() 1925 vfd->release = video_device_release_empty; in cx231xx_video_dev_init() 1926 vfd->ctrl_handler = &dev->mpeg_ctrl_handler.hdl; in cx231xx_video_dev_init() 1927 video_set_drvdata(vfd, dev); in cx231xx_video_dev_init() 1929 v4l2_disable_ioctl(vfd, VIDIOC_G_FREQUENCY); in cx231xx_video_dev_init() 1930 v4l2_disable_ioctl(vfd, VIDIOC_S_FREQUENCY); in cx231xx_video_dev_init() [all …]
|
| D | cx231xx-video.c | 2116 struct video_device *vfd, in cx231xx_vdev_init() argument 2120 *vfd = *template; in cx231xx_vdev_init() 2121 vfd->v4l2_dev = &dev->v4l2_dev; in cx231xx_vdev_init() 2122 vfd->release = video_device_release_empty; in cx231xx_vdev_init() 2123 vfd->lock = &dev->lock; in cx231xx_vdev_init() 2125 snprintf(vfd->name, sizeof(vfd->name), "%s %s", dev->name, type_name); in cx231xx_vdev_init() 2127 video_set_drvdata(vfd, dev); in cx231xx_vdev_init() 2129 v4l2_disable_ioctl(vfd, VIDIOC_G_FREQUENCY); in cx231xx_vdev_init() 2130 v4l2_disable_ioctl(vfd, VIDIOC_S_FREQUENCY); in cx231xx_vdev_init() 2131 v4l2_disable_ioctl(vfd, VIDIOC_G_TUNER); in cx231xx_vdev_init() [all …]
|
| /linux-4.4.14/drivers/media/platform/ti-vpe/ |
| D | vpe.c | 353 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.4.14/drivers/media/platform/davinci/ |
| D | vpfe_capture.c | 1807 struct video_device *vfd; in vpfe_probe() local 1877 vfd = &vpfe_dev->video_dev; in vpfe_probe() 1879 vfd->release = video_device_release_empty; in vpfe_probe() 1880 vfd->fops = &vpfe_fops; in vpfe_probe() 1881 vfd->ioctl_ops = &vpfe_ioctl_ops; in vpfe_probe() 1882 vfd->tvnorms = 0; in vpfe_probe() 1883 vfd->v4l2_dev = &vpfe_dev->v4l2_dev; in vpfe_probe() 1884 snprintf(vfd->name, sizeof(vfd->name), in vpfe_probe() 1955 vfd->tvnorms |= inps->std; in vpfe_probe()
|
| /linux-4.4.14/drivers/media/usb/usbvision/ |
| D | usbvision-video.c | 835 struct v4l2_fmtdesc *vfd) in vidioc_enum_fmt_vid_cap() argument 837 if (vfd->index >= USBVISION_SUPPORTED_PALETTES - 1) in vidioc_enum_fmt_vid_cap() 839 strcpy(vfd->description, usbvision_v4l2_format[vfd->index].desc); in vidioc_enum_fmt_vid_cap() 840 vfd->pixelformat = usbvision_v4l2_format[vfd->index].format; in vidioc_enum_fmt_vid_cap()
|
| /linux-4.4.14/drivers/media/usb/em28xx/ |
| D | em28xx-video.c | 2189 struct video_device *vfd, in em28xx_vdev_init() argument 2193 *vfd = *template; in em28xx_vdev_init() 2194 vfd->v4l2_dev = &dev->v4l2->v4l2_dev; in em28xx_vdev_init() 2195 vfd->lock = &dev->lock; in em28xx_vdev_init() 2197 vfd->tvnorms = 0; in em28xx_vdev_init() 2199 snprintf(vfd->name, sizeof(vfd->name), "%s %s", in em28xx_vdev_init() 2202 video_set_drvdata(vfd, dev); in em28xx_vdev_init()
|
| /linux-4.4.14/drivers/media/platform/exynos-gsc/ |
| D | gsc-m2m.c | 630 v4l2_fh_init(&ctx->fh, gsc->m2m.vfd); in gsc_m2m_open() 765 gsc->m2m.vfd = &gsc->vdev; in gsc_register_m2m_device() 786 video_device_release(gsc->m2m.vfd); in gsc_register_m2m_device()
|
| D | gsc-core.h | 219 struct video_device *vfd; member
|
| /linux-4.4.14/drivers/media/pci/bt8xx/ |
| D | bttv-driver.c | 189 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() 3921 struct video_device *vfd, in vdev_init() argument 3925 *vfd = *template; in vdev_init() 3926 vfd->v4l2_dev = &btv->c.v4l2_dev; in vdev_init() 3927 vfd->release = video_device_release_empty; in vdev_init() 3928 video_set_drvdata(vfd, btv); in vdev_init() 3929 snprintf(vfd->name, sizeof(vfd->name), "BT%d%s %s (%s)", in vdev_init() 3933 v4l2_disable_ioctl(vfd, VIDIOC_G_FREQUENCY); in vdev_init() 3934 v4l2_disable_ioctl(vfd, VIDIOC_S_FREQUENCY); in vdev_init() [all …]
|
| /linux-4.4.14/Documentation/zh_CN/video4linux/ |
| D | v4l2-framework.txt | 814 struct video_device *vfd; 823 v4l2_fh_init(&my_fh->fh, vfd);
|
| /linux-4.4.14/drivers/media/platform/s5p-jpeg/ |
| D | jpeg-core.c | 971 struct video_device *vfd = video_devdata(file); in s5p_jpeg_open() local 985 v4l2_fh_init(&ctx->fh, vfd); in s5p_jpeg_open() 992 if (vfd == jpeg->vfd_encoder) { in s5p_jpeg_open()
|
| /linux-4.4.14/Documentation/video4linux/ |
| D | v4l2-framework.txt | 956 struct video_device *vfd; 965 v4l2_fh_init(&my_fh->fh, vfd);
|