Lines Matching refs:video_device
7 :c:type:`video_device` struct (``v4l2-dev.h``). This struct can either be
14 struct video_device *vdev = video_device_alloc();
26 struct video_device *vdev = &my_vdev->vdev;
40 You should also set these fields of :c:type:`video_device`:
42 - :c:type:`video_device`->v4l2_dev: must be set to the :c:type:`v4l2_device`
45 - :c:type:`video_device`->name: set to something descriptive and unique.
47 - :c:type:`video_device`->vfl_dir: set this to ``VFL_DIR_RX`` for capture
51 - :c:type:`video_device`->fops: set to the :c:type:`v4l2_file_operations`
54 - :c:type:`video_device`->ioctl_ops: if you use the :c:type:`v4l2_ioctl_ops`
57 :c:type:`v4l2_ioctl_ops` struct. The :c:type:`video_device`->vfl_type and
58 :c:type:`video_device`->vfl_dir fields are used to disable ops that do not
64 - :c:type:`video_device`->lock: leave to ``NULL`` if you want to do all the
66 ``mutex_lock`` and before the :c:type:`video_device`->unlocked_ioctl
70 - :c:type:`video_device`->queue: a pointer to the struct vb2_queue
82 - :c:type:`video_device`->prio: keeps track of the priorities. Used to
89 - :c:type:`video_device`->dev_parent: you only set this if v4l2_device was
98 struct video_device is initialized you **do** know which parent
102 :c:type:`video_device`->unlocked_ioctl to :c:func:`video_ioctl2` in your
110 (:c:type:`vdev <video_device>`, cmd).
121 :c:type:`media_entity` struct embedded in the :c:type:`video_device` struct
141 lock field in struct video_device, which is a pointer to a mutex.
146 is a second lock that you can set: :c:type:`video_device`->queue->lock. If
147 set, then this lock will be used instead of :c:type:`video_device`->lock
161 pass the :c:type:`video_device`->lock to the videobuf queue initialize
174 :c:type:`video_device` before calling v4l2_device_disconnect. If you are also
175 using :c:type:`video_device`->queue->lock, then you have to first lock
176 :c:type:`video_device`->queue->lock followed by :c:type:`video_device`->lock.
239 'name' attribute is the 'name' field of the video_device struct. The
252 - :c:type:`video_device`->vfl_type: the device type passed to
254 - :c:type:`video_device`->minor: the assigned device minor number.
255 - :c:type:`video_device`->num: the device node number (i.e. the X in
257 - :c:type:`video_device`->index: the device index number.
260 :c:func:`video_device_release` to free the allocated :c:type:`video_device`
261 struct, or free your own struct if the :c:type:`video_device` was embedded in
302 (:c:type:`vdev <video_device>`);
329 - file and :c:type:`video_device` private data
331 You can set/get driver private data in the video_device struct using:
334 (:c:type:`vdev <video_device>`);
337 (:c:type:`vdev <video_device>`);
347 returns the video_device belonging to the file struct.
355 You can go from a :c:type:`video_device` struct to the v4l2_device struct using:
363 The :c:type:`video_device` node kernel name can be retrieved using:
366 (:c:type:`vdev <video_device>`);
369 should be used where possible instead of accessing the video_device::num and
370 video_device::minor fields.
372 video_device functions and data structures