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