Lines Matching refs:v4l2_dev
58 void (*release)(struct v4l2_device *v4l2_dev);
69 static inline void v4l2_device_get(struct v4l2_device *v4l2_dev) in v4l2_device_get() argument
71 kref_get(&v4l2_dev->ref); in v4l2_device_get()
82 int v4l2_device_put(struct v4l2_device *v4l2_dev);
97 struct v4l2_device *v4l2_dev);
126 int v4l2_device_set_name(struct v4l2_device *v4l2_dev, const char *basename,
140 void v4l2_device_disconnect(struct v4l2_device *v4l2_dev);
148 void v4l2_device_unregister(struct v4l2_device *v4l2_dev);
161 int __must_check v4l2_device_register_subdev(struct v4l2_device *v4l2_dev,
187 __v4l2_device_register_subdev_nodes(struct v4l2_device *v4l2_dev,
200 v4l2_device_register_subdev_nodes(struct v4l2_device *v4l2_dev) in v4l2_device_register_subdev_nodes() argument
203 return __v4l2_device_register_subdev_nodes(v4l2_dev, false); in v4l2_device_register_subdev_nodes()
219 v4l2_device_register_ro_subdev_nodes(struct v4l2_device *v4l2_dev) in v4l2_device_register_ro_subdev_nodes() argument
222 return __v4l2_device_register_subdev_nodes(v4l2_dev, true); in v4l2_device_register_ro_subdev_nodes()
240 if (sd && sd->v4l2_dev && sd->v4l2_dev->notify) in v4l2_subdev_notify()
241 sd->v4l2_dev->notify(sd, notification, arg); in v4l2_subdev_notify()
249 static inline bool v4l2_device_supports_requests(struct v4l2_device *v4l2_dev) in v4l2_device_supports_requests() argument
251 return v4l2_dev->mdev && v4l2_dev->mdev->ops && in v4l2_device_supports_requests()
252 v4l2_dev->mdev->ops->req_queue; in v4l2_device_supports_requests()
269 #define v4l2_device_for_each_subdev(sd, v4l2_dev) \ argument
270 list_for_each_entry(sd, &(v4l2_dev)->subdevs, list)
292 #define __v4l2_device_call_subdevs_p(v4l2_dev, sd, cond, o, f, args...) \ argument
294 list_for_each_entry((sd), &(v4l2_dev)->subdevs, list) \
317 #define __v4l2_device_call_subdevs(v4l2_dev, cond, o, f, args...) \ argument
321 __v4l2_device_call_subdevs_p(v4l2_dev, __sd, cond, o, \
349 #define __v4l2_device_call_subdevs_until_err_p(v4l2_dev, sd, cond, o, f, args...) \ argument
353 list_for_each_entry((sd), &(v4l2_dev)->subdevs, list) { \
384 #define __v4l2_device_call_subdevs_until_err(v4l2_dev, cond, o, f, args...) \ argument
387 __v4l2_device_call_subdevs_until_err_p(v4l2_dev, __sd, cond, o, \
411 #define v4l2_device_call_all(v4l2_dev, grpid, o, f, args...) \ argument
415 __v4l2_device_call_subdevs_p(v4l2_dev, __sd, \
444 #define v4l2_device_call_until_err(v4l2_dev, grpid, o, f, args...) \ argument
447 __v4l2_device_call_subdevs_until_err_p(v4l2_dev, __sd, \
471 #define v4l2_device_mask_call_all(v4l2_dev, grpmsk, o, f, args...) \ argument
475 __v4l2_device_call_subdevs_p(v4l2_dev, __sd, \
503 #define v4l2_device_mask_call_until_err(v4l2_dev, grpmsk, o, f, args...) \ argument
506 __v4l2_device_call_subdevs_until_err_p(v4l2_dev, __sd, \
525 #define v4l2_device_has_op(v4l2_dev, grpid, o, f) \ argument
529 list_for_each_entry(__sd, &(v4l2_dev)->subdevs, list) { \
553 #define v4l2_device_mask_has_op(v4l2_dev, grpmsk, o, f) \ argument
557 list_for_each_entry(__sd, &(v4l2_dev)->subdevs, list) { \