/openbmc/linux/drivers/media/v4l2-core/ |
H A D | v4l2-async.c | 66 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/linux/kernel/ |
H A D | notifier.c | 5 #include <linux/notifier.h> 11 #include <trace/events/notifier.h> 14 * Notifier list for kernel code which wants to be called 21 * Notifier chain core routines. The exported routines below 31 WARN(1, "notifier callback %ps already registered", in notifier_chain_register() 63 * @nl: Pointer to head of the blocking notifier chain 64 * @val: Value passed unmodified to notifier function 65 * @v: Pointer passed unmodified to notifier function 66 * @nr_to_call: Number of notifier functions to be called. Don't care 71 * last notifier function called. [all …]
|
/openbmc/linux/include/media/ |
H A D | v4l2-async.h | 69 * @notifier: the async notifier the connection is related to 71 * notifier @waiting_list or @done_list 81 struct v4l2_async_notifier *notifier; member 88 * struct v4l2_async_notifier_operations - Asynchronous V4L2 notifier operations 91 * callback is only executed for the root notifier. 96 int (*bound)(struct v4l2_async_notifier *notifier, 99 int (*complete)(struct v4l2_async_notifier *notifier); 100 void (*unbind)(struct v4l2_async_notifier *notifier, 107 * struct v4l2_async_notifier - v4l2_device notifier data 109 * @ops: notifier operations [all …]
|
H A D | cec-notifier.h | 3 * cec-notifier.h - notify CEC drivers of physical address changes 30 * If a notifier for device @dev and connector @port_name already exists, then 31 * increase the refcount and return that notifier. 33 * If it doesn't exist, then allocate a new notifier struct and return a 45 * @n: notifier. If NULL, then this function does nothing. 55 * @adap: the cec adapter that registered this notifier. 57 * If a notifier for device @dev and connector @port_name already exists, then 58 * increase the refcount and return that notifier. 60 * If it doesn't exist, then allocate a new notifier struct and return a 72 * @n: notifier. If NULL, then this function does nothing. [all …]
|
/openbmc/linux/Documentation/fault-injection/ |
H A D | notifier-error-inject.rst | 1 Notifier error injection 4 Notifier error injection provides the ability to inject artificial errors to 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 18 /sys/kernel/debug/notifier-error-inject/pm/actions/<notifier event>/error [all …]
|
/openbmc/qemu/util/ |
H A D | notify.c | 2 * Notifier lists 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 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() [all …]
|
/openbmc/qemu/include/qemu/ |
H A D | notify.h | 2 * Notifier lists 19 typedef struct Notifier Notifier; typedef 21 struct Notifier struct 23 void (*notify)(Notifier *notifier, void *data); argument 24 QLIST_ENTRY(Notifier) node; 29 QLIST_HEAD(, Notifier) notifiers; 37 void notifier_list_add(NotifierList *list, Notifier *notifier); 39 void notifier_remove(Notifier *notifier); 45 /* Same as Notifier but allows .notify() to return errors */ 49 typedef int (*NotifierWithReturnFunc)(NotifierWithReturn *notifier, void *data, [all …]
|
H A D | thread.h | 202 struct Notifier; 205 * @notifier: Notifier to add 207 * Add the specified notifier to a list which will be run via 210 * The usual usage is that the caller passes a Notifier which is 217 void qemu_thread_atexit_add(struct Notifier *notifier); 220 * @notifier: Notifier to remove 222 * Remove the specified notifier from the thread-exit notification 223 * list. It is not valid to try to remove a notifier which is not 226 void qemu_thread_atexit_remove(struct Notifier *notifier);
|
/openbmc/phosphor-logging/test/openpower-pels/ |
H A D | host_notifier_test.cpp | 160 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/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() 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/net/core/ |
H A D | netevent.c | 13 #include <linux/notifier.h> 20 * register_netevent_notifier - register a netevent notifier block 21 * @nb: notifier 23 * Register a notifier to be called when a netevent occurs. 24 * The notifier passed is linked into the kernel structures and must 35 * unregister_netevent_notifier - unregister a netevent notifier block 36 * @nb: notifier 38 * Unregister a notifier previously registered by 39 * register_neigh_notifier(). The notifier is unlinked into the 51 * call_netevent_notifiers - call all netevent notifier blocks [all …]
|
/openbmc/openbmc/meta-security/dynamic-layers/meta-python/recipes-devtools/python/python3-pyinotify/ |
H A D | 0001-Make-asyncore-support-optional-for-Python-3.patch | 28 @@ -1494,33 +1493,40 @@ class ThreadedNotifier(threading.Thread, Notifier): 32 -class AsyncNotifier(asyncore.file_dispatcher, Notifier): 34 - This notifier inherits from asyncore.file_dispatcher in order to be able to 42 + class AsyncNotifier(asyncore.file_dispatcher, Notifier): 44 - Initializes the async notifier. The only additional parameter is 46 - Notifier class for the meaning of the others parameters. 47 + This notifier inherits from asyncore.file_dispatcher in order to be able to 51 - Notifier.__init__(self, watch_manager, default_proc_fun, read_freq, 57 + Initializes the async notifier. The only additional parameter is 59 + Notifier class for the meaning of the others parameters. [all …]
|
/openbmc/linux/drivers/gpu/drm/amd/amdgpu/ |
H A D | amdgpu_hmm.c | 32 * DOC: MMU Notifier 34 * For coherent userptr handling registers an MMU notifier to inform the driver 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() 122 * amdgpu_hmm_register - register a BO for notifier updates 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() 145 * mmu_interval_notifier_remove() when the notifier isn't properly in amdgpu_hmm_register() 148 bo->notifier.mm = NULL; in amdgpu_hmm_register() 154 * amdgpu_hmm_unregister - unregister a BO for notifier updates [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() 20 /* async subdev bound notifier */ 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() 40 /* async subdev complete notifier */ 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() 66 /* async subdev complete notifier */ 97 v4l2_async_nf_cleanup(&imxmd->notifier); in imx_media_probe() [all …]
|
/openbmc/linux/arch/powerpc/platforms/powernv/ |
H A D | opal-power.c | 12 #include <linux/notifier.h> 77 /* OPAL power-control events notifier */ 116 /* OPAL EPOW event notifier block */ 123 /* OPAL DPO event notifier block */ 130 /* OPAL power-control event notifier block */ 142 /* Register OPAL power-control events notifier */ in opal_power_control_init() 146 pr_err("Failed to register SHUTDOWN notifier, ret = %d\n", ret); in opal_power_control_init() 159 /* Register EPOW event notifier */ in opal_power_control_init() 162 pr_err("Failed to register EPOW notifier, ret = %d\n", ret); in opal_power_control_init() 164 /* Register DPO event notifier */ in opal_power_control_init() [all …]
|
/openbmc/linux/drivers/gpu/drm/radeon/ |
H A D | radeon_mn.c | 42 * @mn: our notifier 53 struct radeon_bo *bo = container_of(mn, struct radeon_bo, notifier); in radeon_mn_invalidate() 88 * radeon_mn_register - register a BO for notifier updates 93 * Registers an MMU notifier for the given BO at the specified address. 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() 116 * radeon_mn_unregister - unregister a BO for notifier updates 120 * Remove any registration of MMU notifier updates from the buffer object. 124 if (!bo->notifier.mm) in radeon_mn_unregister() 126 mmu_interval_notifier_remove(&bo->notifier); in radeon_mn_unregister() [all …]
|
/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() 36 * Group async notifier 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() [all …]
|
/openbmc/linux/drivers/staging/media/sunxi/sun6i-isp/ |
H A D | sun6i_isp_proc.c | 396 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/qemu/include/sysemu/ |
H A D | runstate.h | 86 void qemu_register_suspend_notifier(Notifier *notifier); 90 void qemu_register_wakeup_notifier(Notifier *notifier); 96 void qemu_register_powerdown_notifier(Notifier *notifier); 97 void qemu_register_shutdown_notifier(Notifier *notifier);
|
/openbmc/linux/drivers/video/fbdev/core/ |
H A D | fb_notify.c | 14 #include <linux/notifier.h> 20 * fb_register_client - register a client notifier 21 * @nb: notifier block to callback on events 32 * fb_unregister_client - unregister a client notifier 33 * @nb: notifier block to callback on events 48 * Return: The return value of the last notifier function
|
/openbmc/linux/drivers/gpu/drm/nouveau/ |
H A D | nouveau_svm.c | 259 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() 524 * notifier that does invalidation is always called after the range in nouveau_svm_range_invalidate() 525 * notifier. in nouveau_svm_range_invalidate() 591 struct svm_notifier *notifier) in nouveau_atomic_range_fault() argument [all …]
|
/openbmc/linux/drivers/usb/core/ |
H A D | notify.c | 7 * notifier functions originally based on those in kernel/sys.c 16 #include <linux/notifier.h> 24 * usb_register_notify - register a notifier callback whenever a usb change happens 25 * @nb: pointer to the notifier block for the callback events. 36 * usb_unregister_notify - unregister a notifier callback 37 * @nb: pointer to the notifier block for the callback events.
|
/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/linux/include/linux/soc/ti/ |
H A D | knav_qmss.h | 33 * @KNAV_QUEUE_SET_NOTIFIER: Set a notifier callback to a queue handle. 34 * @KNAV_QUEUE_ENABLE_NOTIFY: Enable notifier callback for a queue handle. 35 * @KNAV_QUEUE_DISABLE_NOTIFY: Disable notifier callback for a queue handle. 47 /* Queue notifier callback prototype */ 51 * struct knav_queue_notify_config: Notifier configuration 52 * @fn: Notifier function 53 * @fn_arg: Notifier function arguments
|
/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()
|