/openbmc/linux/drivers/media/v4l2-core/ |
H A D | v4l2-async.c | 83 if (notifier->sd) in notifier_dev() 86 if (notifier->v4l2_dev) in notifier_dev() 248 notifier = notifier->parent; in v4l2_async_nf_find_v4l2_dev() 289 if (notifier->sd) in v4l2_async_nf_try_complete() 295 notifier = notifier->parent; in v4l2_async_nf_try_complete() 580 notifier->sd = sd; in v4l2_async_subdev_nf_init() 626 if (WARN_ON(!notifier->v4l2_dev == !notifier->sd)) in v4l2_async_nf_register() 636 if (!notifier || (!notifier->v4l2_dev && !notifier->sd)) in __v4l2_async_nf_unregister() 658 if (!notifier || !notifier->waiting_list.next) in __v4l2_async_nf_cleanup() 708 asc->notifier = notifier; in __v4l2_async_nf_add_fwnode() [all …]
|
/openbmc/phosphor-logging/test/openpower-pels/ |
H A D | host_notifier_test.cpp | 299 EXPECT_EQ(notifier.queueSize(), 1); in TEST_F() 307 EXPECT_EQ(notifier.queueSize(), 0); in TEST_F() 323 EXPECT_EQ(notifier.queueSize(), 0); in TEST_F() 329 EXPECT_EQ(notifier.queueSize(), 0); in TEST_F() 338 EXPECT_EQ(notifier.queueSize(), 0); in TEST_F() 591 notifier.ackPEL(id1); in TEST_F() 592 notifier.ackPEL(id2); in TEST_F() 637 notifier.setHostFull(id); in TEST_F() 670 notifier.setHostFull(id); in TEST_F() 687 notifier.ackPEL(id); in TEST_F() [all …]
|
/openbmc/qemu/util/ |
H A D | notify.c | 24 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 39 notifier->notify(notifier, data); in notifier_list_notify() 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 61 QLIST_REMOVE(notifier, node); in notifier_with_return_remove() 67 NotifierWithReturn *notifier, *next; in notifier_with_return_list_notify() local [all …]
|
/openbmc/linux/Documentation/fault-injection/ |
H A D | notifier-error-inject.rst | 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: 37 /sys/kernel/debug/notifier-error-inject/memory/actions/<notifier event>/error 55 /sys/kernel/debug/notifier-error-inject/pSeries-reconfig/actions/<notifier event>/error 64 Netdevice notifier error injection module [all …]
|
/openbmc/linux/include/media/ |
H A D | v4l2-async.h | 81 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, 177 __v4l2_async_nf_add_fwnode(struct v4l2_async_notifier *notifier, 195 #define v4l2_async_nf_add_fwnode(notifier, fwnode, type) \ argument 222 #define v4l2_async_nf_add_fwnode_remote(notifier, ep, type) \ argument 226 __v4l2_async_nf_add_i2c(struct v4l2_async_notifier *notifier, 243 #define v4l2_async_nf_add_i2c(notifier, adapter, address, type) \ argument [all …]
|
/openbmc/linux/drivers/net/ethernet/mellanox/mlx5/core/sf/ |
H A D | vhca_event.c | 20 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() 114 work->notifier = notifier; 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() 144 notifier->dev = dev; in mlx5_vhca_event_init() 166 notifier = dev->priv.vhca_state_notifier; in mlx5_vhca_event_start() [all …]
|
/openbmc/linux/drivers/gpu/drm/amd/amdgpu/ |
H A D | amdgpu_hmm.c | 70 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() 190 hmm_range->notifier = notifier; in amdgpu_hmm_range_get_pages() 211 hmm_range->notifier_seq = mmu_interval_read_begin(notifier); in amdgpu_hmm_range_get_pages() [all …]
|
/openbmc/linux/drivers/staging/media/imx/ |
H A D | imx-media-dev.c | 17 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/qemu/block/ |
H A D | block-ram-registrar.c | 15 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/include/qemu/ |
H A D | notify.h | 23 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/media/platform/renesas/rzg2l-cru/ |
H A D | rzg2l-core.c | 28 return container_of(n, struct rzg2l_cru_dev, notifier); in notifier_to_cru() 41 struct rzg2l_cru_dev *cru = notifier_to_cru(notifier); in rzg2l_cru_group_notify_complete() 97 struct rzg2l_cru_dev *cru = notifier_to_cru(notifier); in rzg2l_cru_group_notify_unbind() 115 struct rzg2l_cru_dev *cru = notifier_to_cru(notifier); in rzg2l_cru_group_notify_bound() 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() 193 if (list_empty(&cru->notifier.waiting_list)) in rzg2l_cru_mc_parse_of_graph() 196 ret = v4l2_async_nf_register(&cru->notifier); in rzg2l_cru_mc_parse_of_graph() 199 v4l2_async_nf_cleanup(&cru->notifier); in rzg2l_cru_mc_parse_of_graph() 306 v4l2_async_nf_unregister(&cru->notifier); in rzg2l_cru_remove() [all …]
|
/openbmc/qemu/hw/i386/ |
H A D | x86-iommu.c | 33 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/linux/drivers/gpu/drm/radeon/ |
H A D | radeon_mn.c | 53 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/staging/media/sunxi/sun6i-isp/ |
H A D | sun6i_isp_proc.c | 401 container_of(notifier, struct sun6i_isp_device, proc.notifier); in sun6i_isp_proc_notifier_bound() 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 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() 557 v4l2_async_nf_cleanup(notifier); in sun6i_isp_proc_setup() 569 struct v4l2_async_notifier *notifier = &isp_dev->proc.notifier; in sun6i_isp_proc_cleanup() local 572 v4l2_async_nf_unregister(notifier); in sun6i_isp_proc_cleanup() [all …]
|
/openbmc/linux/drivers/gpu/drm/nouveau/ |
H A D | nouveau_svm.c | 601 ret = mmu_interval_notifier_insert(¬ifier->notifier, mm, in nouveau_atomic_range_fault() 613 notifier_seq = mmu_interval_read_begin(¬ifier->notifier); in nouveau_atomic_range_fault() 624 if (!mmu_interval_read_retry(¬ifier->notifier, in nouveau_atomic_range_fault() 647 mmu_interval_notifier_remove(¬ifier->notifier); in nouveau_atomic_range_fault() 662 .notifier = ¬ifier->notifier, in nouveau_range_fault() 670 ret = mmu_interval_notifier_insert(¬ifier->notifier, mm, in nouveau_range_fault() 676 range.start = notifier->notifier.interval_tree.start; in nouveau_range_fault() 677 range.end = notifier->notifier.interval_tree.last + 1; in nouveau_range_fault() 710 mmu_interval_notifier_remove(¬ifier->notifier); in nouveau_range_fault() 836 ¬ifier); in nouveau_svm_fault() [all …]
|
/openbmc/qemu/hw/vfio/ |
H A D | ap.c | 79 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/sun4i-csi/ |
H A D | sun4i_csi.c | 46 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() 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() 272 v4l2_async_nf_unregister(&csi->notifier); in sun4i_csi_remove() [all …]
|
/openbmc/linux/drivers/media/platform/xilinx/ |
H A D | xilinx-vipp.c | 59 &xdev->notifier.done_list, in xvip_graph_find_entity() 60 &xdev->notifier.waiting_list in xvip_graph_find_entity() 293 container_of(notifier, struct xvip_composite_device, notifier); in xvip_graph_notify_complete() 382 v4l2_async_nf_cleanup(&xdev->notifier); in xvip_graph_parse_one() 407 v4l2_async_nf_cleanup(&xdev->notifier); in xvip_graph_parse() 484 v4l2_async_nf_unregister(&xdev->notifier); in xvip_graph_cleanup() 485 v4l2_async_nf_cleanup(&xdev->notifier); in xvip_graph_cleanup() 504 v4l2_async_nf_init(&xdev->notifier, &xdev->v4l2_dev); in xvip_graph_init() 513 if (list_empty(&xdev->notifier.waiting_list)) { in xvip_graph_init() 520 xdev->notifier.ops = &xvip_graph_notify_ops; in xvip_graph_init() [all …]
|
/openbmc/qemu/tests/unit/ |
H A D | test-nested-aio-poll.c | 31 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 D | tcg-accel-ops-mttcg.c | 40 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/media/platform/sunxi/sun6i-mipi-csi2/ |
H A D | sun6i_mipi_csi2.c | 412 struct v4l2_subdev *subdev = notifier->sd; 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 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() 542 ret = v4l2_async_nf_register(notifier); in sun6i_mipi_csi2_bridge_setup() 559 v4l2_async_nf_unregister(notifier); in sun6i_mipi_csi2_bridge_setup() 562 v4l2_async_nf_cleanup(notifier); in sun6i_mipi_csi2_bridge_setup() 573 struct v4l2_async_notifier *notifier = &csi2_dev->bridge.notifier; in sun6i_mipi_csi2_bridge_cleanup() local 576 v4l2_async_nf_unregister(notifier); in sun6i_mipi_csi2_bridge_cleanup() [all …]
|
/openbmc/linux/drivers/media/platform/renesas/ |
H A D | rcar-isp.c | 122 struct v4l2_async_notifier notifier; member 137 return container_of(n, struct rcar_isp, notifier); in notifier_to_isp() 331 struct rcar_isp *isp = notifier_to_isp(notifier); in risp_notify_bound() 355 struct rcar_isp *isp = notifier_to_isp(notifier); in risp_notify_unbind() 396 isp->notifier.ops = &risp_notify_ops; in risp_parse_dt() 404 ret = v4l2_async_nf_register(&isp->notifier); in risp_parse_dt() 406 v4l2_async_nf_cleanup(&isp->notifier); in risp_parse_dt() 494 v4l2_async_nf_unregister(&isp->notifier); in risp_probe() 495 v4l2_async_nf_cleanup(&isp->notifier); in risp_probe() 508 v4l2_async_nf_unregister(&isp->notifier); in risp_remove() [all …]
|
/openbmc/linux/drivers/edac/ |
H A D | sifive_edac.c | 18 struct notifier_block notifier; member 33 p = container_of(this, struct sifive_edac_priv, notifier); in ecc_err_event() 51 p->notifier.notifier_call = ecc_err_event; in ecc_register() 70 register_sifive_ccache_error_notifier(&p->notifier); in ecc_register() 84 unregister_sifive_ccache_error_notifier(&p->notifier); in ecc_unregister()
|
/openbmc/linux/include/linux/ |
H A D | preempt.h | 338 void (*sched_in)(struct preempt_notifier *notifier, int cpu); 339 void (*sched_out)(struct preempt_notifier *notifier, 357 void preempt_notifier_register(struct preempt_notifier *notifier); 358 void preempt_notifier_unregister(struct preempt_notifier *notifier); 360 static inline void preempt_notifier_init(struct preempt_notifier *notifier, in preempt_notifier_init() argument 363 INIT_HLIST_NODE(¬ifier->link); in preempt_notifier_init() 364 notifier->ops = ops; in preempt_notifier_init()
|
/openbmc/linux/drivers/pwm/ |
H A D | pwm-iqs620a.c | 38 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()
|