Lines Matching refs:video_device

5 :c:type:`video_device` struct (``v4l2-dev.h``). This struct can either be
12 struct video_device *vdev = video_device_alloc();
24 struct video_device *vdev = &my_vdev->vdev;
38 You should also set these fields of :c:type:`video_device`:
40 - :c:type:`video_device`->v4l2_dev: must be set to the :c:type:`v4l2_device`
43 - :c:type:`video_device`->name: set to something descriptive and unique.
45 - :c:type:`video_device`->vfl_dir: set this to ``VFL_DIR_RX`` for capture
49 - :c:type:`video_device`->fops: set to the :c:type:`v4l2_file_operations`
52 - :c:type:`video_device`->ioctl_ops: if you use the :c:type:`v4l2_ioctl_ops`
55 :c:type:`v4l2_ioctl_ops` struct. The :c:type:`video_device`->vfl_type and
56 :c:type:`video_device`->vfl_dir fields are used to disable ops that do not
62 - :c:type:`video_device`->lock: leave to ``NULL`` if you want to do all the
64 ``mutex_lock`` and before the :c:type:`video_device`->unlocked_ioctl
68 - :c:type:`video_device`->queue: a pointer to the struct :c:type:`vb2_queue`
80 - :c:type:`video_device`->prio: keeps track of the priorities. Used to
87 - :c:type:`video_device`->dev_parent: you only set this if v4l2_device was
96 struct :c:type:`video_device` is initialized you **do** know which parent
100 :c:type:`video_device`->unlocked_ioctl to :c:func:`video_ioctl2` in your
108 (:c:type:`vdev <video_device>`, cmd).
119 :c:type:`media_entity` struct embedded in the :c:type:`video_device` struct
139 lock field in struct :c:type:`video_device`, which is a pointer to a mutex.
144 is a second lock that you can set: :c:type:`video_device`->queue->lock. If
145 set, then this lock will be used instead of :c:type:`video_device`->lock
159 pass the :c:type:`video_device`->lock to the videobuf queue initialize
172 :c:type:`video_device` before calling v4l2_device_disconnect. If you are also
173 using :c:type:`video_device`->queue->lock, then you have to first lock
174 :c:type:`video_device`->queue->lock followed by :c:type:`video_device`->lock.
237 'name' attribute is the 'name' field of the video_device struct. The
250 - :c:type:`video_device`->vfl_type: the device type passed to
252 - :c:type:`video_device`->minor: the assigned device minor number.
253 - :c:type:`video_device`->num: the device node number (i.e. the X in
255 - :c:type:`video_device`->index: the device index number.
258 :c:func:`video_device_release` to free the allocated :c:type:`video_device`
259 struct, or free your own struct if the :c:type:`video_device` was embedded in
299 (:c:type:`vdev <video_device>`);
326 - file and :c:type:`video_device` private data
328 You can set/get driver private data in the video_device struct using:
331 (:c:type:`vdev <video_device>`);
334 (:c:type:`vdev <video_device>`);
344 returns the video_device belonging to the file struct.
352 You can go from a :c:type:`video_device` struct to the v4l2_device struct using:
360 The :c:type:`video_device` node kernel name can be retrieved using:
363 (:c:type:`vdev <video_device>`);
366 should be used where possible instead of accessing the video_device::num and
367 video_device::minor fields.
369 video_device functions and data structures