Lines Matching refs:vdev

648 	struct video_device *vdev = video_devdata(file);  in soc_camera_open()  local
661 if (!vdev || !video_is_registered(vdev)) { in soc_camera_open()
666 icd = video_get_drvdata(vdev); in soc_camera_open()
720 pm_runtime_enable(&icd->vdev->dev); in soc_camera_open()
721 ret = pm_runtime_resume(&icd->vdev->dev); in soc_camera_open()
757 pm_runtime_disable(&icd->vdev->dev); in soc_camera_open()
780 pm_runtime_suspend(&icd->vdev->dev); in soc_camera_close()
781 pm_runtime_disable(&icd->vdev->dev); in soc_camera_close()
1293 v4l2_subdev_call(sd, video, g_tvnorms, &icd->vdev->tvnorms); in soc_camera_probe_finish()
1811 if (icd->vdev) { in soc_camera_probe()
1812 video_device_release(icd->vdev); in soc_camera_probe()
1813 icd->vdev = NULL; in soc_camera_probe()
1829 struct video_device *vdev = icd->vdev; in soc_camera_remove() local
1832 if (vdev) { in soc_camera_remove()
1833 video_unregister_device(vdev); in soc_camera_remove()
1834 icd->vdev = NULL; in soc_camera_remove()
2120 struct video_device *vdev = video_device_alloc(); in video_dev_create() local
2122 if (!vdev) in video_dev_create()
2125 strlcpy(vdev->name, ici->drv_name, sizeof(vdev->name)); in video_dev_create()
2127 vdev->v4l2_dev = &ici->v4l2_dev; in video_dev_create()
2128 vdev->fops = &soc_camera_fops; in video_dev_create()
2129 vdev->ioctl_ops = &soc_camera_ioctl_ops; in video_dev_create()
2130 vdev->release = video_device_release; in video_dev_create()
2131 vdev->ctrl_handler = &icd->ctrl_handler; in video_dev_create()
2132 vdev->lock = &ici->host_lock; in video_dev_create()
2134 icd->vdev = vdev; in video_dev_create()
2144 const struct device_type *type = icd->vdev->dev.type; in soc_camera_video_start()
2150 video_set_drvdata(icd->vdev, icd); in soc_camera_video_start()
2151 if (icd->vdev->tvnorms == 0) { in soc_camera_video_start()
2153 v4l2_disable_ioctl(icd->vdev, VIDIOC_G_STD); in soc_camera_video_start()
2154 v4l2_disable_ioctl(icd->vdev, VIDIOC_S_STD); in soc_camera_video_start()
2155 v4l2_disable_ioctl(icd->vdev, VIDIOC_ENUMSTD); in soc_camera_video_start()
2157 ret = video_register_device(icd->vdev, VFL_TYPE_GRABBER, -1); in soc_camera_video_start()
2164 icd->vdev->dev.type = type; in soc_camera_video_start()