| /linux/drivers/staging/media/imx/ |
| H A D | imx-media-dev-common.c | 86 vdev->vfd->entity.name, entity->name, srcpad->index); in imx_media_add_vdev_to_pad() 158 link = list_first_entry(&vdev->vfd->entity.links, in imx_media_create_pad_vdev_lists() 197 struct video_device *vfd, in imx_media_inherit_controls() argument 207 vfd->entity.name, sd->entity.name); in imx_media_inherit_controls() 209 ret = v4l2_ctrl_add_handler(vfd->ctrl_handler, in imx_media_inherit_controls() 227 ret = imx_media_inherit_controls(imxmd, vfd, pad->entity); in imx_media_inherit_controls() 243 struct video_device *vfd; in imx_media_link_notify() local 274 vfd = pad_vdev->vdev->vfd; in imx_media_link_notify() 275 if (!vfd->ctrl_handler) in imx_media_link_notify() 279 vfd->entity.name); in imx_media_link_notify() [all …]
|
| H A D | imx-media-csc-scaler.c | 137 v4l2_err(ctx->priv->vdev.vfd->v4l2_dev, in device_run() 253 v4l2_err(ctx->priv->vdev.vfd->v4l2_dev, "%s: queue busy\n", in ipu_csc_scaler_s_fmt() 523 v4l2_warn(ctx->priv->vdev.vfd->v4l2_dev, "removing old ICC\n"); in ipu_csc_scaler_start_streaming() 541 v4l2_err(ctx->priv->vdev.vfd->v4l2_dev, "%s: error %d\n", in ipu_csc_scaler_start_streaming() 851 struct video_device *vfd = vdev->vfd; in imx_media_csc_scaler_device_register() local 854 vfd->v4l2_dev = &priv->md->v4l2_dev; in imx_media_csc_scaler_device_register() 856 ret = video_register_device(vfd, VFL_TYPE_VIDEO, -1); in imx_media_csc_scaler_device_register() 858 v4l2_err(vfd->v4l2_dev, "Failed to register video device\n"); in imx_media_csc_scaler_device_register() 862 v4l2_info(vfd->v4l2_dev, "Registered %s as /dev/%s\n", vfd->name, in imx_media_csc_scaler_device_register() 863 video_device_node_name(vfd)); in imx_media_csc_scaler_device_register() [all …]
|
| /linux/drivers/media/platform/samsung/exynos4-is/ |
| H A D | fimc-m2m.c | 354 v4l2_err(&fimc->m2m.vfd, "queue (%d) busy\n", f->type); in fimc_m2m_s_fmt_mplane() 435 v4l2_err(&fimc->m2m.vfd, in fimc_m2m_try_selection() 510 v4l2_err(&fimc->m2m.vfd, "Out of scaler range\n"); in fimc_m2m_s_selection() 624 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 …]
|
| H A D | fimc-capture.c | 1714 struct video_device *vfd = &fimc->vid_cap.ve.vdev; in fimc_register_capture_device() local 1732 memset(vfd, 0, sizeof(*vfd)); in fimc_register_capture_device() 1733 snprintf(vfd->name, sizeof(vfd->name), "fimc.%d.capture", fimc->id); in fimc_register_capture_device() 1735 vfd->fops = &fimc_capture_fops; in fimc_register_capture_device() 1736 vfd->ioctl_ops = &fimc_capture_ioctl_ops; in fimc_register_capture_device() 1737 vfd->v4l2_dev = v4l2_dev; in fimc_register_capture_device() 1738 vfd->minor = -1; in fimc_register_capture_device() 1739 vfd->release = video_device_release_empty; in fimc_register_capture_device() 1740 vfd->queue = q; in fimc_register_capture_device() 1741 vfd->lock = &fimc->lock; in fimc_register_capture_device() [all …]
|
| /linux/drivers/media/platform/ti/omap/ |
| H A D | omap_vout.c | 577 strscpy(cap->card, vout->vfd->name, sizeof(cap->card)); in vidioc_querycap() 1309 struct video_device *vfd; in omap_vout_setup_video_data() local 1372 vfd = vout->vfd = video_device_alloc(); in omap_vout_setup_video_data() 1374 if (!vfd) { in omap_vout_setup_video_data() 1380 vfd->ctrl_handler = hdl; in omap_vout_setup_video_data() 1381 vfd->release = video_device_release; in omap_vout_setup_video_data() 1382 vfd->ioctl_ops = &vout_ioctl_ops; in omap_vout_setup_video_data() 1384 strscpy(vfd->name, VOUT_NAME, sizeof(vfd->name)); in omap_vout_setup_video_data() 1386 vfd->fops = &omap_vout_fops; in omap_vout_setup_video_data() 1387 vfd->v4l2_dev = &vout->vid_dev->v4l2_dev; in omap_vout_setup_video_data() [all …]
|
| H A D | omap_vout_vrfb.c | 95 struct video_device *vfd; in omap_vout_setup_vrfb_bufs() local 104 vfd = vout->vfd; in omap_vout_setup_vrfb_bufs() 152 vfd->minor); in omap_vout_setup_vrfb_bufs()
|
| /linux/drivers/media/platform/st/stm32/dma2d/ |
| H A D | dma2d.c | 601 struct video_device *vfd; in dma2d_probe() local 646 vfd = video_device_alloc(); in dma2d_probe() 647 if (!vfd) { in dma2d_probe() 653 *vfd = dma2d_videodev; in dma2d_probe() 654 vfd->lock = &dev->mutex; in dma2d_probe() 655 vfd->v4l2_dev = &dev->v4l2_dev; in dma2d_probe() 656 vfd->device_caps = V4L2_CAP_VIDEO_M2M | V4L2_CAP_STREAMING; in dma2d_probe() 666 ret = video_register_device(vfd, VFL_TYPE_VIDEO, 0); in dma2d_probe() 672 video_set_drvdata(vfd, dev); in dma2d_probe() 673 dev->vfd = vfd; in dma2d_probe() [all …]
|
| /linux/drivers/media/platform/samsung/s5p-mfc/ |
| H A D | s5p_mfc.c | 1304 struct video_device *vfd; in s5p_mfc_probe() local 1371 vfd = video_device_alloc(); in s5p_mfc_probe() 1372 if (!vfd) { in s5p_mfc_probe() 1377 vfd->fops = &s5p_mfc_fops; in s5p_mfc_probe() 1378 vfd->ioctl_ops = get_dec_v4l2_ioctl_ops(); in s5p_mfc_probe() 1379 vfd->release = video_device_release; in s5p_mfc_probe() 1380 vfd->lock = &dev->mfc_mutex; in s5p_mfc_probe() 1381 vfd->v4l2_dev = &dev->v4l2_dev; in s5p_mfc_probe() 1382 vfd->vfl_dir = VFL_DIR_M2M; in s5p_mfc_probe() 1383 vfd->device_caps = V4L2_CAP_VIDEO_M2M_MPLANE | V4L2_CAP_STREAMING; in s5p_mfc_probe() [all …]
|
| /linux/drivers/media/platform/samsung/s5p-g2d/ |
| H A D | g2d.c | 621 struct video_device *vfd; in g2d_probe() local 680 vfd = video_device_alloc(); in g2d_probe() 681 if (!vfd) { in g2d_probe() 686 *vfd = g2d_videodev; in g2d_probe() 687 set_bit(V4L2_FL_QUIRK_INVERTED_CROP, &vfd->flags); in g2d_probe() 688 vfd->lock = &dev->mutex; in g2d_probe() 689 vfd->v4l2_dev = &dev->v4l2_dev; in g2d_probe() 690 vfd->device_caps = V4L2_CAP_VIDEO_M2M | V4L2_CAP_STREAMING; in g2d_probe() 709 ret = video_register_device(vfd, VFL_TYPE_VIDEO, 0); in g2d_probe() 714 video_set_drvdata(vfd, dev); in g2d_probe() [all …]
|
| /linux/drivers/media/platform/nxp/ |
| H A D | mx2_emmaprp.c | 198 struct video_device *vfd; member 801 struct video_device *vfd; in emmaprp_probe() local 829 vfd = video_device_alloc(); in emmaprp_probe() 830 if (!vfd) { in emmaprp_probe() 836 *vfd = emmaprp_videodev; in emmaprp_probe() 837 vfd->lock = &pcdev->dev_mutex; in emmaprp_probe() 838 vfd->v4l2_dev = &pcdev->v4l2_dev; in emmaprp_probe() 840 video_set_drvdata(vfd, pcdev); in emmaprp_probe() 841 pcdev->vfd = vfd; in emmaprp_probe() 843 " Device registered as /dev/video%d\n", vfd->num); in emmaprp_probe() [all …]
|
| H A D | imx-pxp.c | 211 struct video_device vfd; member 1774 struct video_device *vfd; in pxp_probe() local 1836 dev->vfd = pxp_videodev; in pxp_probe() 1837 vfd = &dev->vfd; in pxp_probe() 1838 vfd->lock = &dev->dev_mutex; in pxp_probe() 1839 vfd->v4l2_dev = &dev->v4l2_dev; in pxp_probe() 1841 video_set_drvdata(vfd, dev); in pxp_probe() 1842 snprintf(vfd->name, sizeof(vfd->name), "%s", pxp_videodev.name); in pxp_probe() 1844 "Device registered as /dev/video%d\n", vfd->num); in pxp_probe() 1855 ret = video_register_device(vfd, VFL_TYPE_VIDEO, 0); in pxp_probe() [all …]
|
| /linux/drivers/media/pci/solo6x10/ |
| H A D | solo6x10-v4l2-enc.c | 539 v4l2_event_queue(solo_enc->vfd, &ev); in solo_enc_fillbuf() 784 input->std = solo_enc->vfd->tvnorms; in solo_enc_enum_input() 1293 solo_enc->vfd = video_device_alloc(); in solo_enc_alloc() 1294 if (!solo_enc->vfd) in solo_enc_alloc() 1297 *solo_enc->vfd = solo_enc_template; in solo_enc_alloc() 1298 solo_enc->vfd->v4l2_dev = &solo_dev->v4l2_dev; in solo_enc_alloc() 1299 solo_enc->vfd->ctrl_handler = hdl; in solo_enc_alloc() 1300 solo_enc->vfd->queue = &solo_enc->vidq; in solo_enc_alloc() 1301 solo_enc->vfd->lock = &solo_enc->lock; in solo_enc_alloc() 1302 video_set_drvdata(solo_enc->vfd, solo_enc); in solo_enc_alloc() [all …]
|
| /linux/drivers/media/platform/sunxi/sun8i-rotate/ |
| H A D | sun8i_rotate.c | 734 struct video_device *vfd; in rotate_probe() local 741 dev->vfd = rotate_video_device; in rotate_probe() 790 vfd = &dev->vfd; in rotate_probe() 791 vfd->lock = &dev->dev_mutex; in rotate_probe() 792 vfd->v4l2_dev = &dev->v4l2_dev; in rotate_probe() 794 snprintf(vfd->name, sizeof(vfd->name), "%s", in rotate_probe() 796 video_set_drvdata(vfd, dev); in rotate_probe() 798 ret = video_register_device(vfd, VFL_TYPE_VIDEO, 0); in rotate_probe() 806 "Device registered as /dev/video%d\n", vfd->num); in rotate_probe() 824 video_unregister_device(&dev->vfd); in rotate_probe() [all …]
|
| /linux/drivers/media/platform/amlogic/meson-ge2d/ |
| H A D | ge2d.c | 93 struct video_device *vfd; member 919 struct video_device *vfd; in ge2d_probe() local 978 vfd = video_device_alloc(); in ge2d_probe() 979 if (!vfd) { in ge2d_probe() 985 *vfd = ge2d_videodev; in ge2d_probe() 986 vfd->lock = &ge2d->mutex; in ge2d_probe() 987 vfd->v4l2_dev = &ge2d->v4l2_dev; in ge2d_probe() 989 video_set_drvdata(vfd, ge2d); in ge2d_probe() 990 ge2d->vfd = vfd; in ge2d_probe() 1000 ret = video_register_device(vfd, VFL_TYPE_VIDEO, -1); in ge2d_probe() [all …]
|
| /linux/drivers/media/platform/sunxi/sun8i-di/ |
| H A D | sun8i-di.c | 800 struct video_device *vfd; in deinterlace_probe() local 807 dev->vfd = deinterlace_video_device; in deinterlace_probe() 863 vfd = &dev->vfd; in deinterlace_probe() 864 vfd->lock = &dev->dev_mutex; in deinterlace_probe() 865 vfd->v4l2_dev = &dev->v4l2_dev; in deinterlace_probe() 867 snprintf(vfd->name, sizeof(vfd->name), "%s", in deinterlace_probe() 869 video_set_drvdata(vfd, dev); in deinterlace_probe() 871 ret = video_register_device(vfd, VFL_TYPE_VIDEO, 0); in deinterlace_probe() 879 "Device registered as /dev/video%d\n", vfd->num); in deinterlace_probe() 897 video_unregister_device(&dev->vfd); in deinterlace_probe() [all …]
|
| /linux/drivers/media/pci/saa7164/ |
| H A D | saa7164-vbi.c | 677 struct video_device *vfd; in saa7164_vbi_alloc() local 682 vfd = video_device_alloc(); in saa7164_vbi_alloc() 683 if (NULL == vfd) in saa7164_vbi_alloc() 686 *vfd = *template; in saa7164_vbi_alloc() 687 snprintf(vfd->name, sizeof(vfd->name), "%s %s (%s)", dev->name, in saa7164_vbi_alloc() 690 vfd->v4l2_dev = &dev->v4l2_dev; in saa7164_vbi_alloc() 691 vfd->release = video_device_release; in saa7164_vbi_alloc() 692 return vfd; in saa7164_vbi_alloc()
|
| H A D | saa7164-encoder.c | 975 struct video_device *vfd; in saa7164_encoder_alloc() local 980 vfd = video_device_alloc(); in saa7164_encoder_alloc() 981 if (NULL == vfd) in saa7164_encoder_alloc() 984 *vfd = *template; in saa7164_encoder_alloc() 985 snprintf(vfd->name, sizeof(vfd->name), "%s %s (%s)", dev->name, in saa7164_encoder_alloc() 988 vfd->v4l2_dev = &dev->v4l2_dev; in saa7164_encoder_alloc() 989 vfd->release = video_device_release; in saa7164_encoder_alloc() 990 return vfd; in saa7164_encoder_alloc()
|
| /linux/drivers/media/platform/ |
| H A D | m2m-deinterlace.c | 123 struct video_device vfd; member 913 struct video_device *vfd; in deinterlace_probe() local 942 vfd = &pcdev->vfd; in deinterlace_probe() 943 *vfd = deinterlace_videodev; in deinterlace_probe() 944 vfd->lock = &pcdev->dev_mutex; in deinterlace_probe() 945 vfd->v4l2_dev = &pcdev->v4l2_dev; in deinterlace_probe() 947 ret = video_register_device(vfd, VFL_TYPE_VIDEO, 0); in deinterlace_probe() 953 video_set_drvdata(vfd, pcdev); in deinterlace_probe() 955 " Device registered as /dev/video%d\n", vfd->num); in deinterlace_probe() 969 video_unregister_device(&pcdev->vfd); in deinterlace_probe() [all …]
|
| /linux/drivers/media/platform/chips-media/coda/ |
| H A D | coda-common.c | 372 unsigned int i = vdev - dev->vfd; in to_coda_video_device() 2883 struct video_device *vfd = &dev->vfd[i]; in coda_register_device() local 2891 strscpy(vfd->name, dev->devtype->vdevs[i]->name, sizeof(vfd->name)); in coda_register_device() 2892 vfd->fops = &coda_fops; in coda_register_device() 2893 vfd->ioctl_ops = &coda_ioctl_ops; in coda_register_device() 2894 vfd->release = video_device_release_empty; in coda_register_device() 2895 vfd->lock = &dev->dev_mutex; in coda_register_device() 2896 vfd->v4l2_dev = &dev->v4l2_dev; in coda_register_device() 2897 vfd->vfl_dir = VFL_DIR_M2M; in coda_register_device() 2898 vfd->device_caps = V4L2_CAP_VIDEO_M2M | V4L2_CAP_STREAMING; in coda_register_device() [all …]
|
| /linux/drivers/media/test-drivers/ |
| H A D | vim2m.c | 193 struct video_device vfd; member 1451 struct vim2m_dev *dev = container_of(vdev, struct vim2m_dev, vfd); in vim2m_device_release() 1492 struct video_device *vfd; in vim2m_probe() local 1508 dev->vfd = vim2m_videodev; in vim2m_probe() 1509 vfd = &dev->vfd; in vim2m_probe() 1510 vfd->lock = &dev->dev_mutex; in vim2m_probe() 1511 vfd->v4l2_dev = &dev->v4l2_dev; in vim2m_probe() 1512 vfd->device_caps |= (dev->multiplanar) ? V4L2_CAP_VIDEO_M2M_MPLANE : in vim2m_probe() 1515 video_set_drvdata(vfd, dev); in vim2m_probe() 1534 ret = video_register_device(vfd, VFL_TYPE_VIDEO, 0); in vim2m_probe() [all …]
|
| /linux/drivers/media/pci/cx88/ |
| H A D | cx88-core.c | 1024 struct video_device *vfd, in cx88_vdev_init() argument 1028 *vfd = *template_; in cx88_vdev_init() 1036 vfd->v4l2_dev = &core->v4l2_dev; in cx88_vdev_init() 1037 vfd->dev_parent = &pci->dev; in cx88_vdev_init() 1038 vfd->release = video_device_release_empty; in cx88_vdev_init() 1039 vfd->lock = &core->lock; in cx88_vdev_init() 1040 snprintf(vfd->name, sizeof(vfd->name), "%s %s (%s)", in cx88_vdev_init()
|
| /linux/drivers/media/pci/saa7134/ |
| H A D | saa7134-core.c | 936 struct video_device *vfd; in vdev_init() local 938 vfd = video_device_alloc(); in vdev_init() 939 if (NULL == vfd) in vdev_init() 941 *vfd = *template; in vdev_init() 942 vfd->v4l2_dev = &dev->v4l2_dev; in vdev_init() 943 vfd->release = video_device_release; in vdev_init() 944 snprintf(vfd->name, sizeof(vfd->name), "%s %s (%s)", in vdev_init() 946 video_set_drvdata(vfd, dev); in vdev_init() 947 return vfd; in vdev_init()
|
| /linux/tools/testing/selftests/tc-testing/plugin-lib/ |
| H A D | valgrindPlugin.py | 129 with open('vgnd-{}.log'.format(self.args.testid)) as vfd: 130 content = vfd.read()
|
| /linux/drivers/media/platform/renesas/ |
| H A D | rcar_fdp1.c | 557 struct video_device vfd; member 2251 struct video_device *vfd; in fdp1_probe() local 2333 fdp1->vfd = fdp1_videodev; in fdp1_probe() 2334 vfd = &fdp1->vfd; in fdp1_probe() 2335 vfd->lock = &fdp1->dev_mutex; in fdp1_probe() 2336 vfd->v4l2_dev = &fdp1->v4l2_dev; in fdp1_probe() 2337 video_set_drvdata(vfd, fdp1); in fdp1_probe() 2338 strscpy(vfd->name, fdp1_videodev.name, sizeof(vfd->name)); in fdp1_probe() 2340 ret = video_register_device(vfd, VFL_TYPE_VIDEO, 0); in fdp1_probe() 2347 vfd->num); in fdp1_probe() [all …]
|
| /linux/drivers/media/platform/ti/vpe/ |
| H A D | vip.c | 1261 inp->std = stream->vfd->tvnorms; in vip_enuminput() 1262 sprintf(inp->name, "Camera %u", stream->vfd->num); in vip_enuminput() 1285 *std = stream->vfd->tvnorms; in vip_querystd() 1295 *std = stream->vfd->tvnorms; in vip_g_std() 1306 if (stream->vfd->tvnorms == std) in vip_s_std() 1309 if (!(std & stream->vfd->tvnorms)) in vip_s_std() 3056 struct video_device *vfd; in alloc_stream() local 3116 vfd = video_device_alloc(); in alloc_stream() 3117 if (!vfd) { in alloc_stream() 3121 *vfd = vip_videodev; in alloc_stream() [all …]
|