Lines Matching refs:video_dev
868 static int zoran_init_video_device(struct zoran *zr, struct video_device *video_dev, int dir) in zoran_init_video_device() argument
873 *video_dev = zoran_template; in zoran_init_video_device()
874 video_dev->v4l2_dev = &zr->v4l2_dev; in zoran_init_video_device()
875 video_dev->lock = &zr->lock; in zoran_init_video_device()
876 video_dev->device_caps = V4L2_CAP_STREAMING | dir; in zoran_init_video_device()
878 strscpy(video_dev->name, ZR_DEVNAME(zr), sizeof(video_dev->name)); in zoran_init_video_device()
879 video_dev->vfl_dir = VFL_DIR_RX; in zoran_init_video_device()
882 err = video_register_device(video_dev, VFL_TYPE_VIDEO, video_nr[zr->id]); in zoran_init_video_device()
885 video_set_drvdata(video_dev, zr); in zoran_init_video_device()
891 video_unregister_device(zr->video_dev); in zoran_exit_video_devices()
892 kfree(zr->video_dev); in zoran_exit_video_devices()
899 zr->video_dev = video_device_alloc(); in zoran_init_video_devices()
900 if (!zr->video_dev) in zoran_init_video_devices()
903 err = zoran_init_video_device(zr, zr->video_dev, V4L2_CAP_VIDEO_CAPTURE); in zoran_init_video_devices()
905 kfree(zr->video_dev); in zoran_init_video_devices()