Lines Matching refs:v4l2_dev
56 void (*release)(struct v4l2_device *v4l2_dev);
67 static inline void v4l2_device_get(struct v4l2_device *v4l2_dev) in v4l2_device_get() argument
69 kref_get(&v4l2_dev->ref); in v4l2_device_get()
80 int v4l2_device_put(struct v4l2_device *v4l2_dev);
95 struct v4l2_device *v4l2_dev);
124 int v4l2_device_set_name(struct v4l2_device *v4l2_dev, const char *basename,
138 void v4l2_device_disconnect(struct v4l2_device *v4l2_dev);
146 void v4l2_device_unregister(struct v4l2_device *v4l2_dev);
159 #define v4l2_device_register_subdev(v4l2_dev, sd) \ argument
160 __v4l2_device_register_subdev(v4l2_dev, sd, THIS_MODULE)
161 int __must_check __v4l2_device_register_subdev(struct v4l2_device *v4l2_dev,
188 __v4l2_device_register_subdev_nodes(struct v4l2_device *v4l2_dev,
201 v4l2_device_register_subdev_nodes(struct v4l2_device *v4l2_dev) in v4l2_device_register_subdev_nodes() argument
204 return __v4l2_device_register_subdev_nodes(v4l2_dev, false); in v4l2_device_register_subdev_nodes()
220 v4l2_device_register_ro_subdev_nodes(struct v4l2_device *v4l2_dev) in v4l2_device_register_ro_subdev_nodes() argument
223 return __v4l2_device_register_subdev_nodes(v4l2_dev, true); in v4l2_device_register_ro_subdev_nodes()
241 if (sd && sd->v4l2_dev && sd->v4l2_dev->notify) in v4l2_subdev_notify()
242 sd->v4l2_dev->notify(sd, notification, arg); in v4l2_subdev_notify()
250 static inline bool v4l2_device_supports_requests(struct v4l2_device *v4l2_dev) in v4l2_device_supports_requests() argument
252 return v4l2_dev->mdev && v4l2_dev->mdev->ops && in v4l2_device_supports_requests()
253 v4l2_dev->mdev->ops->req_queue; in v4l2_device_supports_requests()
270 #define v4l2_device_for_each_subdev(sd, v4l2_dev) \ argument
271 list_for_each_entry(sd, &(v4l2_dev)->subdevs, list)
293 #define __v4l2_device_call_subdevs_p(v4l2_dev, sd, cond, o, f, args...) \ argument
295 list_for_each_entry((sd), &(v4l2_dev)->subdevs, list) \
318 #define __v4l2_device_call_subdevs(v4l2_dev, cond, o, f, args...) \ argument
322 __v4l2_device_call_subdevs_p(v4l2_dev, __sd, cond, o, \
350 #define __v4l2_device_call_subdevs_until_err_p(v4l2_dev, sd, cond, o, f, args...) \ argument
354 list_for_each_entry((sd), &(v4l2_dev)->subdevs, list) { \
385 #define __v4l2_device_call_subdevs_until_err(v4l2_dev, cond, o, f, args...) \ argument
388 __v4l2_device_call_subdevs_until_err_p(v4l2_dev, __sd, cond, o, \
412 #define v4l2_device_call_all(v4l2_dev, grpid, o, f, args...) \ argument
416 __v4l2_device_call_subdevs_p(v4l2_dev, __sd, \
445 #define v4l2_device_call_until_err(v4l2_dev, grpid, o, f, args...) \ argument
448 __v4l2_device_call_subdevs_until_err_p(v4l2_dev, __sd, \
472 #define v4l2_device_mask_call_all(v4l2_dev, grpmsk, o, f, args...) \ argument
476 __v4l2_device_call_subdevs_p(v4l2_dev, __sd, \
504 #define v4l2_device_mask_call_until_err(v4l2_dev, grpmsk, o, f, args...) \ argument
507 __v4l2_device_call_subdevs_until_err_p(v4l2_dev, __sd, \
526 #define v4l2_device_has_op(v4l2_dev, grpid, o, f) \ argument
530 list_for_each_entry(__sd, &(v4l2_dev)->subdevs, list) { \
554 #define v4l2_device_mask_has_op(v4l2_dev, grpmsk, o, f) \ argument
558 list_for_each_entry(__sd, &(v4l2_dev)->subdevs, list) { \