Searched refs:notifier (Results 1 - 200 of 696) sorted by relevance

1234

/linux-4.1.27/block/
H A Dblk-mq-cpu.c2 * CPU notifier helper code for blk-mq
40 void blk_mq_register_cpu_notifier(struct blk_mq_cpu_notifier *notifier) blk_mq_register_cpu_notifier() argument
42 BUG_ON(!notifier->notify); blk_mq_register_cpu_notifier()
45 list_add_tail(&notifier->list, &blk_mq_cpu_notify_list); blk_mq_register_cpu_notifier()
49 void blk_mq_unregister_cpu_notifier(struct blk_mq_cpu_notifier *notifier) blk_mq_unregister_cpu_notifier() argument
52 list_del(&notifier->list); blk_mq_unregister_cpu_notifier()
56 void blk_mq_init_cpu_notifier(struct blk_mq_cpu_notifier *notifier, blk_mq_init_cpu_notifier() argument
60 notifier->notify = fn; blk_mq_init_cpu_notifier()
61 notifier->data = data; blk_mq_init_cpu_notifier()
H A Dblk-mq.h41 void blk_mq_init_cpu_notifier(struct blk_mq_cpu_notifier *notifier,
44 void blk_mq_register_cpu_notifier(struct blk_mq_cpu_notifier *notifier);
45 void blk_mq_unregister_cpu_notifier(struct blk_mq_cpu_notifier *notifier);
/linux-4.1.27/drivers/media/v4l2-core/
H A Dv4l2-async.c51 static struct v4l2_async_subdev *v4l2_async_belongs(struct v4l2_async_notifier *notifier, v4l2_async_belongs() argument
57 list_for_each_entry(asd, &notifier->waiting, list) { v4l2_async_belongs()
89 static int v4l2_async_test_notify(struct v4l2_async_notifier *notifier, v4l2_async_test_notify() argument
98 sd->notifier = notifier; v4l2_async_test_notify()
100 if (notifier->bound) { v4l2_async_test_notify()
101 ret = notifier->bound(notifier, sd, asd); v4l2_async_test_notify()
105 /* Move from the global subdevice list to notifier's done */ v4l2_async_test_notify()
106 list_move(&sd->async_list, &notifier->done); v4l2_async_test_notify()
108 ret = v4l2_device_register_subdev(notifier->v4l2_dev, sd); v4l2_async_test_notify()
110 if (notifier->unbind) v4l2_async_test_notify()
111 notifier->unbind(notifier, sd, asd); v4l2_async_test_notify()
115 if (list_empty(&notifier->waiting) && notifier->complete) v4l2_async_test_notify()
116 return notifier->complete(notifier); v4l2_async_test_notify()
131 struct v4l2_async_notifier *notifier) v4l2_async_notifier_register()
137 if (!notifier->num_subdevs || notifier->num_subdevs > V4L2_MAX_SUBDEVS) v4l2_async_notifier_register()
140 notifier->v4l2_dev = v4l2_dev; v4l2_async_notifier_register()
141 INIT_LIST_HEAD(&notifier->waiting); v4l2_async_notifier_register()
142 INIT_LIST_HEAD(&notifier->done); v4l2_async_notifier_register()
144 for (i = 0; i < notifier->num_subdevs; i++) { v4l2_async_notifier_register()
145 asd = notifier->subdevs[i]; v4l2_async_notifier_register()
154 dev_err(notifier->v4l2_dev ? notifier->v4l2_dev->dev : NULL, v4l2_async_notifier_register()
159 list_add_tail(&asd->list, &notifier->waiting); v4l2_async_notifier_register()
165 list_add(&notifier->list, &notifier_list); v4l2_async_notifier_register()
170 asd = v4l2_async_belongs(notifier, sd); v4l2_async_notifier_register()
174 ret = v4l2_async_test_notify(notifier, sd, asd); v4l2_async_notifier_register()
187 void v4l2_async_notifier_unregister(struct v4l2_async_notifier *notifier) v4l2_async_notifier_unregister() argument
190 unsigned int notif_n_subdev = notifier->num_subdevs; v4l2_async_notifier_unregister()
195 if (!notifier->v4l2_dev) v4l2_async_notifier_unregister()
200 dev_err(notifier->v4l2_dev->dev, v4l2_async_notifier_unregister()
206 list_del(&notifier->list); v4l2_async_notifier_unregister()
208 list_for_each_entry_safe(sd, tmp, &notifier->done, async_list) { v4l2_async_notifier_unregister()
218 if (notifier->unbind) v4l2_async_notifier_unregister()
219 notifier->unbind(notifier, sd, sd->asd); v4l2_async_notifier_unregister()
256 notifier->v4l2_dev = NULL; v4l2_async_notifier_unregister()
260 * upon notifier registration. v4l2_async_notifier_unregister()
267 struct v4l2_async_notifier *notifier; v4l2_async_register_subdev() local
273 list_for_each_entry(notifier, &notifier_list, list) { v4l2_async_register_subdev()
274 struct v4l2_async_subdev *asd = v4l2_async_belongs(notifier, sd); v4l2_async_register_subdev()
276 int ret = v4l2_async_test_notify(notifier, sd, asd); v4l2_async_register_subdev()
293 struct v4l2_async_notifier *notifier = sd->notifier; v4l2_async_unregister_subdev() local
303 list_add(&sd->asd->list, &notifier->waiting); v4l2_async_unregister_subdev()
307 if (notifier->unbind) v4l2_async_unregister_subdev()
308 notifier->unbind(notifier, sd, sd->asd); v4l2_async_unregister_subdev()
130 v4l2_async_notifier_register(struct v4l2_device *v4l2_dev, struct v4l2_async_notifier *notifier) v4l2_async_notifier_register() argument
/linux-4.1.27/net/core/
H A Dnetevent.c17 #include <linux/notifier.h>
24 * register_netevent_notifier - register a netevent notifier block
25 * @nb: notifier
27 * Register a notifier to be called when a netevent occurs.
28 * The notifier passed is linked into the kernel structures and must
42 * netevent_unregister_notifier - unregister a netevent notifier block
43 * @nb: notifier
45 * Unregister a notifier previously registered by
46 * register_neigh_notifier(). The notifier is unlinked into the
58 * call_netevent_notifiers - call all netevent notifier blocks
59 * @val: value passed unmodified to notifier function
60 * @v: pointer passed unmodified to notifier function
62 * Call all neighbour notifier blocks. Parameters and return value
/linux-4.1.27/arch/mips/include/asm/
H A Dkdebug.h4 #include <linux/notifier.h>
H A Dcop2.h12 #include <linux/notifier.h>
/linux-4.1.27/include/linux/
H A Dpvclock_gtod.h4 #include <linux/notifier.h>
7 * The pvclock gtod notifier is called when the system time is updated
10 * The 'action' parameter in the notifier function is false (0), or
H A Dbcm47xx_wdt.h4 #include <linux/notifier.h>
18 struct notifier_block notifier; member in struct:bcm47xx_wdt
H A Dpreempt.h155 * notifier: struct preempt_notifier for the task being scheduled
158 * notifier: struct preempt_notifier for the task being preempted
167 void (*sched_in)(struct preempt_notifier *notifier, int cpu);
168 void (*sched_out)(struct preempt_notifier *notifier,
175 * @ops: defines the notifier functions to be called
184 void preempt_notifier_register(struct preempt_notifier *notifier);
185 void preempt_notifier_unregister(struct preempt_notifier *notifier);
187 static inline void preempt_notifier_init(struct preempt_notifier *notifier, preempt_notifier_init() argument
190 INIT_HLIST_NODE(&notifier->link); preempt_notifier_init()
191 notifier->ops = ops; preempt_notifier_init()
H A Dnotifier.h2 * Routines to manage notifier chains for passing status changes to any
20 * Atomic notifier chains: Chain callbacks run in interrupt/atomic
22 * Blocking notifier chains: Chain callbacks run in process context.
24 * Raw notifier chains: There are no restrictions on callbacks,
27 * SRCU notifier chains: A variant of blocking notifier chains, with
39 * SRCU notifier chains are an alternative form of blocking notifier chains.
44 * SRCU notifier chains should be used when the chain will be called very
45 * often but notifier_blocks will seldom be removed. Also, SRCU notifier
163 * Clean way to return from the notifier and stop further calls.
H A Dpm_qos.h8 #include <linux/notifier.h>
132 int pm_qos_add_notifier(int pm_qos_class, struct notifier_block *notifier);
133 int pm_qos_remove_notifier(int pm_qos_class, struct notifier_block *notifier);
147 struct notifier_block *notifier);
149 struct notifier_block *notifier);
150 int dev_pm_qos_add_global_notifier(struct notifier_block *notifier);
151 int dev_pm_qos_remove_global_notifier(struct notifier_block *notifier);
196 struct notifier_block *notifier) dev_pm_qos_add_notifier()
199 struct notifier_block *notifier) dev_pm_qos_remove_notifier()
202 struct notifier_block *notifier) dev_pm_qos_add_global_notifier()
205 struct notifier_block *notifier) dev_pm_qos_remove_global_notifier()
195 dev_pm_qos_add_notifier(struct device *dev, struct notifier_block *notifier) dev_pm_qos_add_notifier() argument
198 dev_pm_qos_remove_notifier(struct device *dev, struct notifier_block *notifier) dev_pm_qos_remove_notifier() argument
201 dev_pm_qos_add_global_notifier( struct notifier_block *notifier) dev_pm_qos_add_global_notifier() argument
204 dev_pm_qos_remove_global_notifier( struct notifier_block *notifier) dev_pm_qos_remove_global_notifier() argument
H A Dextcon.h27 #include <linux/notifier.h>
34 * The standard cable name is to help support general notifier
36 * Please use standard cable names unless your notifier device has
39 * pair of notifier/notifiee devices.
46 * However, the notifiee and notifier should be able to handle such
49 * notifier can distinguish but notifiee cannot.
164 * @internal_nb: A notifier block bridging extcon notifier
165 * and cable notifier.
166 * @user_nb: user provided notifier block for events from
246 * Following APIs are to monitor every action of a notifier.
248 * Probably this could be used to debug an action of notifier; however,
250 * want to be notified by a specific external port of the notifier.
H A Dclk.h17 #include <linux/notifier.h>
26 * DOC: clk notifier callback types
48 * struct clk_notifier - associate a clk with a notifier
49 * @clk: struct clk * to associate the notifier with
53 * A list of struct clk_notifier is maintained by the notifier code.
54 * An entry is created whenever code registers the first notifier on a
65 * struct clk_notifier_data - rate data to pass to the notifier callback
70 * For a pre-notifier, old_rate is the clk's rate before this rate
72 * post-notifier, old_rate and new_rate are both set to the clk's
82 * clk_notifier_register: register a clock rate-change notifier callback
84 * @nb: notifier block with callback function pointer
86 * ProTip: debugging across notifier chains can be frustrating. Make sure that
87 * your notifier callback function prints a nice big warning in case of
93 * clk_notifier_unregister: unregister a clock rate-change notifier callback
95 * @nb: notifier block which will be unregistered
H A Dlcd.h13 #include <linux/notifier.h>
47 * P.S. note that if early_set_power is not NULL then early fb notifier
76 /* The framebuffer notifier block */
H A Drcutree.h67 * that is acquired by a CPU-hotplug notifier. And yes, it is also illegal
68 * to call this function from a CPU-hotplug notifier. Failing to observe
H A Dcpu_pm.h22 #include <linux/notifier.h>
47 * Event codes passed as unsigned long val to notifier calls
H A Dpm_clock.h13 #include <linux/notifier.h>
H A Dreboot.h5 #include <linux/notifier.h>
H A Dadb.h45 /* Messages sent thru the client_list notifier. You should NOT stop
H A Dbacklight.h14 #include <linux/notifier.h>
106 /* The framebuffer notifier block */
H A Dmemory.h21 #include <linux/notifier.h>
59 * in the notifier chain.
H A Dpm_opp.h18 #include <linux/notifier.h>
H A Ddevfreq.h17 #include <linux/notifier.h>
74 * has registered devfreq->nb at a notifier-head,
129 * @nb: notifier block used to notify devfreq object that it should
131 * devfreq.nb to the corresponding register notifier call chain.
H A Dkernelcapi.h16 #include <linux/notifier.h>
H A Dlglock.h26 #include <linux/notifier.h>
H A Dmmu_notifier.h31 * freed. This can run concurrently with other mmu notifier
104 * invalidate_range() notifier to remove any references taken
173 * The notifier chains are protected by mmap_sem and/or the reverse map
177 * Therefore notifier chains can only be traversed when either
353 * set_pte_at_notify() sets the pte _after_ running the notifier.
H A Dpadata.h28 #include <linux/notifier.h>
142 * @cpu_notifier: cpu hotplug notifier.
H A Dcpu.h54 * CPU notifier priorities.
60 * notifier. CPUSET_ACTIVE adjusts cpuset according to
/linux-4.1.27/kernel/
H A Dnotifier.c4 #include <linux/notifier.h>
64 * @nl: Pointer to head of the blocking notifier chain
65 * @val: Value passed unmodified to notifier function
66 * @v: Pointer passed unmodified to notifier function
67 * @nr_to_call: Number of notifier functions to be called. Don't care
72 * last notifier function called.
88 WARN(1, "Invalid notifier called!"); notifier_call_chain()
108 * Atomic notifier chain routines. Registration and unregistration
113 * atomic_notifier_chain_register - Add notifier to an atomic notifier chain
114 * @nh: Pointer to head of the atomic notifier chain
115 * @n: New entry in notifier chain
117 * Adds a notifier to an atomic notifier chain.
135 * atomic_notifier_chain_unregister - Remove notifier from an atomic notifier chain
136 * @nh: Pointer to head of the atomic notifier chain
137 * @n: Entry to remove from notifier chain
139 * Removes a notifier from an atomic notifier chain.
158 * __atomic_notifier_call_chain - Call functions in an atomic notifier chain
159 * @nh: Pointer to head of the atomic notifier chain
160 * @val: Value passed unmodified to notifier function
161 * @v: Pointer passed unmodified to notifier function
165 * Calls each function in a notifier chain in turn. The functions
169 * If the return value of the notifier can be and'ed
172 * the notifier function which halted execution.
174 * of the last notifier function called.
199 * Blocking notifier chain routines. All access to the chain is
204 * blocking_notifier_chain_register - Add notifier to a blocking notifier chain
205 * @nh: Pointer to head of the blocking notifier chain
206 * @n: New entry in notifier chain
208 * Adds a notifier to a blocking notifier chain.
234 * blocking_notifier_chain_cond_register - Cond add notifier to a blocking notifier chain
235 * @nh: Pointer to head of the blocking notifier chain
236 * @n: New entry in notifier chain
238 * Adds a notifier to a blocking notifier chain, only if not already
257 * blocking_notifier_chain_unregister - Remove notifier from a blocking notifier chain
258 * @nh: Pointer to head of the blocking notifier chain
259 * @n: Entry to remove from notifier chain
261 * Removes a notifier from a blocking notifier chain.
287 * __blocking_notifier_call_chain - Call functions in a blocking notifier chain
288 * @nh: Pointer to head of the blocking notifier chain
289 * @val: Value passed unmodified to notifier function
290 * @v: Pointer passed unmodified to notifier function
294 * Calls each function in a notifier chain in turn. The functions
297 * If the return value of the notifier can be and'ed
300 * the notifier function which halted execution.
302 * of the last notifier function called.
333 * Raw notifier chain routines. There is no protection;
338 * raw_notifier_chain_register - Add notifier to a raw notifier chain
339 * @nh: Pointer to head of the raw notifier chain
340 * @n: New entry in notifier chain
342 * Adds a notifier to a raw notifier chain.
355 * raw_notifier_chain_unregister - Remove notifier from a raw notifier chain
356 * @nh: Pointer to head of the raw notifier chain
357 * @n: Entry to remove from notifier chain
359 * Removes a notifier from a raw notifier chain.
372 * __raw_notifier_call_chain - Call functions in a raw notifier chain
373 * @nh: Pointer to head of the raw notifier chain
374 * @val: Value passed unmodified to notifier function
375 * @v: Pointer passed unmodified to notifier function
379 * Calls each function in a notifier chain in turn. The functions
383 * If the return value of the notifier can be and'ed
386 * the notifier function which halted execution.
388 * of the last notifier function called.
407 * SRCU notifier chain routines. Registration and unregistration
412 * srcu_notifier_chain_register - Add notifier to an SRCU notifier chain
413 * @nh: Pointer to head of the SRCU notifier chain
414 * @n: New entry in notifier chain
416 * Adds a notifier to an SRCU notifier chain.
442 * srcu_notifier_chain_unregister - Remove notifier from an SRCU notifier chain
443 * @nh: Pointer to head of the SRCU notifier chain
444 * @n: Entry to remove from notifier chain
446 * Removes a notifier from an SRCU notifier chain.
473 * __srcu_notifier_call_chain - Call functions in an SRCU notifier chain
474 * @nh: Pointer to head of the SRCU notifier chain
475 * @val: Value passed unmodified to notifier function
476 * @v: Pointer passed unmodified to notifier function
480 * Calls each function in a notifier chain in turn. The functions
483 * If the return value of the notifier can be and'ed
486 * the notifier function which halted execution.
488 * of the last notifier function called.
512 * srcu_init_notifier_head - Initialize an SRCU notifier head
513 * @nh: Pointer to head of the srcu notifier chain
515 * Unlike other sorts of notifier heads, SRCU notifier heads require
517 * calling any of the other SRCU notifier routines for this head.
519 * If an SRCU notifier head is deallocated, it must first be cleaned
H A Duser-return-notifier.c2 #include <linux/user-return-notifier.h>
11 * called in atomic context. The notifier will also be called in atomic
22 * Removes a registered user return notifier. Must be called from atomic
H A Dcpu_pm.c21 #include <linux/notifier.h>
40 * @nb: notifier block to register
63 * @nb: notifier block to be unregistered
65 * Remove a driver from the CPU PM notifier list.
84 * cpu_pm_enter - CPU low power entry notifier
118 * cpu_pm_exit - CPU low power exit notifier
142 * cpu_cluster_pm_enter - CPU cluster low power entry notifier
177 * cpu_cluster_pm_exit - CPU cluster low power exit notifier
H A Dtracepoint.c247 * performed either with a tracepoint module going notifier, or from
296 * register_tracepoint_notifier - register tracepoint coming/going notifier
297 * @nb: notifier block
301 * The notifier block callback should expect a "struct tp_module" data
322 * unregister_tracepoint_notifier - unregister tracepoint coming/going notifier
323 * @nb: notifier block
325 * The notifier block callback should expect a "struct tp_module" data
406 * Called the going notifier before checking for tracepoint_module_going()
455 pr_warning("Failed to register tracepoint module enter notifier\n"); init_tracepoints()
H A DMakefile11 notifier.o ksysfs.o cred.o reboot.o \
95 obj-$(CONFIG_USER_RETURN_NOTIFIER) += user-return-notifier.o
H A Dreboot.c78 * @nb: Info about notifier function to be called
93 * unregister_reboot_notifier - Unregister previously registered reboot notifier
97 * notifier function.
/linux-4.1.27/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
30 * fb_unregister_client - unregister a client notifier
31 * @nb: notifier block to callback on events
/linux-4.1.27/lib/
H A Dcpu-notifier-error-inject.c5 #include "notifier-error-inject.h"
9 MODULE_PARM_DESC(priority, "specify cpu notifier priority");
48 MODULE_DESCRIPTION("CPU notifier error injection module");
H A Dmemory-notifier-error-inject.c5 #include "notifier-error-inject.h"
9 MODULE_PARM_DESC(priority, "specify memory notifier priority");
46 MODULE_DESCRIPTION("memory notifier error injection module");
H A Dof-reconfig-notifier-error-inject.c5 #include "notifier-error-inject.h"
9 MODULE_PARM_DESC(priority, "specify OF reconfig notifier priority");
49 MODULE_DESCRIPTION("OF reconfig notifier error injection module");
H A Dpm-notifier-error-inject.c5 #include "notifier-error-inject.h"
9 MODULE_PARM_DESC(priority, "specify PM notifier priority");
47 MODULE_DESCRIPTION("PM notifier error injection module");
H A Dnotifier-error-inject.h3 #include <linux/notifier.h>
H A Dnotifier-error-inject.c3 #include "notifier-error-inject.h"
77 * notifier call chain is called with action->val, it will notifier_err_inject_init()
94 debugfs_create_dir("notifier-error-inject", NULL); err_inject_init()
H A DMakefile111 obj-$(CONFIG_NOTIFIER_ERROR_INJECTION) += notifier-error-inject.o
112 obj-$(CONFIG_CPU_NOTIFIER_ERROR_INJECT) += cpu-notifier-error-inject.o
113 obj-$(CONFIG_PM_NOTIFIER_ERROR_INJECT) += pm-notifier-error-inject.o
114 obj-$(CONFIG_MEMORY_NOTIFIER_ERROR_INJECT) += memory-notifier-error-inject.o
116 of-reconfig-notifier-error-inject.o
/linux-4.1.27/arch/parisc/include/asm/
H A Dmachdep.h4 #include <linux/notifier.h>
/linux-4.1.27/include/acpi/
H A Dhed.h13 #include <linux/notifier.h>
H A Dbutton.h4 #include <linux/notifier.h>
/linux-4.1.27/drivers/gpu/drm/exynos/
H A Dexynos_drm_gsc.h20 * FIMD output interface notifier callback.
21 * Mixer output interface notifier callback.
H A Dexynos_drm_fimc.h20 * FIMD output interface notifier callback.
/linux-4.1.27/drivers/usb/core/
H A Dnotify.c6 * notifier functions originally based on those in kernel/sys.c
14 #include <linux/notifier.h>
22 * usb_register_notify - register a notifier callback whenever a usb change happens
23 * @nb: pointer to the notifier block for the callback events.
34 * usb_unregister_notify - unregister a notifier callback
35 * @nb: pointer to the notifier block for the callback events.
/linux-4.1.27/include/media/
H A Dv4l2-async.h38 * probed, to a notifier->waiting list
65 * v4l2_async_notifier - v4l2_device notifier data
83 int (*bound)(struct v4l2_async_notifier *notifier,
86 int (*complete)(struct v4l2_async_notifier *notifier);
87 void (*unbind)(struct v4l2_async_notifier *notifier,
93 struct v4l2_async_notifier *notifier);
94 void v4l2_async_notifier_unregister(struct v4l2_async_notifier *notifier);
/linux-4.1.27/arch/mips/cavium-octeon/
H A Dcpu.c11 #include <linux/notifier.h>
38 return NOTIFY_BAD; /* Don't call default notifier */ cnmips_cu2_call()
41 return NOTIFY_OK; /* Let default notifier send signals */ cnmips_cu2_call()
/linux-4.1.27/include/net/
H A Dflowcache.h7 #include <linux/notifier.h>
/linux-4.1.27/drivers/edac/
H A Docteon_edac-pc.c30 struct notifier_block notifier; member in struct:co_cache_error
43 notifier); co_cache_error_event()
92 p->notifier.notifier_call = co_cache_error_event; co_cache_error_probe()
113 register_co_cache_error_notifier(&p->notifier); co_cache_error_probe()
127 unregister_co_cache_error_notifier(&p->notifier); co_cache_error_remove()
H A Dmce_amd.h4 #include <linux/notifier.h>
/linux-4.1.27/arch/powerpc/platforms/powernv/
H A Dopal-power.c14 #include <linux/notifier.h>
59 pr_err("%s: Can't register OPAL event notifier (%d)\n", opal_power_control_init()
H A Dopal-memory-errors.c97 * opal_memory_err_event - notifier handler that queues up the opal message
139 pr_err("%s: Can't register OPAL event notifier (%d)\n", opal_mem_err_init()
H A Dopal-hmi.c133 * opal_handle_hmi_event - notifier handler that queues up HMI events
181 pr_err("%s: Can't register OPAL event notifier (%d)\n", opal_hmi_handler_init()
/linux-4.1.27/arch/arm/include/asm/
H A Dthread_notify.h17 #include <linux/notifier.h>
41 * These are the reason codes for the thread notifier.
H A DbL_switcher.h32 * The notifier chain is called with the switcher activation lock held:
H A Dkprobes.h21 #include <linux/notifier.h>
/linux-4.1.27/include/linux/soc/ti/
H A Dknav_qmss.h41 * @KNAV_QUEUE_SET_NOTIFIER: Set a notifier callback to a queue handle.
42 * @KNAV_QUEUE_ENABLE_NOTIFY: Enable notifier callback for a queue handle.
43 * @KNAV_QUEUE_DISABLE_NOTIFY: Disable notifier callback for a queue handle.
55 /* Queue notifier callback prototype */
/linux-4.1.27/drivers/media/platform/xilinx/
H A Dxilinx-vipp.h30 * @notifier: V4L2 asynchronous subdevs notifier
41 struct v4l2_async_notifier notifier; member in struct:xvip_composite_device
H A Dxilinx-vipp.c289 static int xvip_graph_notify_complete(struct v4l2_async_notifier *notifier) xvip_graph_notify_complete() argument
292 container_of(notifier, struct xvip_composite_device, notifier); xvip_graph_notify_complete()
317 static int xvip_graph_notify_bound(struct v4l2_async_notifier *notifier, xvip_graph_notify_bound() argument
322 container_of(notifier, struct xvip_composite_device, notifier); xvip_graph_notify_bound()
493 v4l2_async_notifier_unregister(&xdev->notifier); xvip_graph_cleanup()
533 /* Register the subdevices notifier. */ xvip_graph_init()
546 xdev->notifier.subdevs = subdevs; xvip_graph_init()
547 xdev->notifier.num_subdevs = num_subdevs; xvip_graph_init()
548 xdev->notifier.bound = xvip_graph_notify_bound; xvip_graph_init()
549 xdev->notifier.complete = xvip_graph_notify_complete; xvip_graph_init()
551 ret = v4l2_async_notifier_register(&xdev->v4l2_dev, &xdev->notifier); xvip_graph_init()
553 dev_err(xdev->dev, "notifier registration failed\n"); xvip_graph_init()
/linux-4.1.27/arch/mips/loongson/loongson-3/
H A Dcop2-ex.c15 #include <linux/notifier.h>
53 return NOTIFY_STOP; /* Don't call default notifier */ loongson_cu2_call()
56 return NOTIFY_OK; /* Let default notifier send signals */ loongson_cu2_call()
/linux-4.1.27/arch/mips/netlogic/xlp/
H A Dcop2-ex.c14 #include <linux/notifier.h>
108 return NOTIFY_BAD; /* Don't call default notifier */ nlm_cu2_call()
111 return NOTIFY_OK; /* Let default notifier send signals */ nlm_cu2_call()
/linux-4.1.27/drivers/leds/trigger/
H A Dledtrig-backlight.c28 struct notifier_block notifier; member in struct:bl_trig_notifier
36 struct bl_trig_notifier, notifier); fb_notifier_callback()
120 n->notifier.notifier_call = fb_notifier_callback; bl_trig_activate()
122 ret = fb_register_client(&n->notifier); bl_trig_activate()
141 fb_unregister_client(&n->notifier); bl_trig_deactivate()
/linux-4.1.27/tools/testing/selftests/cpu-hotplug/
H A Dcpu-on-off-test.sh147 echo "Usage $0 [ -a ] [ -e errno ] [ -p notifier-priority ]"
210 # Test with cpu notifier error injection
214 NOTIFIER_ERR_INJECT_DIR=$DEBUGFS/notifier-error-inject/cpu
220 /sbin/modprobe -q -r cpu-notifier-error-inject
221 /sbin/modprobe -q cpu-notifier-error-inject priority=$priority
229 echo $msg cpu-notifier-error-inject module is not available >&2
269 /sbin/modprobe -q -r cpu-notifier-error-inject
/linux-4.1.27/tools/testing/selftests/memory-hotplug/
H A Dmem-on-off-test.sh126 echo "Usage $0 [ -e errno ] [ -p notifier-priority ] [ -r percent-of-memory-to-offline ]"
177 # Test with memory notifier error injection
181 NOTIFIER_ERR_INJECT_DIR=$DEBUGFS/notifier-error-inject/memory
187 /sbin/modprobe -q -r memory-notifier-error-inject
188 /sbin/modprobe -q memory-notifier-error-inject priority=$priority
196 echo $msg memory-notifier-error-inject module is not available >&2
238 /sbin/modprobe -q -r memory-notifier-error-inject
/linux-4.1.27/drivers/gpu/drm/radeon/
H A Dradeon_mn.c66 * Lazy destroys the notifier from a work item
97 * @mn: our notifier
100 * Shedule a work item to lazy destroy our notifier.
113 * @mn: our notifier
177 * radeon_mn_get - create notifier context
181 * Creates a notifier context for current->mm.
229 * radeon_mn_register - register a BO for notifier updates
234 * Registers an MMU notifier for the given BO at the specified address.
287 * radeon_mn_unregister - unregister a BO for notifier updates
291 * Remove any registration of MMU notifier updates from the buffer object.
H A Dradeon_acpi.c242 * to determine if a notifier is used and if so which one
244 * where n is specified in the result if a notifier is used.
400 /* We've handled the event, stop the notifier chain. The ACPI interface radeon_atif_handler()
652 * @nb: notifier block
687 * notifier chain (all asics).
785 * Unregisters with the acpi notifier chain (all asics).
/linux-4.1.27/drivers/input/keyboard/
H A Dadp5520-keys.c19 struct notifier_block notifier; member in struct:adp5520_keys
43 dev = container_of(nb, struct adp5520_keys, notifier); adp5520_keys_notifier()
162 dev->notifier.notifier_call = adp5520_keys_notifier; adp5520_keys_probe()
163 ret = adp5520_register_notifier(dev->master, &dev->notifier, adp5520_keys_probe()
166 dev_err(&pdev->dev, "failed to register notifier\n"); adp5520_keys_probe()
178 adp5520_unregister_notifier(dev->master, &dev->notifier, adp5520_keys_remove()
/linux-4.1.27/drivers/watchdog/
H A Dgpio_wdt.c15 #include <linux/notifier.h>
39 struct notifier_block notifier; member in struct:gpio_wdt_priv
133 notifier); gpio_wdt_notify_sys()
230 priv->notifier.notifier_call = gpio_wdt_notify_sys; gpio_wdt_probe()
231 ret = register_reboot_notifier(&priv->notifier); gpio_wdt_probe()
250 unregister_reboot_notifier(&priv->notifier); gpio_wdt_remove()
H A Dbcm47xx_wdt.c166 wdt = container_of(this, struct bcm47xx_wdt, notifier); bcm47xx_wdt_notify_sys()
217 wdt->notifier.notifier_call = &bcm47xx_wdt_notify_sys; bcm47xx_wdt_probe()
219 ret = register_reboot_notifier(&wdt->notifier); bcm47xx_wdt_probe()
241 unregister_reboot_notifier(&wdt->notifier); bcm47xx_wdt_probe()
257 unregister_reboot_notifier(&wdt->notifier); bcm47xx_wdt_remove()
H A Dmoxart_wdt.c18 #include <linux/notifier.h>
148 dev_err(dev, "cannot register restart notifier (err=%d)\n", moxart_wdt_probe()
H A Dwdrtas.c36 #include <linux/notifier.h>
463 * wdrtas_reboot - reboot notifier function
464 * @nb: notifier block structure
600 * registers the file handlers and the reboot notifier
611 pr_err("could not register reboot notifier. Terminating watchdog code.\n"); wdrtas_init()
627 * unregisters the file handlers and the reboot notifier
H A Dindydog.c25 #include <linux/notifier.h>
179 pr_err("cannot register reboot notifier (err=%d)\n", ret); watchdog_init()
H A Dsbc_epx_c3.c26 #include <linux/notifier.h>
186 pr_err("cannot register reboot notifier (err=%d)\n", ret); watchdog_init()
H A Dscx200_wdt.c27 #include <linux/notifier.h>
238 pr_err("unable to register reboot notifier\n"); scx200_wdt_init()
H A Dsoftdog.c46 #include <linux/notifier.h>
181 pr_err("cannot register reboot notifier (err=%d)\n", ret); watchdog_init()
H A Deurotechwdt.c58 #include <linux/notifier.h>
349 * @this: our notifier block
353 * Our notifier is called on system shutdowns. We want to turn the card
444 pr_err("can't register reboot notifier (err=%d)\n", ret); eurwdt_init()
H A Dalim1535_wdt.c18 #include <linux/notifier.h>
281 * ali_notify_sys - System down notifier
411 pr_err("cannot register reboot notifier (err=%d)\n", ret); watchdog_init()
H A Dcadence_wdt.c75 * @cdns_wdt_notifier: notifier structure
286 * @this: handle to notifier block
291 * This notifier is invoked whenever the system reboot or shutdown occur
392 dev_err(&pdev->dev, "cannot register reboot notifier err=%d)\n", cdns_wdt_probe()
H A Dpc87413_wdt.c29 #include <linux/notifier.h>
453 * @this: our notifier block
457 * Our notifier is called on system shutdowns. We want to turn the card
516 pr_err("cannot register reboot notifier (err=%d)\n", ret); pc87413_init()
H A Dwdt.c45 #include <linux/notifier.h>
502 * @this: our notifier block
506 * Our notifier is called on system shutdowns. We want to turn the card
622 pr_err("cannot register reboot notifier (err=%d)\n", ret); wdt_init()
H A Dpnx833x_wdt.c30 #include <linux/notifier.h>
249 pr_err("cannot register reboot notifier (err=%d)\n", ret); watchdog_init()
H A Dsbc7240_wdt.c28 #include <linux/notifier.h>
281 pr_err("cannot register reboot notifier (err=%d)\n", rc); sbc7240_wdt_init()
H A Dsbc8360.c47 #include <linux/notifier.h>
355 pr_err("Failed to register reboot notifier\n"); sbc8360_init()
H A Dwafer5823wdt.c37 #include <linux/notifier.h>
284 pr_err("cannot register reboot notifier (err=%d)\n", ret); wafwdt_init()
/linux-4.1.27/arch/tile/include/asm/
H A Dkdebug.h18 #include <linux/notifier.h>
/linux-4.1.27/arch/x86/include/asm/
H A Dkdebug.h4 #include <linux/notifier.h>
H A Duprobes.h26 #include <linux/notifier.h>
H A Dintel_scu_ipc.h4 #include <linux/notifier.h>
H A Di387.h31 * If you enable preemption after __kernel_fpu_begin(), preempt notifier
/linux-4.1.27/arch/s390/include/asm/
H A Duprobes.h11 #include <linux/notifier.h>
H A Dccwgroup.h13 * @ungroup_work: work to be done when a ccwgroup notifier has action
/linux-4.1.27/drivers/xen/
H A Dcpu_hotplug.c3 #include <linux/notifier.h>
80 static int setup_cpu_watcher(struct notifier_block *notifier, setup_cpu_watcher() argument
/linux-4.1.27/drivers/base/power/
H A Dqos.c483 * @notifier: notifier block managed by caller.
485 * Will register the notifier into a notification chain that gets called
491 int dev_pm_qos_add_notifier(struct device *dev, struct notifier_block *notifier) dev_pm_qos_add_notifier() argument
504 notifier); dev_pm_qos_add_notifier()
516 * @notifier: notifier block to be removed.
518 * Will remove the notifier from the notification chain that gets called
522 struct notifier_block *notifier) dev_pm_qos_remove_notifier()
531 notifier); dev_pm_qos_remove_notifier()
542 * @notifier: notifier block managed by caller.
544 * Will register the notifier into a notification chain that gets called
547 int dev_pm_qos_add_global_notifier(struct notifier_block *notifier) dev_pm_qos_add_global_notifier() argument
549 return blocking_notifier_chain_register(&dev_pm_notifiers, notifier); dev_pm_qos_add_global_notifier()
557 * @notifier: notifier block to be removed.
559 * Will remove the notifier from the notification chain that gets called
562 int dev_pm_qos_remove_global_notifier(struct notifier_block *notifier) dev_pm_qos_remove_global_notifier() argument
564 return blocking_notifier_chain_unregister(&dev_pm_notifiers, notifier); dev_pm_qos_remove_global_notifier()
521 dev_pm_qos_remove_notifier(struct device *dev, struct notifier_block *notifier) dev_pm_qos_remove_notifier() argument
/linux-4.1.27/drivers/usb/phy/
H A Dphy-ab8500-usb.c29 #include <linux/notifier.h>
439 atomic_notifier_call_chain(&ab->phy.notifier, ab9540_usb_link_status_update()
461 atomic_notifier_call_chain(&ab->phy.notifier, ab9540_usb_link_status_update()
468 atomic_notifier_call_chain(&ab->phy.notifier, ab9540_usb_link_status_update()
484 atomic_notifier_call_chain(&ab->phy.notifier, ab9540_usb_link_status_update()
490 atomic_notifier_call_chain(&ab->phy.notifier, ab9540_usb_link_status_update()
497 atomic_notifier_call_chain(&ab->phy.notifier, ab9540_usb_link_status_update()
504 atomic_notifier_call_chain(&ab->phy.notifier, ab9540_usb_link_status_update()
516 atomic_notifier_call_chain(&ab->phy.notifier, ab9540_usb_link_status_update()
522 atomic_notifier_call_chain(&ab->phy.notifier, ab9540_usb_link_status_update()
525 atomic_notifier_call_chain(&ab->phy.notifier, ab9540_usb_link_status_update()
603 atomic_notifier_call_chain(&ab->phy.notifier, ab8540_usb_link_status_update()
619 atomic_notifier_call_chain(&ab->phy.notifier, ab8540_usb_link_status_update()
625 atomic_notifier_call_chain(&ab->phy.notifier, ab8540_usb_link_status_update()
632 atomic_notifier_call_chain(&ab->phy.notifier, ab8540_usb_link_status_update()
643 atomic_notifier_call_chain(&ab->phy.notifier, ab8540_usb_link_status_update()
649 atomic_notifier_call_chain(&ab->phy.notifier, ab8540_usb_link_status_update()
652 atomic_notifier_call_chain(&ab->phy.notifier, ab8540_usb_link_status_update()
716 atomic_notifier_call_chain(&ab->phy.notifier, ab8505_usb_link_status_update()
731 atomic_notifier_call_chain(&ab->phy.notifier, ab8505_usb_link_status_update()
737 atomic_notifier_call_chain(&ab->phy.notifier, ab8505_usb_link_status_update()
744 atomic_notifier_call_chain(&ab->phy.notifier, ab8505_usb_link_status_update()
806 atomic_notifier_call_chain(&ab->phy.notifier, ab8500_usb_link_status_update()
820 atomic_notifier_call_chain(&ab->phy.notifier, ab8500_usb_link_status_update()
826 atomic_notifier_call_chain(&ab->phy.notifier, ab8500_usb_link_status_update()
833 atomic_notifier_call_chain(&ab->phy.notifier, ab8500_usb_link_status_update()
912 atomic_notifier_call_chain(&ab->phy.notifier, ab8500_usb_disconnect_irq()
919 atomic_notifier_call_chain(&ab->phy.notifier, ab8500_usb_disconnect_irq()
922 atomic_notifier_call_chain(&ab->phy.notifier, ab8500_usb_disconnect_irq()
1052 atomic_notifier_call_chain(&ab->phy.notifier, ab8500_usb_set_power()
H A Dphy-generic.c126 atomic_notifier_call_chain(&nop->phy.notifier, status, nop_gpio_vbus_thread()
136 atomic_notifier_call_chain(&nop->phy.notifier, status, nop_gpio_vbus_thread()
/linux-4.1.27/drivers/staging/nvec/
H A Dnvec_power.c28 struct notifier_block notifier; member in struct:nvec_power
92 container_of(nb, struct nvec_power, notifier); nvec_power_notifier()
128 container_of(nb, struct nvec_power, notifier); nvec_power_bat_notifier()
394 power->notifier.notifier_call = nvec_power_notifier; nvec_power_probe()
403 power->notifier.notifier_call = nvec_power_bat_notifier; nvec_power_probe()
409 nvec_register_notifier(nvec, &power->notifier, NVEC_SYS); nvec_power_probe()
424 nvec_unregister_notifier(power->nvec, &power->notifier); nvec_power_remove()
H A Dnvec_kbd.c37 struct notifier_block notifier; member in struct:nvec_keys
148 keys_dev.notifier.notifier_call = nvec_keys_notifier; nvec_kbd_probe()
150 nvec_register_notifier(nvec, &keys_dev.notifier, 0); nvec_kbd_probe()
174 nvec_unregister_notifier(nvec, &keys_dev.notifier); nvec_kbd_remove()
H A Dnvec_ps2.c47 struct notifier_block notifier; member in struct:nvec_ps2
124 ps2_dev.notifier.notifier_call = nvec_ps2_notifier; nvec_mouse_probe()
126 nvec_register_notifier(nvec, &ps2_dev.notifier, 0); nvec_mouse_probe()
142 nvec_unregister_notifier(nvec, &ps2_dev.notifier); nvec_mouse_remove()
H A Dnvec.c35 #include <linux/notifier.h>
106 * nvec_register_notifier - Register a notifier with nvec
108 * @nb: The notifier block to register
110 * Registers a notifier with @nvec. The notifier will be added to an atomic
111 * notifier chain that is called for all received messages except those that
122 * nvec_unregister_notifier - Unregister a notifier with nvec
124 * @nb: The notifier block to unregister
126 * Unregisters a notifier with @nvec. The notifier will be removed from the
127 * atomic notifier chain.
136 * nvec_status_notifier - The final notifier
138 * Prints a message about control events not handled in the notifier
H A Dnvec.h25 #include <linux/notifier.h>
119 * @nvec_status_notifier: Internal notifier (see nvec_status_notifier())
/linux-4.1.27/arch/mips/kernel/
H A Dvpe-cmp.c28 struct vpe_notifications *notifier; store_kill() local
30 list_for_each_entry(notifier, &vpe->notify, list) store_kill()
31 notifier->stop(aprp_cpu_index()); store_kill()
H A Dvpe-mt.c29 struct vpe_notifications *notifier; vpe_run() local
141 list_for_each_entry(notifier, &v->notify, list) vpe_run()
142 notifier->start(VPE_MODULE_MINOR); vpe_run()
265 struct vpe_notifications *notifier; store_kill() local
267 list_for_each_entry(notifier, &vpe->notify, list) store_kill()
268 notifier->stop(aprp_cpu_index()); store_kill()
/linux-4.1.27/arch/sh/kernel/
H A Dnmi_debug.c10 #include <linux/notifier.h>
/linux-4.1.27/arch/arm/mach-omap2/
H A Dcpuidle44xx.c116 * Call idle CPU PM enter notifier chain so that omap_enter_idle_coupled()
126 * Call idle CPU cluster PM enter notifier chain omap_enter_idle_coupled()
158 * Call idle CPU PM exit notifier chain to restore omap_enter_idle_coupled()
164 * Call idle CPU cluster PM exit notifier chain omap_enter_idle_coupled()
H A Dcpuidle34xx.c127 * Call idle CPU PM enter notifier chain so that omap3_enter_idle()
137 * Call idle CPU PM enter notifier chain to restore omap3_enter_idle()
/linux-4.1.27/net/dcb/
H A Ddcbevent.c20 #include <linux/notifier.h>
/linux-4.1.27/drivers/cpufreq/
H A Dhighbank-cpufreq.c8 * This driver provides the clk notifier callbacks that are used when
94 pr_err("failed to register clk notifier: %d\n", ret); hb_cpufreq_driver_init()
/linux-4.1.27/drivers/power/reset/
H A Dsyscon-reboot.c19 #include <linux/notifier.h>
74 dev_err(dev, "can't register restart notifier (err=%d)\n", err); syscon_reboot_probe()
H A Dhisi-reboot.c17 #include <linux/notifier.h>
H A Drmobile-reset.c13 #include <linux/notifier.h>
H A Daxxia-reset.c22 #include <linux/notifier.h>
H A Dsyscon-poweroff.c21 #include <linux/notifier.h>
H A Dbrcmstb-reboot.c20 #include <linux/notifier.h>
H A Dkeystone-reset.c15 #include <linux/notifier.h>
H A Dvexpress-poweroff.c15 #include <linux/notifier.h>
H A Dxgene-reboot.c29 #include <linux/notifier.h>
/linux-4.1.27/arch/sh/include/asm/
H A Dsuspend.h5 #include <linux/notifier.h>
22 /* notifier chains for pre/post sleep hooks */ sh_mobile_setup_cpuidle()
/linux-4.1.27/net/ipv6/netfilter/
H A Dnf_nat_masquerade_ipv6.c99 /* check if the notifier is already set */ nf_nat_masquerade_ipv6_register_notifier()
110 /* check if the notifier still has clients */ nf_nat_masquerade_ipv6_unregister_notifier()
/linux-4.1.27/net/switchdev/
H A Dswitchdev.c16 #include <linux/notifier.h>
71 * register_netdev_switch_notifier - Register notifier
74 * Register switch device notifier. This should be used by code
90 * unregister_netdev_switch_notifier - Unregister notifier
93 * Unregister switch device notifier.
109 * @val: value passed unmodified to notifier function
111 * @info: notifier information data
113 * Call all network notifier blocks. This should be called by driver
/linux-4.1.27/net/netfilter/
H A Dxt_TEE.c18 #include <linux/notifier.h>
34 struct notifier_block notifier; member in struct:xt_tee_priv
206 priv = container_of(this, struct xt_tee_priv, notifier); tee_netdev_event()
247 priv->notifier.notifier_call = tee_netdev_event; tee_tg_check()
250 register_netdevice_notifier(&priv->notifier); tee_tg_check()
262 unregister_netdevice_notifier(&info->priv->notifier); tee_tg_destroy()
/linux-4.1.27/sound/soc/
H A Dsoc-jack.c49 BLOCKING_INIT_NOTIFIER_HEAD(&jack->notifier); snd_soc_card_jack_new()
113 blocking_notifier_call_chain(&jack->notifier, jack->status, jack); snd_soc_jack_report()
213 * snd_soc_jack_notifier_register - Register a notifier for jack status
220 * callback from the notifier, this is intended to support
227 blocking_notifier_chain_register(&jack->notifier, nb); snd_soc_jack_notifier_register()
232 * snd_soc_jack_notifier_unregister - Unregister a notifier for jack status
242 blocking_notifier_chain_unregister(&jack->notifier, nb); snd_soc_jack_notifier_unregister()
/linux-4.1.27/drivers/input/touchscreen/
H A Dda9034-ts.c57 struct notifier_block notifier; member in struct:da9034_touch
238 container_of(nb, struct da9034_touch, notifier); da9034_touch_notifier()
254 ret = da903x_register_notifier(touch->da9034_dev, &touch->notifier, da9034_touch_open()
284 da903x_unregister_notifier(touch->da9034_dev, &touch->notifier, da9034_touch_close()
325 touch->notifier.notifier_call = da9034_touch_notifier; da9034_touch_probe()
/linux-4.1.27/arch/arm/kvm/
H A Dtrace.h192 TP_printk("mmu notifier unmap hva: %#08lx", __entry->hva)
209 TP_printk("mmu notifier unmap range: %#08lx -- %#08lx",
225 TP_printk("mmu notifier set pte hva: %#08lx", __entry->hva)
242 TP_printk("mmu notifier age hva: %#08lx -- %#08lx",
258 TP_printk("mmu notifier test age hva: %#08lx", __entry->hva)
/linux-4.1.27/include/rdma/
H A Dib_umem_odp.h62 * also protects access to the mmu notifier counters.
67 /* When false, use the notifier counter in the ucontext struct. */
72 /* A linked list of umems that don't have private mmu notifier
/linux-4.1.27/drivers/net/can/
H A Dled.c102 /* NETDEV rename notifier to rename the associated led triggers too */ can_led_notifier()
130 /* notifier block for netdevice event */
/linux-4.1.27/arch/mips/lasat/
H A Dsetup.c39 #include <linux/notifier.h>
137 /* Set up panic notifier */ plat_mem_setup()
/linux-4.1.27/net/ipv4/netfilter/
H A Dnf_nat_masquerade_ipv4.c130 /* check if the notifier was already set */ nf_nat_masquerade_ipv4_register_notifier()
143 /* check if the notifier still has clients */ nf_nat_masquerade_ipv4_unregister_notifier()
/linux-4.1.27/drivers/misc/vmw_vmci/
H A Dvmci_context.c430 struct vmci_handle_list *notifier, *tmp; ctx_free_ctx() local
472 list_for_each_entry_safe(notifier, tmp, ctx_free_ctx()
474 list_del(&notifier->node); ctx_free_ctx()
475 kfree(notifier); ctx_free_ctx()
602 struct vmci_handle_list *notifier, *n; vmci_ctx_add_notification() local
622 notifier = kmalloc(sizeof(struct vmci_handle_list), GFP_KERNEL); vmci_ctx_add_notification()
623 if (!notifier) { vmci_ctx_add_notification()
628 INIT_LIST_HEAD(&notifier->node); vmci_ctx_add_notification()
629 notifier->handle = vmci_make_handle(remote_cid, VMCI_EVENT_HANDLER); vmci_ctx_add_notification()
634 if (vmci_handle_is_equal(n->handle, notifier->handle)) { vmci_ctx_add_notification()
641 kfree(notifier); vmci_ctx_add_notification()
644 list_add_tail_rcu(&notifier->node, &context->notifier_list); vmci_ctx_add_notification()
663 struct vmci_handle_list *notifier, *tmp; vmci_ctx_remove_notification() local
674 list_for_each_entry_safe(notifier, tmp, vmci_ctx_remove_notification()
676 if (vmci_handle_is_equal(notifier->handle, handle)) { vmci_ctx_remove_notification()
677 list_del_rcu(&notifier->node); vmci_ctx_remove_notification()
687 kfree(notifier); vmci_ctx_remove_notification()
/linux-4.1.27/drivers/iommu/
H A Diommu.c30 #include <linux/notifier.h>
49 struct blocking_notifier_head notifier; member in struct:iommu_group
171 BLOCKING_INIT_NOTIFIER_HEAD(&group->notifier); iommu_group_alloc()
371 blocking_notifier_call_chain(&group->notifier, iommu_group_add_device()
392 blocking_notifier_call_chain(&group->notifier, iommu_group_remove_device()
482 * iommu_group_register_notifier - Register a notifier for group changes
484 * @nb: notifier block to signal
487 * See include/linux/iommu.h for actions sent via this notifier. Caller
488 * should hold a reference to the group throughout notifier registration.
493 return blocking_notifier_chain_register(&group->notifier, nb); iommu_group_register_notifier()
498 * iommu_group_unregister_notifier - Unregister a notifier
500 * @nb: notifier block to signal
502 * Unregister a previously registered group notifier block.
507 return blocking_notifier_chain_unregister(&group->notifier, nb); iommu_group_unregister_notifier()
759 * result in ADD/DEL notifiers to group->notifier iommu_bus_notifier()
795 blocking_notifier_call_chain(&group->notifier, iommu_bus_notifier()
/linux-4.1.27/drivers/soc/ti/
H A Dknav_qmss.h161 * notifies: notifier counts
249 * @notify_needed: notifier needed based on queue type
275 * @notifier_fn: notifier function
276 * @notifier_fn_arg: notifier function argument
/linux-4.1.27/drivers/staging/olpc_dcon/
H A Dolpc_dcon.h4 #include <linux/notifier.h>
/linux-4.1.27/drivers/oprofile/
H A Dtimer_int.c11 #include <linux/notifier.h>
/linux-4.1.27/arch/xtensa/platforms/iss/
H A Dsetup.c30 #include <linux/notifier.h>
/linux-4.1.27/arch/sparc/kernel/
H A Dsstate.c7 #include <linux/notifier.h>
/linux-4.1.27/arch/sparc/oprofile/
H A Dinit.c17 #include <linux/notifier.h>
/linux-4.1.27/drivers/thermal/
H A Duser_space.c2 * user_space.c - A simple user space Thermal events notifier
H A Dcpu_cooling.c171 * cpufreq_thermal_notifier - notifier callback for cpufreq policy change.
391 /* Register the notifier for first cpufreq cooling device */ __cpufreq_cooling_register()
470 /* Unregister the notifier for the last cpufreq cooling device */ cpufreq_cooling_unregister()
/linux-4.1.27/include/linux/usb/
H A Dphy.h12 #include <linux/notifier.h>
89 struct atomic_notifier_head notifier; member in struct:usb_phy
309 return atomic_notifier_chain_register(&x->notifier, nb); usb_register_notifier()
315 atomic_notifier_chain_unregister(&x->notifier, nb); usb_unregister_notifier()
/linux-4.1.27/include/uapi/linux/
H A Dfcntl.h54 #define DN_MULTISHOT 0x80000000 /* Don't remove notifier */
/linux-4.1.27/arch/powerpc/platforms/cell/
H A Dspu_notify.c25 #include <linux/notifier.h>
/linux-4.1.27/arch/powerpc/include/asm/
H A Dio_event_irq.h14 #include <linux/notifier.h>
H A Duprobes.h25 #include <linux/notifier.h>
/linux-4.1.27/arch/arm64/kernel/
H A Djump_label.c48 * will call arch_jump_label_transform from a module notifier if the arch_jump_label_transform_static()
H A Dsuspend.c41 * debug exceptions. Code cannot be run from a CPU PM notifier since by the
42 * time the notifier runs debug exceptions might have been enabled already,
/linux-4.1.27/arch/avr32/kernel/
H A Dnmi_debug.c10 #include <linux/notifier.h>
/linux-4.1.27/arch/arm/mach-shmobile/
H A Dplatsmp-scu.c50 /* Use CPU notifier for reset vector control */ shmobile_smp_scu_prepare_cpus()
/linux-4.1.27/mm/
H A Dpage_isolation.c32 * notifier chain is used by balloon drivers to return the set_migratetype_isolate()
36 * Later, for example, when memory hotplug notifier runs, these set_migratetype_isolate()
38 * by the balloon driver through the memory notifier chain. set_migratetype_isolate()
54 * removable-by-driver pages reported by notifier, we'll fail. set_migratetype_isolate()
H A Dmmu_notifier.c268 * We can't race against any other mmu notifier method either do_mmu_notifier_register()
293 * unregister the notifier. mm_count is automatically pinned to allow
327 * calling mmu_notifier_unregister. ->release or any other notifier
/linux-4.1.27/drivers/tty/vt/
H A Dvc_screen.c40 #include <linux/notifier.h>
54 struct notifier_block notifier; member in struct:vcs_poll_data
67 container_of(nb, struct vcs_poll_data, notifier); vcs_notifier()
89 unregister_vt_notifier(&poll->notifier); vcs_poll_data_free()
106 poll->notifier.notifier_call = vcs_notifier; vcs_poll_data_get()
107 if (register_vt_notifier(&poll->notifier) != 0) { vcs_poll_data_get()
118 * memory with a dangling notifier callback. vcs_poll_data_get()
/linux-4.1.27/drivers/video/backlight/
H A Dbacklight.c14 #include <linux/notifier.h>
452 * @nb: notifier block with the notifier to call on backlight (un)registration
456 * Register a notifier to get notified when backlight devices get registered
466 * backlight_unregister_notifier - unregister a backlight notifier
467 * @nb: notifier block to unregister
471 * Register a notifier to get notified when backlight devices get registered
/linux-4.1.27/drivers/infiniband/core/
H A Dumem_odp.c81 /* Account for a new mmu notifier in an ib_ucontext. */ ib_ucontext_notifier_start_account()
87 /* Account for a terminating mmu notifier in an ib_ucontext.
307 * Note that at this point, no MMU notifier is running ib_umem_odp_get()
330 * Note that doing an mmput can cause a notifier for the relevant mm. ib_umem_odp_get()
331 * If the notifier is called while we hold the umem_rwsem, this will ib_umem_odp_get()
389 * The process is already dead, notifier were removed ib_umem_odp_release()
397 * The process' mm is already dead, notifier were ib_umem_odp_release()
451 * handle case of a racing notifier. This check also allows us to bail ib_umem_odp_map_dma_single_page()
452 * early if we have a notifier running in parallel with us. ib_umem_odp_map_dma_single_page()
506 * An -EAGAIN error code is returned when a concurrent mmu notifier prevents
/linux-4.1.27/kernel/power/
H A Dqos.c551 * @notifier: notifier block managed by caller.
553 * will register the notifier into a notification chain that gets called
556 int pm_qos_add_notifier(int pm_qos_class, struct notifier_block *notifier) pm_qos_add_notifier() argument
562 notifier); pm_qos_add_notifier()
571 * @notifier: notifier block to be removed.
573 * will remove the notifier from the notification chain that gets called
576 int pm_qos_remove_notifier(int pm_qos_class, struct notifier_block *notifier) pm_qos_remove_notifier() argument
582 notifier); pm_qos_remove_notifier()
/linux-4.1.27/virt/kvm/
H A Deventfd.c53 * trigger. On acknowledgement through the irq ack notifier, the
66 struct kvm_irq_ack_notifier notifier; member in struct:_irqfd_resampler
129 resampler = container_of(kian, struct _irqfd_resampler, notifier); irqfd_resampler_ack()
133 resampler->notifier.gsi, 0, false); irqfd_resampler_ack()
156 kvm_unregister_irq_ack_notifier(kvm, &resampler->notifier); irqfd_resampler_shutdown()
158 resampler->notifier.gsi, 0, false); irqfd_resampler_shutdown()
358 if (resampler->notifier.gsi == irqfd->gsi) { kvm_irqfd_assign()
374 resampler->notifier.gsi = irqfd->gsi; kvm_irqfd_assign()
375 resampler->notifier.irq_acked = irqfd_resampler_ack; kvm_irqfd_assign()
380 &resampler->notifier); kvm_irqfd_assign()
/linux-4.1.27/drivers/media/platform/soc_camera/
H A Dsoc_camera.c64 struct v4l2_async_notifier notifier; member in struct:soc_camera_async_client
1430 * V4L2 asynchronous notifier callbacks. They are all called under a v4l2-async
1432 * events. Until notifier->complete() (soc_camera_async_complete()) is called,
1437 static int soc_camera_async_bound(struct v4l2_async_notifier *notifier, soc_camera_async_bound() argument
1441 struct soc_camera_async_client *sasc = container_of(notifier, soc_camera_async_bound()
1442 struct soc_camera_async_client, notifier); soc_camera_async_bound()
1470 static void soc_camera_async_unbind(struct v4l2_async_notifier *notifier, soc_camera_async_unbind() argument
1474 struct soc_camera_async_client *sasc = container_of(notifier, soc_camera_async_unbind()
1475 struct soc_camera_async_client, notifier); soc_camera_async_unbind()
1484 static int soc_camera_async_complete(struct v4l2_async_notifier *notifier) soc_camera_async_complete() argument
1486 struct soc_camera_async_client *sasc = container_of(notifier, soc_camera_async_complete()
1487 struct soc_camera_async_client, notifier); soc_camera_async_complete()
1548 sasc->notifier.subdevs = asd; scan_async_group()
1549 sasc->notifier.num_subdevs = size; scan_async_group()
1550 sasc->notifier.bound = soc_camera_async_bound; scan_async_group()
1551 sasc->notifier.unbind = soc_camera_async_unbind; scan_async_group()
1552 sasc->notifier.complete = soc_camera_async_complete; scan_async_group()
1566 ret = v4l2_async_notifier_register(&ici->v4l2_dev, &sasc->notifier); scan_async_group()
1647 sasc->notifier.subdevs = &info->subdev; soc_of_bind()
1648 sasc->notifier.num_subdevs = 1; soc_of_bind()
1649 sasc->notifier.bound = soc_camera_async_bound; soc_of_bind()
1650 sasc->notifier.unbind = soc_camera_async_unbind; soc_of_bind()
1651 sasc->notifier.complete = soc_camera_async_complete; soc_of_bind()
1671 ret = v4l2_async_notifier_register(&ici->v4l2_dev, &sasc->notifier); soc_of_bind()
2021 v4l2_async_notifier_unregister(&sasc->notifier); soc_camera_host_unregister()
/linux-4.1.27/arch/powerpc/platforms/pseries/
H A Dcmm.c54 * The priority level tries to ensure that this notifier is called as
224 * cmm_oom_notify - OOM notifier
225 * @self: notifier block struct
494 * cmm_memory_isolate_cb - Handle memory isolation notifier calls
495 * @self: notifier block struct
500 * NOTIFY_OK or notifier error based on subfunction return value
600 * cmm_memory_cb - Handle memory hotplug notifier calls
601 * @self: notifier block struct
606 * NOTIFY_OK or notifier error based on subfunction return value
/linux-4.1.27/net/rds/
H A Dsend.c455 struct rds_notifier *notifier; rds_rdma_send_complete() local
463 notifier = ro->op_notifier; rds_rdma_send_complete()
467 notifier->n_status = status; rds_rdma_send_complete()
469 list_add_tail(&notifier->n_list, &rs->rs_notify_queue); rds_rdma_send_complete()
491 struct rds_notifier *notifier; rds_atomic_send_complete() local
499 notifier = ao->op_notifier; rds_atomic_send_complete()
503 notifier->n_status = status; rds_atomic_send_complete()
505 list_add_tail(&notifier->n_list, &rs->rs_notify_queue); rds_atomic_send_complete()
523 * socket, socket lock) and can just move the notifier.
634 struct rds_notifier *notifier; rds_send_remove_from_sock() local
641 notifier = ro->op_notifier; rds_send_remove_from_sock()
642 list_add_tail(&notifier->n_list, rds_send_remove_from_sock()
644 if (!notifier->n_status) rds_send_remove_from_sock()
645 notifier->n_status = status; rds_send_remove_from_sock()
H A Drecv.c298 struct rds_notifier *notifier; rds_notify_queue_get() local
321 notifier = list_entry(rs->rs_notify_queue.next, rds_notify_queue_get()
323 list_move(&notifier->n_list, &copy); rds_notify_queue_get()
332 notifier = list_entry(copy.next, struct rds_notifier, n_list); rds_notify_queue_get()
335 cmsg.user_token = notifier->n_user_token; rds_notify_queue_get()
336 cmsg.status = notifier->n_status; rds_notify_queue_get()
344 list_del_init(&notifier->n_list); rds_notify_queue_get()
345 kfree(notifier); rds_notify_queue_get()
/linux-4.1.27/drivers/clk/samsung/
H A Dclk-exynos5440.c18 #include <linux/notifier.h>
110 * Exynos5440 Clock restart notifier, handles restart functionality
/linux-4.1.27/drivers/char/
H A Dbfin-otp.c237 * Registers the device and notifier handler. Actual device
260 * Unregisters the device and notifier handler. Actual device
/linux-4.1.27/drivers/base/
H A Dbase.h1 #include <linux/notifier.h>
14 * @bus_notifier - the bus notifier list for anything that cares about things
/linux-4.1.27/arch/arm/mach-omap1/
H A Dboard-voiceblue.c23 #include <linux/notifier.h>
185 /* Setup panic notifier */ voiceblue_setup()
/linux-4.1.27/drivers/gpu/drm/amd/amdkfd/
H A Dkfd_process.c28 #include <linux/notifier.h>
235 /* In case our notifier is called before IOMMU notifier */ kfd_process_notifier_release()
277 /* register notifier */ create_process()
/linux-4.1.27/drivers/clk/rockchip/
H A Dclk-cpu.c47 * @clk_nb: clock notifier registered for changes in clock speed of the
211 * This clock notifier is called when the frequency of the parent clock
212 * of cpuclk is to be changed. This notifier handles the setting up all
297 pr_err("%s: failed to register clock notifier for %s\n", rockchip_clk_register_cpuclk()
/linux-4.1.27/arch/powerpc/platforms/512x/
H A Dpdm360ng.c31 #include <linux/notifier.h>
/linux-4.1.27/arch/s390/kernel/
H A Didle.c12 #include <linux/notifier.h>
/linux-4.1.27/arch/parisc/kernel/
H A Dpdc_chassis.c36 #include <linux/notifier.h>
148 /* initialize panic notifier chain */ parisc_pdc_chassis_init()
152 /* initialize reboot notifier chain */ parisc_pdc_chassis_init()
/linux-4.1.27/include/linux/mfd/
H A Ddbx500-prcmu.h12 #include <linux/notifier.h>
617 struct notifier_block *notifier);
619 struct notifier_block *notifier);
654 struct notifier_block *notifier) prcmu_qos_add_notifier()
659 struct notifier_block *notifier) prcmu_qos_remove_notifier()
653 prcmu_qos_add_notifier(int prcmu_qos_class, struct notifier_block *notifier) prcmu_qos_add_notifier() argument
658 prcmu_qos_remove_notifier(int prcmu_qos_class, struct notifier_block *notifier) prcmu_qos_remove_notifier() argument
/linux-4.1.27/drivers/media/platform/omap3isp/
H A Disp.c2005 v4l2_async_notifier_unregister(&isp->notifier); isp_register_entities()
2221 v4l2_async_notifier_unregister(&isp->notifier); isp_remove()
2315 struct v4l2_async_notifier *notifier) isp_of_parse_nodes()
2319 notifier->subdevs = devm_kcalloc( isp_of_parse_nodes()
2320 dev, ISP_MAX_SUBDEVS, sizeof(*notifier->subdevs), GFP_KERNEL); isp_of_parse_nodes()
2321 if (!notifier->subdevs) isp_of_parse_nodes()
2324 while (notifier->num_subdevs < ISP_MAX_SUBDEVS && isp_of_parse_nodes()
2334 notifier->subdevs[notifier->num_subdevs] = &isd->asd; isp_of_parse_nodes()
2349 notifier->num_subdevs++; isp_of_parse_nodes()
2352 return notifier->num_subdevs; isp_of_parse_nodes()
2360 notifier); isp_subdev_notifier_bound()
2378 notifier); isp_subdev_notifier_complete()
2423 ret = isp_of_parse_nodes(&pdev->dev, &isp->notifier); isp_probe()
2427 &isp->notifier); isp_probe()
2560 isp->notifier.bound = isp_subdev_notifier_bound; isp_probe()
2561 isp->notifier.complete = isp_subdev_notifier_complete; isp_probe()
2314 isp_of_parse_nodes(struct device *dev, struct v4l2_async_notifier *notifier) isp_of_parse_nodes() argument
/linux-4.1.27/net/can/
H A Draw.c87 struct notifier_block notifier; member in struct:raw_sock
267 struct raw_sock *ro = container_of(nb, struct raw_sock, notifier); raw_notifier()
334 /* set notifier */ raw_init()
335 ro->notifier.notifier_call = raw_notifier; raw_init()
337 register_netdevice_notifier(&ro->notifier); raw_init()
352 unregister_netdevice_notifier(&ro->notifier); raw_release()
/linux-4.1.27/drivers/dca/
H A Ddca-core.c27 #include <linux/notifier.h>
442 * dca_register_notify - register a client's notifier callback
451 * dca_unregister_notify - remove a client's notifier callback
/linux-4.1.27/drivers/media/platform/davinci/
H A Dvpif_capture.h118 struct v4l2_async_notifier notifier; member in struct:vpif_device
H A Dvpif_display.h123 struct v4l2_async_notifier notifier; member in struct:vpif_device
H A Dvpif_display.c1115 static int vpif_async_bound(struct v4l2_async_notifier *notifier, vpif_async_bound() argument
1235 static int vpif_async_complete(struct v4l2_async_notifier *notifier) vpif_async_complete() argument
1311 vpif_obj.notifier.subdevs = vpif_obj.config->asd; vpif_probe()
1312 vpif_obj.notifier.num_subdevs = vpif_obj.config->asd_sizes[0]; vpif_probe()
1313 vpif_obj.notifier.bound = vpif_async_bound; vpif_probe()
1314 vpif_obj.notifier.complete = vpif_async_complete; vpif_probe()
1316 &vpif_obj.notifier); vpif_probe()
1318 vpif_err("Error registering async notifier\n"); vpif_probe()
/linux-4.1.27/drivers/misc/ibmasm/
H A Dheartbeat.c25 #include <linux/notifier.h>
/linux-4.1.27/drivers/net/ipvlan/
H A Dipvlan.h18 #include <linux/notifier.h>
/linux-4.1.27/drivers/regulator/
H A Ddevres.c443 * @nb: notifier block
445 * The notifier will be registers under the consumer device and be
480 * @nb: notifier block
482 * Unregister a notifier registered with devm_regulator_register_notifier().
/linux-4.1.27/drivers/s390/cio/
H A Ddevice.h7 #include <linux/notifier.h>
/linux-4.1.27/drivers/infiniband/hw/usnic/
H A Dusnic_ib_main.c216 static int usnic_ib_netdevice_event(struct notifier_block *notifier, usnic_ib_netdevice_event() argument
280 static int usnic_ib_inetaddr_event(struct notifier_block *notifier, usnic_ib_inetaddr_event() argument
627 usnic_err("Failed to register netdev notifier\n"); usnic_ib_init()
633 usnic_err("Failed to register inet addr notifier\n"); usnic_ib_init()
/linux-4.1.27/drivers/clocksource/
H A Dmips-gic-timer.c14 #include <linux/notifier.h>
H A Dtimer-sun5i.c208 pr_err("Unable to register clock notifier.\n"); sun5i_setup_clocksource()
282 pr_err("Unable to register clock notifier.\n"); sun5i_setup_clockevent()
/linux-4.1.27/crypto/
H A Dinternal.h25 #include <linux/notifier.h>
/linux-4.1.27/drivers/acpi/
H A Devent.c24 /* ACPI notifier chain */
/linux-4.1.27/fs/notify/
H A Dvfsmount_mark.c58 * any notifier is interested in hearing for this mount point
/linux-4.1.27/include/xen/
H A Dxen-ops.h5 #include <linux/notifier.h>
/linux-4.1.27/arch/mips/sgi-ip32/
H A Dip32-reset.c16 #include <linux/notifier.h>
/linux-4.1.27/tools/power/cpupower/debug/kernel/
H A Dcpufreq-test_tsc.c109 MODULE_DESCRIPTION("Verify the TSC cpufreq notifier working correctly -- needs ACPI-enabled system");
/linux-4.1.27/drivers/staging/clocking-wizard/
H A Dclk-xlnx-clock-wizard.c282 "unable to register clock notifier\n"); clk_wzrd_probe()
287 "unable to register clock notifier\n"); clk_wzrd_probe()
/linux-4.1.27/drivers/devfreq/exynos/
H A Dexynos5_bus.c344 dev_err(dev, "Failed to register opp notifier\n"); exynos5_busfreq_int_probe()
350 dev_err(dev, "Failed to setup pm notifier\n"); exynos5_busfreq_int_probe()
/linux-4.1.27/drivers/gpu/drm/sti/
H A Dsti_drm_crtc.c254 DRM_ERROR("Cannot register VTG notifier\n"); sti_drm_crtc_enable_vblank()
272 DRM_DEBUG_DRIVER("Warning: cannot unregister VTG notifier\n"); sti_drm_crtc_disable_vblank()
H A Dsti_gdp.c319 DRM_ERROR("Cannot register VTG notifier\n"); sti_gdp_prepare_layer()
443 DRM_DEBUG_DRIVER("Warning: cannot unregister VTG notifier\n"); sti_gdp_disable_layer()
453 * @nb: notifier block
/linux-4.1.27/drivers/power/avs/
H A Drockchip-io-domain.c294 /* register regulator notifier */ rockchip_iodomain_probe()
298 "regulator notifier request failed\n"); rockchip_iodomain_probe()
/linux-4.1.27/drivers/xen/xenbus/
H A Dxenbus_probe_backend.c46 #include <linux/notifier.h>
247 static int backend_probe_and_watch(struct notifier_block *notifier, backend_probe_and_watch() argument
/linux-4.1.27/drivers/block/
H A Dps3vram.c98 #define DMA_NOTIFIER_HANDLE_BASE 0x66604200 /* first DMA notifier handle */
99 #define DMA_NOTIFIER_OFFSET_BASE 0x1000 /* first DMA notifier offset */
101 #define NOTIFIER 7 /* notifier used for completion report */
107 static u32 *ps3vram_get_notifier(void *reports, int notifier) ps3vram_get_notifier() argument
110 DMA_NOTIFIER_SIZE * notifier; ps3vram_get_notifier()
/linux-4.1.27/drivers/mtd/ubi/
H A Dkapi.c813 * ubi_register_volume_notifier - register a volume notifier.
814 * @nb: the notifier description object
818 * This function registers a volume notifier, which means that
823 * Using UBI API from the volume notifier is prohibited.
854 * ubi_unregister_volume_notifier - unregister the volume notifier.
855 * @nb: the notifier description object
857 * This function unregisters volume notifier @nm and returns zero in case of
H A Dgluebi.c406 * gluebi_updated - UBI volume was updated notifier.
435 * gluebi_resized - UBI volume was re-sized notifier.
461 * @nb: registered notifier block
/linux-4.1.27/drivers/extcon/
H A Dextcon.c203 * Note that the notifier provides which bits are changed in the state
277 * Note that notifier provides which bits are changed in the state
422 * extcon_register_interest() - Register a notifier for a state change of a
430 * @nb: the notifier block to get notified.
498 * extcon_unregister_interest() - Unregister the notifier registered by
523 * @nb: a notifier block to be registered.
546 * @nb: a registered notifier block to be unregistered.
/linux-4.1.27/drivers/misc/mic/host/
H A Dmic_main.c194 * @notifier_block: The notifier structure.
200 static int mic_pm_notifier(struct notifier_block *notifier, mic_pm_notifier() argument
203 struct mic_device *mdev = container_of(notifier, mic_pm_notifier()

Completed in 4432 milliseconds

1234