| /linux/drivers/media/test-drivers/vivid/ |
| A D | vivid-core.c | 1387 struct video_device *vfd; in vivid_create_devnodes() local 1392 snprintf(vfd->name, sizeof(vfd->name), in vivid_create_devnodes() 1442 snprintf(vfd->name, sizeof(vfd->name), in vivid_create_devnodes() 1495 snprintf(vfd->name, sizeof(vfd->name), in vivid_create_devnodes() 1526 snprintf(vfd->name, sizeof(vfd->name), in vivid_create_devnodes() 1558 snprintf(vfd->name, sizeof(vfd->name), in vivid_create_devnodes() 1585 snprintf(vfd->name, sizeof(vfd->name), in vivid_create_devnodes() 1604 snprintf(vfd->name, sizeof(vfd->name), in vivid_create_devnodes() 1624 snprintf(vfd->name, sizeof(vfd->name), in vivid_create_devnodes() 1653 snprintf(vfd->name, sizeof(vfd->name), in vivid_create_devnodes() [all …]
|
| /linux/drivers/media/v4l2-core/ |
| A D | v4l2-ioctl.c | 39 #define is_valid_ioctl(vfd, cmd) test_bit(_IOC_NR(cmd), (vfd)->valid_ioctls) argument 1986 *p = vfd->tvnorms; in v4l_querystd() 2145 if (vfd->ctrl_handler) in v4l_queryctrl() 2263 vfd, vfd->v4l2_dev->mdev, p); in v4l_g_ext_ctrls() 2266 vfd, vfd->v4l2_dev->mdev, p); in v4l_g_ext_ctrls() 2284 vfd, vfd->v4l2_dev->mdev, p); in v4l_s_ext_ctrls() 2287 vfd, vfd->v4l2_dev->mdev, p); in v4l_s_ext_ctrls() 2305 vfd, vfd->v4l2_dev->mdev, p); in v4l_try_ext_ctrls() 2308 vfd, vfd->v4l2_dev->mdev, p); in v4l_try_ext_ctrls() 2483 if (vfd->v4l2_dev) in v4l_log_status() [all …]
|
| /linux/drivers/staging/media/imx/ |
| A D | imx-media-dev-common.c | 212 struct video_device *vfd, in imx_media_inherit_controls() argument 222 vfd->entity.name, sd->entity.name); in imx_media_inherit_controls() 258 struct video_device *vfd; in imx_media_link_notify() local 289 vfd = pad_vdev->vdev->vfd; in imx_media_link_notify() 290 if (!vfd->ctrl_handler) in imx_media_link_notify() 294 vfd->entity.name); in imx_media_link_notify() 295 v4l2_ctrl_handler_free(vfd->ctrl_handler); in imx_media_link_notify() 301 vfd = pad_vdev->vdev->vfd; in imx_media_link_notify() 302 if (!vfd->ctrl_handler) in imx_media_link_notify() 306 vfd->entity.name); in imx_media_link_notify() [all …]
|
| A D | imx-media-capture.c | 778 struct video_device *vfd = priv->vdev.vfd; in capture_open() local 802 struct video_device *vfd = priv->vdev.vfd; in capture_release() local 907 struct video_device *vfd = vdev->vfd; in imx_media_capture_device_register() local 913 vfd->v4l2_dev = v4l2_dev; in imx_media_capture_device_register() 951 struct video_device *vfd = priv->vdev.vfd; in imx_media_capture_device_unregister() local 963 struct video_device *vfd; in imx_media_capture_device_init() local 982 if (!vfd) in imx_media_capture_device_init() 988 vfd->minor = -1; in imx_media_capture_device_init() 995 vfd->queue = &priv->q; in imx_media_capture_device_init() 997 snprintf(vfd->name, sizeof(vfd->name), "%s capture", src_sd->name); in imx_media_capture_device_init() [all …]
|
| A D | imx-media-csc-scaler.c | 850 struct video_device *vfd = vdev->vfd; in imx_media_csc_scaler_device_register() local 861 v4l2_info(vfd->v4l2_dev, "Registered %s as /dev/%s\n", vfd->name, in imx_media_csc_scaler_device_register() 870 struct video_device *vfd = priv->vdev.vfd; in imx_media_csc_scaler_device_unregister() local 872 video_unregister_device(vfd); in imx_media_csc_scaler_device_unregister() 879 struct video_device *vfd; in imx_media_csc_scaler_device_init() local 891 vfd = video_device_alloc(); in imx_media_csc_scaler_device_init() 892 if (!vfd) { in imx_media_csc_scaler_device_init() 898 vfd->lock = &priv->mutex; in imx_media_csc_scaler_device_init() 899 priv->vdev.vfd = vfd; in imx_media_csc_scaler_device_init() 903 video_set_drvdata(vfd, priv); in imx_media_csc_scaler_device_init() [all …]
|
| /linux/drivers/media/platform/exynos4-is/ |
| A D | fimc-m2m.c | 436 v4l2_err(&fimc->m2m.vfd, in fimc_m2m_try_selection() 717 struct video_device *vfd = &fimc->m2m.vfd; in fimc_register_m2m_device() local 722 memset(vfd, 0, sizeof(*vfd)); in fimc_register_m2m_device() 723 vfd->fops = &fimc_m2m_fops; in fimc_register_m2m_device() 725 vfd->v4l2_dev = v4l2_dev; in fimc_register_m2m_device() 726 vfd->minor = -1; in fimc_register_m2m_device() 728 vfd->lock = &fimc->lock; in fimc_register_m2m_device() 729 vfd->vfl_dir = VFL_DIR_M2M; in fimc_register_m2m_device() 733 snprintf(vfd->name, sizeof(vfd->name), "fimc.%d.m2m", fimc->id); in fimc_register_m2m_device() 734 video_set_drvdata(vfd, fimc); in fimc_register_m2m_device() [all …]
|
| A D | fimc-capture.c | 1731 memset(vfd, 0, sizeof(*vfd)); in fimc_register_capture_device() 1732 snprintf(vfd->name, sizeof(vfd->name), "fimc.%d.capture", fimc->id); in fimc_register_capture_device() 1734 vfd->fops = &fimc_capture_fops; in fimc_register_capture_device() 1736 vfd->v4l2_dev = v4l2_dev; in fimc_register_capture_device() 1737 vfd->minor = -1; in fimc_register_capture_device() 1739 vfd->queue = q; in fimc_register_capture_device() 1740 vfd->lock = &fimc->lock; in fimc_register_capture_device() 1743 video_set_drvdata(vfd, fimc); in fimc_register_capture_device() 1796 vfd->name, video_device_node_name(vfd)); in fimc_register_capture_device() 1798 vfd->ctrl_handler = &ctx->ctrls.handler; in fimc_register_capture_device() [all …]
|
| /linux/drivers/media/common/saa7146/ |
| A D | saa7146_fops.c | 596 vfd->fops = &video_fops; in saa7146_register_device() 601 vfd->release = video_device_release_empty; in saa7146_register_device() 602 vfd->lock = &dev->v4l2_lock; in saa7146_register_device() 603 vfd->v4l2_dev = &dev->v4l2_dev; in saa7146_register_device() 604 vfd->tvnorms = 0; in saa7146_register_device() 607 strscpy(vfd->name, name, sizeof(vfd->name)); in saa7146_register_device() 612 vfd->device_caps &= in saa7146_register_device() 615 vfd->device_caps &= in saa7146_register_device() 617 video_set_drvdata(vfd, dev); in saa7146_register_device() 626 dev->name, video_device_node_name(vfd)); in saa7146_register_device() [all …]
|
| /linux/drivers/media/pci/solo6x10/ |
| A 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() 699 snprintf(solo_dev->vfd->name, sizeof(solo_dev->vfd->name), "%s (%i)", in solo_v4l2_init() 700 SOLO6X10_NAME, solo_dev->vfd->num); in solo_v4l2_init() 703 solo_dev->vfd->num, in solo_v4l2_init() 709 video_device_release(solo_dev->vfd); in solo_v4l2_init() 711 solo_dev->vfd = NULL; in solo_v4l2_init() 717 if (solo_dev->vfd == NULL) in solo_v4l2_exit() [all …]
|
| A 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() 1298 solo_enc->vfd = video_device_alloc(); in solo_enc_alloc() 1299 if (!solo_enc->vfd) in solo_enc_alloc() 1302 *solo_enc->vfd = solo_enc_template; in solo_enc_alloc() 1304 solo_enc->vfd->ctrl_handler = hdl; in solo_enc_alloc() 1306 solo_enc->vfd->lock = &solo_enc->lock; in solo_enc_alloc() 1312 snprintf(solo_enc->vfd->name, sizeof(solo_enc->vfd->name), in solo_enc_alloc() 1314 solo_enc->vfd->num); in solo_enc_alloc() 1319 video_device_release(solo_enc->vfd); in solo_enc_alloc() [all …]
|
| /linux/drivers/staging/media/sunxi/cedrus/ |
| A D | cedrus.c | 418 struct video_device *vfd; in cedrus_probe() local 425 dev->vfd = cedrus_video_device; in cedrus_probe() 448 vfd = &dev->vfd; in cedrus_probe() 449 vfd->lock = &dev->dev_mutex; in cedrus_probe() 450 vfd->v4l2_dev = &dev->v4l2_dev; in cedrus_probe() 452 snprintf(vfd->name, sizeof(vfd->name), "%s", cedrus_video_device.name); in cedrus_probe() 453 video_set_drvdata(vfd, dev); in cedrus_probe() 473 ret = video_register_device(vfd, VFL_TYPE_VIDEO, 0); in cedrus_probe() 480 "Device registered as /dev/video%d\n", vfd->num); in cedrus_probe() 503 video_unregister_device(&dev->vfd); in cedrus_probe() [all …]
|
| /linux/drivers/media/platform/omap/ |
| A D | omap_vout.c | 1373 vfd = vout->vfd = video_device_alloc(); in omap_vout_setup_video_data() 1375 if (!vfd) { in omap_vout_setup_video_data() 1381 vfd->ctrl_handler = hdl; in omap_vout_setup_video_data() 1385 strscpy(vfd->name, VOUT_NAME, sizeof(vfd->name)); in omap_vout_setup_video_data() 1390 vfd->minor = -1; in omap_vout_setup_video_data() 1407 vfd->queue = vq; in omap_vout_setup_video_data() 1504 vfd = vout->vfd; in omap_vout_create_video_devices() 1508 vfd->minor = -1; in omap_vout_create_video_devices() 1516 vfd->minor); in omap_vout_create_video_devices() 1542 vfd = vout->vfd; in omap_vout_cleanup_device() [all …]
|
| /linux/drivers/media/platform/ti-vpe/ |
| A D | cal-video.c | 952 &vfd->entity, 0, in cal_ctx_v4l2_register() 958 video_unregister_device(vfd); in cal_ctx_v4l2_register() 963 video_device_node_name(vfd)); in cal_ctx_v4l2_register() 1004 vfd->fops = &cal_fops; in cal_ctx_v4l2_init() 1007 vfd->v4l2_dev = &ctx->cal->v4l2_dev; in cal_ctx_v4l2_init() 1008 vfd->queue = q; in cal_ctx_v4l2_init() 1009 snprintf(vfd->name, sizeof(vfd->name), "CAL output %u", ctx->dma_ctx); in cal_ctx_v4l2_init() 1012 vfd->lock = &ctx->mutex; in cal_ctx_v4l2_init() 1013 video_set_drvdata(vfd, ctx); in cal_ctx_v4l2_init() 1030 vfd->ctrl_handler = hdl; in cal_ctx_v4l2_init() [all …]
|
| /linux/drivers/media/platform/s5p-mfc/ |
| A D | s5p_mfc.c | 1273 struct video_device *vfd; in s5p_mfc_probe() local 1343 vfd = video_device_alloc(); in s5p_mfc_probe() 1344 if (!vfd) { in s5p_mfc_probe() 1349 vfd->fops = &s5p_mfc_fops; in s5p_mfc_probe() 1354 vfd->vfl_dir = VFL_DIR_M2M; in s5p_mfc_probe() 1357 snprintf(vfd->name, sizeof(vfd->name), "%s", S5P_MFC_DEC_NAME); in s5p_mfc_probe() 1358 dev->vfd_dec = vfd; in s5p_mfc_probe() 1363 if (!vfd) { in s5p_mfc_probe() 1368 vfd->fops = &s5p_mfc_fops; in s5p_mfc_probe() 1375 snprintf(vfd->name, sizeof(vfd->name), "%s", S5P_MFC_ENC_NAME); in s5p_mfc_probe() [all …]
|
| /linux/drivers/media/platform/s5p-g2d/ |
| A D | g2d.c | 625 struct video_device *vfd; in g2d_probe() local 688 vfd = video_device_alloc(); in g2d_probe() 689 if (!vfd) { in g2d_probe() 694 *vfd = g2d_videodev; in g2d_probe() 696 vfd->lock = &dev->mutex; in g2d_probe() 697 vfd->v4l2_dev = &dev->v4l2_dev; in g2d_probe() 722 video_set_drvdata(vfd, dev); in g2d_probe() 723 dev->vfd = vfd; in g2d_probe() 725 vfd->num); in g2d_probe() 732 video_device_release(vfd); in g2d_probe() [all …]
|
| /linux/drivers/media/test-drivers/vicodec/ |
| A D | vicodec-core.c | 98 struct video_device vfd; member 1839 if (vfd == &dev->stateful_enc.vfd) in vicodec_open() 1841 else if (vfd == &dev->stateless_dec.vfd) in vicodec_open() 1927 mutex_unlock(vfd->lock); in vicodec_open() 1936 mutex_lock(vfd->lock); in vicodec_release() 1938 mutex_unlock(vfd->lock); in vicodec_release() 2034 struct video_device *vfd; in register_instance() local 2046 vfd = &dev_instance->vfd; in register_instance() 2049 strscpy(vfd->name, name, sizeof(vfd->name)); in register_instance() 2059 video_set_drvdata(vfd, dev); in register_instance() [all …]
|
| /linux/drivers/media/platform/ |
| A D | mx2_emmaprp.c | 198 struct video_device *vfd; member 806 struct video_device *vfd; in emmaprp_probe() local 834 vfd = video_device_alloc(); in emmaprp_probe() 835 if (!vfd) { in emmaprp_probe() 841 *vfd = emmaprp_videodev; in emmaprp_probe() 842 vfd->lock = &pcdev->dev_mutex; in emmaprp_probe() 843 vfd->v4l2_dev = &pcdev->v4l2_dev; in emmaprp_probe() 845 video_set_drvdata(vfd, pcdev); in emmaprp_probe() 846 pcdev->vfd = vfd; in emmaprp_probe() 882 video_device_release(vfd); in emmaprp_probe() [all …]
|
| A 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_VIDEO, 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 …]
|
| /linux/drivers/staging/media/hantro/ |
| A D | hantro_drv.c | 746 struct video_device *vfd; in hantro_add_func() local 758 vfd = &func->vdev; in hantro_add_func() 759 vfd->fops = &hantro_fops; in hantro_add_func() 761 vfd->lock = &vpu->vpu_mutex; in hantro_add_func() 762 vfd->v4l2_dev = &vpu->v4l2_dev; in hantro_add_func() 763 vfd->vfl_dir = VFL_DIR_M2M; in hantro_add_func() 765 vfd->ioctl_ops = &hantro_ioctl_ops; in hantro_add_func() 766 snprintf(vfd->name, sizeof(vfd->name), "%s-%s", match->compatible, in hantro_add_func() 774 video_set_drvdata(vfd, vpu); in hantro_add_func() 790 vfd->num); in hantro_add_func() [all …]
|
| /linux/drivers/media/platform/rockchip/rga/ |
| A D | rga.c | 802 struct video_device *vfd; in rga_probe() local 845 vfd = video_device_alloc(); in rga_probe() 846 if (!vfd) { in rga_probe() 851 *vfd = rga_videodev; in rga_probe() 852 vfd->lock = &rga->mutex; in rga_probe() 853 vfd->v4l2_dev = &rga->v4l2_dev; in rga_probe() 855 video_set_drvdata(vfd, rga); in rga_probe() 856 rga->vfd = vfd; in rga_probe() 910 vfd->name, video_device_node_name(vfd)); in rga_probe() 922 video_device_release(vfd); in rga_probe() [all …]
|
| /linux/drivers/media/platform/s3c-camif/ |
| A D | camif-capture.c | 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() 1113 vfd->v4l2_dev = &camif->v4l2_dev; in s3c_camif_register_video_node() 1114 vfd->minor = -1; in s3c_camif_register_video_node() 1116 vfd->lock = &camif->lock; in s3c_camif_register_video_node() 1142 video_set_drvdata(vfd, vp); in s3c_camif_register_video_node() 1166 vfd->name, video_device_node_name(vfd)); in s3c_camif_register_video_node() 1174 video_device_release(vfd); in s3c_camif_register_video_node() 1182 if (video_is_registered(vfd)) { in s3c_camif_unregister_video_node() [all …]
|
| /linux/drivers/media/platform/meson/ge2d/ |
| A D | ge2d.c | 88 struct video_device *vfd; member 923 struct video_device *vfd; in ge2d_probe() local 982 vfd = video_device_alloc(); in ge2d_probe() 983 if (!vfd) { in ge2d_probe() 989 *vfd = ge2d_videodev; in ge2d_probe() 990 vfd->lock = &ge2d->mutex; in ge2d_probe() 991 vfd->v4l2_dev = &ge2d->v4l2_dev; in ge2d_probe() 993 video_set_drvdata(vfd, ge2d); in ge2d_probe() 994 ge2d->vfd = vfd; in ge2d_probe() 1011 vfd->name, video_device_node_name(vfd)); in ge2d_probe() [all …]
|
| /linux/drivers/media/platform/sunxi/sun8i-rotate/ |
| A D | sun8i_rotate.c | 739 struct video_device *vfd; in rotate_probe() local 746 dev->vfd = rotate_video_device; in rotate_probe() 795 vfd = &dev->vfd; in rotate_probe() 796 vfd->lock = &dev->dev_mutex; in rotate_probe() 797 vfd->v4l2_dev = &dev->v4l2_dev; in rotate_probe() 799 snprintf(vfd->name, sizeof(vfd->name), "%s", in rotate_probe() 801 video_set_drvdata(vfd, dev); in rotate_probe() 803 ret = video_register_device(vfd, VFL_TYPE_VIDEO, 0); in rotate_probe() 811 "Device registered as /dev/video%d\n", vfd->num); in rotate_probe() 829 video_unregister_device(&dev->vfd); in rotate_probe() [all …]
|
| /linux/drivers/media/platform/sunxi/sun8i-di/ |
| A D | sun8i-di.c | 805 struct video_device *vfd; in deinterlace_probe() local 812 dev->vfd = deinterlace_video_device; in deinterlace_probe() 868 vfd = &dev->vfd; in deinterlace_probe() 869 vfd->lock = &dev->dev_mutex; in deinterlace_probe() 870 vfd->v4l2_dev = &dev->v4l2_dev; in deinterlace_probe() 872 snprintf(vfd->name, sizeof(vfd->name), "%s", in deinterlace_probe() 874 video_set_drvdata(vfd, dev); in deinterlace_probe() 876 ret = video_register_device(vfd, VFL_TYPE_VIDEO, 0); in deinterlace_probe() 884 "Device registered as /dev/video%d\n", vfd->num); in deinterlace_probe() 902 video_unregister_device(&dev->vfd); in deinterlace_probe() [all …]
|
| /linux/drivers/media/pci/saa7164/ |
| A 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()
|