Lines Matching refs:vfd
320 unsigned int i = vdev - dev->vfd; in to_coda_video_device()
2236 struct video_device *vfd = &dev->vfd[i]; in coda_register_device() local
2241 strlcpy(vfd->name, dev->devtype->vdevs[i]->name, sizeof(vfd->name)); in coda_register_device()
2242 vfd->fops = &coda_fops; in coda_register_device()
2243 vfd->ioctl_ops = &coda_ioctl_ops; in coda_register_device()
2244 vfd->release = video_device_release_empty, in coda_register_device()
2245 vfd->lock = &dev->dev_mutex; in coda_register_device()
2246 vfd->v4l2_dev = &dev->v4l2_dev; in coda_register_device()
2247 vfd->vfl_dir = VFL_DIR_M2M; in coda_register_device()
2248 video_set_drvdata(vfd, dev); in coda_register_device()
2251 v4l2_disable_ioctl(vfd, VIDIOC_CROPCAP); in coda_register_device()
2252 v4l2_disable_ioctl(vfd, VIDIOC_G_CROP); in coda_register_device()
2253 v4l2_disable_ioctl(vfd, VIDIOC_S_CROP); in coda_register_device()
2255 return video_register_device(vfd, VFL_TYPE_GRABBER, 0); in coda_register_device()
2370 dev->vfd[0].num, dev->vfd[i - 1].num); in coda_fw_callback()
2377 video_unregister_device(&dev->vfd[i]); in coda_fw_callback()
2632 for (i = 0; i < ARRAY_SIZE(dev->vfd); i++) { in coda_remove()
2633 if (video_get_drvdata(&dev->vfd[i])) in coda_remove()
2634 video_unregister_device(&dev->vfd[i]); in coda_remove()