/linux-6.14.4/drivers/watchdog/ |
D | watchdog_dev.c | 76 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() 114 hw_heartbeat_ms = min_not_zero(timeout_ms, wdd->max_hw_heartbeat_ms); in watchdog_next_keepalive() [all …]
|
D | watchdog_core.c | 67 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->max_timeout = 0; in watchdog_check_min_max_timeout() 103 * @wdd: watchdog device 118 int watchdog_init_timeout(struct watchdog_device *wdd, in watchdog_init_timeout() argument [all …]
|
D | npcm_wdt.c | 45 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->timeout < 3) in npcm_wdt_start() 78 else if (wdd->timeout < 6) in npcm_wdt_start() [all …]
|
D | rave-sp-wdt.c | 48 * @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, cmd, sizeof(cmd)); in rave_sp_wdt_legacy_configure() 85 static int rave_sp_wdt_rdu_configure(struct watchdog_device *wdd, bool on) in rave_sp_wdt_rdu_configure() argument [all …]
|
D | arm_smc_wdt.c | 34 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 [all …]
|
D | cgbc_wdt.c | 57 struct watchdog_device wdd; member 72 static int cgbc_wdt_start(struct watchdog_device *wdd) in cgbc_wdt_start() argument 74 struct cgbc_wdt_data *wdt_data = watchdog_get_drvdata(wdd); in cgbc_wdt_start() 76 unsigned int timeout1 = (wdd->timeout - wdd->pretimeout) * 1000; in cgbc_wdt_start() 77 unsigned int timeout2 = wdd->pretimeout * 1000; in cgbc_wdt_start() 91 if (wdd->pretimeout) { in cgbc_wdt_start() 105 static int cgbc_wdt_stop(struct watchdog_device *wdd) in cgbc_wdt_stop() argument 107 struct cgbc_wdt_data *wdt_data = watchdog_get_drvdata(wdd); in cgbc_wdt_stop() 117 static int cgbc_wdt_keepalive(struct watchdog_device *wdd) in cgbc_wdt_keepalive() argument 119 struct cgbc_wdt_data *wdt_data = watchdog_get_drvdata(wdd); in cgbc_wdt_keepalive() [all …]
|
D | cros_ec_wdt.c | 52 static int cros_ec_wdt_ping(struct watchdog_device *wdd) in cros_ec_wdt_ping() argument 54 struct cros_ec_device *cros_ec = watchdog_get_drvdata(wdd); in cros_ec_wdt_ping() 61 dev_dbg(wdd->parent, "Failed to ping watchdog (%d)", ret); in cros_ec_wdt_ping() 66 static int cros_ec_wdt_start(struct watchdog_device *wdd) in cros_ec_wdt_start() argument 68 struct cros_ec_device *cros_ec = watchdog_get_drvdata(wdd); in cros_ec_wdt_start() 74 arg.req.reboot_timeout_sec = wdd->timeout; in cros_ec_wdt_start() 77 dev_dbg(wdd->parent, "Failed to start watchdog (%d)", ret); in cros_ec_wdt_start() 82 static int cros_ec_wdt_stop(struct watchdog_device *wdd) in cros_ec_wdt_stop() argument 84 struct cros_ec_device *cros_ec = watchdog_get_drvdata(wdd); in cros_ec_wdt_stop() 91 dev_dbg(wdd->parent, "Failed to stop watchdog (%d)", ret); in cros_ec_wdt_stop() [all …]
|
D | bcm47xx_wdt.c | 43 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 74 struct bcm47xx_wdt *wdt = bcm47xx_wdt_get(wdd); in bcm47xx_wdt_hard_set_timeout() [all …]
|
D | da9063_wdt.c | 96 static int da9063_wdt_start(struct watchdog_device *wdd) in da9063_wdt_start() argument 98 struct da9063 *da9063 = watchdog_get_drvdata(wdd); in da9063_wdt_start() 101 ret = da9063_wdt_update_timeout(da9063, wdd->timeout); in da9063_wdt_start() 109 static int da9063_wdt_stop(struct watchdog_device *wdd) in da9063_wdt_stop() argument 111 struct da9063 *da9063 = watchdog_get_drvdata(wdd); in da9063_wdt_stop() 122 static int da9063_wdt_ping(struct watchdog_device *wdd) in da9063_wdt_ping() argument 124 struct da9063 *da9063 = watchdog_get_drvdata(wdd); in da9063_wdt_ping() 143 static int da9063_wdt_set_timeout(struct watchdog_device *wdd, in da9063_wdt_set_timeout() argument 146 struct da9063 *da9063 = watchdog_get_drvdata(wdd); in da9063_wdt_set_timeout() 159 if (watchdog_active(wdd)) in da9063_wdt_set_timeout() [all …]
|
D | qcom-wdt.c | 48 struct watchdog_device wdd; member 60 struct qcom_wdt *to_qcom_wdt(struct watchdog_device *wdd) in to_qcom_wdt() argument 62 return container_of(wdd, struct qcom_wdt, wdd); in to_qcom_wdt() 67 struct watchdog_device *wdd = arg; in qcom_wdt_isr() local 69 watchdog_notify_pretimeout(wdd); in qcom_wdt_isr() 74 static int qcom_wdt_start(struct watchdog_device *wdd) in qcom_wdt_start() argument 76 struct qcom_wdt *wdt = to_qcom_wdt(wdd); in qcom_wdt_start() 77 unsigned int bark = wdd->timeout - wdd->pretimeout; in qcom_wdt_start() 82 writel(wdd->timeout * wdt->rate, wdt_addr(wdt, WDT_BITE_TIME)); in qcom_wdt_start() 87 static int qcom_wdt_stop(struct watchdog_device *wdd) in qcom_wdt_stop() argument [all …]
|
D | apple_wdt.c | 57 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 static int apple_wdt_set_timeout(struct watchdog_device *wdd, unsigned int s) in apple_wdt_set_timeout() argument [all …]
|
D | sl28cpld_wdt.c | 41 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 [all …]
|
D | stm32_iwdg.c | 79 struct watchdog_device wdd; member 97 static int stm32_iwdg_start(struct watchdog_device *wdd) in stm32_iwdg_start() argument 99 struct stm32_iwdg *wdt = watchdog_get_drvdata(wdd); in stm32_iwdg_start() 103 dev_dbg(wdd->parent, "%s\n", __func__); in stm32_iwdg_start() 105 if (!wdd->pretimeout) in stm32_iwdg_start() 106 wdd->pretimeout = 3 * wdd->timeout / 4; in stm32_iwdg_start() 108 tout = clamp_t(unsigned int, wdd->timeout, in stm32_iwdg_start() 109 wdd->min_timeout, wdd->max_hw_heartbeat_ms / 1000); in stm32_iwdg_start() 110 ptot = clamp_t(unsigned int, tout - wdd->pretimeout, in stm32_iwdg_start() 111 wdd->min_timeout, tout); in stm32_iwdg_start() [all …]
|
D | gxp-wdt.c | 26 struct watchdog_device wdd; member 38 static int gxp_wdt_start(struct watchdog_device *wdd) in gxp_wdt_start() argument 40 struct gxp_wdt *drvdata = watchdog_get_drvdata(wdd); in gxp_wdt_start() 42 writew(SECS_TO_WDOG_TICKS(wdd->timeout), drvdata->base + GXP_WDT_CNT_OFS); in gxp_wdt_start() 47 static int gxp_wdt_stop(struct watchdog_device *wdd) in gxp_wdt_stop() argument 49 struct gxp_wdt *drvdata = watchdog_get_drvdata(wdd); in gxp_wdt_stop() 58 static int gxp_wdt_set_timeout(struct watchdog_device *wdd, in gxp_wdt_set_timeout() argument 61 struct gxp_wdt *drvdata = watchdog_get_drvdata(wdd); in gxp_wdt_set_timeout() 64 wdd->timeout = timeout; in gxp_wdt_set_timeout() 65 actual = min(timeout * 100, wdd->max_hw_heartbeat_ms / 10); in gxp_wdt_set_timeout() [all …]
|
D | ts72xx_wdt.c | 46 struct watchdog_device wdd; member 50 static int ts72xx_wdt_start(struct watchdog_device *wdd) in ts72xx_wdt_start() argument 52 struct ts72xx_wdt_priv *priv = watchdog_get_drvdata(wdd); in ts72xx_wdt_start() 60 static int ts72xx_wdt_stop(struct watchdog_device *wdd) in ts72xx_wdt_stop() argument 62 struct ts72xx_wdt_priv *priv = watchdog_get_drvdata(wdd); in ts72xx_wdt_stop() 70 static int ts72xx_wdt_ping(struct watchdog_device *wdd) in ts72xx_wdt_ping() argument 72 struct ts72xx_wdt_priv *priv = watchdog_get_drvdata(wdd); in ts72xx_wdt_ping() 79 static int ts72xx_wdt_settimeout(struct watchdog_device *wdd, unsigned int to) in ts72xx_wdt_settimeout() argument 81 struct ts72xx_wdt_priv *priv = watchdog_get_drvdata(wdd); in ts72xx_wdt_settimeout() 96 wdd->timeout = to; in ts72xx_wdt_settimeout() [all …]
|
D | tegra_wdt.c | 60 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->timeout = timeout; in tegra_wdt_set_timeout() [all …]
|
D | rti_wdt.c | 70 * @wdd - hold watchdog device as is in WDT core 75 struct watchdog_device wdd; member 78 static int rti_wdt_start(struct watchdog_device *wdd) in rti_wdt_start() argument 81 struct rti_wdt_device *wdt = watchdog_get_drvdata(wdd); in rti_wdt_start() 84 ret = pm_runtime_resume_and_get(wdd->parent); in rti_wdt_start() 89 timer_margin = (u64)wdd->timeout * wdt->freq; in rti_wdt_start() 102 wdd->min_hw_heartbeat_ms = 520 * wdd->timeout + MAX_HW_ERROR; in rti_wdt_start() 117 static int rti_wdt_ping(struct watchdog_device *wdd) in rti_wdt_ping() argument 119 struct rti_wdt_device *wdt = watchdog_get_drvdata(wdd); in rti_wdt_ping() 129 static int rti_wdt_setup_hw_hb(struct watchdog_device *wdd, u32 wsize) in rti_wdt_setup_hw_hb() argument [all …]
|
D | sp805_wdt.c | 59 * @wdd: instance of struct watchdog_device 68 struct watchdog_device wdd; member 83 static bool wdt_is_running(struct watchdog_device *wdd) in wdt_is_running() argument 85 struct sp805_wdt *wdt = watchdog_get_drvdata(wdd); in wdt_is_running() 92 static int wdt_setload(struct watchdog_device *wdd, unsigned int timeout) in wdt_setload() argument 94 struct sp805_wdt *wdt = watchdog_get_drvdata(wdd); in wdt_setload() 113 wdd->timeout = div_u64((load + 1) * 2 + (rate / 2), rate); in wdt_setload() 120 static unsigned int wdt_timeleft(struct watchdog_device *wdd) in wdt_timeleft() argument 122 struct sp805_wdt *wdt = watchdog_get_drvdata(wdd); in wdt_timeleft() 137 wdt_restart(struct watchdog_device *wdd, unsigned long mode, void *cmd) in wdt_restart() argument [all …]
|
D | ts4800_wdt.c | 29 struct watchdog_device wdd; member 62 static int ts4800_wdt_start(struct watchdog_device *wdd) in ts4800_wdt_start() argument 64 struct ts4800_wdt *wdt = watchdog_get_drvdata(wdd); in ts4800_wdt_start() 70 static int ts4800_wdt_stop(struct watchdog_device *wdd) in ts4800_wdt_stop() argument 72 struct ts4800_wdt *wdt = watchdog_get_drvdata(wdd); in ts4800_wdt_stop() 78 static int ts4800_wdt_set_timeout(struct watchdog_device *wdd, in ts4800_wdt_set_timeout() argument 81 struct ts4800_wdt *wdt = watchdog_get_drvdata(wdd); in ts4800_wdt_set_timeout() 89 wdd->timeout = ts4800_wdt_map[i].timeout; in ts4800_wdt_set_timeout() 112 struct watchdog_device *wdd; in ts4800_wdt_probe() local 147 wdd = &wdt->wdd; in ts4800_wdt_probe() [all …]
|
D | nic7018_wdt.c | 48 struct watchdog_device wdd; member 86 static int nic7018_set_timeout(struct watchdog_device *wdd, in nic7018_set_timeout() argument 89 struct nic7018_wdt *wdt = watchdog_get_drvdata(wdd); in nic7018_set_timeout() 98 wdd->timeout = nic7018_timeout(config->period, counter); in nic7018_set_timeout() 104 static int nic7018_start(struct watchdog_device *wdd) in nic7018_start() argument 106 struct nic7018_wdt *wdt = watchdog_get_drvdata(wdd); in nic7018_start() 109 nic7018_set_timeout(wdd, wdd->timeout); in nic7018_start() 122 static int nic7018_stop(struct watchdog_device *wdd) in nic7018_stop() argument 124 struct nic7018_wdt *wdt = watchdog_get_drvdata(wdd); in nic7018_stop() 133 static int nic7018_ping(struct watchdog_device *wdd) in nic7018_ping() argument [all …]
|
D | watchdog_pretimeout.c | 18 /* The spinlock protects default_gov, wdd->gov and pretimeout_list */ 25 struct watchdog_device *wdd; member 66 int watchdog_pretimeout_governor_get(struct watchdog_device *wdd, char *buf) in watchdog_pretimeout_governor_get() argument 71 if (wdd->gov) in watchdog_pretimeout_governor_get() 72 count = sysfs_emit(buf, "%s\n", wdd->gov->name); in watchdog_pretimeout_governor_get() 78 int watchdog_pretimeout_governor_set(struct watchdog_device *wdd, in watchdog_pretimeout_governor_set() argument 92 wdd->gov = priv->gov; in watchdog_pretimeout_governor_set() 100 void watchdog_notify_pretimeout(struct watchdog_device *wdd) in watchdog_notify_pretimeout() argument 105 if (!wdd->gov) { in watchdog_notify_pretimeout() 110 wdd->gov->pretimeout(wdd); in watchdog_notify_pretimeout() [all …]
|
D | ni903x_wdt.c | 41 struct watchdog_device wdd; member 64 static int ni903x_wdd_set_timeout(struct watchdog_device *wdd, in ni903x_wdd_set_timeout() argument 67 struct ni903x_wdt *wdt = watchdog_get_drvdata(wdd); in ni903x_wdd_set_timeout() 74 wdd->timeout = timeout; in ni903x_wdd_set_timeout() 79 static unsigned int ni903x_wdd_get_timeleft(struct watchdog_device *wdd) in ni903x_wdd_get_timeleft() argument 81 struct ni903x_wdt *wdt = watchdog_get_drvdata(wdd); in ni903x_wdd_get_timeleft() 98 static int ni903x_wdd_ping(struct watchdog_device *wdd) in ni903x_wdd_ping() argument 100 struct ni903x_wdt *wdt = watchdog_get_drvdata(wdd); in ni903x_wdd_ping() 109 static int ni903x_wdd_start(struct watchdog_device *wdd) in ni903x_wdd_start() argument 111 struct ni903x_wdt *wdt = watchdog_get_drvdata(wdd); in ni903x_wdd_start() [all …]
|
D | sprd_wdt.c | 61 struct watchdog_device wdd; member 67 static inline struct sprd_wdt *to_sprd_wdt(struct watchdog_device *wdd) in to_sprd_wdt() argument 69 return container_of(wdd, struct sprd_wdt, wdd); in to_sprd_wdt() 89 watchdog_notify_pretimeout(&wdt->wdd); in sprd_wdt_isr() 178 static int sprd_wdt_start(struct watchdog_device *wdd) in sprd_wdt_start() argument 180 struct sprd_wdt *wdt = to_sprd_wdt(wdd); in sprd_wdt_start() 184 ret = sprd_wdt_load_value(wdt, wdd->timeout, wdd->pretimeout); in sprd_wdt_start() 193 set_bit(WDOG_HW_RUNNING, &wdd->status); in sprd_wdt_start() 198 static int sprd_wdt_stop(struct watchdog_device *wdd) in sprd_wdt_stop() argument 200 struct sprd_wdt *wdt = to_sprd_wdt(wdd); in sprd_wdt_stop() [all …]
|
D | kempld_wdt.c | 75 struct watchdog_device wdd; member 197 static int kempld_wdt_set_timeout(struct watchdog_device *wdd, in kempld_wdt_set_timeout() argument 200 struct kempld_wdt_data *wdt_data = watchdog_get_drvdata(wdd); in kempld_wdt_set_timeout() 220 wdd->timeout = timeout; in kempld_wdt_set_timeout() 224 static int kempld_wdt_set_pretimeout(struct watchdog_device *wdd, in kempld_wdt_set_pretimeout() argument 227 struct kempld_wdt_data *wdt_data = watchdog_get_drvdata(wdd); in kempld_wdt_set_pretimeout() 237 if (pretimeout > wdd->timeout) in kempld_wdt_set_pretimeout() 248 wdd->timeout - pretimeout); in kempld_wdt_set_pretimeout() 276 wdt_data->wdd.timeout = pretimeout + timeout; in kempld_wdt_update_timeouts() 279 static int kempld_wdt_start(struct watchdog_device *wdd) in kempld_wdt_start() argument [all …]
|
D | ftwdt010_wdt.c | 38 struct watchdog_device wdd; member 45 struct ftwdt010_wdt *to_ftwdt010_wdt(struct watchdog_device *wdd) in to_ftwdt010_wdt() argument 47 return container_of(wdd, struct ftwdt010_wdt, wdd); in to_ftwdt010_wdt() 67 static int ftwdt010_wdt_start(struct watchdog_device *wdd) in ftwdt010_wdt_start() argument 69 struct ftwdt010_wdt *gwdt = to_ftwdt010_wdt(wdd); in ftwdt010_wdt_start() 71 ftwdt010_enable(gwdt, wdd->timeout, gwdt->has_irq); in ftwdt010_wdt_start() 75 static int ftwdt010_wdt_stop(struct watchdog_device *wdd) in ftwdt010_wdt_stop() argument 77 struct ftwdt010_wdt *gwdt = to_ftwdt010_wdt(wdd); in ftwdt010_wdt_stop() 84 static int ftwdt010_wdt_ping(struct watchdog_device *wdd) in ftwdt010_wdt_ping() argument 86 struct ftwdt010_wdt *gwdt = to_ftwdt010_wdt(wdd); in ftwdt010_wdt_ping() [all …]
|