Lines Matching refs:video_device
44 struct video_device *vdev = to_video_device(cd); in index_show()
53 struct video_device *vdev = to_video_device(cd); in dev_debug_show()
61 struct video_device *vdev = to_video_device(cd); in dev_debug_store()
77 struct video_device *vdev = to_video_device(cd); in name_show()
89 ATTRIBUTE_GROUPS(video_device);
94 static struct video_device *video_device[VIDEO_NUM_DEVICES]; variable
123 static inline void devnode_set(struct video_device *vdev) in devnode_set()
129 static inline void devnode_clear(struct video_device *vdev) in devnode_clear()
135 static inline int devnode_find(struct video_device *vdev, int from, int to) in devnode_find()
140 struct video_device *video_device_alloc(void) in video_device_alloc()
142 return kzalloc(sizeof(struct video_device), GFP_KERNEL); in video_device_alloc()
146 void video_device_release(struct video_device *vdev) in video_device_release()
152 void video_device_release_empty(struct video_device *vdev) in video_device_release_empty()
159 static inline void video_get(struct video_device *vdev) in video_get()
164 static inline void video_put(struct video_device *vdev) in video_put()
172 struct video_device *vdev = to_video_device(cd); in v4l2_device_release()
176 if (WARN_ON(video_device[vdev->minor] != vdev)) { in v4l2_device_release()
183 video_device[vdev->minor] = NULL; in v4l2_device_release()
227 struct video_device *video_devdata(struct file *file) in video_devdata()
229 return video_device[iminor(file_inode(file))]; in video_devdata()
300 struct video_device *vdev = video_devdata(filp); in v4l2_read()
317 struct video_device *vdev = video_devdata(filp); in v4l2_write()
333 struct video_device *vdev = video_devdata(filp); in v4l2_poll()
348 struct video_device *vdev = video_devdata(filp); in v4l2_ioctl()
373 struct video_device *vdev = video_devdata(filp); in v4l2_get_unmapped_area()
390 struct video_device *vdev = video_devdata(filp); in v4l2_mmap()
406 struct video_device *vdev; in v4l2_open()
439 struct video_device *vdev = video_devdata(filp); in v4l2_release()
483 static int get_index(struct video_device *vdev) in get_index()
493 if (video_device[i] != NULL && in get_index()
494 video_device[i]->v4l2_dev == vdev->v4l2_dev) { in get_index()
495 set_bit(video_device[i]->index, used); in get_index()
519 static void determine_valid_ioctls(struct video_device *vdev) in determine_valid_ioctls()
750 int __video_register_device(struct video_device *vdev, int type, int nr, in __video_register_device()
853 if (video_device[i] == NULL) in __video_register_device()
866 WARN_ON(video_device[vdev->minor] != NULL); in __video_register_device()
868 video_device[vdev->minor] = vdev; in __video_register_device()
936 video_device[vdev->minor] = NULL; in __video_register_device()
952 void video_unregister_device(struct video_device *vdev) in video_unregister_device()