Lines Matching refs:notifier

71  *        master notifier @asd_list
73 * probed, to a notifier->waiting list
100 * struct v4l2_async_notifier_operations - Asynchronous V4L2 notifier operations
103 * callback is only executed for the root notifier.
107 int (*bound)(struct v4l2_async_notifier *notifier, struct v4l2_subdev *subdev, struct v4l2_async_subdev *asd);
108 int (*complete)(struct v4l2_async_notifier *notifier);
109 void (*unbind)(struct v4l2_async_notifier *notifier, struct v4l2_subdev *subdev, struct v4l2_async_subdev *asd);
113 * struct v4l2_async_notifier - v4l2_device notifier data
115 * @ops: notifier operations
116 * @v4l2_dev: v4l2_device of the root notifier, NULL otherwise
117 * @sd: sub-device that registered the notifier, NULL otherwise
118 * @parent: parent notifier
136 * v4l2_async_notifier_init - Initialize a notifier.
138 * @notifier: pointer to &struct v4l2_async_notifier
140 * This function initializes the notifier @asd_list. It must be called
143 void v4l2_async_notifier_init(struct v4l2_async_notifier *notifier);
147 * notifier's master asd list.
149 * @notifier: pointer to &struct v4l2_async_notifier
152 * Call this function before registering a notifier to link the provided @asd to
154 * it will be freed by the framework when the notifier is destroyed.
156 int v4l2_async_notifier_add_subdev(struct v4l2_async_notifier *notifier, struct v4l2_async_subdev *asd);
160 * subdev to the notifier's master asd_list.
162 * @notifier: pointer to &struct v4l2_async_notifier
172 * is released later at notifier cleanup time.
174 struct v4l2_async_subdev *v4l2_async_notifier_add_fwnode_subdev(struct v4l2_async_notifier *notifier,
181 * notifier's master asd_list.
192 * matching and adds the async sub-device to the notifier's @asd_list. The
194 * notifier cleanup time.
205 * subdev to the notifier's master asd_list.
207 * @notifier: pointer to &struct v4l2_async_notifier
218 struct v4l2_async_subdev *v4l2_async_notifier_add_i2c_subdev(struct v4l2_async_notifier *notifier, int adapter_id,
223 * async subdev to the notifier's master asd_list.
225 * @notifier: pointer to &struct v4l2_async_notifier
235 struct v4l2_async_subdev *v4l2_async_notifier_add_devname_subdev(struct v4l2_async_notifier *notifier,
239 * v4l2_async_notifier_register - registers a subdevice asynchronous notifier
242 * @notifier: pointer to &struct v4l2_async_notifier
244 int v4l2_async_notifier_register(struct v4l2_device *v4l2_dev, struct v4l2_async_notifier *notifier);
248 * notifier for a sub-device
251 * @notifier: pointer to &struct v4l2_async_notifier
253 int v4l2_async_subdev_notifier_register(struct v4l2_subdev *sd, struct v4l2_async_notifier *notifier);
258 * @notifier: pointer to &struct v4l2_async_notifier
261 int v4l2_async_notifier_clr_unready_dev(struct v4l2_async_notifier *notifier);
263 static inline int v4l2_async_notifier_clr_unready_dev(struct v4l2_async_notifier *notifier)
271 * asynchronous notifier
273 * @notifier: pointer to &struct v4l2_async_notifier
275 void v4l2_async_notifier_unregister(struct v4l2_async_notifier *notifier);
278 * v4l2_async_notifier_cleanup - clean up notifier resources
279 * @notifier: the notifier the resources of which are to be cleaned up
281 * Release memory resources related to a notifier, including the async
282 * sub-devices allocated for the purposes of the notifier but not the notifier
284 * notifier after calling
293 void v4l2_async_notifier_cleanup(struct v4l2_async_notifier *notifier);