Lines Matching refs:v4l2_device
72 The framework closely resembles the driver structure: it has a v4l2_device
78 driver sets the struct v4l2_device mdev field, sub-devices and video nodes
82 struct v4l2_device
85 Each device instance is represented by a struct v4l2_device (v4l2-device.h).
91 v4l2_device_register(struct device *dev, struct v4l2_device *v4l2_dev);
93 Registration will initialize the v4l2_device struct. If the dev->driver_data
98 that embed the struct v4l2_device instance. This is achieved by a
100 also set the struct v4l2_device mdev field to point to a properly initialized
125 v4l2_device_unregister(struct v4l2_device *v4l2_dev);
131 happens the parent device becomes invalid. Since v4l2_device has a pointer to
135 v4l2_device_disconnect(struct v4l2_device *v4l2_dev);
150 struct v4l2_device *v4l2_dev = dev_get_drvdata(dev);
187 safe to unregister v4l2_device for hotpluggable devices. For this purpose
188 v4l2_device has refcounting support. The refcount is increased whenever
190 is released. When the refcount reaches zero, then the v4l2_device release()
196 void v4l2_device_get(struct v4l2_device *v4l2_dev);
200 int v4l2_device_put(struct v4l2_device *v4l2_dev);
352 v4l2_subdev with the v4l2_device:
358 the v4l2_device.
360 If the v4l2_device parent device has a non-NULL mdev field, the sub-device
407 If the sub-device needs to notify its v4l2_device parent of an event, then
433 the two functions takes two arguments: a pointer to struct v4l2_device and a
453 After registering sub-devices, the v4l2_device driver can create device nodes
558 If all goes well, then it registers the subdev with the v4l2_device.
630 - v4l2_dev: must be set to the v4l2_device parent device.
663 If left to NULL, then it will use the struct v4l2_prio_state in v4l2_device.
667 - dev_parent: you only set this if v4l2_device was registered with NULL as
669 device has multiple PCI devices that all share the same v4l2_device core.
671 The cx88 driver is an example of this: one core v4l2_device struct, but
673 (cx8802). Since the v4l2_device cannot be associated with two PCI devices
761 If the v4l2_device parent device has a non-NULL mdev field, the video device
894 You can go from a video_device struct to the v4l2_device struct using:
896 struct v4l2_device *v4l2_dev = vdev->v4l2_dev;