Home
last modified time | relevance | path

Searched refs:notifier (Results 1 – 117 of 117) sorted by relevance

/linux-4.1.27/drivers/media/v4l2-core/
Dv4l2-async.c51 static struct v4l2_async_subdev *v4l2_async_belongs(struct v4l2_async_notifier *notifier, in v4l2_async_belongs() argument
57 list_for_each_entry(asd, &notifier->waiting, list) { in v4l2_async_belongs()
89 static int v4l2_async_test_notify(struct v4l2_async_notifier *notifier, in v4l2_async_test_notify() argument
98 sd->notifier = notifier; in v4l2_async_test_notify()
100 if (notifier->bound) { in v4l2_async_test_notify()
101 ret = notifier->bound(notifier, sd, asd); in v4l2_async_test_notify()
106 list_move(&sd->async_list, &notifier->done); in v4l2_async_test_notify()
108 ret = v4l2_device_register_subdev(notifier->v4l2_dev, sd); in v4l2_async_test_notify()
110 if (notifier->unbind) in v4l2_async_test_notify()
111 notifier->unbind(notifier, sd, asd); in v4l2_async_test_notify()
[all …]
/linux-4.1.27/Documentation/fault-injection/
Dnotifier-error-inject.txt5 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 * CPU notifier
10 * PM notifier
11 * Memory hotplug notifier
12 * powerpc pSeries reconfig notifier
14 CPU notifier error injection module
17 injecting artificial errors to CPU notifier chain callbacks.
19 If the notifier call chain should be failed with some events notified, write
21 /sys/kernel/debug/notifier-error-inject/cpu/actions/<notifier event>/error
[all …]
/linux-4.1.27/block/
Dblk-mq-cpu.c40 void blk_mq_register_cpu_notifier(struct blk_mq_cpu_notifier *notifier) in blk_mq_register_cpu_notifier() argument
42 BUG_ON(!notifier->notify); in blk_mq_register_cpu_notifier()
45 list_add_tail(&notifier->list, &blk_mq_cpu_notify_list); in blk_mq_register_cpu_notifier()
49 void blk_mq_unregister_cpu_notifier(struct blk_mq_cpu_notifier *notifier) in blk_mq_unregister_cpu_notifier() argument
52 list_del(&notifier->list); in blk_mq_unregister_cpu_notifier()
56 void blk_mq_init_cpu_notifier(struct blk_mq_cpu_notifier *notifier, in blk_mq_init_cpu_notifier() argument
60 notifier->notify = fn; in blk_mq_init_cpu_notifier()
61 notifier->data = data; in blk_mq_init_cpu_notifier()
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/include/linux/
Dpreempt.h167 void (*sched_in)(struct preempt_notifier *notifier, int cpu);
168 void (*sched_out)(struct preempt_notifier *notifier,
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, in preempt_notifier_init() argument
190 INIT_HLIST_NODE(&notifier->link); in preempt_notifier_init()
191 notifier->ops = ops; in preempt_notifier_init()
Dpm_qos.h132 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) in dev_pm_qos_add_notifier() argument
199 struct notifier_block *notifier) in dev_pm_qos_remove_notifier() argument
202 struct notifier_block *notifier) in dev_pm_qos_add_global_notifier() argument
205 struct notifier_block *notifier) in dev_pm_qos_remove_global_notifier() argument
Dbcm47xx_wdt.h18 struct notifier_block notifier; member
Dsched.h1493 int (*notifier)(void *priv); member
2386 extern void block_all_signals(int (*notifier)(void *priv), void *priv,
/linux-4.1.27/include/media/
Dv4l2-async.h83 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);
Dv4l2-subdev.h627 struct v4l2_async_notifier *notifier; member
/linux-4.1.27/drivers/edac/
Docteon_edac-pc.c30 struct notifier_block notifier; member
43 notifier); in co_cache_error_event()
92 p->notifier.notifier_call = co_cache_error_event; in co_cache_error_probe()
113 register_co_cache_error_notifier(&p->notifier); in co_cache_error_probe()
127 unregister_co_cache_error_notifier(&p->notifier); in co_cache_error_remove()
/linux-4.1.27/drivers/usb/phy/
Dphy-ab8500-usb.c439 atomic_notifier_call_chain(&ab->phy.notifier, in ab9540_usb_link_status_update()
461 atomic_notifier_call_chain(&ab->phy.notifier, in ab9540_usb_link_status_update()
468 atomic_notifier_call_chain(&ab->phy.notifier, in ab9540_usb_link_status_update()
484 atomic_notifier_call_chain(&ab->phy.notifier, in ab9540_usb_link_status_update()
490 atomic_notifier_call_chain(&ab->phy.notifier, in ab9540_usb_link_status_update()
497 atomic_notifier_call_chain(&ab->phy.notifier, in ab9540_usb_link_status_update()
504 atomic_notifier_call_chain(&ab->phy.notifier, in ab9540_usb_link_status_update()
516 atomic_notifier_call_chain(&ab->phy.notifier, in ab9540_usb_link_status_update()
522 atomic_notifier_call_chain(&ab->phy.notifier, in ab9540_usb_link_status_update()
525 atomic_notifier_call_chain(&ab->phy.notifier, in ab9540_usb_link_status_update()
[all …]
Dphy.c348 ATOMIC_INIT_NOTIFIER_HEAD(&x->notifier); in usb_add_phy()
388 ATOMIC_INIT_NOTIFIER_HEAD(&x->notifier); in usb_add_phy_dev()
Dphy-generic.c126 atomic_notifier_call_chain(&nop->phy.notifier, status, in nop_gpio_vbus_thread()
136 atomic_notifier_call_chain(&nop->phy.notifier, status, in nop_gpio_vbus_thread()
Dphy-gpio-vbus-usb.c135 atomic_notifier_call_chain(&gpio_vbus->phy.notifier, in gpio_vbus_work()
150 atomic_notifier_call_chain(&gpio_vbus->phy.notifier, in gpio_vbus_work()
/linux-4.1.27/drivers/leds/trigger/
Dledtrig-backlight.c28 struct notifier_block notifier; member
36 struct bl_trig_notifier, notifier); in fb_notifier_callback()
120 n->notifier.notifier_call = fb_notifier_callback; in bl_trig_activate()
122 ret = fb_register_client(&n->notifier); in bl_trig_activate()
141 fb_unregister_client(&n->notifier); in bl_trig_deactivate()
/linux-4.1.27/drivers/media/platform/xilinx/
Dxilinx-vipp.c289 static int xvip_graph_notify_complete(struct v4l2_async_notifier *notifier) in xvip_graph_notify_complete() argument
292 container_of(notifier, struct xvip_composite_device, notifier); in xvip_graph_notify_complete()
317 static int xvip_graph_notify_bound(struct v4l2_async_notifier *notifier, in xvip_graph_notify_bound() argument
322 container_of(notifier, struct xvip_composite_device, notifier); in xvip_graph_notify_bound()
493 v4l2_async_notifier_unregister(&xdev->notifier); in xvip_graph_cleanup()
546 xdev->notifier.subdevs = subdevs; in xvip_graph_init()
547 xdev->notifier.num_subdevs = num_subdevs; in xvip_graph_init()
548 xdev->notifier.bound = xvip_graph_notify_bound; in xvip_graph_init()
549 xdev->notifier.complete = xvip_graph_notify_complete; in xvip_graph_init()
551 ret = v4l2_async_notifier_register(&xdev->v4l2_dev, &xdev->notifier); in xvip_graph_init()
Dxilinx-vipp.h41 struct v4l2_async_notifier notifier; member
/linux-4.1.27/tools/testing/selftests/memory-hotplug/
Dmem-on-off-test.sh181 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/tools/testing/selftests/cpu-hotplug/
Dcpu-on-off-test.sh214 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/drivers/misc/vmw_vmci/
Dvmci_context.c430 struct vmci_handle_list *notifier, *tmp; in ctx_free_ctx() local
472 list_for_each_entry_safe(notifier, tmp, in ctx_free_ctx()
474 list_del(&notifier->node); in ctx_free_ctx()
475 kfree(notifier); in ctx_free_ctx()
602 struct vmci_handle_list *notifier, *n; in vmci_ctx_add_notification() local
622 notifier = kmalloc(sizeof(struct vmci_handle_list), GFP_KERNEL); in vmci_ctx_add_notification()
623 if (!notifier) { in vmci_ctx_add_notification()
628 INIT_LIST_HEAD(&notifier->node); in vmci_ctx_add_notification()
629 notifier->handle = vmci_make_handle(remote_cid, VMCI_EVENT_HANDLER); in vmci_ctx_add_notification()
634 if (vmci_handle_is_equal(n->handle, notifier->handle)) { in vmci_ctx_add_notification()
[all …]
/linux-4.1.27/drivers/input/keyboard/
Dadp5520-keys.c19 struct notifier_block notifier; member
43 dev = container_of(nb, struct adp5520_keys, notifier); in adp5520_keys_notifier()
162 dev->notifier.notifier_call = adp5520_keys_notifier; in adp5520_keys_probe()
163 ret = adp5520_register_notifier(dev->master, &dev->notifier, in adp5520_keys_probe()
178 adp5520_unregister_notifier(dev->master, &dev->notifier, in adp5520_keys_remove()
/linux-4.1.27/drivers/staging/nvec/
Dnvec_power.c28 struct notifier_block notifier; member
92 container_of(nb, struct nvec_power, notifier); in nvec_power_notifier()
128 container_of(nb, struct nvec_power, notifier); in nvec_power_bat_notifier()
394 power->notifier.notifier_call = nvec_power_notifier; in nvec_power_probe()
403 power->notifier.notifier_call = nvec_power_bat_notifier; in nvec_power_probe()
409 nvec_register_notifier(nvec, &power->notifier, NVEC_SYS); in nvec_power_probe()
424 nvec_unregister_notifier(power->nvec, &power->notifier); in nvec_power_remove()
Dnvec_ps2.c47 struct notifier_block notifier; member
124 ps2_dev.notifier.notifier_call = nvec_ps2_notifier; in nvec_mouse_probe()
126 nvec_register_notifier(nvec, &ps2_dev.notifier, 0); in nvec_mouse_probe()
142 nvec_unregister_notifier(nvec, &ps2_dev.notifier); in nvec_mouse_remove()
Dnvec_kbd.c37 struct notifier_block notifier; member
148 keys_dev.notifier.notifier_call = nvec_keys_notifier; in nvec_kbd_probe()
150 nvec_register_notifier(nvec, &keys_dev.notifier, 0); in nvec_kbd_probe()
174 nvec_unregister_notifier(nvec, &keys_dev.notifier); in nvec_kbd_remove()
/linux-4.1.27/drivers/watchdog/
Dbcm47xx_wdt.c166 wdt = container_of(this, struct bcm47xx_wdt, notifier); in bcm47xx_wdt_notify_sys()
217 wdt->notifier.notifier_call = &bcm47xx_wdt_notify_sys; in bcm47xx_wdt_probe()
219 ret = register_reboot_notifier(&wdt->notifier); in bcm47xx_wdt_probe()
241 unregister_reboot_notifier(&wdt->notifier); in bcm47xx_wdt_probe()
257 unregister_reboot_notifier(&wdt->notifier); in bcm47xx_wdt_remove()
Dgpio_wdt.c39 struct notifier_block notifier; member
133 notifier); in gpio_wdt_notify_sys()
230 priv->notifier.notifier_call = gpio_wdt_notify_sys; in gpio_wdt_probe()
231 ret = register_reboot_notifier(&priv->notifier); in gpio_wdt_probe()
250 unregister_reboot_notifier(&priv->notifier); in gpio_wdt_remove()
/linux-4.1.27/arch/mips/kernel/
Dvpe-mt.c29 struct vpe_notifications *notifier; in vpe_run() local
141 list_for_each_entry(notifier, &v->notify, list) in vpe_run()
142 notifier->start(VPE_MODULE_MINOR); in vpe_run()
265 struct vpe_notifications *notifier; in store_kill() local
267 list_for_each_entry(notifier, &vpe->notify, list) in store_kill()
268 notifier->stop(aprp_cpu_index()); in store_kill()
Dvpe-cmp.c28 struct vpe_notifications *notifier; in store_kill() local
30 list_for_each_entry(notifier, &vpe->notify, list) in store_kill()
31 notifier->stop(aprp_cpu_index()); in store_kill()
Dvpe.c768 struct vpe_notifications *notifier; in vpe_open() local
790 list_for_each_entry(notifier, &v->notify, list) in vpe_open()
791 notifier->stop(aprp_cpu_index()); in vpe_open()
/linux-4.1.27/net/rds/
Drecv.c298 struct rds_notifier *notifier; in rds_notify_queue_get() local
321 notifier = list_entry(rs->rs_notify_queue.next, in rds_notify_queue_get()
323 list_move(&notifier->n_list, &copy); in rds_notify_queue_get()
332 notifier = list_entry(copy.next, struct rds_notifier, n_list); in rds_notify_queue_get()
335 cmsg.user_token = notifier->n_user_token; in rds_notify_queue_get()
336 cmsg.status = notifier->n_status; in rds_notify_queue_get()
344 list_del_init(&notifier->n_list); in rds_notify_queue_get()
345 kfree(notifier); in rds_notify_queue_get()
Dsend.c455 struct rds_notifier *notifier; in rds_rdma_send_complete() local
463 notifier = ro->op_notifier; in rds_rdma_send_complete()
467 notifier->n_status = status; in rds_rdma_send_complete()
469 list_add_tail(&notifier->n_list, &rs->rs_notify_queue); in rds_rdma_send_complete()
491 struct rds_notifier *notifier; in rds_atomic_send_complete() local
499 notifier = ao->op_notifier; in rds_atomic_send_complete()
503 notifier->n_status = status; in rds_atomic_send_complete()
505 list_add_tail(&notifier->n_list, &rs->rs_notify_queue); in rds_atomic_send_complete()
634 struct rds_notifier *notifier; in rds_send_remove_from_sock() local
641 notifier = ro->op_notifier; in rds_send_remove_from_sock()
[all …]
/linux-4.1.27/net/netfilter/
Dxt_TEE.c34 struct notifier_block notifier; member
206 priv = container_of(this, struct xt_tee_priv, notifier); in tee_netdev_event()
247 priv->notifier.notifier_call = tee_netdev_event; in tee_tg_check()
250 register_netdevice_notifier(&priv->notifier); in tee_tg_check()
262 unregister_netdevice_notifier(&info->priv->notifier); in tee_tg_destroy()
DKconfig104 provide a notifier chain that can be used by other kernel code
/linux-4.1.27/drivers/input/touchscreen/
Dda9034-ts.c57 struct notifier_block notifier; member
238 container_of(nb, struct da9034_touch, notifier); in da9034_touch_notifier()
254 ret = da903x_register_notifier(touch->da9034_dev, &touch->notifier, in da9034_touch_open()
284 da903x_unregister_notifier(touch->da9034_dev, &touch->notifier, in da9034_touch_close()
325 touch->notifier.notifier_call = da9034_touch_notifier; in da9034_touch_probe()
/linux-4.1.27/virt/kvm/
Deventfd.c66 struct kvm_irq_ack_notifier notifier; member
129 resampler = container_of(kian, struct _irqfd_resampler, notifier); in irqfd_resampler_ack()
133 resampler->notifier.gsi, 0, false); in irqfd_resampler_ack()
156 kvm_unregister_irq_ack_notifier(kvm, &resampler->notifier); in irqfd_resampler_shutdown()
158 resampler->notifier.gsi, 0, false); in irqfd_resampler_shutdown()
358 if (resampler->notifier.gsi == irqfd->gsi) { in kvm_irqfd_assign()
374 resampler->notifier.gsi = irqfd->gsi; in kvm_irqfd_assign()
375 resampler->notifier.irq_acked = irqfd_resampler_ack; in kvm_irqfd_assign()
380 &resampler->notifier); in kvm_irqfd_assign()
Dkvm_main.c2883 static int kvm_cpu_hotplug(struct notifier_block *notifier, unsigned long val, in kvm_cpu_hotplug() argument
2904 static int kvm_reboot(struct notifier_block *notifier, unsigned long val, in kvm_reboot() argument
/linux-4.1.27/drivers/base/power/
Dqos.c491 int dev_pm_qos_add_notifier(struct device *dev, struct notifier_block *notifier) in dev_pm_qos_add_notifier() argument
504 notifier); in dev_pm_qos_add_notifier()
522 struct notifier_block *notifier) in dev_pm_qos_remove_notifier() argument
531 notifier); in dev_pm_qos_remove_notifier()
547 int dev_pm_qos_add_global_notifier(struct notifier_block *notifier) in dev_pm_qos_add_global_notifier() argument
549 return blocking_notifier_chain_register(&dev_pm_notifiers, notifier); in dev_pm_qos_add_global_notifier()
562 int dev_pm_qos_remove_global_notifier(struct notifier_block *notifier) in dev_pm_qos_remove_global_notifier() argument
564 return blocking_notifier_chain_unregister(&dev_pm_notifiers, notifier); in dev_pm_qos_remove_global_notifier()
/linux-4.1.27/lib/
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
DKconfig.debug602 tristate "Memory hotplug notifier error injection module"
606 memory hotplug notifier chain callbacks. It is controlled through
607 debugfs interface under /sys/kernel/debug/notifier-error-inject/memory
609 If the notifier call chain should be failed with some events
610 notified, write the error code to "actions/<notifier event>/error".
614 # cd /sys/kernel/debug/notifier-error-inject/memory
620 be called memory-notifier-error-inject.
1169 bool "Debug notifier call chains"
1172 Enable this to turn on sanity checking for notifier call chains.
1174 modules properly unregister themselves from notifier chains.
[all …]
/linux-4.1.27/drivers/media/platform/soc_camera/
Dsoc_camera.c64 struct v4l2_async_notifier notifier; member
1437 static int soc_camera_async_bound(struct v4l2_async_notifier *notifier, in soc_camera_async_bound() argument
1441 struct soc_camera_async_client *sasc = container_of(notifier, in soc_camera_async_bound()
1442 struct soc_camera_async_client, notifier); in soc_camera_async_bound()
1470 static void soc_camera_async_unbind(struct v4l2_async_notifier *notifier, in soc_camera_async_unbind() argument
1474 struct soc_camera_async_client *sasc = container_of(notifier, in soc_camera_async_unbind()
1475 struct soc_camera_async_client, notifier); in soc_camera_async_unbind()
1484 static int soc_camera_async_complete(struct v4l2_async_notifier *notifier) in soc_camera_async_complete() argument
1486 struct soc_camera_async_client *sasc = container_of(notifier, in soc_camera_async_complete()
1487 struct soc_camera_async_client, notifier); in soc_camera_async_complete()
[all …]
Dsh_mobile_ceu_camera.c1698 struct notifier_block notifier; member
1707 struct bus_wait *wait = container_of(nb, struct bus_wait, notifier); in bus_notify()
1730 .notifier.notifier_call = bus_notify, in sh_mobile_ceu_probe()
1894 err = bus_register_notifier(&platform_bus_type, &wait.notifier); in sh_mobile_ceu_probe()
1906 bus_unregister_notifier(&platform_bus_type, &wait.notifier); in sh_mobile_ceu_probe()
1921 bus_unregister_notifier(&platform_bus_type, &wait.notifier); in sh_mobile_ceu_probe()
/linux-4.1.27/sound/soc/
Dsoc-jack.c49 BLOCKING_INIT_NOTIFIER_HEAD(&jack->notifier); in snd_soc_card_jack_new()
113 blocking_notifier_call_chain(&jack->notifier, jack->status, jack); in snd_soc_jack_report()
227 blocking_notifier_chain_register(&jack->notifier, nb); in snd_soc_jack_notifier_register()
242 blocking_notifier_chain_unregister(&jack->notifier, nb); in snd_soc_jack_notifier_unregister()
/linux-4.1.27/include/linux/mfd/
Ddbx500-prcmu.h617 struct notifier_block *notifier);
619 struct notifier_block *notifier);
654 struct notifier_block *notifier) in prcmu_qos_add_notifier() argument
659 struct notifier_block *notifier) in prcmu_qos_remove_notifier() argument
/linux-4.1.27/Documentation/cpu-freq/
Dcore.txt47 CPUFreq notifiers conform to the standard kernel notifier interface.
48 See linux/include/linux/notifier.h for details on notifiers.
58 CPUFreq policy notifier is called three times for a policy transition:
72 The phase is specified in the second argument to the notifier.
/linux-4.1.27/include/linux/usb/
Dphy.h89 struct atomic_notifier_head notifier; member
309 return atomic_notifier_chain_register(&x->notifier, nb); in usb_register_notifier()
315 atomic_notifier_chain_unregister(&x->notifier, nb); in usb_unregister_notifier()
/linux-4.1.27/Documentation/power/
Dnotifiers.txt13 A suspend/hibernation notifier may be used for this purpose.
52 NULL). To register and/or unregister a suspend notifier use the functions
54 include/linux/suspend.h . If you don't need to unregister the notifier, you can
Dpm_qos_interface.txt63 int pm_qos_add_notifier(param_class, notifier):
67 int pm_qos_remove_notifier(int param_class, notifier):
169 int dev_pm_qos_add_notifier(device, notifier):
174 int dev_pm_qos_remove_notifier(device, notifier):
177 int dev_pm_qos_add_global_notifier(notifier):
183 int dev_pm_qos_remove_global_notifier(notifier):
Dfreezing-of-tasks.txt200 requested early enough using the suspend notifier API described in notifiers.txt.
Druntime_pm.txt566 notifier callback in __device_release_driver(), which is necessary, because the
567 notifier is used by some subsystems to carry out operations affecting the
Dpci.txt715 preallocated earlier, for example in a suspend/hibernate notifier as described
/linux-4.1.27/drivers/media/platform/omap3isp/
Disp.c2005 v4l2_async_notifier_unregister(&isp->notifier); in isp_register_entities()
2221 v4l2_async_notifier_unregister(&isp->notifier); in isp_remove()
2315 struct v4l2_async_notifier *notifier) in isp_of_parse_nodes() argument
2319 notifier->subdevs = devm_kcalloc( in isp_of_parse_nodes()
2320 dev, ISP_MAX_SUBDEVS, sizeof(*notifier->subdevs), GFP_KERNEL); in isp_of_parse_nodes()
2321 if (!notifier->subdevs) in isp_of_parse_nodes()
2324 while (notifier->num_subdevs < ISP_MAX_SUBDEVS && in isp_of_parse_nodes()
2334 notifier->subdevs[notifier->num_subdevs] = &isd->asd; in isp_of_parse_nodes()
2349 notifier->num_subdevs++; in isp_of_parse_nodes()
2352 return notifier->num_subdevs; in isp_of_parse_nodes()
[all …]
Disp.h181 struct v4l2_async_notifier notifier; member
/linux-4.1.27/drivers/tty/vt/
Dvc_screen.c54 struct notifier_block notifier; member
67 container_of(nb, struct vcs_poll_data, notifier); in vcs_notifier()
89 unregister_vt_notifier(&poll->notifier); in vcs_poll_data_free()
106 poll->notifier.notifier_call = vcs_notifier; in vcs_poll_data_get()
107 if (register_vt_notifier(&poll->notifier) != 0) { in vcs_poll_data_get()
/linux-4.1.27/Documentation/input/
Dnotifier.txt1 Keyboard notifier
52 NOTE: This notifier is usually called from interrupt context.
/linux-4.1.27/kernel/power/
Dqos.c556 int pm_qos_add_notifier(int pm_qos_class, struct notifier_block *notifier) in pm_qos_add_notifier() argument
562 notifier); in pm_qos_add_notifier()
576 int pm_qos_remove_notifier(int pm_qos_class, struct notifier_block *notifier) in pm_qos_remove_notifier() argument
582 notifier); in pm_qos_remove_notifier()
/linux-4.1.27/Documentation/
Dpadata.txt74 the padata cpumask change notifier:
79 To unregister from that notifier:
84 The padata cpumask change notifier notifies about changes of the usable
87 Padata calls the notifier chain with:
93 Here cpumask_change_notifier is registered notifier, notification_mask
Dmemory-hotplug.txt6 Add description of notifier of memory hotplug Oct 11 2007
28 8. Memory hotplug event notifier
360 8. Memory hotplug event notifier
404 of the notifier chain that points to the callback function itself.
430 defined in include/linux/notifier.h
Dcpu-hotplug.txt262 notifier is called, when CPU_DEAD is called its expected there is nothing
310 things will happen if a notifier in path sent a BAD notify code.
/linux-4.1.27/drivers/iommu/
Diommu.c49 struct blocking_notifier_head notifier; member
171 BLOCKING_INIT_NOTIFIER_HEAD(&group->notifier); in iommu_group_alloc()
371 blocking_notifier_call_chain(&group->notifier, in iommu_group_add_device()
392 blocking_notifier_call_chain(&group->notifier, in iommu_group_remove_device()
493 return blocking_notifier_chain_register(&group->notifier, nb); in iommu_group_register_notifier()
507 return blocking_notifier_chain_unregister(&group->notifier, nb); in iommu_group_unregister_notifier()
795 blocking_notifier_call_chain(&group->notifier, in iommu_bus_notifier()
/linux-4.1.27/net/can/
Draw.c87 struct notifier_block notifier; member
267 struct raw_sock *ro = container_of(nb, struct raw_sock, notifier); in raw_notifier()
335 ro->notifier.notifier_call = raw_notifier; in raw_init()
337 register_netdevice_notifier(&ro->notifier); in raw_init()
352 unregister_netdevice_notifier(&ro->notifier); in raw_release()
Dgw.c83 static struct notifier_block notifier; variable
966 notifier.notifier_call = cgw_notifier; in cgw_module_init()
967 register_netdevice_notifier(&notifier); in cgw_module_init()
970 unregister_netdevice_notifier(&notifier); in cgw_module_init()
986 unregister_netdevice_notifier(&notifier); in cgw_module_exit()
Dbcm.c121 struct notifier_block notifier; member
1351 struct bcm_sock *bo = container_of(nb, struct bcm_sock, notifier); in bcm_notifier()
1415 bo->notifier.notifier_call = bcm_notifier; in bcm_init()
1417 register_netdevice_notifier(&bo->notifier); in bcm_init()
1438 unregister_netdevice_notifier(&bo->notifier); in bcm_release()
/linux-4.1.27/drivers/media/platform/davinci/
Dvpif_capture.h118 struct v4l2_async_notifier notifier; member
Dvpif_display.h123 struct v4l2_async_notifier notifier; member
Dvpif_display.c1115 static int vpif_async_bound(struct v4l2_async_notifier *notifier, in vpif_async_bound() argument
1235 static int vpif_async_complete(struct v4l2_async_notifier *notifier) in vpif_async_complete() argument
1311 vpif_obj.notifier.subdevs = vpif_obj.config->asd; in vpif_probe()
1312 vpif_obj.notifier.num_subdevs = vpif_obj.config->asd_sizes[0]; in vpif_probe()
1313 vpif_obj.notifier.bound = vpif_async_bound; in vpif_probe()
1314 vpif_obj.notifier.complete = vpif_async_complete; in vpif_probe()
1316 &vpif_obj.notifier); in vpif_probe()
Dvpif_capture.c1318 static int vpif_async_bound(struct v4l2_async_notifier *notifier, in vpif_async_bound() argument
1421 static int vpif_async_complete(struct v4l2_async_notifier *notifier) in vpif_async_complete() argument
1501 vpif_obj.notifier.subdevs = vpif_obj.config->asd; in vpif_probe()
1502 vpif_obj.notifier.num_subdevs = vpif_obj.config->asd_sizes[0]; in vpif_probe()
1503 vpif_obj.notifier.bound = vpif_async_bound; in vpif_probe()
1504 vpif_obj.notifier.complete = vpif_async_complete; in vpif_probe()
1506 &vpif_obj.notifier); in vpif_probe()
/linux-4.1.27/drivers/xen/
Dcpu_hotplug.c80 static int setup_cpu_watcher(struct notifier_block *notifier, in setup_cpu_watcher() argument
Dxen-balloon.c78 static int balloon_init_watcher(struct notifier_block *notifier, in balloon_init_watcher() argument
Dmanage.c332 static int shutdown_event(struct notifier_block *notifier, in shutdown_event() argument
/linux-4.1.27/drivers/mfd/
Dtwl6030-irq.c132 static int twl6030_irq_pm_notifier(struct notifier_block *notifier, in twl6030_irq_pm_notifier() argument
136 struct twl6030_irq *pdata = container_of(notifier, struct twl6030_irq, in twl6030_irq_pm_notifier()
/linux-4.1.27/drivers/devfreq/
DKconfig12 notification to "nb", a notifier block, of devfreq.
25 register devfreq's nb to the OPP's notifier head. If OPP is
/linux-4.1.27/kernel/
DMakefile11 notifier.o ksysfs.o cred.o reboot.o \
95 obj-$(CONFIG_USER_RETURN_NOTIFIER) += user-return-notifier.o
Dsignal.c521 block_all_signals(int (*notifier)(void *priv), void *priv, sigset_t *mask) in block_all_signals()
528 current->notifier = notifier; in block_all_signals()
540 current->notifier = NULL; in unblock_all_signals()
589 if (current->notifier) { in __dequeue_signal()
591 if (!(current->notifier)(current->notifier_data)) { in __dequeue_signal()
/linux-4.1.27/drivers/s390/char/
Draw3270.c1136 int raw3270_register_notifier(struct raw3270_notifier *notifier) in raw3270_register_notifier() argument
1141 list_add_tail(&notifier->list, &raw3270_notifier); in raw3270_register_notifier()
1143 notifier->create(rp->minor); in raw3270_register_notifier()
1148 void raw3270_unregister_notifier(struct raw3270_notifier *notifier) in raw3270_unregister_notifier() argument
1154 notifier->destroy(rp->minor); in raw3270_unregister_notifier()
1155 list_del(&notifier->list); in raw3270_unregister_notifier()
/linux-4.1.27/drivers/media/platform/am437x/
Dam437x-vpfe.h235 struct v4l2_async_notifier notifier; member
Dam437x-vpfe.c2301 vpfe_async_bound(struct v4l2_async_notifier *notifier, in vpfe_async_bound() argument
2305 struct vpfe_device *vpfe = container_of(notifier->v4l2_dev, in vpfe_async_bound()
2426 static int vpfe_async_complete(struct v4l2_async_notifier *notifier) in vpfe_async_complete() argument
2428 struct vpfe_device *vpfe = container_of(notifier->v4l2_dev, in vpfe_async_complete()
2603 vpfe->notifier.subdevs = vpfe->cfg->asd; in vpfe_probe()
2604 vpfe->notifier.num_subdevs = ARRAY_SIZE(vpfe->cfg->asd); in vpfe_probe()
2605 vpfe->notifier.bound = vpfe_async_bound; in vpfe_probe()
2606 vpfe->notifier.complete = vpfe_async_complete; in vpfe_probe()
2608 &vpfe->notifier); in vpfe_probe()
2633 v4l2_async_notifier_unregister(&vpfe->notifier); in vpfe_remove()
/linux-4.1.27/Documentation/devicetree/
Dchangesets.txt11 receives the notifier.
/linux-4.1.27/drivers/misc/mic/host/
Dmic_main.c200 static int mic_pm_notifier(struct notifier_block *notifier, in mic_pm_notifier() argument
203 struct mic_device *mdev = container_of(notifier, in mic_pm_notifier()
/linux-4.1.27/drivers/xen/xenbus/
Dxenbus_probe_backend.c247 static int backend_probe_and_watch(struct notifier_block *notifier, in backend_probe_and_watch() argument
Dxenbus_probe_frontend.c457 static int frontend_probe_and_watch(struct notifier_block *notifier, in frontend_probe_and_watch() argument
/linux-4.1.27/include/linux/regulator/
Ddriver.h367 struct blocking_notifier_head notifier; member
/linux-4.1.27/net/tipc/
Dbearer.c555 static struct notifier_block notifier = { variable
564 err = register_netdevice_notifier(&notifier); in tipc_bearer_setup()
573 unregister_netdevice_notifier(&notifier); in tipc_bearer_cleanup()
/linux-4.1.27/drivers/infiniband/hw/usnic/
Dusnic_ib_main.c216 static int usnic_ib_netdevice_event(struct notifier_block *notifier, in usnic_ib_netdevice_event() argument
280 static int usnic_ib_inetaddr_event(struct notifier_block *notifier, in usnic_ib_inetaddr_event() argument
/linux-4.1.27/drivers/net/wimax/i2400m/
Ddriver.c464 int i2400m_pm_notifier(struct notifier_block *notifier, in i2400m_pm_notifier() argument
469 container_of(notifier, struct i2400m, pm_notifier); in i2400m_pm_notifier()
/linux-4.1.27/drivers/infiniband/hw/ocrdma/
Docrdma_main.c167 static int ocrdma_inetaddr_event(struct notifier_block *notifier, in ocrdma_inetaddr_event() argument
184 static int ocrdma_inet6addr_event(struct notifier_block *notifier, in ocrdma_inet6addr_event() argument
/linux-4.1.27/drivers/media/platform/exynos4-is/
Dmedia-dev.c1270 static int subdev_notifier_bound(struct v4l2_async_notifier *notifier, in subdev_notifier_bound() argument
1274 struct fimc_md *fmd = notifier_to_fimc_md(notifier); in subdev_notifier_bound()
1303 static int subdev_notifier_complete(struct v4l2_async_notifier *notifier) in subdev_notifier_complete() argument
1305 struct fimc_md *fmd = notifier_to_fimc_md(notifier); in subdev_notifier_complete()
/linux-4.1.27/drivers/ata/
Dsata_nv.c918 u32 notifier, notifier_error; in nv_adma_interrupt() local
943 notifier = readl(mmio + NV_ADMA_NOTIFIER); in nv_adma_interrupt()
945 notifier_clears[i] = notifier | notifier_error; in nv_adma_interrupt()
949 if (!NV_ADMA_CHECK_INTR(gen_ctl, ap->port_no) && !notifier && in nv_adma_interrupt()
1679 u32 notifier = readl(mmio + NV_ADMA_NOTIFIER); in nv_adma_error_handler() local
1690 notifier, notifier_error, gen_ctl, status, in nv_adma_error_handler()
/linux-4.1.27/drivers/scsi/fcoe/
Dfcoe_transport.c42 static int libfcoe_device_notification(struct notifier_block *notifier,
717 static int libfcoe_device_notification(struct notifier_block *notifier, in libfcoe_device_notification() argument
Dfcoe.c111 static int fcoe_dcb_app_notification(struct notifier_block *notifier,
1934 static int fcoe_dcb_app_notification(struct notifier_block *notifier, in fcoe_dcb_app_notification() argument
1985 static int fcoe_device_notification(struct notifier_block *notifier, in fcoe_device_notification() argument
/linux-4.1.27/kernel/sched/
Dcore.c2112 void preempt_notifier_register(struct preempt_notifier *notifier) in preempt_notifier_register() argument
2114 hlist_add_head(&notifier->link, &current->preempt_notifiers); in preempt_notifier_register()
2124 void preempt_notifier_unregister(struct preempt_notifier *notifier) in preempt_notifier_unregister() argument
2126 hlist_del(&notifier->link); in preempt_notifier_unregister()
2132 struct preempt_notifier *notifier; in fire_sched_in_preempt_notifiers() local
2134 hlist_for_each_entry(notifier, &curr->preempt_notifiers, link) in fire_sched_in_preempt_notifiers()
2135 notifier->ops->sched_in(notifier, raw_smp_processor_id()); in fire_sched_in_preempt_notifiers()
2142 struct preempt_notifier *notifier; in fire_sched_out_preempt_notifiers() local
2144 hlist_for_each_entry(notifier, &curr->preempt_notifiers, link) in fire_sched_out_preempt_notifiers()
2145 notifier->ops->sched_out(notifier, next); in fire_sched_out_preempt_notifiers()
/linux-4.1.27/Documentation/extcon/
Dporting-android-switch-class81 notifier chains.
/linux-4.1.27/drivers/block/
Dps3vram.c107 static u32 *ps3vram_get_notifier(void *reports, int notifier) in ps3vram_get_notifier() argument
110 DMA_NOTIFIER_SIZE * notifier; in ps3vram_get_notifier()
/linux-4.1.27/Documentation/cgroups/
Dmemory.txt47 - usage threshold notifier
48 - memory pressure notifier
49 - oom-killer disable knob and oom-notifier
259 When oom event notifier is registered, event will be delivered.
740 Memory cgroup implements OOM notifier using the cgroup notification
744 To register a notifier, an application must:
Dcpusets.txt220 cpu_online_mask using a CPU hotplug notifier, and the mems file
/linux-4.1.27/Documentation/serial/
Dtty.txt282 stop() - Ldisc notifier to the driver to stop output. As with
286 start() - Ldisc notifier to the driver to start output.
/linux-4.1.27/drivers/video/fbdev/
Dsh_mobile_lcdcfb.c217 struct notifier_block notifier; member
2395 if (&ch->lcdc->notifier != nb) in sh_mobile_lcdc_notify()
2445 fb_unregister_client(&priv->notifier); in sh_mobile_lcdc_remove()
2839 priv->notifier.notifier_call = sh_mobile_lcdc_notify; in sh_mobile_lcdc_probe()
2840 fb_register_client(&priv->notifier); in sh_mobile_lcdc_probe()
/linux-4.1.27/Documentation/power/regulator/
Doverview.txt149 operations to the core. It also has a notifier call chain for propagating
Dconsumer.txt182 Regulators use the kernel notifier framework to send event to their interested
/linux-4.1.27/Documentation/virtual/kvm/
Dlocking.txt157 Comment: it is a spinlock since it is used in mmu notifier.
Dmmu.txt328 - mmu notifier called with updated hva
/linux-4.1.27/drivers/infiniband/hw/nes/
Dnes.c141 static int nes_inetaddr_event(struct notifier_block *notifier, in nes_inetaddr_event() argument
223 static int nes_net_event(struct notifier_block *notifier, in nes_net_event() argument
/linux-4.1.27/drivers/phy/
Dphy-twl4030-usb.c717 ATOMIC_INIT_NOTIFIER_HEAD(&twl->phy.notifier); in twl4030_usb_probe()
/linux-4.1.27/drivers/usb/musb/
Domap2430.c311 atomic_notifier_call_chain(&musb->xceiv->notifier, in omap_musb_set_mailbox()
/linux-4.1.27/arch/um/drivers/
Dmconsole_kern.c38 static int do_unlink_socket(struct notifier_block *notifier, in do_unlink_socket() argument
/linux-4.1.27/Documentation/networking/
Dregulatory.txt81 registering on its struct wiphy a reg_notifier() callback. This notifier
Dcan.txt904 CAN device notifier chain there are functions to subscribe CAN
/linux-4.1.27/drivers/regulator/
Dcore.c3171 return blocking_notifier_chain_register(&regulator->rdev->notifier, in regulator_register_notifier()
3186 return blocking_notifier_chain_unregister(&regulator->rdev->notifier, in regulator_unregister_notifier()
3198 return blocking_notifier_call_chain(&rdev->notifier, event, data); in _notifier_call_chain()
3685 BLOCKING_INIT_NOTIFIER_HEAD(&rdev->notifier); in regulator_register()
/linux-4.1.27/Documentation/RCU/
Dchecklist.txt197 a CPU-hotplug notifier, or while holding a lock that is acquired
198 by a CPU-hotplug notifier. Failing to observe this restriction
/linux-4.1.27/drivers/net/wireless/orinoco/
Dmain.c1972 static int orinoco_pm_notifier(struct notifier_block *notifier, in orinoco_pm_notifier() argument
1976 struct orinoco_private *priv = container_of(notifier, in orinoco_pm_notifier()
/linux-4.1.27/drivers/infiniband/hw/qib/
Dqib.h452 struct qib_irq_notify *notifier; member
Dqib_iba7322.c3361 m->notifier = NULL; in reset_dca_notifier()
3374 m->notifier = n; in setup_dca_notifier()
3387 m->notifier = NULL; in setup_dca_notifier()
/linux-4.1.27/Documentation/powerpc/
Deeh-pci-error-recovery.txt153 Next, it uses the Linux kernel notifier chain/work queue mechanism to
/linux-4.1.27/Documentation/video4linux/
Dv4l2-framework.txt429 Bridge drivers in turn have to register a notifier object with an array of
432 notifier the driver has to call v4l2_async_notifier_unregister(). The former of
437 subdevices to them. If a match is detected the .bound() notifier callback is
/linux-4.1.27/include/sound/
Dsoc.h681 struct blocking_notifier_head notifier; member
/linux-4.1.27/net/ipx/
Daf_ipx.c315 static int ipxitf_device_event(struct notifier_block *notifier, in ipxitf_device_event() argument
/linux-4.1.27/kernel/events/
Dcore.c8947 perf_reboot(struct notifier_block *notifier, unsigned long val, void *v) in perf_reboot() argument