Home
last modified time | relevance | path

Searched refs:restart_nb (Results 1 – 3 of 3) sorted by relevance

/linux-4.4.14/drivers/power/reset/
Dmsm-poweroff.c35 static struct notifier_block restart_nb = { variable
43 do_msm_restart(&restart_nb, 0, NULL); in do_msm_poweroff()
56 register_restart_handler(&restart_nb); in msm_restart_probe()
/linux-4.4.14/drivers/watchdog/
Dqcom-wdt.c31 struct notifier_block restart_nb; member
93 struct qcom_wdt *wdt = container_of(nb, struct qcom_wdt, restart_nb); in qcom_wdt_restart()
193 wdt->restart_nb.notifier_call = qcom_wdt_restart; in qcom_wdt_probe()
194 ret = register_restart_handler(&wdt->restart_nb); in qcom_wdt_probe()
210 unregister_restart_handler(&wdt->restart_nb); in qcom_wdt_remove()
/linux-4.4.14/drivers/pinctrl/qcom/
Dpinctrl-msm.c60 struct notifier_block restart_nb; member
840 struct msm_pinctrl *pctrl = container_of(nb, struct msm_pinctrl, restart_nb); in msm_ps_hold_restart()
851 msm_ps_hold_restart(&poweroff_pctrl->restart_nb, 0, NULL); in msm_ps_hold_poweroff()
861 pctrl->restart_nb.notifier_call = msm_ps_hold_restart; in msm_pinctrl_setup_pm_reset()
862 pctrl->restart_nb.priority = 128; in msm_pinctrl_setup_pm_reset()
863 if (register_restart_handler(&pctrl->restart_nb)) in msm_pinctrl_setup_pm_reset()
933 unregister_restart_handler(&pctrl->restart_nb); in msm_pinctrl_remove()