/Linux-v4.19/drivers/watchdog/ |
D | watchdog_dev.c | 68 struct watchdog_device *wdd; member 90 static inline bool watchdog_need_worker(struct watchdog_device *wdd) in watchdog_need_worker() argument 93 unsigned int hm = wdd->max_hw_heartbeat_ms; in watchdog_need_worker() 94 unsigned int t = wdd->timeout * 1000; in watchdog_need_worker() 109 return (hm && watchdog_active(wdd) && t > hm) || in watchdog_need_worker() 110 (t && !watchdog_active(wdd) && watchdog_hw_running(wdd)); in watchdog_need_worker() 113 static ktime_t watchdog_next_keepalive(struct watchdog_device *wdd) in watchdog_next_keepalive() argument 115 struct watchdog_core_data *wd_data = wdd->wd_data; in watchdog_next_keepalive() 116 unsigned int timeout_ms = wdd->timeout * 1000; in watchdog_next_keepalive() 124 hw_heartbeat_ms = min_not_zero(timeout_ms, wdd->max_hw_heartbeat_ms); in watchdog_next_keepalive() [all …]
|
D | watchdog_core.c | 63 static int 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() 70 static void watchdog_deferred_registration_del(struct watchdog_device *wdd) in watchdog_deferred_registration_del() argument 78 if (wdd_tmp == wdd) { in watchdog_deferred_registration_del() 85 static void watchdog_check_min_max_timeout(struct watchdog_device *wdd) in watchdog_check_min_max_timeout() argument 91 if (!wdd->max_hw_heartbeat_ms && wdd->min_timeout > wdd->max_timeout) { in watchdog_check_min_max_timeout() 93 wdd->min_timeout = 0; in watchdog_check_min_max_timeout() 94 wdd->max_timeout = 0; in watchdog_check_min_max_timeout() 112 int watchdog_init_timeout(struct watchdog_device *wdd, in watchdog_init_timeout() argument 118 watchdog_check_min_max_timeout(wdd); in watchdog_init_timeout() [all …]
|
D | npcm_wdt.c | 44 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->timeout < 3) in npcm_wdt_start() 73 else if (wdd->timeout < 6) in npcm_wdt_start() [all …]
|
D | rave-sp-wdt.c | 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 91 [3] = (u8)wdd->timeout, in rave_sp_wdt_rdu_configure() [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 | 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 | da9063_wdt.c | 92 static int da9063_wdt_start(struct watchdog_device *wdd) in da9063_wdt_start() argument 94 struct da9063 *da9063 = watchdog_get_drvdata(wdd); in da9063_wdt_start() 97 ret = da9063_wdt_update_timeout(da9063, wdd->timeout); in da9063_wdt_start() 105 static int da9063_wdt_stop(struct watchdog_device *wdd) in da9063_wdt_stop() argument 107 struct da9063 *da9063 = watchdog_get_drvdata(wdd); in da9063_wdt_stop() 118 static int da9063_wdt_ping(struct watchdog_device *wdd) in da9063_wdt_ping() argument 120 struct da9063 *da9063 = watchdog_get_drvdata(wdd); in da9063_wdt_ping() 132 static int da9063_wdt_set_timeout(struct watchdog_device *wdd, in da9063_wdt_set_timeout() argument 135 struct da9063 *da9063 = watchdog_get_drvdata(wdd); in da9063_wdt_set_timeout() 148 if (watchdog_active(wdd)) in da9063_wdt_set_timeout() [all …]
|
D | ts4800_wdt.c | 31 struct watchdog_device wdd; member 64 static int ts4800_wdt_start(struct watchdog_device *wdd) in ts4800_wdt_start() argument 66 struct ts4800_wdt *wdt = watchdog_get_drvdata(wdd); in ts4800_wdt_start() 72 static int ts4800_wdt_stop(struct watchdog_device *wdd) in ts4800_wdt_stop() argument 74 struct ts4800_wdt *wdt = watchdog_get_drvdata(wdd); in ts4800_wdt_stop() 80 static int ts4800_wdt_set_timeout(struct watchdog_device *wdd, in ts4800_wdt_set_timeout() argument 83 struct ts4800_wdt *wdt = watchdog_get_drvdata(wdd); in ts4800_wdt_set_timeout() 91 wdd->timeout = ts4800_wdt_map[i].timeout; in ts4800_wdt_set_timeout() 113 struct watchdog_device *wdd; in ts4800_wdt_probe() local 144 wdd = &wdt->wdd; in ts4800_wdt_probe() [all …]
|
D | ts72xx_wdt.c | 47 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->timeout = to; in ts72xx_wdt_settimeout() [all …]
|
D | dw_wdt.c | 58 struct watchdog_device wdd; member 65 #define to_dw_wdt(wdd) container_of(wdd, struct dw_wdt, wdd) argument 89 static int dw_wdt_ping(struct watchdog_device *wdd) in dw_wdt_ping() argument 91 struct dw_wdt *dw_wdt = to_dw_wdt(wdd); in dw_wdt_ping() 99 static int dw_wdt_set_timeout(struct watchdog_device *wdd, unsigned int top_s) in dw_wdt_set_timeout() argument 101 struct dw_wdt *dw_wdt = to_dw_wdt(wdd); in dw_wdt_set_timeout() 123 wdd->timeout = dw_wdt_top_in_seconds(dw_wdt, top_val); in dw_wdt_set_timeout() 139 static int dw_wdt_start(struct watchdog_device *wdd) in dw_wdt_start() argument 141 struct dw_wdt *dw_wdt = to_dw_wdt(wdd); in dw_wdt_start() 143 dw_wdt_set_timeout(wdd, wdd->timeout); in dw_wdt_start() [all …]
|
D | sbsa_gwdt.c | 93 struct watchdog_device wdd; member 127 static int sbsa_gwdt_set_timeout(struct watchdog_device *wdd, in sbsa_gwdt_set_timeout() argument 130 struct sbsa_gwdt *gwdt = watchdog_get_drvdata(wdd); in sbsa_gwdt_set_timeout() 132 wdd->timeout = timeout; in sbsa_gwdt_set_timeout() 149 static unsigned int sbsa_gwdt_get_timeleft(struct watchdog_device *wdd) in sbsa_gwdt_get_timeleft() argument 151 struct sbsa_gwdt *gwdt = watchdog_get_drvdata(wdd); in sbsa_gwdt_get_timeleft() 171 static int sbsa_gwdt_keepalive(struct watchdog_device *wdd) in sbsa_gwdt_keepalive() argument 173 struct sbsa_gwdt *gwdt = watchdog_get_drvdata(wdd); in sbsa_gwdt_keepalive() 184 static int sbsa_gwdt_start(struct watchdog_device *wdd) in sbsa_gwdt_start() argument 186 struct sbsa_gwdt *gwdt = watchdog_get_drvdata(wdd); in sbsa_gwdt_start() [all …]
|
D | sp805_wdt.c | 67 struct watchdog_device wdd; member 82 static bool wdt_is_running(struct watchdog_device *wdd) in wdt_is_running() argument 84 struct sp805_wdt *wdt = watchdog_get_drvdata(wdd); in wdt_is_running() 91 static int wdt_setload(struct watchdog_device *wdd, unsigned int timeout) in wdt_setload() argument 93 struct sp805_wdt *wdt = watchdog_get_drvdata(wdd); in wdt_setload() 112 wdd->timeout = div_u64((load + 1) * 2 + (rate / 2), rate); in wdt_setload() 119 static unsigned int wdt_timeleft(struct watchdog_device *wdd) in wdt_timeleft() argument 121 struct sp805_wdt *wdt = watchdog_get_drvdata(wdd); in wdt_timeleft() 136 wdt_restart(struct watchdog_device *wdd, unsigned long mode, void *cmd) in wdt_restart() argument 138 struct sp805_wdt *wdt = watchdog_get_drvdata(wdd); in wdt_restart() [all …]
|
D | ep93xx_wdt.c | 45 struct watchdog_device wdd; member 48 static int ep93xx_wdt_start(struct watchdog_device *wdd) in ep93xx_wdt_start() argument 50 struct ep93xx_wdt_priv *priv = watchdog_get_drvdata(wdd); in ep93xx_wdt_start() 57 static int ep93xx_wdt_stop(struct watchdog_device *wdd) in ep93xx_wdt_stop() argument 59 struct ep93xx_wdt_priv *priv = watchdog_get_drvdata(wdd); in ep93xx_wdt_stop() 66 static int ep93xx_wdt_ping(struct watchdog_device *wdd) in ep93xx_wdt_ping() argument 68 struct ep93xx_wdt_priv *priv = watchdog_get_drvdata(wdd); in ep93xx_wdt_ping() 93 struct watchdog_device *wdd; in ep93xx_wdt_probe() local 109 wdd = &priv->wdd; in ep93xx_wdt_probe() 110 wdd->bootstatus = (val & 0x01) ? WDIOF_CARDRESET : 0; in ep93xx_wdt_probe() [all …]
|
D | asm9260_wdt.c | 57 struct watchdog_device wdd; member 68 static int asm9260_wdt_feed(struct watchdog_device *wdd) in asm9260_wdt_feed() argument 70 struct asm9260_wdt_priv *priv = watchdog_get_drvdata(wdd); in asm9260_wdt_feed() 78 static unsigned int asm9260_wdt_gettimeleft(struct watchdog_device *wdd) in asm9260_wdt_gettimeleft() argument 80 struct asm9260_wdt_priv *priv = watchdog_get_drvdata(wdd); in asm9260_wdt_gettimeleft() 88 static int asm9260_wdt_updatetimeout(struct watchdog_device *wdd) in asm9260_wdt_updatetimeout() argument 90 struct asm9260_wdt_priv *priv = watchdog_get_drvdata(wdd); in asm9260_wdt_updatetimeout() 93 counter = wdd->timeout * priv->wdt_freq; in asm9260_wdt_updatetimeout() 100 static int asm9260_wdt_enable(struct watchdog_device *wdd) in asm9260_wdt_enable() argument 102 struct asm9260_wdt_priv *priv = watchdog_get_drvdata(wdd); in asm9260_wdt_enable() [all …]
|
D | watchdog_pretimeout.c | 29 struct watchdog_device *wdd; member 70 int watchdog_pretimeout_governor_get(struct watchdog_device *wdd, char *buf) in watchdog_pretimeout_governor_get() argument 75 if (wdd->gov) in watchdog_pretimeout_governor_get() 76 count = sprintf(buf, "%s\n", wdd->gov->name); in watchdog_pretimeout_governor_get() 82 int watchdog_pretimeout_governor_set(struct watchdog_device *wdd, in watchdog_pretimeout_governor_set() argument 96 wdd->gov = priv->gov; in watchdog_pretimeout_governor_set() 104 void watchdog_notify_pretimeout(struct watchdog_device *wdd) in watchdog_notify_pretimeout() argument 109 if (!wdd->gov) { in watchdog_notify_pretimeout() 114 wdd->gov->pretimeout(wdd); in watchdog_notify_pretimeout() 145 if (!p->wdd->gov) in watchdog_register_governor() [all …]
|
D | nic7018_wdt.c | 57 struct watchdog_device wdd; member 95 static int nic7018_set_timeout(struct watchdog_device *wdd, in nic7018_set_timeout() argument 98 struct nic7018_wdt *wdt = watchdog_get_drvdata(wdd); in nic7018_set_timeout() 107 wdd->timeout = nic7018_timeout(config->period, counter); in nic7018_set_timeout() 113 static int nic7018_start(struct watchdog_device *wdd) in nic7018_start() argument 115 struct nic7018_wdt *wdt = watchdog_get_drvdata(wdd); in nic7018_start() 118 nic7018_set_timeout(wdd, wdd->timeout); in nic7018_start() 131 static int nic7018_stop(struct watchdog_device *wdd) in nic7018_stop() argument 133 struct nic7018_wdt *wdt = watchdog_get_drvdata(wdd); in nic7018_stop() 142 static int nic7018_ping(struct watchdog_device *wdd) in nic7018_ping() argument [all …]
|
D | ni903x_wdt.c | 50 struct watchdog_device wdd; member 73 static int ni903x_wdd_set_timeout(struct watchdog_device *wdd, in ni903x_wdd_set_timeout() argument 76 struct ni903x_wdt *wdt = watchdog_get_drvdata(wdd); in ni903x_wdd_set_timeout() 83 wdd->timeout = timeout; in ni903x_wdd_set_timeout() 88 static unsigned int ni903x_wdd_get_timeleft(struct watchdog_device *wdd) in ni903x_wdd_get_timeleft() argument 90 struct ni903x_wdt *wdt = watchdog_get_drvdata(wdd); in ni903x_wdd_get_timeleft() 107 static int ni903x_wdd_ping(struct watchdog_device *wdd) in ni903x_wdd_ping() argument 109 struct ni903x_wdt *wdt = watchdog_get_drvdata(wdd); in ni903x_wdd_ping() 118 static int ni903x_wdd_start(struct watchdog_device *wdd) in ni903x_wdd_start() argument 120 struct ni903x_wdt *wdt = watchdog_get_drvdata(wdd); in ni903x_wdd_start() [all …]
|
D | sprd_wdt.c | 68 struct watchdog_device wdd; member 74 static inline struct sprd_wdt *to_sprd_wdt(struct watchdog_device *wdd) in to_sprd_wdt() argument 76 return container_of(wdd, struct sprd_wdt, wdd); in to_sprd_wdt() 96 watchdog_notify_pretimeout(&wdt->wdd); in sprd_wdt_isr() 182 static int sprd_wdt_start(struct watchdog_device *wdd) in sprd_wdt_start() argument 184 struct sprd_wdt *wdt = to_sprd_wdt(wdd); in sprd_wdt_start() 188 ret = sprd_wdt_load_value(wdt, wdd->timeout, wdd->pretimeout); in sprd_wdt_start() 197 set_bit(WDOG_HW_RUNNING, &wdd->status); in sprd_wdt_start() 202 static int sprd_wdt_stop(struct watchdog_device *wdd) in sprd_wdt_stop() argument 204 struct sprd_wdt *wdt = to_sprd_wdt(wdd); in sprd_wdt_stop() [all …]
|
D | gpio_wdt.c | 33 struct watchdog_device wdd; member 46 static int gpio_wdt_ping(struct watchdog_device *wdd) in gpio_wdt_ping() argument 48 struct gpio_wdt_priv *priv = watchdog_get_drvdata(wdd); in gpio_wdt_ping() 66 static int gpio_wdt_start(struct watchdog_device *wdd) in gpio_wdt_start() argument 68 struct gpio_wdt_priv *priv = watchdog_get_drvdata(wdd); in gpio_wdt_start() 73 set_bit(WDOG_HW_RUNNING, &wdd->status); in gpio_wdt_start() 75 return gpio_wdt_ping(wdd); in gpio_wdt_start() 78 static int gpio_wdt_stop(struct watchdog_device *wdd) in gpio_wdt_stop() argument 80 struct gpio_wdt_priv *priv = watchdog_get_drvdata(wdd); in gpio_wdt_stop() 85 set_bit(WDOG_HW_RUNNING, &wdd->status); in gpio_wdt_stop() [all …]
|
D | kempld_wdt.c | 83 struct watchdog_device wdd; member 207 static int kempld_wdt_set_timeout(struct watchdog_device *wdd, in kempld_wdt_set_timeout() argument 210 struct kempld_wdt_data *wdt_data = watchdog_get_drvdata(wdd); in kempld_wdt_set_timeout() 230 wdd->timeout = timeout; in kempld_wdt_set_timeout() 234 static int kempld_wdt_set_pretimeout(struct watchdog_device *wdd, in kempld_wdt_set_pretimeout() argument 237 struct kempld_wdt_data *wdt_data = watchdog_get_drvdata(wdd); in kempld_wdt_set_pretimeout() 247 if (pretimeout > wdd->timeout) in kempld_wdt_set_pretimeout() 258 wdd->timeout - pretimeout); in kempld_wdt_set_pretimeout() 286 wdt_data->wdd.timeout = pretimeout + timeout; in kempld_wdt_update_timeouts() 289 static int kempld_wdt_start(struct watchdog_device *wdd) in kempld_wdt_start() argument [all …]
|
D | ftwdt010_wdt.c | 41 struct watchdog_device wdd; member 48 struct ftwdt010_wdt *to_ftwdt010_wdt(struct watchdog_device *wdd) in to_ftwdt010_wdt() argument 50 return container_of(wdd, struct ftwdt010_wdt, wdd); in to_ftwdt010_wdt() 53 static int ftwdt010_wdt_start(struct watchdog_device *wdd) in ftwdt010_wdt_start() argument 55 struct ftwdt010_wdt *gwdt = to_ftwdt010_wdt(wdd); in ftwdt010_wdt_start() 58 writel(wdd->timeout * WDT_CLOCK, gwdt->base + FTWDT010_WDLOAD); in ftwdt010_wdt_start() 71 static int ftwdt010_wdt_stop(struct watchdog_device *wdd) in ftwdt010_wdt_stop() argument 73 struct ftwdt010_wdt *gwdt = to_ftwdt010_wdt(wdd); in ftwdt010_wdt_stop() 80 static int ftwdt010_wdt_ping(struct watchdog_device *wdd) in ftwdt010_wdt_ping() argument 82 struct ftwdt010_wdt *gwdt = to_ftwdt010_wdt(wdd); in ftwdt010_wdt_ping() [all …]
|
D | qcom-wdt.c | 48 struct watchdog_device wdd; member 61 struct qcom_wdt *to_qcom_wdt(struct watchdog_device *wdd) in to_qcom_wdt() argument 63 return container_of(wdd, struct qcom_wdt, wdd); in to_qcom_wdt() 66 static int qcom_wdt_start(struct watchdog_device *wdd) in qcom_wdt_start() argument 68 struct qcom_wdt *wdt = to_qcom_wdt(wdd); in qcom_wdt_start() 72 writel(wdd->timeout * wdt->rate, wdt_addr(wdt, WDT_BARK_TIME)); in qcom_wdt_start() 73 writel(wdd->timeout * wdt->rate, wdt_addr(wdt, WDT_BITE_TIME)); in qcom_wdt_start() 78 static int qcom_wdt_stop(struct watchdog_device *wdd) in qcom_wdt_stop() argument 80 struct qcom_wdt *wdt = to_qcom_wdt(wdd); in qcom_wdt_stop() 86 static int qcom_wdt_ping(struct watchdog_device *wdd) in qcom_wdt_ping() argument [all …]
|
D | ziirave_wdt.c | 87 struct watchdog_device wdd; member 127 static int ziirave_wdt_set_state(struct watchdog_device *wdd, int state) in ziirave_wdt_set_state() argument 129 struct i2c_client *client = to_i2c_client(wdd->parent); in ziirave_wdt_set_state() 134 static int ziirave_wdt_start(struct watchdog_device *wdd) in ziirave_wdt_start() argument 136 return ziirave_wdt_set_state(wdd, ZIIRAVE_STATE_ON); in ziirave_wdt_start() 139 static int ziirave_wdt_stop(struct watchdog_device *wdd) in ziirave_wdt_stop() argument 141 return ziirave_wdt_set_state(wdd, ZIIRAVE_STATE_OFF); in ziirave_wdt_stop() 144 static int ziirave_wdt_ping(struct watchdog_device *wdd) in ziirave_wdt_ping() argument 146 struct i2c_client *client = to_i2c_client(wdd->parent); in ziirave_wdt_ping() 152 static int ziirave_wdt_set_timeout(struct watchdog_device *wdd, in ziirave_wdt_set_timeout() argument [all …]
|
D | stm32_iwdg.c | 61 struct watchdog_device wdd; member 79 static int stm32_iwdg_start(struct watchdog_device *wdd) in stm32_iwdg_start() argument 81 struct stm32_iwdg *wdt = watchdog_get_drvdata(wdd); in stm32_iwdg_start() 86 dev_dbg(wdd->parent, "%s\n", __func__); in stm32_iwdg_start() 89 reload = clamp_t(unsigned int, ((wdd->timeout * wdt->rate) / 256) - 1, in stm32_iwdg_start() 105 dev_err(wdd->parent, in stm32_iwdg_start() 116 static int stm32_iwdg_ping(struct watchdog_device *wdd) in stm32_iwdg_ping() argument 118 struct stm32_iwdg *wdt = watchdog_get_drvdata(wdd); in stm32_iwdg_ping() 120 dev_dbg(wdd->parent, "%s\n", __func__); in stm32_iwdg_ping() 128 static int stm32_iwdg_set_timeout(struct watchdog_device *wdd, in stm32_iwdg_set_timeout() argument [all …]
|
/Linux-v4.19/include/linux/ |
D | watchdog.h | 129 static inline bool watchdog_active(struct watchdog_device *wdd) in watchdog_active() argument 131 return test_bit(WDOG_ACTIVE, &wdd->status); in watchdog_active() 138 static inline bool watchdog_hw_running(struct watchdog_device *wdd) in watchdog_hw_running() argument 140 return test_bit(WDOG_HW_RUNNING, &wdd->status); in watchdog_hw_running() 144 static inline void watchdog_set_nowayout(struct watchdog_device *wdd, bool nowayout) in watchdog_set_nowayout() argument 147 set_bit(WDOG_NO_WAY_OUT, &wdd->status); in watchdog_set_nowayout() 151 static inline void watchdog_stop_on_reboot(struct watchdog_device *wdd) in watchdog_stop_on_reboot() argument 153 set_bit(WDOG_STOP_ON_REBOOT, &wdd->status); in watchdog_stop_on_reboot() 157 static inline void watchdog_stop_on_unregister(struct watchdog_device *wdd) in watchdog_stop_on_unregister() argument 159 set_bit(WDOG_STOP_ON_UNREGISTER, &wdd->status); in watchdog_stop_on_unregister() [all …]
|