Home
last modified time | relevance | path

Searched refs:wdd (Results 1 - 25 of 156) sorted by relevance

1234567

/kernel/linux/linux-6.6/drivers/watchdog/
H A Dwatchdog_dev.c76 static inline bool watchdog_need_worker(struct watchdog_device *wdd) in watchdog_need_worker() argument
79 unsigned int hm = wdd->max_hw_heartbeat_ms; in watchdog_need_worker()
80 unsigned int t = wdd->timeout * 1000; in watchdog_need_worker()
95 return (hm && watchdog_active(wdd) && t > hm) || in watchdog_need_worker()
96 (t && !watchdog_active(wdd) && watchdog_hw_running(wdd)); in watchdog_need_worker()
99 static ktime_t watchdog_next_keepalive(struct watchdog_device *wdd) in watchdog_next_keepalive() argument
101 struct watchdog_core_data *wd_data = wdd->wd_data; in watchdog_next_keepalive()
102 unsigned int timeout_ms = wdd->timeout * 1000; in watchdog_next_keepalive()
108 if (watchdog_active(wdd)) in watchdog_next_keepalive()
129 watchdog_update_worker(struct watchdog_device *wdd) watchdog_update_worker() argument
144 __watchdog_ping(struct watchdog_device *wdd) __watchdog_ping() argument
191 watchdog_ping(struct watchdog_device *wdd) watchdog_ping() argument
206 struct watchdog_device *wdd = wd_data->wdd; watchdog_worker_should_ping() local
248 watchdog_start(struct watchdog_device *wdd) watchdog_start() argument
292 watchdog_stop(struct watchdog_device *wdd) watchdog_stop() argument
331 watchdog_get_status(struct watchdog_device *wdd) watchdog_get_status() argument
368 watchdog_set_timeout(struct watchdog_device *wdd, unsigned int timeout) watchdog_set_timeout() argument
401 watchdog_set_pretimeout(struct watchdog_device *wdd, unsigned int timeout) watchdog_set_pretimeout() argument
430 watchdog_get_timeleft(struct watchdog_device *wdd, unsigned int *timeleft) watchdog_get_timeleft() argument
447 struct watchdog_device *wdd = dev_get_drvdata(dev); nowayout_show() local
456 struct watchdog_device *wdd = dev_get_drvdata(dev); nowayout_store() local
476 struct watchdog_device *wdd = dev_get_drvdata(dev); status_show() local
491 struct watchdog_device *wdd = dev_get_drvdata(dev); bootstatus_show() local
500 struct watchdog_device *wdd = dev_get_drvdata(dev); timeleft_show() local
518 struct watchdog_device *wdd = dev_get_drvdata(dev); timeout_show() local
527 struct watchdog_device *wdd = dev_get_drvdata(dev); min_timeout_show() local
536 struct watchdog_device *wdd = dev_get_drvdata(dev); max_timeout_show() local
545 struct watchdog_device *wdd = dev_get_drvdata(dev); pretimeout_show() local
554 struct watchdog_device *wdd = dev_get_drvdata(dev); options_show() local
563 struct watchdog_device *wdd = dev_get_drvdata(dev); fw_version_show() local
572 struct watchdog_device *wdd = dev_get_drvdata(dev); identity_show() local
581 struct watchdog_device *wdd = dev_get_drvdata(dev); state_show() local
601 struct watchdog_device *wdd = dev_get_drvdata(dev); pretimeout_governor_show() local
610 struct watchdog_device *wdd = dev_get_drvdata(dev); pretimeout_governor_store() local
624 struct watchdog_device *wdd = dev_get_drvdata(dev); wdt_is_visible() local
675 watchdog_ioctl_op(struct watchdog_device *wdd, unsigned int cmd, unsigned long arg) watchdog_ioctl_op() argument
701 struct watchdog_device *wdd; watchdog_write() local
755 struct watchdog_device *wdd; watchdog_ioctl() local
867 struct watchdog_device *wdd; watchdog_open() local
945 struct watchdog_device *wdd; watchdog_release() local
1022 watchdog_cdev_register(struct watchdog_device *wdd) watchdog_cdev_register() argument
1120 watchdog_cdev_unregister(struct watchdog_device *wdd) watchdog_cdev_unregister() argument
1158 watchdog_dev_register(struct watchdog_device *wdd) watchdog_dev_register() argument
1180 watchdog_dev_unregister(struct watchdog_device *wdd) watchdog_dev_unregister() argument
1199 watchdog_set_last_hw_keepalive(struct watchdog_device *wdd, unsigned int last_ping_ms) watchdog_set_last_hw_keepalive() argument
1272 watchdog_dev_suspend(struct watchdog_device *wdd) watchdog_dev_suspend() argument
1299 watchdog_dev_resume(struct watchdog_device *wdd) watchdog_dev_resume() argument
[all...]
H A Dwatchdog_core.c67 static void watchdog_deferred_registration_add(struct watchdog_device *wdd) in watchdog_deferred_registration_add() argument
69 list_add_tail(&wdd->deferred, in watchdog_deferred_registration_add()
73 static void watchdog_deferred_registration_del(struct watchdog_device *wdd) in watchdog_deferred_registration_del() argument
81 if (wdd_tmp == wdd) { in watchdog_deferred_registration_del()
88 static void watchdog_check_min_max_timeout(struct watchdog_device *wdd) in watchdog_check_min_max_timeout() argument
94 if (!wdd->max_hw_heartbeat_ms && wdd->min_timeout > wdd->max_timeout) { in watchdog_check_min_max_timeout()
96 wdd->min_timeout = 0; in watchdog_check_min_max_timeout()
97 wdd in watchdog_check_min_max_timeout()
118 watchdog_init_timeout(struct watchdog_device *wdd, unsigned int timeout_parm, struct device *dev) watchdog_init_timeout() argument
161 struct watchdog_device *wdd; watchdog_reboot_notifier() local
181 struct watchdog_device *wdd = container_of(nb, struct watchdog_device, watchdog_restart_notifier() local
196 struct watchdog_device *wdd; watchdog_pm_notifier() local
234 watchdog_set_restart_priority(struct watchdog_device *wdd, int priority) watchdog_set_restart_priority() argument
240 __watchdog_register_device(struct watchdog_device *wdd) __watchdog_register_device() argument
350 watchdog_register_device(struct watchdog_device *wdd) watchdog_register_device() argument
373 __watchdog_unregister_device(struct watchdog_device *wdd) __watchdog_unregister_device() argument
396 watchdog_unregister_device(struct watchdog_device *wdd) watchdog_unregister_device() argument
422 devm_watchdog_register_device(struct device *dev, struct watchdog_device *wdd) devm_watchdog_register_device() argument
450 struct watchdog_device *wdd; watchdog_deferred_registration() local
[all...]
H A Drave-sp-wdt.c48 * @wdd: Underlying watchdog device
54 struct watchdog_device wdd; member
60 static struct rave_sp_wdt *to_rave_sp_wdt(struct watchdog_device *wdd) in to_rave_sp_wdt() argument
62 return container_of(wdd, struct rave_sp_wdt, wdd); in to_rave_sp_wdt()
65 static int rave_sp_wdt_exec(struct watchdog_device *wdd, void *data, in rave_sp_wdt_exec() argument
68 return rave_sp_exec(to_rave_sp_wdt(wdd)->sp, in rave_sp_wdt_exec()
72 static int rave_sp_wdt_legacy_configure(struct watchdog_device *wdd, bool on) in rave_sp_wdt_legacy_configure() argument
79 [4] = on ? wdd->timeout : 0, in rave_sp_wdt_legacy_configure()
82 return rave_sp_wdt_exec(wdd, cm in rave_sp_wdt_legacy_configure()
85 rave_sp_wdt_rdu_configure(struct watchdog_device *wdd, bool on) rave_sp_wdt_rdu_configure() argument
112 rave_sp_wdt_configure(struct watchdog_device *wdd, bool on) rave_sp_wdt_configure() argument
117 rave_sp_wdt_legacy_restart(struct watchdog_device *wdd) rave_sp_wdt_legacy_restart() argument
128 rave_sp_wdt_rdu_restart(struct watchdog_device *wdd) rave_sp_wdt_rdu_restart() argument
165 rave_sp_wdt_restart(struct watchdog_device *wdd, unsigned long action, void *data) rave_sp_wdt_restart() argument
179 rave_sp_wdt_start(struct watchdog_device *wdd) rave_sp_wdt_start() argument
190 rave_sp_wdt_stop(struct watchdog_device *wdd) rave_sp_wdt_stop() argument
195 rave_sp_wdt_set_timeout(struct watchdog_device *wdd, unsigned int timeout) rave_sp_wdt_set_timeout() argument
203 rave_sp_wdt_ping(struct watchdog_device *wdd) rave_sp_wdt_ping() argument
256 struct watchdog_device *wdd; rave_sp_wdt_probe() local
[all...]
H A Dnpcm_wdt.c45 struct watchdog_device wdd; member
50 static inline struct npcm_wdt *to_npcm_wdt(struct watchdog_device *wdd) in to_npcm_wdt() argument
52 return container_of(wdd, struct npcm_wdt, wdd); in to_npcm_wdt()
55 static int npcm_wdt_ping(struct watchdog_device *wdd) in npcm_wdt_ping() argument
57 struct npcm_wdt *wdt = to_npcm_wdt(wdd); in npcm_wdt_ping()
66 static int npcm_wdt_start(struct watchdog_device *wdd) in npcm_wdt_start() argument
68 struct npcm_wdt *wdt = to_npcm_wdt(wdd); in npcm_wdt_start()
74 if (wdd->timeout < 2) in npcm_wdt_start()
76 else if (wdd in npcm_wdt_start()
102 npcm_wdt_stop(struct watchdog_device *wdd) npcm_wdt_stop() argument
114 npcm_wdt_set_timeout(struct watchdog_device *wdd, unsigned int timeout) npcm_wdt_set_timeout() argument
153 npcm_wdt_restart(struct watchdog_device *wdd, unsigned long action, void *data) npcm_wdt_restart() argument
168 npcm_is_running(struct watchdog_device *wdd) npcm_is_running() argument
[all...]
H A Darm_smc_wdt.c34 static int smcwd_call(struct watchdog_device *wdd, enum smcwd_call call, in smcwd_call() argument
42 arm_smccc_smc((u32)(uintptr_t)watchdog_get_drvdata(wdd), call, arg, 0, in smcwd_call()
54 static int smcwd_ping(struct watchdog_device *wdd) in smcwd_ping() argument
56 return smcwd_call(wdd, SMCWD_PET, 0, NULL); in smcwd_ping()
59 static unsigned int smcwd_get_timeleft(struct watchdog_device *wdd) in smcwd_get_timeleft() argument
63 smcwd_call(wdd, SMCWD_GET_TIMELEFT, 0, &res); in smcwd_get_timeleft()
69 static int smcwd_set_timeout(struct watchdog_device *wdd, unsigned int timeout) in smcwd_set_timeout() argument
73 res = smcwd_call(wdd, SMCWD_SET_TIMEOUT, timeout, NULL); in smcwd_set_timeout()
75 wdd->timeout = timeout; in smcwd_set_timeout()
79 static int smcwd_stop(struct watchdog_device *wdd) in smcwd_stop() argument
84 smcwd_start(struct watchdog_device *wdd) smcwd_start() argument
113 struct watchdog_device *wdd; smcwd_probe() local
[all...]
H A Dda9063_wdt.c97 static int da9063_wdt_start(struct watchdog_device *wdd) in da9063_wdt_start() argument
99 struct da9063 *da9063 = watchdog_get_drvdata(wdd); in da9063_wdt_start()
102 ret = da9063_wdt_update_timeout(da9063, wdd->timeout); in da9063_wdt_start()
110 static int da9063_wdt_stop(struct watchdog_device *wdd) in da9063_wdt_stop() argument
112 struct da9063 *da9063 = watchdog_get_drvdata(wdd); in da9063_wdt_stop()
123 static int da9063_wdt_ping(struct watchdog_device *wdd) in da9063_wdt_ping() argument
125 struct da9063 *da9063 = watchdog_get_drvdata(wdd); in da9063_wdt_ping()
144 static int da9063_wdt_set_timeout(struct watchdog_device *wdd, in da9063_wdt_set_timeout() argument
147 struct da9063 *da9063 = watchdog_get_drvdata(wdd); in da9063_wdt_set_timeout()
160 if (watchdog_active(wdd)) in da9063_wdt_set_timeout()
172 da9063_wdt_restart(struct watchdog_device *wdd, unsigned long action, void *data) da9063_wdt_restart() argument
219 struct watchdog_device *wdd; da9063_wdt_probe() local
269 struct watchdog_device *wdd = dev_get_drvdata(dev); da9063_wdt_suspend() local
282 struct watchdog_device *wdd = dev_get_drvdata(dev); da9063_wdt_resume() local
[all...]
H A Dsl28cpld_wdt.c41 struct watchdog_device wdd; member
47 static int sl28cpld_wdt_ping(struct watchdog_device *wdd) in sl28cpld_wdt_ping() argument
49 struct sl28cpld_wdt *wdt = watchdog_get_drvdata(wdd); in sl28cpld_wdt_ping()
55 static int sl28cpld_wdt_start(struct watchdog_device *wdd) in sl28cpld_wdt_start() argument
57 struct sl28cpld_wdt *wdt = watchdog_get_drvdata(wdd); in sl28cpld_wdt_start()
70 static int sl28cpld_wdt_stop(struct watchdog_device *wdd) in sl28cpld_wdt_stop() argument
72 struct sl28cpld_wdt *wdt = watchdog_get_drvdata(wdd); in sl28cpld_wdt_stop()
78 static unsigned int sl28cpld_wdt_get_timeleft(struct watchdog_device *wdd) in sl28cpld_wdt_get_timeleft() argument
80 struct sl28cpld_wdt *wdt = watchdog_get_drvdata(wdd); in sl28cpld_wdt_get_timeleft()
91 static int sl28cpld_wdt_set_timeout(struct watchdog_device *wdd, in sl28cpld_wdt_set_timeout() argument
122 struct watchdog_device *wdd; sl28cpld_wdt_probe() local
[all...]
H A Dts72xx_wdt.c45 struct watchdog_device wdd; member
49 static int ts72xx_wdt_start(struct watchdog_device *wdd) in ts72xx_wdt_start() argument
51 struct ts72xx_wdt_priv *priv = watchdog_get_drvdata(wdd); in ts72xx_wdt_start()
59 static int ts72xx_wdt_stop(struct watchdog_device *wdd) in ts72xx_wdt_stop() argument
61 struct ts72xx_wdt_priv *priv = watchdog_get_drvdata(wdd); in ts72xx_wdt_stop()
69 static int ts72xx_wdt_ping(struct watchdog_device *wdd) in ts72xx_wdt_ping() argument
71 struct ts72xx_wdt_priv *priv = watchdog_get_drvdata(wdd); in ts72xx_wdt_ping()
78 static int ts72xx_wdt_settimeout(struct watchdog_device *wdd, unsigned int to) in ts72xx_wdt_settimeout() argument
80 struct ts72xx_wdt_priv *priv = watchdog_get_drvdata(wdd); in ts72xx_wdt_settimeout()
95 wdd in ts72xx_wdt_settimeout()
125 struct watchdog_device *wdd; ts72xx_wdt_probe() local
[all...]
H A Dbcm47xx_wdt.c43 static inline struct bcm47xx_wdt *bcm47xx_wdt_get(struct watchdog_device *wdd) in bcm47xx_wdt_get() argument
45 return container_of(wdd, struct bcm47xx_wdt, wdd); in bcm47xx_wdt_get()
48 static int bcm47xx_wdt_hard_keepalive(struct watchdog_device *wdd) in bcm47xx_wdt_hard_keepalive() argument
50 struct bcm47xx_wdt *wdt = bcm47xx_wdt_get(wdd); in bcm47xx_wdt_hard_keepalive()
52 wdt->timer_set_ms(wdt, wdd->timeout * 1000); in bcm47xx_wdt_hard_keepalive()
57 static int bcm47xx_wdt_hard_start(struct watchdog_device *wdd) in bcm47xx_wdt_hard_start() argument
62 static int bcm47xx_wdt_hard_stop(struct watchdog_device *wdd) in bcm47xx_wdt_hard_stop() argument
64 struct bcm47xx_wdt *wdt = bcm47xx_wdt_get(wdd); in bcm47xx_wdt_hard_stop()
71 static int bcm47xx_wdt_hard_set_timeout(struct watchdog_device *wdd, in bcm47xx_wdt_hard_set_timeout() argument
87 bcm47xx_wdt_restart(struct watchdog_device *wdd, unsigned long action, void *data) bcm47xx_wdt_restart() argument
119 bcm47xx_wdt_soft_keepalive(struct watchdog_device *wdd) bcm47xx_wdt_soft_keepalive() argument
128 bcm47xx_wdt_soft_start(struct watchdog_device *wdd) bcm47xx_wdt_soft_start() argument
138 bcm47xx_wdt_soft_stop(struct watchdog_device *wdd) bcm47xx_wdt_soft_stop() argument
148 bcm47xx_wdt_soft_set_timeout(struct watchdog_device *wdd, unsigned int new_time) bcm47xx_wdt_soft_set_timeout() argument
[all...]
H A Dqcom-wdt.c47 struct watchdog_device wdd; member
59 struct qcom_wdt *to_qcom_wdt(struct watchdog_device *wdd) in to_qcom_wdt() argument
61 return container_of(wdd, struct qcom_wdt, wdd); in to_qcom_wdt()
66 struct watchdog_device *wdd = arg; in qcom_wdt_isr() local
68 watchdog_notify_pretimeout(wdd); in qcom_wdt_isr()
73 static int qcom_wdt_start(struct watchdog_device *wdd) in qcom_wdt_start() argument
75 struct qcom_wdt *wdt = to_qcom_wdt(wdd); in qcom_wdt_start()
76 unsigned int bark = wdd->timeout - wdd in qcom_wdt_start()
86 qcom_wdt_stop(struct watchdog_device *wdd) qcom_wdt_stop() argument
94 qcom_wdt_ping(struct watchdog_device *wdd) qcom_wdt_ping() argument
102 qcom_wdt_set_timeout(struct watchdog_device *wdd, unsigned int timeout) qcom_wdt_set_timeout() argument
109 qcom_wdt_set_pretimeout(struct watchdog_device *wdd, unsigned int timeout) qcom_wdt_set_pretimeout() argument
116 qcom_wdt_restart(struct watchdog_device *wdd, unsigned long action, void *data) qcom_wdt_restart() argument
143 qcom_wdt_is_running(struct watchdog_device *wdd) qcom_wdt_is_running() argument
[all...]
H A Dapple_wdt.c57 struct watchdog_device wdd; member
62 static struct apple_wdt *to_apple_wdt(struct watchdog_device *wdd) in to_apple_wdt() argument
64 return container_of(wdd, struct apple_wdt, wdd); in to_apple_wdt()
67 static int apple_wdt_start(struct watchdog_device *wdd) in apple_wdt_start() argument
69 struct apple_wdt *wdt = to_apple_wdt(wdd); in apple_wdt_start()
77 static int apple_wdt_stop(struct watchdog_device *wdd) in apple_wdt_stop() argument
79 struct apple_wdt *wdt = to_apple_wdt(wdd); in apple_wdt_stop()
86 static int apple_wdt_ping(struct watchdog_device *wdd) in apple_wdt_ping() argument
88 struct apple_wdt *wdt = to_apple_wdt(wdd); in apple_wdt_ping()
95 apple_wdt_set_timeout(struct watchdog_device *wdd, unsigned int s) apple_wdt_set_timeout() argument
107 apple_wdt_get_timeleft(struct watchdog_device *wdd) apple_wdt_get_timeleft() argument
118 apple_wdt_restart(struct watchdog_device *wdd, unsigned long mode, void *cmd) apple_wdt_restart() argument
[all...]
H A Dtegra_wdt.c60 struct watchdog_device wdd; member
78 static int tegra_wdt_start(struct watchdog_device *wdd) in tegra_wdt_start() argument
80 struct tegra_wdt *wdt = watchdog_get_drvdata(wdd); in tegra_wdt_start()
101 (wdd->timeout << WDT_CFG_PERIOD_SHIFT) | in tegra_wdt_start()
110 static int tegra_wdt_stop(struct watchdog_device *wdd) in tegra_wdt_stop() argument
112 struct tegra_wdt *wdt = watchdog_get_drvdata(wdd); in tegra_wdt_stop()
121 static int tegra_wdt_ping(struct watchdog_device *wdd) in tegra_wdt_ping() argument
123 struct tegra_wdt *wdt = watchdog_get_drvdata(wdd); in tegra_wdt_ping()
130 static int tegra_wdt_set_timeout(struct watchdog_device *wdd, in tegra_wdt_set_timeout() argument
133 wdd in tegra_wdt_set_timeout()
143 tegra_wdt_get_timeleft(struct watchdog_device *wdd) tegra_wdt_get_timeleft() argument
185 struct watchdog_device *wdd; tegra_wdt_probe() local
[all...]
/kernel/linux/linux-5.10/drivers/watchdog/
H A Dwatchdog_dev.c53 * @wdd: Pointer to watchdog device.
60 struct watchdog_device *wdd; member
96 static inline bool watchdog_need_worker(struct watchdog_device *wdd) in watchdog_need_worker() argument
99 unsigned int hm = wdd->max_hw_heartbeat_ms; in watchdog_need_worker()
100 unsigned int t = wdd->timeout * 1000; in watchdog_need_worker()
115 return (hm && watchdog_active(wdd) && t > hm) || in watchdog_need_worker()
116 (t && !watchdog_active(wdd) && watchdog_hw_running(wdd)); in watchdog_need_worker()
119 static ktime_t watchdog_next_keepalive(struct watchdog_device *wdd) in watchdog_next_keepalive() argument
121 struct watchdog_core_data *wd_data = wdd in watchdog_next_keepalive()
149 watchdog_update_worker(struct watchdog_device *wdd) watchdog_update_worker() argument
164 __watchdog_ping(struct watchdog_device *wdd) __watchdog_ping() argument
205 watchdog_ping(struct watchdog_device *wdd) watchdog_ping() argument
220 struct watchdog_device *wdd = wd_data->wdd; watchdog_worker_should_ping() local
264 watchdog_start(struct watchdog_device *wdd) watchdog_start() argument
305 watchdog_stop(struct watchdog_device *wdd) watchdog_stop() argument
342 watchdog_get_status(struct watchdog_device *wdd) watchdog_get_status() argument
375 watchdog_set_timeout(struct watchdog_device *wdd, unsigned int timeout) watchdog_set_timeout() argument
406 watchdog_set_pretimeout(struct watchdog_device *wdd, unsigned int timeout) watchdog_set_pretimeout() argument
435 watchdog_get_timeleft(struct watchdog_device *wdd, unsigned int *timeleft) watchdog_get_timeleft() argument
452 struct watchdog_device *wdd = dev_get_drvdata(dev); nowayout_show() local
460 struct watchdog_device *wdd = dev_get_drvdata(dev); nowayout_store() local
480 struct watchdog_device *wdd = dev_get_drvdata(dev); status_show() local
495 struct watchdog_device *wdd = dev_get_drvdata(dev); bootstatus_show() local
504 struct watchdog_device *wdd = dev_get_drvdata(dev); timeleft_show() local
522 struct watchdog_device *wdd = dev_get_drvdata(dev); timeout_show() local
531 struct watchdog_device *wdd = dev_get_drvdata(dev); pretimeout_show() local
540 struct watchdog_device *wdd = dev_get_drvdata(dev); identity_show() local
549 struct watchdog_device *wdd = dev_get_drvdata(dev); state_show() local
569 struct watchdog_device *wdd = dev_get_drvdata(dev); pretimeout_governor_show() local
578 struct watchdog_device *wdd = dev_get_drvdata(dev); pretimeout_governor_store() local
592 struct watchdog_device *wdd = dev_get_drvdata(dev); wdt_is_visible() local
640 watchdog_ioctl_op(struct watchdog_device *wdd, unsigned int cmd, unsigned long arg) watchdog_ioctl_op() argument
665 struct watchdog_device *wdd; watchdog_write() local
717 struct watchdog_device *wdd; watchdog_ioctl() local
828 struct watchdog_device *wdd; watchdog_open() local
905 struct watchdog_device *wdd; watchdog_release() local
982 watchdog_cdev_register(struct watchdog_device *wdd) watchdog_cdev_register() argument
1076 watchdog_cdev_unregister(struct watchdog_device *wdd) watchdog_cdev_unregister() argument
1111 watchdog_dev_register(struct watchdog_device *wdd) watchdog_dev_register() argument
1134 watchdog_dev_unregister(struct watchdog_device *wdd) watchdog_dev_unregister() argument
1151 watchdog_set_last_hw_keepalive(struct watchdog_device *wdd, unsigned int last_ping_ms) watchdog_set_last_hw_keepalive() argument
[all...]
H A Dwatchdog_core.c63 static void watchdog_deferred_registration_add(struct watchdog_device *wdd) in watchdog_deferred_registration_add() argument
65 list_add_tail(&wdd->deferred, in watchdog_deferred_registration_add()
69 static void watchdog_deferred_registration_del(struct watchdog_device *wdd) in watchdog_deferred_registration_del() argument
77 if (wdd_tmp == wdd) { in watchdog_deferred_registration_del()
84 static void watchdog_check_min_max_timeout(struct watchdog_device *wdd) in watchdog_check_min_max_timeout() argument
90 if (!wdd->max_hw_heartbeat_ms && wdd->min_timeout > wdd->max_timeout) { in watchdog_check_min_max_timeout()
92 wdd->min_timeout = 0; in watchdog_check_min_max_timeout()
93 wdd in watchdog_check_min_max_timeout()
114 watchdog_init_timeout(struct watchdog_device *wdd, unsigned int timeout_parm, struct device *dev) watchdog_init_timeout() argument
157 struct watchdog_device *wdd; watchdog_reboot_notifier() local
176 struct watchdog_device *wdd = container_of(nb, struct watchdog_device, watchdog_restart_notifier() local
202 watchdog_set_restart_priority(struct watchdog_device *wdd, int priority) watchdog_set_restart_priority() argument
208 __watchdog_register_device(struct watchdog_device *wdd) __watchdog_register_device() argument
309 watchdog_register_device(struct watchdog_device *wdd) watchdog_register_device() argument
332 __watchdog_unregister_device(struct watchdog_device *wdd) __watchdog_unregister_device() argument
355 watchdog_unregister_device(struct watchdog_device *wdd) watchdog_unregister_device() argument
381 devm_watchdog_register_device(struct device *dev, struct watchdog_device *wdd) devm_watchdog_register_device() argument
409 struct watchdog_device *wdd; watchdog_deferred_registration() local
[all...]
H A Drave-sp-wdt.c48 * @wdd: Underlying watchdog device
54 struct watchdog_device wdd; member
60 static struct rave_sp_wdt *to_rave_sp_wdt(struct watchdog_device *wdd) in to_rave_sp_wdt() argument
62 return container_of(wdd, struct rave_sp_wdt, wdd); in to_rave_sp_wdt()
65 static int rave_sp_wdt_exec(struct watchdog_device *wdd, void *data, in rave_sp_wdt_exec() argument
68 return rave_sp_exec(to_rave_sp_wdt(wdd)->sp, in rave_sp_wdt_exec()
72 static int rave_sp_wdt_legacy_configure(struct watchdog_device *wdd, bool on) in rave_sp_wdt_legacy_configure() argument
79 [4] = on ? wdd->timeout : 0, in rave_sp_wdt_legacy_configure()
82 return rave_sp_wdt_exec(wdd, cm in rave_sp_wdt_legacy_configure()
85 rave_sp_wdt_rdu_configure(struct watchdog_device *wdd, bool on) rave_sp_wdt_rdu_configure() argument
112 rave_sp_wdt_configure(struct watchdog_device *wdd, bool on) rave_sp_wdt_configure() argument
117 rave_sp_wdt_legacy_restart(struct watchdog_device *wdd) rave_sp_wdt_legacy_restart() argument
128 rave_sp_wdt_rdu_restart(struct watchdog_device *wdd) rave_sp_wdt_rdu_restart() argument
165 rave_sp_wdt_restart(struct watchdog_device *wdd, unsigned long action, void *data) rave_sp_wdt_restart() argument
179 rave_sp_wdt_start(struct watchdog_device *wdd) rave_sp_wdt_start() argument
190 rave_sp_wdt_stop(struct watchdog_device *wdd) rave_sp_wdt_stop() argument
195 rave_sp_wdt_set_timeout(struct watchdog_device *wdd, unsigned int timeout) rave_sp_wdt_set_timeout() argument
203 rave_sp_wdt_ping(struct watchdog_device *wdd) rave_sp_wdt_ping() argument
256 struct watchdog_device *wdd; rave_sp_wdt_probe() local
[all...]
H A Dnpcm_wdt.c44 struct watchdog_device wdd; member
48 static inline struct npcm_wdt *to_npcm_wdt(struct watchdog_device *wdd) in to_npcm_wdt() argument
50 return container_of(wdd, struct npcm_wdt, wdd); in to_npcm_wdt()
53 static int npcm_wdt_ping(struct watchdog_device *wdd) in npcm_wdt_ping() argument
55 struct npcm_wdt *wdt = to_npcm_wdt(wdd); in npcm_wdt_ping()
64 static int npcm_wdt_start(struct watchdog_device *wdd) in npcm_wdt_start() argument
66 struct npcm_wdt *wdt = to_npcm_wdt(wdd); in npcm_wdt_start()
69 if (wdd->timeout < 2) in npcm_wdt_start()
71 else if (wdd in npcm_wdt_start()
97 npcm_wdt_stop(struct watchdog_device *wdd) npcm_wdt_stop() argument
106 npcm_wdt_set_timeout(struct watchdog_device *wdd, unsigned int timeout) npcm_wdt_set_timeout() argument
145 npcm_wdt_restart(struct watchdog_device *wdd, unsigned long action, void *data) npcm_wdt_restart() argument
156 npcm_is_running(struct watchdog_device *wdd) npcm_is_running() argument
[all...]
H A Darm_smc_wdt.c34 static int smcwd_call(struct watchdog_device *wdd, enum smcwd_call call, in smcwd_call() argument
42 arm_smccc_smc((u32)(uintptr_t)watchdog_get_drvdata(wdd), call, arg, 0, in smcwd_call()
54 static int smcwd_ping(struct watchdog_device *wdd) in smcwd_ping() argument
56 return smcwd_call(wdd, SMCWD_PET, 0, NULL); in smcwd_ping()
59 static unsigned int smcwd_get_timeleft(struct watchdog_device *wdd) in smcwd_get_timeleft() argument
63 smcwd_call(wdd, SMCWD_GET_TIMELEFT, 0, &res); in smcwd_get_timeleft()
69 static int smcwd_set_timeout(struct watchdog_device *wdd, unsigned int timeout) in smcwd_set_timeout() argument
73 res = smcwd_call(wdd, SMCWD_SET_TIMEOUT, timeout, NULL); in smcwd_set_timeout()
75 wdd->timeout = timeout; in smcwd_set_timeout()
79 static int smcwd_stop(struct watchdog_device *wdd) in smcwd_stop() argument
84 smcwd_start(struct watchdog_device *wdd) smcwd_start() argument
113 struct watchdog_device *wdd; smcwd_probe() local
[all...]
H A Dda9063_wdt.c93 static int da9063_wdt_start(struct watchdog_device *wdd) in da9063_wdt_start() argument
95 struct da9063 *da9063 = watchdog_get_drvdata(wdd); in da9063_wdt_start()
98 ret = da9063_wdt_update_timeout(da9063, wdd->timeout); in da9063_wdt_start()
106 static int da9063_wdt_stop(struct watchdog_device *wdd) in da9063_wdt_stop() argument
108 struct da9063 *da9063 = watchdog_get_drvdata(wdd); in da9063_wdt_stop()
119 static int da9063_wdt_ping(struct watchdog_device *wdd) in da9063_wdt_ping() argument
121 struct da9063 *da9063 = watchdog_get_drvdata(wdd); in da9063_wdt_ping()
133 static int da9063_wdt_set_timeout(struct watchdog_device *wdd, in da9063_wdt_set_timeout() argument
136 struct da9063 *da9063 = watchdog_get_drvdata(wdd); in da9063_wdt_set_timeout()
149 if (watchdog_active(wdd)) in da9063_wdt_set_timeout()
161 da9063_wdt_restart(struct watchdog_device *wdd, unsigned long action, void *data) da9063_wdt_restart() argument
194 struct watchdog_device *wdd; da9063_wdt_probe() local
[all...]
H A Dsl28cpld_wdt.c41 struct watchdog_device wdd; member
47 static int sl28cpld_wdt_ping(struct watchdog_device *wdd) in sl28cpld_wdt_ping() argument
49 struct sl28cpld_wdt *wdt = watchdog_get_drvdata(wdd); in sl28cpld_wdt_ping()
55 static int sl28cpld_wdt_start(struct watchdog_device *wdd) in sl28cpld_wdt_start() argument
57 struct sl28cpld_wdt *wdt = watchdog_get_drvdata(wdd); in sl28cpld_wdt_start()
70 static int sl28cpld_wdt_stop(struct watchdog_device *wdd) in sl28cpld_wdt_stop() argument
72 struct sl28cpld_wdt *wdt = watchdog_get_drvdata(wdd); in sl28cpld_wdt_stop()
78 static unsigned int sl28cpld_wdt_get_timeleft(struct watchdog_device *wdd) in sl28cpld_wdt_get_timeleft() argument
80 struct sl28cpld_wdt *wdt = watchdog_get_drvdata(wdd); in sl28cpld_wdt_get_timeleft()
91 static int sl28cpld_wdt_set_timeout(struct watchdog_device *wdd, in sl28cpld_wdt_set_timeout() argument
122 struct watchdog_device *wdd; sl28cpld_wdt_probe() local
[all...]
H A Dsbsa_gwdt.c78 * @wdd: kernel watchdog_device structure
84 struct watchdog_device wdd; member
118 static int sbsa_gwdt_set_timeout(struct watchdog_device *wdd, in sbsa_gwdt_set_timeout() argument
121 struct sbsa_gwdt *gwdt = watchdog_get_drvdata(wdd); in sbsa_gwdt_set_timeout()
123 wdd->timeout = timeout; in sbsa_gwdt_set_timeout()
124 timeout = clamp_t(unsigned int, timeout, 1, wdd->max_hw_heartbeat_ms / 1000); in sbsa_gwdt_set_timeout()
141 static unsigned int sbsa_gwdt_get_timeleft(struct watchdog_device *wdd) in sbsa_gwdt_get_timeleft() argument
143 struct sbsa_gwdt *gwdt = watchdog_get_drvdata(wdd); in sbsa_gwdt_get_timeleft()
163 static int sbsa_gwdt_keepalive(struct watchdog_device *wdd) in sbsa_gwdt_keepalive() argument
165 struct sbsa_gwdt *gwdt = watchdog_get_drvdata(wdd); in sbsa_gwdt_keepalive()
176 sbsa_gwdt_start(struct watchdog_device *wdd) sbsa_gwdt_start() argument
186 sbsa_gwdt_stop(struct watchdog_device *wdd) sbsa_gwdt_stop() argument
224 struct watchdog_device *wdd; sbsa_gwdt_probe() local
[all...]
H A Dbcm47xx_wdt.c43 static inline struct bcm47xx_wdt *bcm47xx_wdt_get(struct watchdog_device *wdd) in bcm47xx_wdt_get() argument
45 return container_of(wdd, struct bcm47xx_wdt, wdd); in bcm47xx_wdt_get()
48 static int bcm47xx_wdt_hard_keepalive(struct watchdog_device *wdd) in bcm47xx_wdt_hard_keepalive() argument
50 struct bcm47xx_wdt *wdt = bcm47xx_wdt_get(wdd); in bcm47xx_wdt_hard_keepalive()
52 wdt->timer_set_ms(wdt, wdd->timeout * 1000); in bcm47xx_wdt_hard_keepalive()
57 static int bcm47xx_wdt_hard_start(struct watchdog_device *wdd) in bcm47xx_wdt_hard_start() argument
62 static int bcm47xx_wdt_hard_stop(struct watchdog_device *wdd) in bcm47xx_wdt_hard_stop() argument
64 struct bcm47xx_wdt *wdt = bcm47xx_wdt_get(wdd); in bcm47xx_wdt_hard_stop()
71 static int bcm47xx_wdt_hard_set_timeout(struct watchdog_device *wdd, in bcm47xx_wdt_hard_set_timeout() argument
87 bcm47xx_wdt_restart(struct watchdog_device *wdd, unsigned long action, void *data) bcm47xx_wdt_restart() argument
119 bcm47xx_wdt_soft_keepalive(struct watchdog_device *wdd) bcm47xx_wdt_soft_keepalive() argument
128 bcm47xx_wdt_soft_start(struct watchdog_device *wdd) bcm47xx_wdt_soft_start() argument
138 bcm47xx_wdt_soft_stop(struct watchdog_device *wdd) bcm47xx_wdt_soft_stop() argument
148 bcm47xx_wdt_soft_set_timeout(struct watchdog_device *wdd, unsigned int new_time) bcm47xx_wdt_soft_set_timeout() argument
[all...]
H A Dts72xx_wdt.c47 struct watchdog_device wdd; member
51 static int ts72xx_wdt_start(struct watchdog_device *wdd) in ts72xx_wdt_start() argument
53 struct ts72xx_wdt_priv *priv = watchdog_get_drvdata(wdd); in ts72xx_wdt_start()
61 static int ts72xx_wdt_stop(struct watchdog_device *wdd) in ts72xx_wdt_stop() argument
63 struct ts72xx_wdt_priv *priv = watchdog_get_drvdata(wdd); in ts72xx_wdt_stop()
71 static int ts72xx_wdt_ping(struct watchdog_device *wdd) in ts72xx_wdt_ping() argument
73 struct ts72xx_wdt_priv *priv = watchdog_get_drvdata(wdd); in ts72xx_wdt_ping()
80 static int ts72xx_wdt_settimeout(struct watchdog_device *wdd, unsigned int to) in ts72xx_wdt_settimeout() argument
82 struct ts72xx_wdt_priv *priv = watchdog_get_drvdata(wdd); in ts72xx_wdt_settimeout()
97 wdd in ts72xx_wdt_settimeout()
127 struct watchdog_device *wdd; ts72xx_wdt_probe() local
[all...]
H A Dtegra_wdt.c60 struct watchdog_device wdd; member
78 static int tegra_wdt_start(struct watchdog_device *wdd) in tegra_wdt_start() argument
80 struct tegra_wdt *wdt = watchdog_get_drvdata(wdd); in tegra_wdt_start()
101 (wdd->timeout << WDT_CFG_PERIOD_SHIFT) | in tegra_wdt_start()
110 static int tegra_wdt_stop(struct watchdog_device *wdd) in tegra_wdt_stop() argument
112 struct tegra_wdt *wdt = watchdog_get_drvdata(wdd); in tegra_wdt_stop()
121 static int tegra_wdt_ping(struct watchdog_device *wdd) in tegra_wdt_ping() argument
123 struct tegra_wdt *wdt = watchdog_get_drvdata(wdd); in tegra_wdt_ping()
130 static int tegra_wdt_set_timeout(struct watchdog_device *wdd, in tegra_wdt_set_timeout() argument
133 wdd in tegra_wdt_set_timeout()
143 tegra_wdt_get_timeleft(struct watchdog_device *wdd) tegra_wdt_get_timeleft() argument
185 struct watchdog_device *wdd; tegra_wdt_probe() local
[all...]
/kernel/linux/linux-6.6/include/linux/
H A Dwatchdog.h128 static inline bool watchdog_active(struct watchdog_device *wdd) in watchdog_active() argument
130 return test_bit(WDOG_ACTIVE, &wdd->status); in watchdog_active()
137 static inline bool watchdog_hw_running(struct watchdog_device *wdd) in watchdog_hw_running() argument
139 return test_bit(WDOG_HW_RUNNING, &wdd->status); in watchdog_hw_running()
143 static inline void watchdog_set_nowayout(struct watchdog_device *wdd, bool nowayout) in watchdog_set_nowayout() argument
146 set_bit(WDOG_NO_WAY_OUT, &wdd->status); in watchdog_set_nowayout()
150 static inline void watchdog_stop_on_reboot(struct watchdog_device *wdd) in watchdog_stop_on_reboot() argument
152 set_bit(WDOG_STOP_ON_REBOOT, &wdd->status); in watchdog_stop_on_reboot()
156 static inline void watchdog_stop_on_unregister(struct watchdog_device *wdd) in watchdog_stop_on_unregister() argument
158 set_bit(WDOG_STOP_ON_UNREGISTER, &wdd in watchdog_stop_on_unregister()
162 watchdog_stop_ping_on_suspend(struct watchdog_device *wdd) watchdog_stop_ping_on_suspend() argument
168 watchdog_timeout_invalid(struct watchdog_device *wdd, unsigned int t) watchdog_timeout_invalid() argument
187 watchdog_pretimeout_invalid(struct watchdog_device *wdd, unsigned int t) watchdog_pretimeout_invalid() argument
194 watchdog_set_drvdata(struct watchdog_device *wdd, void *data) watchdog_set_drvdata() argument
199 watchdog_get_drvdata(struct watchdog_device *wdd) watchdog_get_drvdata() argument
208 watchdog_notify_pretimeout(struct watchdog_device *wdd) watchdog_notify_pretimeout() argument
[all...]
/kernel/linux/linux-5.10/include/linux/
H A Dwatchdog.h126 static inline bool watchdog_active(struct watchdog_device *wdd) in watchdog_active() argument
128 return test_bit(WDOG_ACTIVE, &wdd->status); in watchdog_active()
135 static inline bool watchdog_hw_running(struct watchdog_device *wdd) in watchdog_hw_running() argument
137 return test_bit(WDOG_HW_RUNNING, &wdd->status); in watchdog_hw_running()
141 static inline void watchdog_set_nowayout(struct watchdog_device *wdd, bool nowayout) in watchdog_set_nowayout() argument
144 set_bit(WDOG_NO_WAY_OUT, &wdd->status); in watchdog_set_nowayout()
148 static inline void watchdog_stop_on_reboot(struct watchdog_device *wdd) in watchdog_stop_on_reboot() argument
150 set_bit(WDOG_STOP_ON_REBOOT, &wdd->status); in watchdog_stop_on_reboot()
154 static inline void watchdog_stop_on_unregister(struct watchdog_device *wdd) in watchdog_stop_on_unregister() argument
156 set_bit(WDOG_STOP_ON_UNREGISTER, &wdd in watchdog_stop_on_unregister()
160 watchdog_timeout_invalid(struct watchdog_device *wdd, unsigned int t) watchdog_timeout_invalid() argument
179 watchdog_pretimeout_invalid(struct watchdog_device *wdd, unsigned int t) watchdog_pretimeout_invalid() argument
186 watchdog_set_drvdata(struct watchdog_device *wdd, void *data) watchdog_set_drvdata() argument
191 watchdog_get_drvdata(struct watchdog_device *wdd) watchdog_get_drvdata() argument
200 watchdog_notify_pretimeout(struct watchdog_device *wdd) watchdog_notify_pretimeout() argument
[all...]

Completed in 11 milliseconds

1234567