/Linux-v4.19/drivers/media/v4l2-core/ |
D | v4l2-async.c | 93 struct v4l2_async_notifier *notifier, struct v4l2_subdev *sd) in v4l2_async_find_match() argument 98 list_for_each_entry(asd, ¬ifier->waiting, list) { in v4l2_async_find_match() 142 struct v4l2_async_notifier *notifier) in v4l2_async_notifier_find_v4l2_dev() argument 144 while (notifier->parent) in v4l2_async_notifier_find_v4l2_dev() 145 notifier = notifier->parent; in v4l2_async_notifier_find_v4l2_dev() 147 return notifier->v4l2_dev; in v4l2_async_notifier_find_v4l2_dev() 154 struct v4l2_async_notifier *notifier) in v4l2_async_notifier_can_complete() argument 158 if (!list_empty(¬ifier->waiting)) in v4l2_async_notifier_can_complete() 161 list_for_each_entry(sd, ¬ifier->done, async_list) { in v4l2_async_notifier_can_complete() 178 struct v4l2_async_notifier *notifier) in v4l2_async_notifier_try_complete() argument [all …]
|
D | v4l2-fwnode.c | 323 static int v4l2_async_notifier_realloc(struct v4l2_async_notifier *notifier, in v4l2_async_notifier_realloc() argument 328 if (max_subdevs <= notifier->max_subdevs) in v4l2_async_notifier_realloc() 332 max_subdevs, sizeof(*notifier->subdevs), in v4l2_async_notifier_realloc() 337 if (notifier->subdevs) { in v4l2_async_notifier_realloc() 338 memcpy(subdevs, notifier->subdevs, in v4l2_async_notifier_realloc() 339 sizeof(*subdevs) * notifier->num_subdevs); in v4l2_async_notifier_realloc() 341 kvfree(notifier->subdevs); in v4l2_async_notifier_realloc() 344 notifier->subdevs = subdevs; in v4l2_async_notifier_realloc() 345 notifier->max_subdevs = max_subdevs; in v4l2_async_notifier_realloc() 351 struct device *dev, struct v4l2_async_notifier *notifier, in v4l2_async_notifier_fwnode_parse_endpoint() argument [all …]
|
/Linux-v4.19/Documentation/fault-injection/ |
D | notifier-error-inject.txt | 5 specified notifier chain callbacks. It is useful to test the error handling of 6 notifier call chain failures which is rarely executed. There are kernel 9 * PM notifier 10 * Memory hotplug notifier 11 * powerpc pSeries reconfig notifier 12 * Netdevice notifier 14 PM notifier error injection module 17 /sys/kernel/debug/notifier-error-inject/pm/actions/<notifier event>/error 19 Possible PM notifier events to be failed are: 27 # cd /sys/kernel/debug/notifier-error-inject/pm/ [all …]
|
/Linux-v4.19/include/media/ |
D | v4l2-async.h | 111 int (*bound)(struct v4l2_async_notifier *notifier, 114 int (*complete)(struct v4l2_async_notifier *notifier); 115 void (*unbind)(struct v4l2_async_notifier *notifier, 154 struct v4l2_async_notifier *notifier); 164 struct v4l2_async_notifier *notifier); 171 void v4l2_async_notifier_unregister(struct v4l2_async_notifier *notifier); 187 void v4l2_async_notifier_cleanup(struct v4l2_async_notifier *notifier);
|
D | v4l2-fwnode.h | 280 struct device *dev, struct v4l2_async_notifier *notifier, 336 struct device *dev, struct v4l2_async_notifier *notifier, 359 struct device *dev, struct v4l2_async_notifier *notifier);
|
/Linux-v4.19/include/linux/ |
D | preempt.h | 297 void (*sched_in)(struct preempt_notifier *notifier, int cpu); 298 void (*sched_out)(struct preempt_notifier *notifier, 316 void preempt_notifier_register(struct preempt_notifier *notifier); 317 void preempt_notifier_unregister(struct preempt_notifier *notifier); 319 static inline void preempt_notifier_init(struct preempt_notifier *notifier, in preempt_notifier_init() argument 322 INIT_HLIST_NODE(¬ifier->link); in preempt_notifier_init() 323 notifier->ops = ops; in preempt_notifier_init()
|
D | pm_qos.h | 134 int pm_qos_add_notifier(int pm_qos_class, struct notifier_block *notifier); 135 int pm_qos_remove_notifier(int pm_qos_class, struct notifier_block *notifier); 149 struct notifier_block *notifier); 151 struct notifier_block *notifier); 205 struct notifier_block *notifier) in dev_pm_qos_add_notifier() argument 208 struct notifier_block *notifier) in dev_pm_qos_remove_notifier() argument
|
/Linux-v4.19/drivers/edac/ |
D | octeon_edac-pc.c | 29 struct notifier_block notifier; member 42 notifier); in co_cache_error_event() 91 p->notifier.notifier_call = co_cache_error_event; in co_cache_error_probe() 112 register_co_cache_error_notifier(&p->notifier); in co_cache_error_probe() 126 unregister_co_cache_error_notifier(&p->notifier); in co_cache_error_remove()
|
/Linux-v4.19/drivers/leds/trigger/ |
D | ledtrig-backlight.c | 28 struct notifier_block notifier; member 36 struct bl_trig_notifier, notifier); in fb_notifier_callback() 119 n->notifier.notifier_call = fb_notifier_callback; in bl_trig_activate() 121 ret = fb_register_client(&n->notifier); in bl_trig_activate() 132 fb_unregister_client(&n->notifier); in bl_trig_deactivate()
|
/Linux-v4.19/drivers/media/platform/rcar-vin/ |
D | rcar-core.c | 503 static int rvin_parallel_notify_complete(struct v4l2_async_notifier *notifier) in rvin_parallel_notify_complete() argument 505 struct rvin_dev *vin = v4l2_dev_to_vin(notifier->v4l2_dev); in rvin_parallel_notify_complete() 538 static void rvin_parallel_notify_unbind(struct v4l2_async_notifier *notifier, in rvin_parallel_notify_unbind() argument 542 struct rvin_dev *vin = v4l2_dev_to_vin(notifier->v4l2_dev); in rvin_parallel_notify_unbind() 551 static int rvin_parallel_notify_bound(struct v4l2_async_notifier *notifier, in rvin_parallel_notify_bound() argument 555 struct rvin_dev *vin = v4l2_dev_to_vin(notifier->v4l2_dev); in rvin_parallel_notify_bound() 615 vin->dev, &vin->notifier, sizeof(struct rvin_parallel_entity), in rvin_parallel_init() 627 vin->notifier.ops = &rvin_parallel_notify_ops; in rvin_parallel_init() 628 ret = v4l2_async_notifier_register(&vin->v4l2_dev, &vin->notifier); in rvin_parallel_init() 631 v4l2_async_notifier_cleanup(&vin->group->notifier); in rvin_parallel_init() [all …]
|
D | rcar-csi2.c | 356 struct v4l2_async_notifier notifier; member 376 return container_of(n, struct rcar_csi2, notifier); in notifier_to_csi2() 668 static int rcsi2_notify_bound(struct v4l2_async_notifier *notifier, in rcsi2_notify_bound() argument 672 struct rcar_csi2 *priv = notifier_to_csi2(notifier); in rcsi2_notify_bound() 692 static void rcsi2_notify_unbind(struct v4l2_async_notifier *notifier, in rcsi2_notify_unbind() argument 696 struct rcar_csi2 *priv = notifier_to_csi2(notifier); in rcsi2_notify_unbind() 774 priv->notifier.subdevs = devm_kzalloc(priv->dev, in rcsi2_parse_dt() 775 sizeof(*priv->notifier.subdevs), in rcsi2_parse_dt() 777 if (!priv->notifier.subdevs) in rcsi2_parse_dt() 780 priv->notifier.num_subdevs = 1; in rcsi2_parse_dt() [all …]
|
/Linux-v4.19/drivers/media/platform/qcom/camss/ |
D | camss.c | 466 struct v4l2_async_notifier *notifier) in camss_of_parse_ports() argument 475 notifier->num_subdevs++; in camss_of_parse_ports() 478 size = sizeof(*notifier->subdevs) * notifier->num_subdevs; in camss_of_parse_ports() 479 notifier->subdevs = devm_kzalloc(dev, size, GFP_KERNEL); in camss_of_parse_ports() 480 if (!notifier->subdevs) { in camss_of_parse_ports() 499 notifier->subdevs[i++] = &csd->asd; in camss_of_parse_ports() 519 return notifier->num_subdevs; in camss_of_parse_ports() 751 struct camss *camss = container_of(async, struct camss, notifier); in camss_subdev_notifier_bound() 765 struct camss *camss = container_of(async, struct camss, notifier); in camss_subdev_notifier_complete() 866 ret = camss_of_parse_ports(dev, &camss->notifier); in camss_probe() [all …]
|
/Linux-v4.19/drivers/media/platform/cadence/ |
D | cdns-csi2rx.c | 80 struct v4l2_async_notifier notifier; member 248 static int csi2rx_async_bound(struct v4l2_async_notifier *notifier, in csi2rx_async_bound() argument 252 struct v4l2_subdev *subdev = notifier->sd; in csi2rx_async_bound() 402 csi2rx->notifier.subdevs = devm_kzalloc(csi2rx->dev, in csi2rx_parse_dt() 403 sizeof(*csi2rx->notifier.subdevs), in csi2rx_parse_dt() 405 if (!csi2rx->notifier.subdevs) in csi2rx_parse_dt() 408 csi2rx->notifier.subdevs[0] = &csi2rx->asd; in csi2rx_parse_dt() 409 csi2rx->notifier.num_subdevs = 1; in csi2rx_parse_dt() 410 csi2rx->notifier.ops = &csi2rx_notifier_ops; in csi2rx_parse_dt() 413 &csi2rx->notifier); in csi2rx_parse_dt()
|
/Linux-v4.19/drivers/misc/vmw_vmci/ |
D | vmci_context.c | 431 struct vmci_handle_list *notifier, *tmp; in ctx_free_ctx() local 473 list_for_each_entry_safe(notifier, tmp, in ctx_free_ctx() 475 list_del(¬ifier->node); in ctx_free_ctx() 476 kfree(notifier); in ctx_free_ctx() 603 struct vmci_handle_list *notifier, *n; in vmci_ctx_add_notification() local 623 notifier = kmalloc(sizeof(struct vmci_handle_list), GFP_KERNEL); in vmci_ctx_add_notification() 624 if (!notifier) { in vmci_ctx_add_notification() 629 INIT_LIST_HEAD(¬ifier->node); in vmci_ctx_add_notification() 630 notifier->handle = vmci_make_handle(remote_cid, VMCI_EVENT_HANDLER); in vmci_ctx_add_notification() 635 if (vmci_handle_is_equal(n->handle, notifier->handle)) { in vmci_ctx_add_notification() [all …]
|
/Linux-v4.19/tools/testing/selftests/cpu-hotplug/ |
D | cpu-on-off-test.sh | 231 NOTIFIER_ERR_INJECT_DIR=$DEBUGFS/notifier-error-inject/cpu 237 /sbin/modprobe -q -r cpu-notifier-error-inject 238 /sbin/modprobe -q cpu-notifier-error-inject priority=$priority 246 echo $msg cpu-notifier-error-inject module is not available >&2 286 /sbin/modprobe -q -r cpu-notifier-error-inject
|
/Linux-v4.19/drivers/media/platform/xilinx/ |
D | xilinx-vipp.c | 287 static int xvip_graph_notify_complete(struct v4l2_async_notifier *notifier) in xvip_graph_notify_complete() argument 290 container_of(notifier, struct xvip_composite_device, notifier); in xvip_graph_notify_complete() 315 static int xvip_graph_notify_bound(struct v4l2_async_notifier *notifier, in xvip_graph_notify_bound() argument 320 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.ops = &xvip_graph_notify_ops; in xvip_graph_init() 550 ret = v4l2_async_notifier_register(&xdev->v4l2_dev, &xdev->notifier); in xvip_graph_init()
|
/Linux-v4.19/drivers/input/keyboard/ |
D | adp5520-keys.c | 19 struct notifier_block notifier; member 43 dev = container_of(nb, struct adp5520_keys, notifier); in adp5520_keys_notifier() 160 dev->notifier.notifier_call = adp5520_keys_notifier; in adp5520_keys_probe() 161 ret = adp5520_register_notifier(dev->master, &dev->notifier, in adp5520_keys_probe() 176 adp5520_unregister_notifier(dev->master, &dev->notifier, in adp5520_keys_remove()
|
/Linux-v4.19/tools/testing/selftests/memory-hotplug/ |
D | mem-on-off-test.sh | 231 NOTIFIER_ERR_INJECT_DIR=$DEBUGFS/notifier-error-inject/memory 237 /sbin/modprobe -q -r memory-notifier-error-inject 238 /sbin/modprobe -q memory-notifier-error-inject priority=$priority 246 echo $msg memory-notifier-error-inject module is not available >&2 289 /sbin/modprobe -q -r memory-notifier-error-inject
|
/Linux-v4.19/drivers/staging/nvec/ |
D | nvec_power.c | 24 struct notifier_block notifier; member 88 container_of(nb, struct nvec_power, notifier); in nvec_power_notifier() 124 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()
|
D | nvec_ps2.c | 43 struct notifier_block notifier; member 119 ps2_dev.notifier.notifier_call = nvec_ps2_notifier; in nvec_mouse_probe() 121 nvec_register_notifier(nvec, &ps2_dev.notifier, 0); in nvec_mouse_probe() 134 nvec_unregister_notifier(nvec, &ps2_dev.notifier); in nvec_mouse_remove()
|
D | nvec_kbd.c | 33 struct notifier_block notifier; member 144 keys_dev.notifier.notifier_call = nvec_keys_notifier; in nvec_kbd_probe() 146 nvec_register_notifier(nvec, &keys_dev.notifier, 0); in nvec_kbd_probe() 170 nvec_unregister_notifier(nvec, &keys_dev.notifier); in nvec_kbd_remove()
|
/Linux-v4.19/drivers/media/platform/ |
D | rcar_drif.c | 226 struct v4l2_async_notifier notifier; /* For subdev (tuner) */ member 1100 static int rcar_drif_notify_bound(struct v4l2_async_notifier *notifier, in rcar_drif_notify_bound() argument 1105 container_of(notifier, struct rcar_drif_sdr, notifier); in rcar_drif_notify_bound() 1121 static void rcar_drif_notify_unbind(struct v4l2_async_notifier *notifier, in rcar_drif_notify_unbind() argument 1126 container_of(notifier, struct rcar_drif_sdr, notifier); in rcar_drif_notify_unbind() 1143 static int rcar_drif_notify_complete(struct v4l2_async_notifier *notifier) in rcar_drif_notify_complete() argument 1146 container_of(notifier, struct rcar_drif_sdr, notifier); in rcar_drif_notify_complete() 1214 struct v4l2_async_notifier *notifier = &sdr->notifier; in rcar_drif_parse_subdevs() local 1217 notifier->subdevs = devm_kzalloc(sdr->dev, sizeof(*notifier->subdevs), in rcar_drif_parse_subdevs() 1219 if (!notifier->subdevs) in rcar_drif_parse_subdevs() [all …]
|
/Linux-v4.19/arch/mips/kernel/ |
D | vpe-mt.c | 29 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()
|
/Linux-v4.19/drivers/media/platform/tegra-cec/ |
D | tegra_cec.c | 51 struct cec_notifier *notifier; member 403 cec->notifier = cec_notifier_get(&hdmi_dev->dev); in tegra_cec_probe() 404 if (!cec->notifier) { in tegra_cec_probe() 423 cec_register_cec_notifier(cec->adap, cec->notifier); in tegra_cec_probe() 428 if (cec->notifier) in tegra_cec_probe() 429 cec_notifier_put(cec->notifier); in tegra_cec_probe() 443 cec_notifier_put(cec->notifier); in tegra_cec_remove()
|
/Linux-v4.19/drivers/staging/media/imx/ |
D | imx-media-dev.c | 156 static int imx_media_subdev_bound(struct v4l2_async_notifier *notifier, in imx_media_subdev_bound() argument 160 struct imx_media_dev *imxmd = notifier2dev(notifier); in imx_media_subdev_bound() 181 static int imx_media_create_links(struct v4l2_async_notifier *notifier) in imx_media_create_links() argument 183 struct imx_media_dev *imxmd = notifier2dev(notifier); in imx_media_create_links() 194 list_for_each_entry(sd, ¬ifier->done, async_list) { in imx_media_create_links() 346 static int imx_media_probe_complete(struct v4l2_async_notifier *notifier) in imx_media_probe_complete() argument 348 struct imx_media_dev *imxmd = notifier2dev(notifier); in imx_media_probe_complete() 353 ret = imx_media_create_links(notifier); in imx_media_probe_complete()
|