Lines Matching refs:vdev

319 	inp->std = icd->vdev->tvnorms;  in soc_camera_enum_input()
661 struct video_device *vdev = video_devdata(file); in soc_camera_open() local
674 if (!vdev || !video_is_registered(vdev)) { in soc_camera_open()
679 icd = video_get_drvdata(vdev); in soc_camera_open()
733 pm_runtime_enable(&icd->vdev->dev); in soc_camera_open()
734 ret = pm_runtime_resume(&icd->vdev->dev); in soc_camera_open()
770 pm_runtime_disable(&icd->vdev->dev); in soc_camera_open()
798 pm_runtime_suspend(&icd->vdev->dev); in soc_camera_close()
799 pm_runtime_disable(&icd->vdev->dev); in soc_camera_close()
1311 v4l2_subdev_call(sd, video, g_tvnorms, &icd->vdev->tvnorms); in soc_camera_probe_finish()
1829 if (icd->vdev) { in soc_camera_probe()
1830 video_device_release(icd->vdev); in soc_camera_probe()
1831 icd->vdev = NULL; in soc_camera_probe()
1847 struct video_device *vdev = icd->vdev; in soc_camera_remove() local
1850 if (vdev) { in soc_camera_remove()
1851 video_unregister_device(vdev); in soc_camera_remove()
1852 icd->vdev = NULL; in soc_camera_remove()
2138 struct video_device *vdev = video_device_alloc(); in video_dev_create() local
2140 if (!vdev) in video_dev_create()
2143 strlcpy(vdev->name, ici->drv_name, sizeof(vdev->name)); in video_dev_create()
2145 vdev->v4l2_dev = &ici->v4l2_dev; in video_dev_create()
2146 vdev->fops = &soc_camera_fops; in video_dev_create()
2147 vdev->ioctl_ops = &soc_camera_ioctl_ops; in video_dev_create()
2148 vdev->release = video_device_release; in video_dev_create()
2149 vdev->ctrl_handler = &icd->ctrl_handler; in video_dev_create()
2150 vdev->lock = &ici->host_lock; in video_dev_create()
2152 icd->vdev = vdev; in video_dev_create()
2162 const struct device_type *type = icd->vdev->dev.type; in soc_camera_video_start()
2168 video_set_drvdata(icd->vdev, icd); in soc_camera_video_start()
2169 if (icd->vdev->tvnorms == 0) { in soc_camera_video_start()
2171 v4l2_disable_ioctl(icd->vdev, VIDIOC_G_STD); in soc_camera_video_start()
2172 v4l2_disable_ioctl(icd->vdev, VIDIOC_S_STD); in soc_camera_video_start()
2173 v4l2_disable_ioctl(icd->vdev, VIDIOC_ENUMSTD); in soc_camera_video_start()
2175 ret = video_register_device(icd->vdev, VFL_TYPE_GRABBER, -1); in soc_camera_video_start()
2182 icd->vdev->dev.type = type; in soc_camera_video_start()