Home
last modified time | relevance | path

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

12345678910>>...12

/linux-6.1.9/drivers/media/v4l2-core/
Dv4l2-async.c64 static bool match_i2c(struct v4l2_async_notifier *notifier, in match_i2c() argument
79 match_fwnode_one(struct v4l2_async_notifier *notifier, in match_fwnode_one() argument
133 dev = notifier->v4l2_dev ? notifier->v4l2_dev->dev in match_fwnode_one()
134 : notifier->sd->dev; in match_fwnode_one()
149 static bool match_fwnode(struct v4l2_async_notifier *notifier, in match_fwnode() argument
152 if (match_fwnode_one(notifier, sd, sd->fwnode, asd)) in match_fwnode()
159 return match_fwnode_one(notifier, sd, sd->fwnode->secondary, asd); in match_fwnode()
167 v4l2_async_find_match(struct v4l2_async_notifier *notifier, in v4l2_async_find_match() argument
170 bool (*match)(struct v4l2_async_notifier *notifier, in v4l2_async_find_match()
174 list_for_each_entry(asd, &notifier->waiting, list) { in v4l2_async_find_match()
[all …]
Dv4l2-fwnode.c786 struct v4l2_async_notifier *notifier, in v4l2_async_nf_fwnode_parse_endpoint() argument
827 ret = __v4l2_async_nf_add_subdev(notifier, asd); in v4l2_async_nf_fwnode_parse_endpoint()
846 struct v4l2_async_notifier *notifier, in v4l2_async_nf_parse_fwnode_endpoints() argument
867 ret = v4l2_async_nf_fwnode_parse_endpoint(dev, notifier, in v4l2_async_nf_parse_fwnode_endpoints()
893 struct v4l2_async_notifier *notifier, in v4l2_fwnode_reference_parse() argument
906 asd = v4l2_async_nf_add_fwnode(notifier, args.fwnode, in v4l2_fwnode_reference_parse()
1173 struct v4l2_async_notifier *notifier, in v4l2_fwnode_reference_parse_int_props() argument
1211 asd = v4l2_async_nf_add_fwnode(notifier, fwnode, in v4l2_fwnode_reference_parse_int_props()
1247 struct v4l2_async_notifier *notifier) in v4l2_async_nf_parse_fwnode_sensor() argument
1261 notifier, in v4l2_async_nf_parse_fwnode_sensor()
[all …]
/linux-6.1.9/Documentation/fault-injection/
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 …]
/linux-6.1.9/include/media/
Dv4l2-async.h87 int (*bound)(struct v4l2_async_notifier *notifier,
90 int (*complete)(struct v4l2_async_notifier *notifier);
91 void (*unbind)(struct v4l2_async_notifier *notifier,
140 void v4l2_async_nf_init(struct v4l2_async_notifier *notifier);
158 int __v4l2_async_nf_add_subdev(struct v4l2_async_notifier *notifier,
162 __v4l2_async_nf_add_fwnode(struct v4l2_async_notifier *notifier,
180 #define v4l2_async_nf_add_fwnode(notifier, fwnode, type) \ argument
181 ((type *)__v4l2_async_nf_add_fwnode(notifier, fwnode, sizeof(type)))
207 #define v4l2_async_nf_add_fwnode_remote(notifier, ep, type) \ argument
208 ((type *)__v4l2_async_nf_add_fwnode_remote(notifier, ep, sizeof(type)))
[all …]
/linux-6.1.9/drivers/net/ethernet/mellanox/mlx5/core/sf/
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 …]
/linux-6.1.9/drivers/gpu/drm/amd/amdgpu/
Damdgpu_mn.c67 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()
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()
153 if (!bo->notifier.mm) in amdgpu_mn_unregister()
155 mmu_interval_notifier_remove(&bo->notifier); in amdgpu_mn_unregister()
156 bo->notifier.mm = NULL; in amdgpu_mn_unregister()
159 int amdgpu_hmm_range_get_pages(struct mmu_interval_notifier *notifier, in amdgpu_hmm_range_get_pages() argument
181 hmm_range->notifier = notifier; in amdgpu_hmm_range_get_pages()
[all …]
/linux-6.1.9/drivers/staging/media/imx/
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()
Dimx6-mipi-csi2.c39 struct v4l2_async_notifier notifier; member
100 return container_of(n, struct csi2_dev, notifier); in notifier_to_dev()
592 static int csi2_notify_bound(struct v4l2_async_notifier *notifier, in csi2_notify_bound() argument
596 struct csi2_dev *csi2 = notifier_to_dev(notifier); in csi2_notify_bound()
615 static void csi2_notify_unbind(struct v4l2_async_notifier *notifier, in csi2_notify_unbind() argument
619 struct csi2_dev *csi2 = notifier_to_dev(notifier); in csi2_notify_unbind()
638 v4l2_async_nf_init(&csi2->notifier); in csi2_async_register()
654 asd = v4l2_async_nf_add_fwnode_remote(&csi2->notifier, ep, in csi2_async_register()
661 csi2->notifier.ops = &csi2_notify_ops; in csi2_async_register()
663 ret = v4l2_async_subdev_nf_register(&csi2->sd, &csi2->notifier); in csi2_async_register()
[all …]
Dimx-media-dev-common.c19 return container_of(n, struct imx_media_dev, notifier); in notifier2dev()
23 static int imx_media_subdev_bound(struct v4l2_async_notifier *notifier, in imx_media_subdev_bound() argument
27 struct imx_media_dev *imxmd = notifier2dev(notifier); in imx_media_subdev_bound()
184 int imx_media_probe_complete(struct v4l2_async_notifier *notifier) in imx_media_probe_complete() argument
186 struct imx_media_dev *imxmd = notifier2dev(notifier); in imx_media_probe_complete()
384 v4l2_async_nf_init(&imxmd->notifier); in imx_media_dev_init()
401 if (list_empty(&imxmd->notifier.asd_list)) { in imx_media_dev_notifier_register()
407 imxmd->notifier.ops = ops ? ops : &imx_media_notifier_ops; in imx_media_dev_notifier_register()
408 ret = v4l2_async_nf_register(&imxmd->v4l2_dev, &imxmd->notifier); in imx_media_dev_notifier_register()
/linux-6.1.9/drivers/gpu/drm/radeon/
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()
/linux-6.1.9/drivers/gpu/drm/nouveau/
Dnouveau_svm.c258 container_of(mn, struct nouveau_svmm, notifier); in nouveau_svmm_invalidate_range_start()
296 kfree(container_of(mn, struct nouveau_svmm, notifier)); in nouveau_svmm_free_notifier()
312 mmu_notifier_put(&svmm->notifier); in nouveau_svmm_fini()
361 svmm->notifier.ops = &nouveau_mn_ops; in nouveau_svmm_init()
362 ret = __mmu_notifier_register(&svmm->notifier, current->mm); in nouveau_svmm_init()
504 struct mmu_interval_notifier notifier; member
513 container_of(mni, struct svm_notifier, notifier); in nouveau_svm_range_invalidate()
590 struct svm_notifier *notifier) in nouveau_atomic_range_fault() argument
594 struct mm_struct *mm = svmm->notifier.mm; in nouveau_atomic_range_fault()
600 ret = mmu_interval_notifier_insert(&notifier->notifier, mm, in nouveau_atomic_range_fault()
[all …]
/linux-6.1.9/drivers/media/platform/xilinx/
Dxilinx-vipp.c59 list_for_each_entry(asd, &xdev->notifier.asd_list, asd_list) { in xvip_graph_find_entity()
283 static int xvip_graph_notify_complete(struct v4l2_async_notifier *notifier) in xvip_graph_notify_complete() argument
286 container_of(notifier, struct xvip_composite_device, notifier); in xvip_graph_notify_complete()
294 list_for_each_entry(asd, &xdev->notifier.asd_list, asd_list) { in xvip_graph_notify_complete()
313 static int xvip_graph_notify_bound(struct v4l2_async_notifier *notifier, in xvip_graph_notify_bound() argument
318 container_of(notifier, struct xvip_composite_device, notifier); in xvip_graph_notify_bound()
325 list_for_each_entry(asd, &xdev->notifier.asd_list, asd_list) { in xvip_graph_notify_bound()
385 xge = v4l2_async_nf_add_fwnode(&xdev->notifier, remote, in xvip_graph_parse_one()
397 v4l2_async_nf_cleanup(&xdev->notifier); in xvip_graph_parse_one()
418 list_for_each_entry(asd, &xdev->notifier.asd_list, asd_list) { in xvip_graph_parse()
[all …]
/linux-6.1.9/drivers/media/platform/sunxi/sun4i-csi/
Dsun4i_csi.c43 static int sun4i_csi_notify_bound(struct v4l2_async_notifier *notifier, in sun4i_csi_notify_bound() argument
47 struct sun4i_csi *csi = container_of(notifier, struct sun4i_csi, in sun4i_csi_notify_bound()
48 notifier); in sun4i_csi_notify_bound()
64 static int sun4i_csi_notify_complete(struct v4l2_async_notifier *notifier) in sun4i_csi_notify_complete() argument
66 struct sun4i_csi *csi = container_of(notifier, struct sun4i_csi, in sun4i_csi_notify_complete()
67 notifier); in sun4i_csi_notify_complete()
125 v4l2_async_nf_init(&csi->notifier); in sun4i_csi_notifier_init()
138 asd = v4l2_async_nf_add_fwnode_remote(&csi->notifier, ep, in sun4i_csi_notifier_init()
145 csi->notifier.ops = &sun4i_csi_notify_ops; in sun4i_csi_notifier_init()
243 ret = v4l2_async_nf_register(&csi->v4l, &csi->notifier); in sun4i_csi_probe()
[all …]
/linux-6.1.9/drivers/media/platform/sunxi/sun6i-mipi-csi2/
Dsun6i_mipi_csi2.c410 sun6i_mipi_csi2_notifier_bound(struct v4l2_async_notifier *notifier, in sun6i_mipi_csi2_notifier_bound() argument
414 struct v4l2_subdev *subdev = notifier->sd; in sun6i_mipi_csi2_notifier_bound()
416 container_of(notifier, struct sun6i_mipi_csi2_device, in sun6i_mipi_csi2_notifier_bound()
417 bridge.notifier); in sun6i_mipi_csi2_notifier_bound()
464 struct v4l2_async_notifier *notifier = &csi2_dev->bridge.notifier; in sun6i_mipi_csi2_bridge_source_setup() local
483 v4l2_async_nf_add_fwnode_remote(notifier, handle, in sun6i_mipi_csi2_bridge_source_setup()
498 struct v4l2_async_notifier *notifier = &bridge->notifier; in sun6i_mipi_csi2_bridge_setup() local
535 v4l2_async_nf_init(notifier); in sun6i_mipi_csi2_bridge_setup()
536 notifier->ops = &sun6i_mipi_csi2_notifier_ops; in sun6i_mipi_csi2_bridge_setup()
544 ret = v4l2_async_subdev_nf_register(subdev, notifier); in sun6i_mipi_csi2_bridge_setup()
[all …]
/linux-6.1.9/drivers/media/platform/renesas/
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_nf_init(&isp->notifier); 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_subdev_nf_register(&isp->subdev, &isp->notifier); in risp_parse_dt()
[all …]
/linux-6.1.9/include/linux/
Dpreempt.h326 void (*sched_in)(struct preempt_notifier *notifier, int cpu);
327 void (*sched_out)(struct preempt_notifier *notifier,
345 void preempt_notifier_register(struct preempt_notifier *notifier);
346 void preempt_notifier_unregister(struct preempt_notifier *notifier);
348 static inline void preempt_notifier_init(struct preempt_notifier *notifier, in preempt_notifier_init() argument
351 INIT_HLIST_NODE(&notifier->link); in preempt_notifier_init()
352 notifier->ops = ops; in preempt_notifier_init()
/linux-6.1.9/drivers/media/platform/sunxi/sun8i-a83t-mipi-csi2/
Dsun8i_a83t_mipi_csi2.c447 sun8i_a83t_mipi_csi2_notifier_bound(struct v4l2_async_notifier *notifier, in sun8i_a83t_mipi_csi2_notifier_bound() argument
451 struct v4l2_subdev *subdev = notifier->sd; in sun8i_a83t_mipi_csi2_notifier_bound()
453 container_of(notifier, struct sun8i_a83t_mipi_csi2_device, in sun8i_a83t_mipi_csi2_notifier_bound()
454 bridge.notifier); in sun8i_a83t_mipi_csi2_notifier_bound()
501 struct v4l2_async_notifier *notifier = &csi2_dev->bridge.notifier; in sun8i_a83t_mipi_csi2_bridge_source_setup() local
520 v4l2_async_nf_add_fwnode_remote(notifier, handle, in sun8i_a83t_mipi_csi2_bridge_source_setup()
536 struct v4l2_async_notifier *notifier = &bridge->notifier; in sun8i_a83t_mipi_csi2_bridge_setup() local
573 v4l2_async_nf_init(notifier); in sun8i_a83t_mipi_csi2_bridge_setup()
574 notifier->ops = &sun8i_a83t_mipi_csi2_notifier_ops; in sun8i_a83t_mipi_csi2_bridge_setup()
582 ret = v4l2_async_subdev_nf_register(subdev, notifier); in sun8i_a83t_mipi_csi2_bridge_setup()
[all …]
/linux-6.1.9/drivers/pwm/
Dpwm-iqs620a.c38 struct notifier_block notifier; member
131 static int iqs620_pwm_notifier(struct notifier_block *notifier, in iqs620_pwm_notifier() argument
140 iqs620_pwm = container_of(notifier, struct iqs620_pwm_private, in iqs620_pwm_notifier()
141 notifier); in iqs620_pwm_notifier()
175 &iqs620_pwm->notifier); in iqs620_pwm_notifier_unregister()
212 iqs620_pwm->notifier.notifier_call = iqs620_pwm_notifier; in iqs620_pwm_probe()
214 &iqs620_pwm->notifier); in iqs620_pwm_probe()
/linux-6.1.9/drivers/edac/
Dsifive_edac.c18 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()
Docteon_edac-pc.c29 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-6.1.9/drivers/media/platform/
Dvideo-mux.c25 struct v4l2_async_notifier notifier; member
43 return container_of(n, struct video_mux, notifier); in notifier_to_video_mux()
344 static int video_mux_notify_bound(struct v4l2_async_notifier *notifier, in video_mux_notify_bound() argument
348 struct video_mux *vmux = notifier_to_video_mux(notifier); in video_mux_notify_bound()
363 v4l2_async_nf_init(&vmux->notifier); in video_mux_async_register()
383 asd = v4l2_async_nf_add_fwnode_remote(&vmux->notifier, ep, in video_mux_async_register()
396 vmux->notifier.ops = &video_mux_notify_ops; in video_mux_async_register()
398 ret = v4l2_async_subdev_nf_register(&vmux->subdev, &vmux->notifier); in video_mux_async_register()
477 v4l2_async_nf_unregister(&vmux->notifier); in video_mux_probe()
478 v4l2_async_nf_cleanup(&vmux->notifier); in video_mux_probe()
[all …]
/linux-6.1.9/drivers/reset/
Dreset-sunplus.c103 struct notifier_block notifier; member
160 struct sp_reset *reset = container_of(nb, struct sp_reset, notifier); in sp_restart()
193 reset->notifier.notifier_call = sp_restart; in sp_reset_probe()
194 reset->notifier.priority = 192; in sp_reset_probe()
196 return register_restart_handler(&reset->notifier); in sp_reset_probe()
/linux-6.1.9/drivers/leds/trigger/
Dledtrig-backlight.c24 struct notifier_block notifier; member
32 struct bl_trig_notifier, notifier); in fb_notifier_callback()
115 n->notifier.notifier_call = fb_notifier_callback; in bl_trig_activate()
117 ret = fb_register_client(&n->notifier); in bl_trig_activate()
128 fb_unregister_client(&n->notifier); in bl_trig_deactivate()
/linux-6.1.9/drivers/media/platform/renesas/rcar-vin/
Drcar-core.c225 static int rvin_group_notify_complete(struct v4l2_async_notifier *notifier) in rvin_group_notify_complete() argument
227 struct rvin_dev *vin = v4l2_dev_to_vin(notifier->v4l2_dev); in rvin_group_notify_complete()
254 static void rvin_group_notify_unbind(struct v4l2_async_notifier *notifier, in rvin_group_notify_unbind() argument
258 struct rvin_dev *vin = v4l2_dev_to_vin(notifier->v4l2_dev); in rvin_group_notify_unbind()
280 static int rvin_group_notify_bound(struct v4l2_async_notifier *notifier, in rvin_group_notify_bound() argument
284 struct rvin_dev *vin = v4l2_dev_to_vin(notifier->v4l2_dev); in rvin_group_notify_bound()
331 asd = v4l2_async_nf_add_fwnode(&vin->group->notifier, fwnode, in rvin_group_parse_of()
350 if (&vin->v4l2_dev == vin->group->notifier.v4l2_dev) { in rvin_group_notifier_cleanup()
351 v4l2_async_nf_unregister(&vin->group->notifier); in rvin_group_notifier_cleanup()
352 v4l2_async_nf_cleanup(&vin->group->notifier); in rvin_group_notifier_cleanup()
[all …]
/linux-6.1.9/drivers/iio/position/
Diqs624-pos.c27 struct notifier_block notifier; member
50 static int iqs624_pos_notifier(struct notifier_block *notifier, in iqs624_pos_notifier() argument
61 iqs624_pos = container_of(notifier, struct iqs624_pos_private, in iqs624_pos_notifier()
62 notifier); in iqs624_pos_notifier()
106 &iqs624_pos->notifier); in iqs624_pos_notifier_unregister()
257 iqs624_pos->notifier.notifier_call = iqs624_pos_notifier; in iqs624_pos_probe()
259 &iqs624_pos->notifier); in iqs624_pos_probe()

12345678910>>...12