| /kernel/linux/linux-6.6/drivers/media/v4l2-core/ |
| 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 …]
|
| /kernel/linux/linux-6.6/kernel/ |
| 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 …]
|
| /kernel/linux/linux-5.10/drivers/media/v4l2-core/ |
| D | v4l2-async.c | 53 static bool match_i2c(struct v4l2_async_notifier *notifier, in match_i2c() argument 67 static bool match_devname(struct v4l2_async_notifier *notifier, in match_devname() argument 73 static bool match_fwnode(struct v4l2_async_notifier *notifier, in match_fwnode() argument 126 dev = notifier->v4l2_dev ? notifier->v4l2_dev->dev in match_fwnode() 127 : notifier->sd->dev; in match_fwnode() 142 static bool match_custom(struct v4l2_async_notifier *notifier, in match_custom() argument 157 v4l2_async_find_match(struct v4l2_async_notifier *notifier, in v4l2_async_find_match() argument 160 bool (*match)(struct v4l2_async_notifier *notifier, in v4l2_async_find_match() 164 list_for_each_entry(asd, ¬ifier->waiting, list) { in v4l2_async_find_match() 186 if (match(notifier, sd, asd)) in v4l2_async_find_match() [all …]
|
| /kernel/linux/linux-5.10/kernel/ |
| D | notifier.c | 5 #include <linux/notifier.h> 11 * Notifier list for kernel code which wants to be called 18 * Notifier chain core routines. The exported routines below 54 * @nl: Pointer to head of the blocking notifier chain 55 * @val: Value passed unmodified to notifier function 56 * @v: Pointer passed unmodified to notifier function 57 * @nr_to_call: Number of notifier functions to be called. Don't care 62 * last notifier function called. 78 WARN(1, "Invalid notifier called!"); in notifier_call_chain() 100 * @nl: Pointer to head of the blocking notifier chain [all …]
|
| /kernel/linux/linux-6.6/include/media/ |
| 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 …]
|
| 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 …]
|
| /kernel/linux/linux-6.6/Documentation/fault-injection/ |
| 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 …]
|
| /kernel/linux/linux-5.10/Documentation/fault-injection/ |
| 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 …]
|
| /kernel/linux/linux-5.10/include/media/ |
| D | v4l2-async.h | 71 * master notifier @asd_list 73 * probed, to a notifier->waiting list 101 * struct v4l2_async_notifier_operations - Asynchronous V4L2 notifier operations 104 * callback is only executed for the root notifier. 108 int (*bound)(struct v4l2_async_notifier *notifier, 111 int (*complete)(struct v4l2_async_notifier *notifier); 112 void (*unbind)(struct v4l2_async_notifier *notifier, 118 * struct v4l2_async_notifier - v4l2_device notifier data 120 * @ops: notifier operations 121 * @v4l2_dev: v4l2_device of the root notifier, NULL otherwise [all …]
|
| 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 …]
|
| /kernel/linux/linux-6.6/drivers/net/ethernet/mellanox/mlx5/core/sf/ |
| 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 …]
|
| /kernel/linux/linux-5.10/net/core/ |
| 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 * netevent_unregister_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 …]
|
| /kernel/linux/linux-6.6/net/core/ |
| 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 …]
|
| /kernel/linux/linux-6.6/drivers/gpu/drm/amd/amdgpu/ |
| 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 …]
|
| /kernel/linux/linux-5.10/drivers/staging/media/imx/ |
| 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_notifier_cleanup(&imxmd->notifier); in imx_media_probe() [all …]
|
| /kernel/linux/linux-6.6/drivers/staging/media/imx/ |
| 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 …]
|
| /kernel/linux/linux-5.10/drivers/gpu/drm/amd/amdgpu/ |
| D | amdgpu_mn.c | 32 * DOC: MMU Notifier 34 * For coherent userptr handling registers an MMU notifier to inform the driver 67 struct amdgpu_bo *bo = container_of(mni, struct amdgpu_bo, notifier); in amdgpu_mn_invalidate_gfx() 104 struct amdgpu_bo *bo = container_of(mni, struct amdgpu_bo, notifier); in amdgpu_mn_invalidate_hsa() 114 amdgpu_amdkfd_evict_userptr(bo->kfd_bo, bo->notifier.mm); in amdgpu_mn_invalidate_hsa() 125 * amdgpu_mn_register - register a BO for notifier updates 136 return mmu_interval_notifier_insert(&bo->notifier, current->mm, in amdgpu_mn_register() 139 return mmu_interval_notifier_insert(&bo->notifier, current->mm, addr, in amdgpu_mn_register() 145 * amdgpu_mn_unregister - unregister a BO for notifier updates 149 * Remove any registration of mmu notifier updates from the buffer object. [all …]
|
| /kernel/linux/linux-5.10/drivers/gpu/drm/radeon/ |
| D | radeon_mn.c | 42 * @mn: our notifier 52 struct radeon_bo *bo = container_of(mn, struct radeon_bo, notifier); in radeon_mn_invalidate() 87 * radeon_mn_register - register a BO for notifier updates 92 * Registers an MMU notifier for the given BO at the specified address. 99 ret = mmu_interval_notifier_insert(&bo->notifier, current->mm, addr, in radeon_mn_register() 110 mmu_interval_read_begin(&bo->notifier); in radeon_mn_register() 115 * radeon_mn_unregister - unregister a BO for notifier updates 119 * Remove any registration of MMU notifier updates from the buffer object. 123 if (!bo->notifier.mm) in radeon_mn_unregister() 125 mmu_interval_notifier_remove(&bo->notifier); in radeon_mn_unregister() [all …]
|
| /kernel/linux/linux-6.6/arch/powerpc/platforms/powernv/ |
| 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 …]
|
| /kernel/linux/linux-5.10/arch/powerpc/platforms/powernv/ |
| 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 …]
|
| /kernel/linux/linux-6.6/drivers/gpu/drm/radeon/ |
| 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 …]
|
| /kernel/linux/linux-6.6/drivers/media/platform/renesas/rzg2l-cru/ |
| 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 …]
|
| /kernel/linux/linux-6.6/drivers/staging/media/sunxi/sun6i-isp/ |
| 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 …]
|
| /kernel/linux/linux-6.6/drivers/video/fbdev/core/ |
| 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
|
| /kernel/linux/linux-6.6/drivers/gpu/drm/nouveau/ |
| 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 …]
|