Lines Matching refs:vdev
232 struct video_device *vdev; /* Video device */
239 struct mutex vdev_mutex; /* Protect vdev operations */
1441 ret = __video_device_pipeline_start(csi->vdev, &csi->pipe);
1454 __video_device_pipeline_stop(csi->vdev);
1477 __video_device_pipeline_stop(csi->vdev);
1518 ret = v4l2_pipeline_pm_get(&csi->vdev->entity);
1539 v4l2_pipeline_pm_put(&csi->vdev->entity);
1592 struct video_device *vdev = csi->vdev;
1595 vdev->v4l2_dev = v4l2_dev;
1601 ret = video_register_device(vdev, VFL_TYPE_VIDEO, -1);
1607 dev_info(csi->dev, "Registered %s as /dev/%s\n", vdev->name,
1608 video_device_node_name(vdev));
1612 &vdev->entity, 0, MEDIA_LNK_FL_IMMUTABLE |
1616 video_unregister_device(vdev);
1625 media_entity_cleanup(&csi->vdev->entity);
1626 video_unregister_device(csi->vdev);
1631 struct video_device *vdev;
1640 vdev = video_device_alloc();
1641 if (!vdev)
1644 vdev->fops = &imx7_csi_video_fops;
1645 vdev->ioctl_ops = &imx7_csi_video_ioctl_ops;
1646 vdev->minor = -1;
1647 vdev->release = video_device_release;
1648 vdev->vfl_dir = VFL_DIR_RX;
1649 vdev->tvnorms = V4L2_STD_NTSC | V4L2_STD_PAL | V4L2_STD_SECAM;
1650 vdev->device_caps = V4L2_CAP_VIDEO_CAPTURE | V4L2_CAP_STREAMING
1652 vdev->lock = &csi->vdev_mutex;
1653 vdev->queue = &csi->q;
1655 snprintf(vdev->name, sizeof(vdev->name), "%s capture", csi->sd.name);
1657 video_set_drvdata(vdev, csi);
1658 csi->vdev = vdev;
1662 ret = media_entity_pads_init(&vdev->entity, 1, &csi->vdev_pad);
1664 video_device_release(vdev);
1684 video_device_release(vdev);