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,
184 v4l2_device_register_subdev_nodes(struct v4l2_device *v4l2_dev);
198 if (sd && sd->v4l2_dev && sd->v4l2_dev->notify) in v4l2_subdev_notify()
199 sd->v4l2_dev->notify(sd, notification, arg); in v4l2_subdev_notify()
207 static inline bool v4l2_device_supports_requests(struct v4l2_device *v4l2_dev) in v4l2_device_supports_requests() argument
209 return v4l2_dev->mdev && v4l2_dev->mdev->ops && in v4l2_device_supports_requests()
210 v4l2_dev->mdev->ops->req_queue; in v4l2_device_supports_requests()
227 #define v4l2_device_for_each_subdev(sd, v4l2_dev) \ argument
228 list_for_each_entry(sd, &(v4l2_dev)->subdevs, list)
250 #define __v4l2_device_call_subdevs_p(v4l2_dev, sd, cond, o, f, args...) \ argument
252 list_for_each_entry((sd), &(v4l2_dev)->subdevs, list) \
275 #define __v4l2_device_call_subdevs(v4l2_dev, cond, o, f, args...) \ argument
279 __v4l2_device_call_subdevs_p(v4l2_dev, __sd, cond, o, \
307 #define __v4l2_device_call_subdevs_until_err_p(v4l2_dev, sd, cond, o, f, args...) \ argument
311 list_for_each_entry((sd), &(v4l2_dev)->subdevs, list) { \
342 #define __v4l2_device_call_subdevs_until_err(v4l2_dev, cond, o, f, args...) \ argument
345 __v4l2_device_call_subdevs_until_err_p(v4l2_dev, __sd, cond, o, \
369 #define v4l2_device_call_all(v4l2_dev, grpid, o, f, args...) \ argument
373 __v4l2_device_call_subdevs_p(v4l2_dev, __sd, \
402 #define v4l2_device_call_until_err(v4l2_dev, grpid, o, f, args...) \ argument
405 __v4l2_device_call_subdevs_until_err_p(v4l2_dev, __sd, \
429 #define v4l2_device_mask_call_all(v4l2_dev, grpmsk, o, f, args...) \ argument
433 __v4l2_device_call_subdevs_p(v4l2_dev, __sd, \
461 #define v4l2_device_mask_call_until_err(v4l2_dev, grpmsk, o, f, args...) \ argument
464 __v4l2_device_call_subdevs_until_err_p(v4l2_dev, __sd, \
483 #define v4l2_device_has_op(v4l2_dev, grpid, o, f) \ argument
487 list_for_each_entry(__sd, &(v4l2_dev)->subdevs, list) { \
511 #define v4l2_device_mask_has_op(v4l2_dev, grpmsk, o, f) \ argument
515 list_for_each_entry(__sd, &(v4l2_dev)->subdevs, list) { \