Lines Matching refs:video_device

22 For a long time the framework was limited to the video_device struct for
74 sub-device instances, the video_device struct stores V4L2 device node data
595 struct video_device
599 video_device struct (v4l2-dev.h). This struct can either be allocated
604 struct video_device *vdev = video_device_alloc();
614 struct video_device *vdev = &my_vdev->vdev;
675 video_device is initialized you *do* know which parent PCI device to use and
687 void v4l2_disable_ioctl(struct video_device *vdev, unsigned int cmd);
697 media_entity struct embedded in the video_device struct (entity field) by
715 lock field in struct video_device, which is a pointer to a mutex. If you set
719 can set: video_device->queue->lock. If set, then this lock will be used instead
720 of video_device->lock to serialize all queuing ioctls (see the previous section
732 If you use the old videobuf then you must pass the video_device lock to the
744 video_device before calling v4l2_device_disconnect. If you are also using
745 video_device->queue->lock, then you have to first lock video_device->queue->lock
746 followed by video_device->lock. That way you can be sure no ioctl is running
749 video_device registration
797 attribute is the 'name' field of the video_device struct. The 'dev_debug' attribute
816 to free the allocated video_device struct, or free your own struct if the
817 video_device was embedded in it. The vdev->release() callback will never
841 video_device cleanup
869 video_device helper functions
874 - file/video_device private data
876 You can set/get driver private data in the video_device struct using:
878 void *video_get_drvdata(struct video_device *vdev);
879 void video_set_drvdata(struct video_device *vdev, void *data);
886 struct video_device *video_devdata(struct file *file);
888 returns the video_device belonging to the file struct.
894 You can go from a video_device struct to the v4l2_device struct using:
900 The video_device node kernel name can be retrieved using
902 const char *video_device_node_name(struct video_device *vdev);
905 should be used where possible instead of accessing the video_device::num and
906 video_device::minor fields.
932 testing the V4L2_FL_USES_V4L2_FH bit in video_device->flags. This bit is
956 struct video_device *vfd;
988 void v4l2_fh_init(struct v4l2_fh *fh, struct video_device *vdev)
995 Add a v4l2_fh to video_device file handle list. Must be called once the
1000 Unassociate the file handle from video_device(). The file handle
1014 video_device associated with the file struct.
1018 This deletes it from the struct video_device associated with the file
1078 void v4l2_event_queue(struct video_device *vdev, const struct v4l2_event *ev)
1088 The video_device->ioctl_ops->vidioc_subscribe_event must check the driver