Lines Matching full:vfd
343 int saa7146_register_device(struct video_device *vfd, struct saa7146_dev *dev,
352 vfd->fops = &video_fops;
354 vfd->ioctl_ops = &dev->ext_vv_data->vid_ops;
357 vfd->ioctl_ops = &dev->ext_vv_data->vbi_ops;
360 vfd->release = video_device_release_empty;
361 vfd->lock = &dev->v4l2_lock;
362 vfd->v4l2_dev = &dev->v4l2_dev;
363 vfd->tvnorms = 0;
365 vfd->tvnorms |= dev->ext_vv_data->stds[i].id;
366 strscpy(vfd->name, name, sizeof(vfd->name));
367 vfd->device_caps = V4L2_CAP_VIDEO_CAPTURE |
369 vfd->device_caps |= dev->ext_vv_data->capabilities;
371 vfd->device_caps &=
373 } else if (vfd->device_caps & V4L2_CAP_SLICED_VBI_OUTPUT) {
374 vfd->vfl_dir = VFL_DIR_TX;
375 vfd->device_caps &= ~(V4L2_CAP_VIDEO_CAPTURE | V4L2_CAP_STREAMING |
378 vfd->device_caps &= ~V4L2_CAP_VIDEO_CAPTURE;
395 vfd->queue = q;
397 video_set_drvdata(vfd, dev);
399 err = video_register_device(vfd, type, -1);
406 dev->name, video_device_node_name(vfd));
411 int saa7146_unregister_device(struct video_device *vfd, struct saa7146_dev *dev)
415 video_unregister_device(vfd);