| /kernel/linux/linux-6.6/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 | 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 | 97 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() [all …]
|
| D | qcom-wdt.c | 47 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->pretimeout; in qcom_wdt_start() 81 writel(wdd->timeout * wdt->rate, wdt_addr(wdt, WDT_BITE_TIME)); in qcom_wdt_start() 86 static int qcom_wdt_stop(struct watchdog_device *wdd) in qcom_wdt_stop() 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 | 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 | 45 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->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 | 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 …]
|
| /kernel/linux/linux-5.10/drivers/watchdog/ |
| D | watchdog_dev.c | 53 * @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->wd_data; in watchdog_next_keepalive() 122 unsigned int timeout_ms = wdd->timeout * 1000; in watchdog_next_keepalive() [all …]
|
| D | watchdog_core.c | 63 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->max_timeout = 0; in watchdog_check_min_max_timeout() 99 * @wdd: watchdog device 114 int watchdog_init_timeout(struct watchdog_device *wdd, in watchdog_init_timeout() argument [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 | 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 | 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 | 93 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() [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 | 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 | 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 | 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 | 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() 114 struct watchdog_device *wdd; in ts4800_wdt_probe() local 149 wdd = &wdt->wdd; in ts4800_wdt_probe() [all …]
|