Home
last modified time | relevance | path

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

12345678910>>...18

/openbmc/linux/drivers/media/v4l2-core/
H A Dv4l2-async.c66 static bool match_i2c(struct v4l2_async_notifier *notifier, in match_i2c() argument
81 static struct device *notifier_dev(struct v4l2_async_notifier *notifier) in notifier_dev() argument
83 if (notifier->sd) in notifier_dev()
84 return notifier->sd->dev; in notifier_dev()
86 if (notifier->v4l2_dev) in notifier_dev()
87 return notifier->v4l2_dev->dev; in notifier_dev()
93 match_fwnode_one(struct v4l2_async_notifier *notifier, in match_fwnode_one() argument
100 dev_dbg(notifier_dev(notifier), in match_fwnode_one()
105 dev_dbg(notifier_dev(notifier), in match_fwnode_one()
111 dev_dbg(notifier_dev(notifier), in match_fwnode_one()
[all …]
/openbmc/phosphor-logging/test/openpower-pels/
H A Dhost_notifier_test.cpp160 HostNotifier notifier{repo, dataIface, std::move(hostIface)}; in TEST_F() local
166 EXPECT_TRUE(notifier.enqueueRequired(pel->id())); in TEST_F()
167 EXPECT_TRUE(notifier.notifyRequired(pel->id())); in TEST_F()
170 EXPECT_FALSE(notifier.enqueueRequired(42)); in TEST_F()
171 EXPECT_FALSE(notifier.notifyRequired(42)); in TEST_F()
177 EXPECT_FALSE(notifier.enqueueRequired(pel->id())); in TEST_F()
178 EXPECT_FALSE(notifier.notifyRequired(pel->id())); in TEST_F()
184 HostNotifier notifier{repo, dataIface, std::move(hostIface)}; in TEST_F() local
196 EXPECT_FALSE(notifier.enqueueRequired(pel->id())); in TEST_F()
203 HostNotifier notifier{repo, dataIface, std::move(hostIface)}; in TEST_F() local
[all …]
/openbmc/qemu/util/
H A Dnotify.c24 void notifier_list_add(NotifierList *list, Notifier *notifier) in notifier_list_add() argument
26 QLIST_INSERT_HEAD(&list->notifiers, notifier, node); in notifier_list_add()
29 void notifier_remove(Notifier *notifier) in notifier_remove() argument
31 QLIST_REMOVE(notifier, node); in notifier_remove()
36 Notifier *notifier, *next; in notifier_list_notify() local
38 QLIST_FOREACH_SAFE(notifier, &list->notifiers, node, next) { in notifier_list_notify()
39 notifier->notify(notifier, data); in notifier_list_notify()
54 NotifierWithReturn *notifier) in notifier_with_return_list_add() argument
56 QLIST_INSERT_HEAD(&list->notifiers, notifier, node); in notifier_with_return_list_add()
59 void notifier_with_return_remove(NotifierWithReturn *notifier) in notifier_with_return_remove() argument
[all …]
/openbmc/linux/Documentation/fault-injection/
H A Dnotifier-error-inject.rst5 specified notifier chain callbacks. It is useful to test the error handling of
6 notifier call chain failures which is rarely executed. There are kernel
9 * PM notifier
10 * Memory hotplug notifier
11 * powerpc pSeries reconfig notifier
12 * Netdevice notifier
14 PM notifier error injection module
18 /sys/kernel/debug/notifier-error-inject/pm/actions/<notifier event>/error
20 Possible PM notifier events to be failed are:
28 # cd /sys/kernel/debug/notifier-error-inject/pm/
[all …]
/openbmc/linux/include/media/
H A Dv4l2-async.h81 struct v4l2_async_notifier *notifier; member
96 int (*bound)(struct v4l2_async_notifier *notifier,
99 int (*complete)(struct v4l2_async_notifier *notifier);
100 void (*unbind)(struct v4l2_async_notifier *notifier,
159 void v4l2_async_nf_init(struct v4l2_async_notifier *notifier,
173 void v4l2_async_subdev_nf_init(struct v4l2_async_notifier *notifier,
177 __v4l2_async_nf_add_fwnode(struct v4l2_async_notifier *notifier,
195 #define v4l2_async_nf_add_fwnode(notifier, fwnode, type) \ argument
196 ((type *)__v4l2_async_nf_add_fwnode(notifier, fwnode, sizeof(type)))
222 #define v4l2_async_nf_add_fwnode_remote(notifier, ep, type) \ argument
[all …]
/openbmc/linux/drivers/net/ethernet/mellanox/mlx5/core/sf/
H A Dvhca_event.c20 struct mlx5_vhca_state_notifier *notifier; member
95 struct mlx5_vhca_state_notifier *notifier = work->notifier; in mlx5_vhca_state_work_handler() local
96 struct mlx5_core_dev *dev = notifier->dev; in mlx5_vhca_state_work_handler()
105 struct mlx5_vhca_state_notifier *notifier = in mlx5_vhca_state_change_notifier() local
114 work->notifier = notifier; in mlx5_vhca_state_change_notifier()
116 mlx5_events_work_enqueue(notifier->dev, &work->work); in mlx5_vhca_state_change_notifier()
134 struct mlx5_vhca_state_notifier *notifier; in mlx5_vhca_event_init() local
139 notifier = kzalloc(sizeof(*notifier), GFP_KERNEL); in mlx5_vhca_event_init()
140 if (!notifier) in mlx5_vhca_event_init()
143 dev->priv.vhca_state_notifier = notifier; in mlx5_vhca_event_init()
[all …]
/openbmc/linux/drivers/gpu/drm/amd/amdgpu/
H A Damdgpu_hmm.c70 struct amdgpu_bo *bo = container_of(mni, struct amdgpu_bo, notifier); in amdgpu_hmm_invalidate_gfx()
107 struct amdgpu_bo *bo = container_of(mni, struct amdgpu_bo, notifier); in amdgpu_hmm_invalidate_hsa()
135 r = mmu_interval_notifier_insert(&bo->notifier, current->mm, in amdgpu_hmm_register()
139 r = mmu_interval_notifier_insert(&bo->notifier, current->mm, addr, in amdgpu_hmm_register()
148 bo->notifier.mm = NULL; in amdgpu_hmm_register()
162 if (!bo->notifier.mm) in amdgpu_hmm_unregister()
164 mmu_interval_notifier_remove(&bo->notifier); in amdgpu_hmm_unregister()
165 bo->notifier.mm = NULL; in amdgpu_hmm_unregister()
168 int amdgpu_hmm_range_get_pages(struct mmu_interval_notifier *notifier, in amdgpu_hmm_range_get_pages() argument
190 hmm_range->notifier = notifier; in amdgpu_hmm_range_get_pages()
[all …]
/openbmc/linux/drivers/staging/media/imx/
H A Dimx-media-dev.c17 return container_of(n, struct imx_media_dev, notifier); in notifier2dev()
21 static int imx_media_subdev_bound(struct v4l2_async_notifier *notifier, in imx_media_subdev_bound() argument
25 struct imx_media_dev *imxmd = notifier2dev(notifier); in imx_media_subdev_bound()
41 static int imx6_media_probe_complete(struct v4l2_async_notifier *notifier) in imx6_media_probe_complete() argument
43 struct imx_media_dev *imxmd = notifier2dev(notifier); in imx6_media_probe_complete()
47 ret = imx_media_probe_complete(notifier); in imx6_media_probe_complete()
97 v4l2_async_nf_cleanup(&imxmd->notifier); in imx_media_probe()
116 v4l2_async_nf_unregister(&imxmd->notifier); in imx_media_remove()
118 v4l2_async_nf_cleanup(&imxmd->notifier); in imx_media_remove()
/openbmc/linux/drivers/media/platform/renesas/rzg2l-cru/
H A Drzg2l-core.c28 return container_of(n, struct rzg2l_cru_dev, notifier); in notifier_to_cru()
39 static int rzg2l_cru_group_notify_complete(struct v4l2_async_notifier *notifier) in rzg2l_cru_group_notify_complete() argument
41 struct rzg2l_cru_dev *cru = notifier_to_cru(notifier); in rzg2l_cru_group_notify_complete()
93 static void rzg2l_cru_group_notify_unbind(struct v4l2_async_notifier *notifier, in rzg2l_cru_group_notify_unbind() argument
97 struct rzg2l_cru_dev *cru = notifier_to_cru(notifier); in rzg2l_cru_group_notify_unbind()
111 static int rzg2l_cru_group_notify_bound(struct v4l2_async_notifier *notifier, in rzg2l_cru_group_notify_bound() argument
115 struct rzg2l_cru_dev *cru = notifier_to_cru(notifier); in rzg2l_cru_group_notify_bound()
164 asd = v4l2_async_nf_add_fwnode(&cru->notifier, fwnode, in rzg2l_cru_mc_parse_of()
185 v4l2_async_nf_init(&cru->notifier, &cru->v4l2_dev); in rzg2l_cru_mc_parse_of_graph()
191 cru->notifier.ops = &rzg2l_cru_async_ops; in rzg2l_cru_mc_parse_of_graph()
[all …]
/openbmc/qemu/block/
H A Dblock-ram-registrar.c15 BlockRAMRegistrar *r = container_of(n, BlockRAMRegistrar, notifier); in ram_block_added()
24 ram_block_notifier_remove(&r->notifier); in ram_block_added()
32 BlockRAMRegistrar *r = container_of(n, BlockRAMRegistrar, notifier); in ram_block_removed()
39 r->notifier = (RAMBlockNotifier){ in blk_ram_registrar_init()
50 ram_block_notifier_add(&r->notifier); in blk_ram_registrar_init()
56 ram_block_notifier_remove(&r->notifier); in blk_ram_registrar_destroy()
/openbmc/qemu/hw/i386/
H A Dx86-iommu.c33 IEC_Notifier *notifier = g_new0(IEC_Notifier, 1); in x86_iommu_iec_register_notifier() local
35 notifier->iec_notify = fn; in x86_iommu_iec_register_notifier()
36 notifier->private = data; in x86_iommu_iec_register_notifier()
38 QLIST_INSERT_HEAD(&iommu->iec_notifiers, notifier, list); in x86_iommu_iec_register_notifier()
44 IEC_Notifier *notifier; in x86_iommu_iec_notify_all() local
48 QLIST_FOREACH(notifier, &iommu->iec_notifiers, list) { in x86_iommu_iec_notify_all()
49 if (notifier->iec_notify) { in x86_iommu_iec_notify_all()
50 notifier->iec_notify(notifier->private, global, in x86_iommu_iec_notify_all()
/openbmc/qemu/include/qemu/
H A Dnotify.h23 void (*notify)(Notifier *notifier, void *data);
37 void notifier_list_add(NotifierList *list, Notifier *notifier);
39 void notifier_remove(Notifier *notifier);
49 typedef int (*NotifierWithReturnFunc)(NotifierWithReturn *notifier, void *data,
71 NotifierWithReturn *notifier);
73 void notifier_with_return_remove(NotifierWithReturn *notifier);
/openbmc/linux/drivers/staging/media/sunxi/sun6i-isp/
H A Dsun6i_isp_proc.c396 static int sun6i_isp_proc_notifier_bound(struct v4l2_async_notifier *notifier, in sun6i_isp_proc_notifier_bound() argument
401 container_of(notifier, struct sun6i_isp_device, proc.notifier); in sun6i_isp_proc_notifier_bound()
429 sun6i_isp_proc_notifier_complete(struct v4l2_async_notifier *notifier) in sun6i_isp_proc_notifier_complete() argument
432 container_of(notifier, struct sun6i_isp_device, proc.notifier); in sun6i_isp_proc_notifier_complete()
456 struct v4l2_async_notifier *notifier = &isp_dev->proc.notifier; in sun6i_isp_proc_source_setup() local
471 v4l2_async_nf_add_fwnode_remote(notifier, handle, in sun6i_isp_proc_source_setup()
494 struct v4l2_async_notifier *notifier = &proc->notifier; in sun6i_isp_proc_setup() local
539 v4l2_async_nf_init(notifier, v4l2_dev); in sun6i_isp_proc_setup()
540 notifier->ops = &sun6i_isp_proc_notifier_ops; in sun6i_isp_proc_setup()
547 ret = v4l2_async_nf_register(notifier); in sun6i_isp_proc_setup()
[all …]
/openbmc/linux/drivers/gpu/drm/radeon/
H A Dradeon_mn.c53 struct radeon_bo *bo = container_of(mn, struct radeon_bo, notifier); in radeon_mn_invalidate()
100 ret = mmu_interval_notifier_insert(&bo->notifier, current->mm, addr, in radeon_mn_register()
111 mmu_interval_read_begin(&bo->notifier); in radeon_mn_register()
124 if (!bo->notifier.mm) in radeon_mn_unregister()
126 mmu_interval_notifier_remove(&bo->notifier); in radeon_mn_unregister()
127 bo->notifier.mm = NULL; in radeon_mn_unregister()
/openbmc/linux/drivers/gpu/drm/nouveau/
H A Dnouveau_svm.c259 container_of(mn, struct nouveau_svmm, notifier); in nouveau_svmm_invalidate_range_start()
297 kfree(container_of(mn, struct nouveau_svmm, notifier)); in nouveau_svmm_free_notifier()
313 mmu_notifier_put(&svmm->notifier); in nouveau_svmm_fini()
362 svmm->notifier.ops = &nouveau_mn_ops; in nouveau_svmm_init()
363 ret = __mmu_notifier_register(&svmm->notifier, current->mm); in nouveau_svmm_init()
505 struct mmu_interval_notifier notifier; member
514 container_of(mni, struct svm_notifier, notifier); in nouveau_svm_range_invalidate()
591 struct svm_notifier *notifier) in nouveau_atomic_range_fault() argument
595 struct mm_struct *mm = svmm->notifier.mm; in nouveau_atomic_range_fault()
601 ret = mmu_interval_notifier_insert(&notifier->notifier, mm, in nouveau_atomic_range_fault()
[all …]
/openbmc/linux/drivers/media/platform/xilinx/
H A Dxilinx-vipp.c59 &xdev->notifier.done_list, in xvip_graph_find_entity()
60 &xdev->notifier.waiting_list in xvip_graph_find_entity()
290 static int xvip_graph_notify_complete(struct v4l2_async_notifier *notifier) in xvip_graph_notify_complete() argument
293 container_of(notifier, struct xvip_composite_device, notifier); in xvip_graph_notify_complete()
301 list_for_each_entry(asd, &xdev->notifier.done_list, asc_entry) { in xvip_graph_notify_complete()
320 static int xvip_graph_notify_bound(struct v4l2_async_notifier *notifier, in xvip_graph_notify_bound() argument
370 xge = v4l2_async_nf_add_fwnode(&xdev->notifier, remote, in xvip_graph_parse_one()
382 v4l2_async_nf_cleanup(&xdev->notifier); in xvip_graph_parse_one()
403 list_for_each_entry(asd, &xdev->notifier.waiting_list, asc_entry) { in xvip_graph_parse()
407 v4l2_async_nf_cleanup(&xdev->notifier); in xvip_graph_parse()
[all …]
/openbmc/linux/drivers/media/platform/sunxi/sun4i-csi/
H A Dsun4i_csi.c46 static int sun4i_csi_notify_bound(struct v4l2_async_notifier *notifier, in sun4i_csi_notify_bound() argument
50 struct sun4i_csi *csi = container_of(notifier, struct sun4i_csi, in sun4i_csi_notify_bound()
51 notifier); in sun4i_csi_notify_bound()
67 static int sun4i_csi_notify_complete(struct v4l2_async_notifier *notifier) in sun4i_csi_notify_complete() argument
69 struct sun4i_csi *csi = container_of(notifier, struct sun4i_csi, in sun4i_csi_notify_complete()
70 notifier); in sun4i_csi_notify_complete()
128 v4l2_async_nf_init(&csi->notifier, &csi->v4l); in sun4i_csi_notifier_init()
141 asd = v4l2_async_nf_add_fwnode_remote(&csi->notifier, ep, in sun4i_csi_notifier_init()
148 csi->notifier.ops = &sun4i_csi_notify_ops; in sun4i_csi_notifier_init()
247 ret = v4l2_async_nf_register(&csi->notifier); in sun4i_csi_probe()
[all …]
/openbmc/qemu/hw/vfio/
H A Dap.c79 EventNotifier *notifier; in vfio_ap_register_irq_notifier() local
85 notifier = &vapdev->req_notifier; in vfio_ap_register_irq_notifier()
110 if (event_notifier_init(notifier, 0)) { in vfio_ap_register_irq_notifier()
117 fd = event_notifier_get_fd(notifier); in vfio_ap_register_irq_notifier()
123 event_notifier_cleanup(notifier); in vfio_ap_register_irq_notifier()
133 EventNotifier *notifier; in vfio_ap_unregister_irq_notifier() local
137 notifier = &vapdev->req_notifier; in vfio_ap_unregister_irq_notifier()
149 qemu_set_fd_handler(event_notifier_get_fd(notifier), in vfio_ap_unregister_irq_notifier()
151 event_notifier_cleanup(notifier); in vfio_ap_unregister_irq_notifier()
/openbmc/linux/drivers/media/platform/sunxi/sun6i-mipi-csi2/
H A Dsun6i_mipi_csi2.c408 sun6i_mipi_csi2_notifier_bound(struct v4l2_async_notifier *notifier, in sun6i_mipi_csi2_notifier_bound() argument
412 struct v4l2_subdev *subdev = notifier->sd; in sun6i_mipi_csi2_notifier_bound()
414 container_of(notifier, struct sun6i_mipi_csi2_device, in sun6i_mipi_csi2_notifier_bound()
415 bridge.notifier); in sun6i_mipi_csi2_notifier_bound()
462 struct v4l2_async_notifier *notifier = &csi2_dev->bridge.notifier; in sun6i_mipi_csi2_bridge_source_setup() local
481 v4l2_async_nf_add_fwnode_remote(notifier, handle, in sun6i_mipi_csi2_bridge_source_setup()
496 struct v4l2_async_notifier *notifier = &bridge->notifier; in sun6i_mipi_csi2_bridge_setup() local
533 v4l2_async_subdev_nf_init(notifier, subdev); in sun6i_mipi_csi2_bridge_setup()
534 notifier->ops = &sun6i_mipi_csi2_notifier_ops; in sun6i_mipi_csi2_bridge_setup()
542 ret = v4l2_async_nf_register(notifier); in sun6i_mipi_csi2_bridge_setup()
[all …]
/openbmc/linux/drivers/media/platform/renesas/
H A Drcar-isp.c122 struct v4l2_async_notifier notifier; member
137 return container_of(n, struct rcar_isp, notifier); in notifier_to_isp()
327 static int risp_notify_bound(struct v4l2_async_notifier *notifier, in risp_notify_bound() argument
331 struct rcar_isp *isp = notifier_to_isp(notifier); in risp_notify_bound()
351 static void risp_notify_unbind(struct v4l2_async_notifier *notifier, in risp_notify_unbind() argument
355 struct rcar_isp *isp = notifier_to_isp(notifier); in risp_notify_unbind()
395 v4l2_async_subdev_nf_init(&isp->notifier, &isp->subdev); in risp_parse_dt()
396 isp->notifier.ops = &risp_notify_ops; in risp_parse_dt()
398 asd = v4l2_async_nf_add_fwnode(&isp->notifier, fwnode, in risp_parse_dt()
404 ret = v4l2_async_nf_register(&isp->notifier); in risp_parse_dt()
[all …]
/openbmc/linux/drivers/media/platform/sunxi/sun6i-csi/
H A Dsun6i_csi_bridge.c643 sun6i_csi_bridge_notifier_bound(struct v4l2_async_notifier *notifier, in sun6i_csi_bridge_notifier_bound() argument
648 container_of(notifier, struct sun6i_csi_device, in sun6i_csi_bridge_notifier_bound()
649 bridge.notifier); in sun6i_csi_bridge_notifier_bound()
686 sun6i_csi_bridge_notifier_complete(struct v4l2_async_notifier *notifier) in sun6i_csi_bridge_notifier_complete() argument
689 container_of(notifier, struct sun6i_csi_device, in sun6i_csi_bridge_notifier_complete()
690 bridge.notifier); in sun6i_csi_bridge_notifier_complete()
713 struct v4l2_async_notifier *notifier = &csi_dev->bridge.notifier; in sun6i_csi_bridge_source_setup() local
747 v4l2_async_nf_add_fwnode_remote(notifier, handle, in sun6i_csi_bridge_source_setup()
771 struct v4l2_async_notifier *notifier = &bridge->notifier; in sun6i_csi_bridge_setup() local
823 v4l2_async_subdev_nf_init(notifier, subdev); in sun6i_csi_bridge_setup()
[all …]
/openbmc/linux/drivers/media/platform/sunxi/sun8i-a83t-mipi-csi2/
H A Dsun8i_a83t_mipi_csi2.c445 sun8i_a83t_mipi_csi2_notifier_bound(struct v4l2_async_notifier *notifier, in sun8i_a83t_mipi_csi2_notifier_bound() argument
449 struct v4l2_subdev *subdev = notifier->sd; in sun8i_a83t_mipi_csi2_notifier_bound()
451 container_of(notifier, struct sun8i_a83t_mipi_csi2_device, in sun8i_a83t_mipi_csi2_notifier_bound()
452 bridge.notifier); in sun8i_a83t_mipi_csi2_notifier_bound()
499 struct v4l2_async_notifier *notifier = &csi2_dev->bridge.notifier; in sun8i_a83t_mipi_csi2_bridge_source_setup() local
518 v4l2_async_nf_add_fwnode_remote(notifier, handle, in sun8i_a83t_mipi_csi2_bridge_source_setup()
534 struct v4l2_async_notifier *notifier = &bridge->notifier; in sun8i_a83t_mipi_csi2_bridge_setup() local
571 v4l2_async_subdev_nf_init(notifier, subdev); in sun8i_a83t_mipi_csi2_bridge_setup()
572 notifier->ops = &sun8i_a83t_mipi_csi2_notifier_ops; in sun8i_a83t_mipi_csi2_bridge_setup()
580 ret = v4l2_async_nf_register(notifier); in sun8i_a83t_mipi_csi2_bridge_setup()
[all …]
/openbmc/qemu/tests/unit/
H A Dtest-nested-aio-poll.c31 static void io_read(EventNotifier *notifier) in io_read() argument
33 event_notifier_test_and_clear(notifier); in io_read()
46 static void io_poll_ready(EventNotifier *notifier) in io_poll_ready() argument
48 TestData *td = container_of(notifier, TestData, poll_notifier); in io_poll_ready()
63 static void io_poll_never_ready(EventNotifier *notifier) in io_poll_never_ready() argument
/openbmc/qemu/accel/tcg/
H A Dtcg-accel-ops-mttcg.c40 Notifier notifier; member
50 CPUState *cpu = container_of(notify, MttcgForceRcuNotifier, notifier)->cpu; in mttcg_force_rcu()
74 force_rcu.notifier.notify = mttcg_force_rcu; in mttcg_cpu_thread_fn()
76 rcu_add_force_rcu_notifier(&force_rcu.notifier); in mttcg_cpu_thread_fn()
123 rcu_remove_force_rcu_notifier(&force_rcu.notifier); in mttcg_cpu_thread_fn()
/openbmc/linux/drivers/pwm/
H A Dpwm-iqs620a.c38 struct notifier_block notifier; member
134 static int iqs620_pwm_notifier(struct notifier_block *notifier, in iqs620_pwm_notifier() argument
143 iqs620_pwm = container_of(notifier, struct iqs620_pwm_private, in iqs620_pwm_notifier()
144 notifier); in iqs620_pwm_notifier()
178 &iqs620_pwm->notifier); in iqs620_pwm_notifier_unregister()
215 iqs620_pwm->notifier.notifier_call = iqs620_pwm_notifier; in iqs620_pwm_probe()
217 &iqs620_pwm->notifier); in iqs620_pwm_probe()

12345678910>>...18