Home
last modified time | relevance | path

Searched refs:pm_notifier (Results 1 – 21 of 21) sorted by relevance

/linux-6.6.21/drivers/greybus/
Dsvc_watchdog.c19 struct notifier_block pm_notifier; member
28 container_of(notifier, struct gb_svc_watchdog, pm_notifier); in svc_watchdog_pm_notifier()
124 watchdog->pm_notifier.notifier_call = svc_watchdog_pm_notifier; in gb_svc_watchdog_create()
125 retval = register_pm_notifier(&watchdog->pm_notifier); in gb_svc_watchdog_create()
135 unregister_pm_notifier(&watchdog->pm_notifier); in gb_svc_watchdog_create()
154 unregister_pm_notifier(&watchdog->pm_notifier); in gb_svc_watchdog_destroy()
/linux-6.6.21/sound/soc/
Dsoc-jack.c262 container_of(nb, struct snd_soc_jack_gpio, pm_notifier); in snd_soc_jack_pm_notifier()
286 unregister_pm_notifier(&gpios[i].pm_notifier); in jack_free_gpios()
390 gpios[i].pm_notifier.notifier_call = snd_soc_jack_pm_notifier; in snd_soc_jack_add_gpios()
391 register_pm_notifier(&gpios[i].pm_notifier); in snd_soc_jack_add_gpios()
/linux-6.6.21/drivers/staging/greybus/
Darche-platform.c68 struct notifier_block pm_notifier; member
396 pm_notifier); in arche_platform_pm_notifier()
524 arche_pdata->pm_notifier.notifier_call = arche_platform_pm_notifier; in arche_platform_probe()
525 ret = register_pm_notifier(&arche_pdata->pm_notifier); in arche_platform_probe()
567 unregister_pm_notifier(&arche_pdata->pm_notifier); in arche_platform_remove()
/linux-6.6.21/drivers/phy/broadcom/
Dphy-brcm-usb.c73 struct notifier_block pm_notifier; member
86 container_of(notifier, struct brcm_usb_phy_data, pm_notifier); in brcm_pm_notifier()
533 priv->pm_notifier.notifier_call = brcm_pm_notifier; in brcm_usb_phy_probe()
534 register_pm_notifier(&priv->pm_notifier); in brcm_usb_phy_probe()
579 unregister_pm_notifier(&priv->pm_notifier); in brcm_usb_phy_remove()
/linux-6.6.21/drivers/net/wireguard/
Ddevice.c95 static struct notifier_block pm_notifier = { .notifier_call = wg_pm_notification }; variable
445 ret = register_pm_notifier(&pm_notifier); in wg_device_init()
468 unregister_pm_notifier(&pm_notifier); in wg_device_init()
477 unregister_pm_notifier(&pm_notifier); in wg_device_uninit()
/linux-6.6.21/drivers/power/supply/
Dds2760_battery.c116 struct notifier_block pm_notifier; member
644 container_of(notifier, struct ds2760_device_info, pm_notifier); in ds2760_pm_notifier()
759 di->pm_notifier.notifier_call = ds2760_pm_notifier; in w1_ds2760_add_slave()
760 register_pm_notifier(&di->pm_notifier); in w1_ds2760_add_slave()
776 unregister_pm_notifier(&di->pm_notifier); in w1_ds2760_remove_slave()
/linux-6.6.21/include/linux/
Dsuspend.h504 #define pm_notifier(fn, pri) { \ macro
549 #define pm_notifier(fn, pri) do { (void)(fn); } while (0) macro
Dkvm_host.h808 struct notifier_block pm_notifier; member
/linux-6.6.21/include/sound/
Dsoc-jack.h74 struct notifier_block pm_notifier; member
/linux-6.6.21/drivers/platform/x86/intel/telemetry/
Ddebugfs.c900 static struct notifier_block pm_notifier = { variable
928 register_pm_notifier(&pm_notifier); in telemetry_debugfs_init()
952 unregister_pm_notifier(&pm_notifier); in telemetry_debugfs_exit()
/linux-6.6.21/drivers/net/wireless/intersil/orinoco/
Dorinoco.h167 struct notifier_block pm_notifier; member
Dmain.c1962 pm_notifier); in orinoco_pm_notifier()
1995 priv->pm_notifier.notifier_call = orinoco_pm_notifier; in orinoco_register_pm_notifier()
1996 register_pm_notifier(&priv->pm_notifier); in orinoco_register_pm_notifier()
2001 unregister_pm_notifier(&priv->pm_notifier); in orinoco_unregister_pm_notifier()
/linux-6.6.21/kernel/
Dhung_task.c394 pm_notifier(hungtask_pm_notify, 0); in hung_task_init()
Dcpu.c2069 pm_notifier(cpu_hotplug_pm_callback, 0); in cpu_hotplug_pm_sync_init()
/linux-6.6.21/Documentation/driver-api/pm/
Dnotifiers.rst73 need to unregister the notifier, you can also use the :c:func:`pm_notifier()`
/linux-6.6.21/arch/x86/power/
Dcpu.c367 pm_notifier(bsp_pm_callback, -INT_MAX); in bsp_pm_check_init()
/linux-6.6.21/drivers/char/
Drandom.c835 static struct notifier_block pm_notifier = { .notifier_call = random_pm_notification }; variable
903 WARN_ON(register_pm_notifier(&pm_notifier)); in random_init()
/linux-6.6.21/arch/mips/kernel/
Dpm-cps.c733 pm_notifier(cps_pm_power_notifier, 0); in cps_pm_init()
/linux-6.6.21/virt/kvm/
Dkvm_main.c951 struct kvm *kvm = container_of(bl, struct kvm, pm_notifier); in kvm_pm_notifier_call()
958 kvm->pm_notifier.notifier_call = kvm_pm_notifier_call; in kvm_init_pm_notifier()
960 kvm->pm_notifier.priority = INT_MAX; in kvm_init_pm_notifier()
961 register_pm_notifier(&kvm->pm_notifier); in kvm_init_pm_notifier()
966 unregister_pm_notifier(&kvm->pm_notifier); in kvm_destroy_pm_notifier()
/linux-6.6.21/drivers/net/usb/
Dr8152.c883 struct notifier_block pm_notifier; member
6883 struct r8152 *tp = container_of(nb, struct r8152, pm_notifier); in rtl_notifier()
6947 tp->pm_notifier.notifier_call = rtl_notifier; in rtl8152_open()
6948 register_pm_notifier(&tp->pm_notifier); in rtl8152_open()
6967 unregister_pm_notifier(&tp->pm_notifier); in rtl8152_close()
/linux-6.6.21/kernel/rcu/
Dtree.c5064 pm_notifier(rcu_pm_notify, 0); in rcu_init()