• Home
  • History
  • Annotate
  • Raw
  • Download
  • only in /netgear-R7000-V1.0.7.12_1.2.5/components/opensource/linux/linux-2.6.36/drivers/media/video/

Lines Matching refs:video_device

46 	struct video_device *vdev = to_video_device(cd);
54 struct video_device *vdev = to_video_device(cd);
68 static struct video_device *video_device[VIDEO_NUM_DEVICES];
97 static inline void devnode_set(struct video_device *vdev)
103 static inline void devnode_clear(struct video_device *vdev)
109 static inline int devnode_find(struct video_device *vdev, int from, int to)
114 struct video_device *video_device_alloc(void)
116 return kzalloc(sizeof(struct video_device), GFP_KERNEL);
120 void video_device_release(struct video_device *vdev)
126 void video_device_release_empty(struct video_device *vdev)
129 /* Only valid when the video_device struct is a static. */
133 static inline void video_get(struct video_device *vdev)
138 static inline void video_put(struct video_device *vdev)
146 struct video_device *vdev = to_video_device(cd);
149 if (video_device[vdev->minor] != vdev) {
157 video_device[vdev->minor] = NULL;
170 /* Release video_device and perform other
180 struct video_device *video_devdata(struct file *file)
182 return video_device[iminor(file->f_path.dentry->d_inode)];
189 struct video_device *vdev = video_devdata(filp);
201 struct video_device *vdev = video_devdata(filp);
212 struct video_device *vdev = video_devdata(filp);
221 struct video_device *vdev = video_devdata(filp);
246 struct video_device *vdev = video_devdata(filp);
258 struct video_device *vdev = video_devdata(filp);
268 struct video_device *vdev;
295 struct video_device *vdev = video_devdata(filp);
325 * @vdev: video_device to assign index number to, vdev->parent should be assigned
328 * in the video_device array, but it was able to obtain a minor number.
332 * use of the video_device array.
336 static int get_index(struct video_device *vdev)
350 if (video_device[i] != NULL &&
351 video_device[i]->parent == vdev->parent) {
352 set_bit(video_device[i]->index, used);
386 static int __video_register_device(struct video_device *vdev, int type, int nr,
486 if (video_device[i] == NULL)
499 WARN_ON(video_device[vdev->minor] != NULL);
545 video_device[vdev->minor] = vdev;
560 int video_register_device(struct video_device *vdev, int type, int nr)
566 int video_register_device_no_warn(struct video_device *vdev, int type, int nr)
579 void video_unregister_device(struct video_device *vdev)