/linux/drivers/media/v4l2-core/ |
A D | v4l2-async.c | 130 dev = notifier->v4l2_dev ? notifier->v4l2_dev->dev in match_fwnode() 221 notifier = notifier->parent; in v4l2_async_nf_find_v4l2_dev() 262 notifier = notifier->parent; in v4l2_async_nf_try_complete() 299 sd->notifier = notifier; in v4l2_async_match_notify() 448 notifier->v4l2_dev ? notifier->v4l2_dev->dev : NULL; in v4l2_async_nf_asd_valid() 547 notifier->sd = sd; in v4l2_async_subdev_nf_register() 551 notifier->sd = NULL; in v4l2_async_subdev_nf_register() 560 if (!notifier || (!notifier->v4l2_dev && !notifier->sd)) in __v4l2_async_nf_unregister() 565 notifier->sd = NULL; in __v4l2_async_nf_unregister() 585 if (!notifier || !notifier->asd_list.next) in __v4l2_async_nf_cleanup() [all …]
|
A D | v4l2-fwnode.c | 784 struct v4l2_async_notifier *notifier, in v4l2_async_nf_fwnode_parse_endpoint() argument 1257 struct v4l2_async_notifier *notifier) in v4l2_async_nf_parse_fwnode_sensor() argument 1271 notifier, in v4l2_async_nf_parse_fwnode_sensor() 1288 struct v4l2_async_notifier *notifier; in v4l2_async_register_subdev_sensor() local 1294 notifier = kzalloc(sizeof(*notifier), GFP_KERNEL); in v4l2_async_register_subdev_sensor() 1295 if (!notifier) in v4l2_async_register_subdev_sensor() 1298 v4l2_async_nf_init(notifier); in v4l2_async_register_subdev_sensor() 1312 sd->subdev_notifier = notifier; in v4l2_async_register_subdev_sensor() 1317 v4l2_async_nf_unregister(notifier); in v4l2_async_register_subdev_sensor() 1320 v4l2_async_nf_cleanup(notifier); in v4l2_async_register_subdev_sensor() [all …]
|
/linux/Documentation/fault-injection/ |
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 …]
|
/linux/include/media/ |
A D | v4l2-async.h | 86 int (*bound)(struct v4l2_async_notifier *notifier, 89 int (*complete)(struct v4l2_async_notifier *notifier); 90 void (*unbind)(struct v4l2_async_notifier *notifier, 138 void v4l2_async_nf_init(struct v4l2_async_notifier *notifier); 160 __v4l2_async_nf_add_fwnode(struct v4l2_async_notifier *notifier, 178 #define v4l2_async_nf_add_fwnode(notifier, fwnode, type) \ argument 205 #define v4l2_async_nf_add_fwnode_remote(notifier, ep, type) \ argument 209 __v4l2_async_nf_add_i2c(struct v4l2_async_notifier *notifier, 227 ((type *)__v4l2_async_nf_add_i2c(notifier, adapter, address, \ 237 struct v4l2_async_notifier *notifier); [all …]
|
/linux/drivers/net/ethernet/mellanox/mlx5/core/sf/ |
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 …]
|
/linux/drivers/gpu/drm/amd/amdgpu/ |
A D | amdgpu_mn.c | 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() 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() 181 hmm_range->notifier = notifier; in amdgpu_hmm_range_get_pages() 195 hmm_range->notifier_seq = mmu_interval_read_begin(notifier); in amdgpu_hmm_range_get_pages() [all …]
|
/linux/drivers/staging/media/imx/ |
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()
|
A D | imx6-mipi-csi2.c | 39 struct v4l2_async_notifier notifier; member 100 return container_of(n, struct csi2_dev, notifier); in notifier_to_dev() 608 struct csi2_dev *csi2 = notifier_to_dev(notifier); in csi2_notify_bound() 631 struct csi2_dev *csi2 = notifier_to_dev(notifier); in csi2_notify_unbind() 650 v4l2_async_nf_init(&csi2->notifier); in csi2_async_register() 666 asd = v4l2_async_nf_add_fwnode_remote(&csi2->notifier, ep, in csi2_async_register() 673 csi2->notifier.ops = &csi2_notify_ops; in csi2_async_register() 770 v4l2_async_nf_unregister(&csi2->notifier); in csi2_probe() 771 v4l2_async_nf_cleanup(&csi2->notifier); in csi2_probe() 785 v4l2_async_nf_unregister(&csi2->notifier); in csi2_remove() [all …]
|
A D | imx-media-dev-common.c | 19 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/drivers/gpu/drm/nouveau/ |
A D | nouveau_svm.c | 599 ret = mmu_interval_notifier_insert(¬ifier->notifier, mm, in nouveau_atomic_range_fault() 611 notifier_seq = mmu_interval_read_begin(¬ifier->notifier); in nouveau_atomic_range_fault() 622 if (!mmu_interval_read_retry(¬ifier->notifier, in nouveau_atomic_range_fault() 645 mmu_interval_notifier_remove(¬ifier->notifier); in nouveau_atomic_range_fault() 660 .notifier = ¬ifier->notifier, in nouveau_range_fault() 668 ret = mmu_interval_notifier_insert(¬ifier->notifier, mm, in nouveau_range_fault() 674 range.start = notifier->notifier.interval_tree.start; in nouveau_range_fault() 675 range.end = notifier->notifier.interval_tree.last + 1; in nouveau_range_fault() 708 mmu_interval_notifier_remove(¬ifier->notifier); in nouveau_range_fault() 836 ¬ifier); in nouveau_svm_fault() [all …]
|
/linux/drivers/gpu/drm/radeon/ |
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()
|
/linux/drivers/media/platform/xilinx/ |
A D | xilinx-vipp.c | 59 list_for_each_entry(asd, &xdev->notifier.asd_list, asd_list) { in xvip_graph_find_entity() 286 container_of(notifier, struct xvip_composite_device, notifier); in xvip_graph_notify_complete() 318 container_of(notifier, struct xvip_composite_device, notifier); 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() 422 v4l2_async_nf_cleanup(&xdev->notifier); in xvip_graph_parse() 498 v4l2_async_nf_unregister(&xdev->notifier); in xvip_graph_cleanup() 499 v4l2_async_nf_cleanup(&xdev->notifier); in xvip_graph_cleanup() 525 if (list_empty(&xdev->notifier.asd_list)) { in xvip_graph_init() 532 xdev->notifier.ops = &xvip_graph_notify_ops; in xvip_graph_init() [all …]
|
/linux/drivers/media/platform/sunxi/sun4i-csi/ |
A D | sun4i_csi.c | 43 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() 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() 245 ret = v4l2_async_nf_register(&csi->v4l, &csi->notifier); in sun4i_csi_probe() 269 v4l2_async_nf_unregister(&csi->notifier); in sun4i_csi_remove() [all …]
|
/linux/drivers/media/platform/ |
A D | rcar-isp.c | 102 struct v4l2_async_notifier notifier; member 117 return container_of(n, struct rcar_isp, notifier); in notifier_to_isp() 311 struct rcar_isp *isp = notifier_to_isp(notifier); in risp_notify_bound() 335 struct rcar_isp *isp = notifier_to_isp(notifier); in risp_notify_unbind() 375 v4l2_async_nf_init(&isp->notifier); in risp_parse_dt() 376 isp->notifier.ops = &risp_notify_ops; in risp_parse_dt() 386 v4l2_async_nf_cleanup(&isp->notifier); in risp_parse_dt() 476 v4l2_async_nf_unregister(&isp->notifier); in risp_probe() 477 v4l2_async_nf_cleanup(&isp->notifier); in risp_probe() 490 v4l2_async_nf_unregister(&isp->notifier); in risp_remove() [all …]
|
A D | video-mux.c | 25 struct v4l2_async_notifier notifier; member 43 return container_of(n, struct video_mux, notifier); in notifier_to_video_mux() 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() 479 v4l2_async_nf_unregister(&vmux->notifier); in video_mux_probe() 480 v4l2_async_nf_cleanup(&vmux->notifier); in video_mux_probe() 491 v4l2_async_nf_unregister(&vmux->notifier); in video_mux_remove() [all …]
|
/linux/include/linux/ |
A D | preempt.h | 326 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(¬ifier->link); in preempt_notifier_init() 352 notifier->ops = ops; in preempt_notifier_init()
|
/linux/drivers/pwm/ |
A D | pwm-iqs620a.c | 38 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/drivers/edac/ |
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_l2_error_notifier(&p->notifier); in ecc_register() 84 unregister_sifive_l2_error_notifier(&p->notifier); in ecc_unregister()
|
A D | octeon_edac-pc.c | 29 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/lib/ |
A D | test_hmm.c | 58 struct mmu_interval_notifier notifier; member 69 struct mmu_interval_notifier notifier; member 245 struct mm_struct *mm = dmirror->notifier.mm; in dmirror_range_fault() 267 if (mmu_interval_read_retry(range->notifier, in dmirror_range_fault() 285 struct mm_struct *mm = dmirror->notifier.mm; in dmirror_fault() 289 .notifier = &dmirror->notifier, in dmirror_fault() 716 struct mm_struct *mm = dmirror->notifier.mm; in dmirror_exclusive() 782 struct mm_struct *mm = dmirror->notifier.mm; in dmirror_migrate() 919 struct dmirror_interval notifier; in dmirror_range_snapshot() local 926 notifier.dmirror = dmirror; in dmirror_range_snapshot() [all …]
|
/linux/drivers/leds/trigger/ |
A D | ledtrig-backlight.c | 24 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/drivers/misc/vmw_vmci/ |
A D | vmci_context.c | 471 list_for_each_entry_safe(notifier, tmp, in ctx_free_ctx() 473 list_del(¬ifier->node); in ctx_free_ctx() 474 kfree(notifier); in ctx_free_ctx() 601 struct vmci_handle_list *notifier, *n; in vmci_ctx_add_notification() local 622 if (!notifier) { in vmci_ctx_add_notification() 627 INIT_LIST_HEAD(¬ifier->node); in vmci_ctx_add_notification() 641 kfree(notifier); in vmci_ctx_add_notification() 644 list_add_tail_rcu(¬ifier->node, in vmci_ctx_add_notification() 650 kfree(notifier); in vmci_ctx_add_notification() 682 list_del_rcu(¬ifier->node); in vmci_ctx_remove_notification() [all …]
|
/linux/drivers/iio/position/ |
A D | iqs624-pos.c | 27 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()
|
/linux/drivers/media/platform/rockchip/rkisp1/ |
A D | rkisp1-dev.c | 191 static int rkisp1_subdev_notifier_bound(struct v4l2_async_notifier *notifier, in rkisp1_subdev_notifier_bound() argument 196 container_of(notifier, struct rkisp1_device, notifier); in rkisp1_subdev_notifier_bound() 215 static void rkisp1_subdev_notifier_unbind(struct v4l2_async_notifier *notifier, in rkisp1_subdev_notifier_unbind() argument 225 static int rkisp1_subdev_notifier_complete(struct v4l2_async_notifier *notifier) in rkisp1_subdev_notifier_complete() argument 228 container_of(notifier, struct rkisp1_device, notifier); in rkisp1_subdev_notifier_complete() 252 struct v4l2_async_notifier *ntf = &rkisp1->notifier; in rkisp1_subdev_notifier() 583 v4l2_async_nf_unregister(&rkisp1->notifier); in rkisp1_remove() 584 v4l2_async_nf_cleanup(&rkisp1->notifier); in rkisp1_remove()
|
/linux/drivers/net/ipa/ |
A D | ipa_modem.c | 457 void *notifier; in ipa_modem_config() local 461 notifier = qcom_register_ssr_notifier("mpss", &ipa->nb); in ipa_modem_config() 462 if (IS_ERR(notifier)) in ipa_modem_config() 463 return PTR_ERR(notifier); in ipa_modem_config() 465 ipa->notifier = notifier; in ipa_modem_config() 475 ret = qcom_unregister_ssr_notifier(ipa->notifier, &ipa->nb); in ipa_modem_deconfig() 479 ipa->notifier = NULL; in ipa_modem_deconfig()
|