Lines Matching refs:v4l2_dev
58 void (*release)(struct v4l2_device *v4l2_dev);
64 * @v4l2_dev: pointer to struct &v4l2_device
67 * struct &v4l2_device pointed by @v4l2_dev.
69 static inline void v4l2_device_get(struct v4l2_device *v4l2_dev)
71 kref_get(&v4l2_dev->ref);
77 * @v4l2_dev: pointer to struct &v4l2_device
80 * struct &v4l2_device pointed by @v4l2_dev.
82 int v4l2_device_put(struct v4l2_device *v4l2_dev);
85 * v4l2_device_register - Initialize v4l2_dev and make @dev->driver_data
86 * point to @v4l2_dev.
89 * @v4l2_dev: pointer to struct &v4l2_device
93 * In such case the caller must fill in the @v4l2_dev->name field
97 struct v4l2_device *v4l2_dev);
103 * @v4l2_dev: pointer to struct &v4l2_device
120 * instance = v4l2_device_set_name(&\ v4l2_dev, "foo", &\ drv_instance);
126 int v4l2_device_set_name(struct v4l2_device *v4l2_dev, const char *basename,
132 * @v4l2_dev: pointer to struct v4l2_device
135 * Since the parent disappears, this ensures that @v4l2_dev doesn't have
138 * .. note:: This function sets @v4l2_dev->dev to NULL.
140 void v4l2_device_disconnect(struct v4l2_device *v4l2_dev);
144 * resources related to @v4l2_dev.
146 * @v4l2_dev: pointer to struct v4l2_device
148 void v4l2_device_unregister(struct v4l2_device *v4l2_dev);
153 * @v4l2_dev: pointer to struct &v4l2_device
161 int __must_check v4l2_device_register_subdev(struct v4l2_device *v4l2_dev,
181 * @v4l2_dev: pointer to struct v4l2_device
187 __v4l2_device_register_subdev_nodes(struct v4l2_device *v4l2_dev,
197 * @v4l2_dev: pointer to struct v4l2_device
200 v4l2_device_register_subdev_nodes(struct v4l2_device *v4l2_dev)
203 return __v4l2_device_register_subdev_nodes(v4l2_dev, false);
216 * @v4l2_dev: pointer to struct v4l2_device
219 v4l2_device_register_ro_subdev_nodes(struct v4l2_device *v4l2_dev)
222 return __v4l2_device_register_subdev_nodes(v4l2_dev, true);
240 if (sd && sd->v4l2_dev && sd->v4l2_dev->notify)
241 sd->v4l2_dev->notify(sd, notification, arg);
247 * @v4l2_dev: pointer to struct v4l2_device
249 static inline bool v4l2_device_supports_requests(struct v4l2_device *v4l2_dev)
251 return v4l2_dev->mdev && v4l2_dev->mdev->ops &&
252 v4l2_dev->mdev->ops->req_queue;
263 * @v4l2_dev: &struct v4l2_device owning the sub-devices to iterate over.
265 * This macro iterates over all sub-devices owned by the @v4l2_dev device.
269 #define v4l2_device_for_each_subdev(sd, v4l2_dev) \
270 list_for_each_entry(sd, &(v4l2_dev)->subdevs, list)
276 * @v4l2_dev: &struct v4l2_device owning the sub-devices to iterate over.
292 #define __v4l2_device_call_subdevs_p(v4l2_dev, sd, cond, o, f, args...) \
294 list_for_each_entry((sd), &(v4l2_dev)->subdevs, list) \
303 * @v4l2_dev: &struct v4l2_device owning the sub-devices to iterate over.
317 #define __v4l2_device_call_subdevs(v4l2_dev, cond, o, f, args...) \
321 __v4l2_device_call_subdevs_p(v4l2_dev, __sd, cond, o, \
329 * @v4l2_dev: &struct v4l2_device owning the sub-devices to iterate over.
331 * &struct v4l2_subdev sub-devices associated with @v4l2_dev.
349 #define __v4l2_device_call_subdevs_until_err_p(v4l2_dev, sd, cond, o, f, args...) \
353 list_for_each_entry((sd), &(v4l2_dev)->subdevs, list) { \
366 * @v4l2_dev: &struct v4l2_device owning the sub-devices to iterate over.
384 #define __v4l2_device_call_subdevs_until_err(v4l2_dev, cond, o, f, args...) \
387 __v4l2_device_call_subdevs_until_err_p(v4l2_dev, __sd, cond, o, \
396 * @v4l2_dev: &struct v4l2_device owning the sub-devices to iterate over.
411 #define v4l2_device_call_all(v4l2_dev, grpid, o, f, args...) \
415 __v4l2_device_call_subdevs_p(v4l2_dev, __sd, \
425 * @v4l2_dev: &struct v4l2_device owning the sub-devices to iterate over.
444 #define v4l2_device_call_until_err(v4l2_dev, grpid, o, f, args...) \
447 __v4l2_device_call_subdevs_until_err_p(v4l2_dev, __sd, \
456 * @v4l2_dev: &struct v4l2_device owning the sub-devices to iterate over.
471 #define v4l2_device_mask_call_all(v4l2_dev, grpmsk, o, f, args...) \
475 __v4l2_device_call_subdevs_p(v4l2_dev, __sd, \
484 * @v4l2_dev: &struct v4l2_device owning the sub-devices to iterate over.
503 #define v4l2_device_mask_call_until_err(v4l2_dev, grpmsk, o, f, args...) \
506 __v4l2_device_call_subdevs_until_err_p(v4l2_dev, __sd, \
516 * @v4l2_dev: &struct v4l2_device owning the sub-devices to iterate over.
525 #define v4l2_device_has_op(v4l2_dev, grpid, o, f) \
529 list_for_each_entry(__sd, &(v4l2_dev)->subdevs, list) { \
544 * @v4l2_dev: &struct v4l2_device owning the sub-devices to iterate over.
553 #define v4l2_device_mask_has_op(v4l2_dev, grpmsk, o, f) \
557 list_for_each_entry(__sd, &(v4l2_dev)->subdevs, list) { \