Home
last modified time | relevance | path

Searched full:notifier (Results 1 – 25 of 959) sorted by relevance

12345678910>>...39

/linux/drivers/media/v4l2-core/
H A Dv4l2-async.c66 static bool match_i2c(struct v4l2_async_notifier *notifier, in match_i2c() argument
81 static struct device *notifier_dev(struct v4l2_async_notifier *notifier) in notifier_dev() argument
83 if (notifier->sd) in notifier_dev()
84 return notifier->sd->dev; in notifier_dev()
86 if (notifier->v4l2_dev) in notifier_dev()
87 return notifier->v4l2_dev->dev; in notifier_dev()
93 match_fwnode_one(struct v4l2_async_notifier *notifier, in match_fwnode_one() argument
100 dev_dbg(notifier_dev(notifier), in match_fwnode_one()
105 dev_dbg(notifier_dev(notifier), in match_fwnode_one()
111 dev_dbg(notifier_dev(notifier), in match_fwnode_one()
[all …]
/linux/kernel/
H A Dnotifier.c5 #include <linux/notifier.h>
10 #include <trace/events/notifier.h>
13 * Notifier chain core routines. The exported routines below
23 WARN(1, "notifier callback %ps already registered", in notifier_chain_register()
55 * @nl: Pointer to head of the blocking notifier chain
56 * @val: Value passed unmodified to notifier function
57 * @v: Pointer passed unmodified to notifier function
58 * @nr_to_call: Number of notifier functions to be called. Don't care
63 * last notifier function called.
79 WARN(1, "Invalid notifier called!"); in notifier_call_chain()
[all …]
H A Dcpu_pm.c12 #include <linux/notifier.h>
54 * @nb: notifier block to register
75 * @nb: notifier block to be unregistered
77 * Remove a driver from the CPU PM notifier list.
94 * cpu_pm_enter - CPU low power entry notifier
115 * cpu_pm_exit - CPU low power exit notifier
133 * cpu_cluster_pm_enter - CPU cluster low power entry notifier
155 * cpu_cluster_pm_exit - CPU cluster low power exit notifier
/linux/include/media/
H A Dv4l2-async.h69 * @notifier: the async notifier the connection is related to
71 * notifier @waiting_list or @done_list
81 struct v4l2_async_notifier *notifier; member
88 * struct v4l2_async_notifier_operations - Asynchronous V4L2 notifier operations
91 * callback is only executed for the root notifier.
96 int (*bound)(struct v4l2_async_notifier *notifier,
99 int (*complete)(struct v4l2_async_notifier *notifier);
100 void (*unbind)(struct v4l2_async_notifier *notifier,
107 * struct v4l2_async_notifier - v4l2_device notifier data
109 * @ops: notifier operations
[all …]
H A Dcec-notifier.h3 * cec-notifier.h - notify CEC drivers of physical address changes
30 * If a notifier for device @dev and connector @port_name already exists, then
31 * increase the refcount and return that notifier.
33 * If it doesn't exist, then allocate a new notifier struct and return a
45 * @n: notifier. If NULL, then this function does nothing.
55 * @adap: the cec adapter that registered this notifier.
57 * If a notifier for device @dev and connector @port_name already exists, then
58 * increase the refcount and return that notifier.
60 * If it doesn't exist, then allocate a new notifier struct and return a
72 * @n: notifier. If NULL, then this function does nothing.
[all …]
/linux/include/drm/
H A Ddrm_gpusvm.h31 * @notifier_alloc: Allocate a GPU SVM notifier (optional)
33 * Allocate a GPU SVM notifier.
35 * Return: Pointer to the allocated GPU SVM notifier on success, NULL on failure.
40 * @notifier_free: Free a GPU SVM notifier (optional)
41 * @notifier: Pointer to the GPU SVM notifier to be freed
43 * Free a GPU SVM notifier.
45 void (*notifier_free)(struct drm_gpusvm_notifier *notifier);
66 * @invalidate: Invalidate GPU SVM notifier (required)
68 * @notifier: Pointer to the GPU SVM notifier
71 * Invalidate the GPU page tables. It can safely walk the notifier range
[all …]
/linux/drivers/gpu/drm/
H A Ddrm_gpusvm.c37 * list of ranges that fall within the notifier interval. Notifiers are
47 * dynamically allocated on GPU fault and removed on an MMU notifier UNMAP
48 * event. As mentioned above, ranges are tracked in a notifier's Red-Black
53 * range allocation, notifier allocation, and invalidations.
79 * notifier callback.
81 * - Notifier callback:
91 * GPU SVM introduces a global notifier lock, which safeguards the notifier's
98 * global lock to a per-notifier lock if finer-grained locking is deemed
133 * notifier callback.
229 * 3) Notifier callback
[all …]
/linux/Documentation/fault-injection/
H A Dnotifier-error-inject.rst1 Notifier error injection
4 Notifier error injection provides the ability to inject artificial errors to
5 specified notifier chain callbacks. It is useful to test the error handling of
6 notifier call chain failures which is rarely executed. There are kernel
9 * PM notifier
10 * Memory hotplug notifier
11 * powerpc pSeries reconfig notifier
12 * Netdevice notifier
14 PM notifier error injection module
18 /sys/kernel/debug/notifier-error-inject/pm/actions/<notifier event>/error
[all …]
/linux/drivers/platform/x86/lenovo/
H A Dwmi-events.c7 * notifier chain.
15 #include <linux/notifier.h>
38 * lwmi_events_register_notifier() - Add a notifier to the notifier chain.
41 * Call blocking_notifier_chain_register to register the notifier block to the
42 * lenovo-wmi-events driver blocking notifier chain.
53 * lwmi_events_unregister_notifier() - Remove a notifier from the notifier
57 * Call blocking_notifier_chain_unregister to unregister the notifier block
58 * from the lenovo-wmi-events driver blocking notifier chain.
69 * devm_lwmi_events_unregister_notifier() - Remove a notifier from the notifier
73 * Call lwmi_events_unregister_notifier to unregister the notifier block from
[all …]
H A Dwmi-other.c32 #include <linux/notifier.h>
117 * lwmi_om_register_notifier() - Add a notifier to the blocking notifier chain
120 * Call blocking_notifier_chain_register to register the notifier block to the
121 * lenovo-wmi-other driver notifier chain.
132 * lwmi_om_unregister_notifier() - Remove a notifier from the blocking notifier
136 * Call blocking_notifier_chain_unregister to unregister the notifier block from the
137 * lenovo-wmi-other driver notifier chain.
148 * devm_lwmi_om_unregister_notifier() - Remove a notifier from the blocking
149 * notifier chain.
152 * Call lwmi_om_unregister_notifier to unregister the notifier block from the
[all …]
/linux/net/core/
H A Dnetevent.c13 #include <linux/notifier.h>
20 * register_netevent_notifier - register a netevent notifier block
21 * @nb: notifier
23 * Register a notifier to be called when a netevent occurs.
24 * The notifier passed is linked into the kernel structures and must
35 * unregister_netevent_notifier - unregister a netevent notifier block
36 * @nb: notifier
38 * Unregister a notifier previously registered by
39 * register_neigh_notifier(). The notifier is unlinked into the
51 * call_netevent_notifiers - call all netevent notifier blocks
[all …]
/linux/drivers/net/ethernet/mellanox/mlx5/core/sf/
H A Dvhca_event.c20 struct mlx5_vhca_state_notifier *notifier; member
104 struct mlx5_vhca_state_notifier *notifier = work->notifier; in mlx5_vhca_state_work_handler() local
105 struct mlx5_core_dev *dev = notifier->dev; in mlx5_vhca_state_work_handler()
119 struct mlx5_vhca_state_notifier *notifier = in mlx5_vhca_state_change_notifier() local
129 work->notifier = notifier; in mlx5_vhca_state_change_notifier()
132 mlx5_vhca_events_work_enqueue(notifier->dev, wq_idx, &work->work); in mlx5_vhca_state_change_notifier()
150 struct mlx5_vhca_state_notifier *notifier; in mlx5_vhca_event_init() local
173 notifier = kzalloc(sizeof(*notifier), GFP_KERNEL); in mlx5_vhca_event_init()
174 if (!notifier) { in mlx5_vhca_event_init()
179 dev->priv.vhca_state_notifier = notifier; in mlx5_vhca_event_init()
[all …]
/linux/arch/powerpc/platforms/powernv/
H A Dopal-power.c12 #include <linux/notifier.h>
77 /* OPAL power-control events notifier */
116 /* OPAL EPOW event notifier block */
123 /* OPAL DPO event notifier block */
130 /* OPAL power-control event notifier block */
142 /* Register OPAL power-control events notifier */ in opal_power_control_init()
146 pr_err("Failed to register SHUTDOWN notifier, ret = %d\n", ret); in opal_power_control_init()
159 /* Register EPOW event notifier */ in opal_power_control_init()
162 pr_err("Failed to register EPOW notifier, ret = %d\n", ret); in opal_power_control_init()
164 /* Register DPO event notifier */ in opal_power_control_init()
[all …]
/linux/drivers/gpu/drm/radeon/
H A Dradeon_mn.c42 * @mn: our notifier
53 struct radeon_bo *bo = container_of(mn, struct radeon_bo, notifier); in radeon_mn_invalidate()
88 * radeon_mn_register - register a BO for notifier updates
93 * Registers an MMU notifier for the given BO at the specified address.
100 ret = mmu_interval_notifier_insert(&bo->notifier, current->mm, addr, in radeon_mn_register()
111 mmu_interval_read_begin(&bo->notifier); in radeon_mn_register()
116 * radeon_mn_unregister - unregister a BO for notifier updates
120 * Remove any registration of MMU notifier updates from the buffer object.
124 if (!bo->notifier.mm) in radeon_mn_unregister()
126 mmu_interval_notifier_remove(&bo->notifier); in radeon_mn_unregister()
[all …]
/linux/drivers/staging/media/sunxi/sun6i-isp/
H A Dsun6i_isp_proc.c399 static int sun6i_isp_proc_notifier_bound(struct v4l2_async_notifier *notifier, in sun6i_isp_proc_notifier_bound() argument
404 container_of(notifier, struct sun6i_isp_device, proc.notifier); in sun6i_isp_proc_notifier_bound()
432 sun6i_isp_proc_notifier_complete(struct v4l2_async_notifier *notifier) in sun6i_isp_proc_notifier_complete() argument
435 container_of(notifier, struct sun6i_isp_device, proc.notifier); in sun6i_isp_proc_notifier_complete()
459 struct v4l2_async_notifier *notifier = &isp_dev->proc.notifier; in sun6i_isp_proc_source_setup() local
474 v4l2_async_nf_add_fwnode_remote(notifier, handle, in sun6i_isp_proc_source_setup()
497 struct v4l2_async_notifier *notifier = &proc->notifier; in sun6i_isp_proc_setup() local
543 v4l2_async_nf_init(notifier, v4l2_dev); in sun6i_isp_proc_setup()
544 notifier->ops = &sun6i_isp_proc_notifier_ops; in sun6i_isp_proc_setup()
551 ret = v4l2_async_nf_register(notifier); in sun6i_isp_proc_setup()
[all …]
/linux/drivers/video/fbdev/core/
H A Dfb_notify.c14 #include <linux/notifier.h>
20 * fb_register_client - register a client notifier
21 * @nb: notifier block to callback on events
32 * fb_unregister_client - unregister a client notifier
33 * @nb: notifier block to callback on events
48 * Return: The return value of the last notifier function
/linux/drivers/media/platform/sunxi/sun6i-csi/
H A Dsun6i_csi_bridge.c646 sun6i_csi_bridge_notifier_bound(struct v4l2_async_notifier *notifier, in sun6i_csi_bridge_notifier_bound() argument
651 container_of(notifier, struct sun6i_csi_device, in sun6i_csi_bridge_notifier_bound()
652 bridge.notifier); in sun6i_csi_bridge_notifier_bound()
689 sun6i_csi_bridge_notifier_complete(struct v4l2_async_notifier *notifier) in sun6i_csi_bridge_notifier_complete() argument
692 container_of(notifier, struct sun6i_csi_device, in sun6i_csi_bridge_notifier_complete()
693 bridge.notifier); in sun6i_csi_bridge_notifier_complete()
716 struct v4l2_async_notifier *notifier = &csi_dev->bridge.notifier; in sun6i_csi_bridge_source_setup() local
750 v4l2_async_nf_add_fwnode_remote(notifier, handle, in sun6i_csi_bridge_source_setup()
774 struct v4l2_async_notifier *notifier = &bridge->notifier; in sun6i_csi_bridge_setup() local
827 v4l2_async_subdev_nf_init(notifier, subdev); in sun6i_csi_bridge_setup()
[all …]
/linux/include/linux/soc/ti/
H A Dknav_qmss.h33 * @KNAV_QUEUE_SET_NOTIFIER: Set a notifier callback to a queue handle.
34 * @KNAV_QUEUE_ENABLE_NOTIFY: Enable notifier callback for a queue handle.
35 * @KNAV_QUEUE_DISABLE_NOTIFY: Disable notifier callback for a queue handle.
47 /* Queue notifier callback prototype */
51 * struct knav_queue_notify_config: Notifier configuration
52 * @fn: Notifier function
53 * @fn_arg: Notifier function arguments
/linux/drivers/usb/core/
H A Dnotify.c7 * notifier functions originally based on those in kernel/sys.c
16 #include <linux/notifier.h>
24 * usb_register_notify - register a notifier callback whenever a usb change happens
25 * @nb: pointer to the notifier block for the callback events.
36 * usb_unregister_notify - unregister a notifier callback
37 * @nb: pointer to the notifier block for the callback events.
/linux/drivers/media/platform/sunxi/sun4i-csi/
H A Dsun4i_csi.c53 static int sun4i_csi_notify_bound(struct v4l2_async_notifier *notifier, in sun4i_csi_notify_bound() argument
57 struct sun4i_csi *csi = container_of(notifier, struct sun4i_csi, in sun4i_csi_notify_bound()
58 notifier); in sun4i_csi_notify_bound()
74 static int sun4i_csi_notify_complete(struct v4l2_async_notifier *notifier) in sun4i_csi_notify_complete() argument
76 struct sun4i_csi *csi = container_of(notifier, struct sun4i_csi, in sun4i_csi_notify_complete()
77 notifier); in sun4i_csi_notify_complete()
135 v4l2_async_nf_init(&csi->notifier, &csi->v4l); in sun4i_csi_notifier_init()
148 asd = v4l2_async_nf_add_fwnode_remote(&csi->notifier, ep, in sun4i_csi_notifier_init()
155 csi->notifier.ops = &sun4i_csi_notify_ops; in sun4i_csi_notifier_init()
255 ret = v4l2_async_nf_register(&csi->notifier); in sun4i_csi_probe()
[all …]
/linux/drivers/pwm/
H A Dpwm-iqs620a.c22 #include <linux/notifier.h>
38 struct notifier_block notifier; member
139 static int iqs620_pwm_notifier(struct notifier_block *notifier, in iqs620_pwm_notifier() argument
148 iqs620_pwm = container_of(notifier, struct iqs620_pwm_private, in iqs620_pwm_notifier()
149 notifier); in iqs620_pwm_notifier()
182 &iqs620_pwm->notifier); in iqs620_pwm_notifier_unregister()
185 "Failed to unregister notifier: %d\n", ret); in iqs620_pwm_notifier_unregister()
220 iqs620_pwm->notifier.notifier_call = iqs620_pwm_notifier; in iqs620_pwm_probe()
222 &iqs620_pwm->notifier); in iqs620_pwm_probe()
224 dev_err(&pdev->dev, "Failed to register notifier: %d\n", ret); in iqs620_pwm_probe()
/linux/include/linux/
H A Dnotifier.h3 * Routines to manage notifier chains for passing status changes to any
19 * Notifier chains are of four types:
21 * Atomic notifier chains: Chain callbacks run in interrupt/atomic
23 * Blocking notifier chains: Chain callbacks run in process context.
25 * Raw notifier chains: There are no restrictions on callbacks,
28 * SRCU notifier chains: A variant of blocking notifier chains, with
40 * SRCU notifier chains are an alternative form of blocking notifier chains.
45 * SRCU notifier chains should be used when the chain will be called very
191 * Clean way to return from the notifier and stop further calls.
/linux/Documentation/driver-api/surface_aggregator/clients/
H A Dcdev.rst85 - Register event notifier.
91 - Unregister event notifier.
149 Register a notifier for the event target category specified in the given
150 notifier description with the specified priority. Notifiers registration is
152 notifier for a specific target category has been registered, all events of that
157 Only one notifier can be registered per target category and client instance. If
158 a notifier has already been registered, this IOCTL will fail with ``-EEXIST``.
168 Unregisters the notifier associated with the specified target category. The
169 priority field will be ignored by this IOCTL. If no notifier has been
180 Note that this call will not register a notifier itself, it will only enable
[all …]
/linux/drivers/md/dm-vdo/
H A Dvdo.c1042 struct read_only_notifier *notifier = &vdo->read_only_notifier; in vdo_enable_read_only_entry() local
1045 notifier->read_only_error = VDO_READ_ONLY; in vdo_enable_read_only_entry()
1046 notifier->state = NOTIFIED; in vdo_enable_read_only_entry()
1048 notifier->state = MAY_NOT_NOTIFY; in vdo_enable_read_only_entry()
1051 spin_lock_init(&notifier->lock); in vdo_enable_read_only_entry()
1052 vdo_initialize_completion(&notifier->completion, vdo, in vdo_enable_read_only_entry()
1073 struct read_only_notifier *notifier = &vdo->read_only_notifier; in vdo_wait_until_not_entering_read_only_mode() local
1077 if (notifier->waiter != NULL) { in vdo_wait_until_not_entering_read_only_mode()
1082 spin_lock(&notifier->lock); in vdo_wait_until_not_entering_read_only_mode()
1083 if (notifier->state == NOTIFYING) in vdo_wait_until_not_entering_read_only_mode()
[all …]
/linux/include/linux/surface_aggregator/
H A Dcontroller.h742 /* -- Event notifier/callbacks. --------------------------------------------- */
748 * enum ssam_notif_flags - Flags used in return values from SSAM notifier
757 * If this flag has not been set by any handler after the notifier chain
762 * Indicates that the notifier traversal should stop. If this flag is
763 * returned from a notifier callback, notifier chain traversal will
779 * struct ssam_notifier_block - Base notifier block for SSAM event
782 * @fn: The callback function of this notifier. This function takes the
783 * respective notifier block and event as input and should return
784 * a notifier value, which can either be obtained from the flags
788 * @priority: Priority value determining the order in which notifier callbacks
[all …]

12345678910>>...39