| /linux/drivers/watchdog/ |
| H A 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 …]
|
| H A 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() 56 static int smcwd_ping(struct watchdog_device *wdd) in smcwd_ping() argument 58 return smcwd_call(wdd, SMCWD_PET, 0, NULL); in smcwd_ping() 61 static unsigned int smcwd_get_timeleft(struct watchdog_device *wdd) in smcwd_get_timeleft() argument 65 smcwd_call(wdd, SMCWD_GET_TIMELEFT, 0, &res); in smcwd_get_timeleft() 71 static int smcwd_set_timeout(struct watchdog_device *wdd, unsigned int timeout) in smcwd_set_timeout() argument 75 res = smcwd_call(wdd, SMCWD_SET_TIMEOUT, timeout, NULL); in smcwd_set_timeout() 77 wdd->timeout = timeout; in smcwd_set_timeout() 81 static int smcwd_stop(struct watchdog_device *wdd) in smcwd_stop() argument [all …]
|
| H A 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 …]
|
| H A 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 …]
|
| H A D | gunyah_wdt.c | 65 static int gunyah_wdt_start(struct watchdog_device *wdd) in gunyah_wdt_start() argument 68 struct device *dev = wdd->parent; in gunyah_wdt_start() 72 if (ret && watchdog_active(wdd)) { in gunyah_wdt_start() 77 timeout_ms = wdd->timeout * 1000; in gunyah_wdt_start() 92 static int gunyah_wdt_stop(struct watchdog_device *wdd) in gunyah_wdt_stop() argument 97 static int gunyah_wdt_ping(struct watchdog_device *wdd) in gunyah_wdt_ping() argument 102 static int gunyah_wdt_set_timeout(struct watchdog_device *wdd, in gunyah_wdt_set_timeout() argument 105 wdd->timeout = timeout_sec; in gunyah_wdt_set_timeout() 107 if (watchdog_active(wdd)) in gunyah_wdt_set_timeout() 108 return gunyah_wdt_start(wdd); in gunyah_wdt_set_timeout() [all …]
|
| H A 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 …]
|
| H A D | cros_ec_wdt.c | 47 static int cros_ec_wdt_ping(struct watchdog_device *wdd) in cros_ec_wdt_ping() argument 49 struct cros_ec_device *cros_ec = watchdog_get_drvdata(wdd); in cros_ec_wdt_ping() 56 dev_dbg(wdd->parent, "Failed to ping watchdog (%d)\n", ret); in cros_ec_wdt_ping() 61 static int cros_ec_wdt_start(struct watchdog_device *wdd) in cros_ec_wdt_start() argument 63 struct cros_ec_device *cros_ec = watchdog_get_drvdata(wdd); in cros_ec_wdt_start() 69 arg.req.reboot_timeout_sec = wdd->timeout; in cros_ec_wdt_start() 72 dev_dbg(wdd->parent, "Failed to start watchdog (%d)\n", ret); in cros_ec_wdt_start() 77 static int cros_ec_wdt_stop(struct watchdog_device *wdd) in cros_ec_wdt_stop() argument 79 struct cros_ec_device *cros_ec = watchdog_get_drvdata(wdd); in cros_ec_wdt_stop() 86 dev_dbg(wdd->parent, "Failed to stop watchdog (%d)\n", ret); in cros_ec_wdt_stop() [all …]
|
| H A 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 …]
|
| H A D | sl28cpld_wdt.c | 40 struct watchdog_device wdd; member 46 static int sl28cpld_wdt_ping(struct watchdog_device *wdd) in sl28cpld_wdt_ping() argument 48 struct sl28cpld_wdt *wdt = watchdog_get_drvdata(wdd); in sl28cpld_wdt_ping() 54 static int sl28cpld_wdt_start(struct watchdog_device *wdd) in sl28cpld_wdt_start() argument 56 struct sl28cpld_wdt *wdt = watchdog_get_drvdata(wdd); in sl28cpld_wdt_start() 69 static int sl28cpld_wdt_stop(struct watchdog_device *wdd) in sl28cpld_wdt_stop() argument 71 struct sl28cpld_wdt *wdt = watchdog_get_drvdata(wdd); in sl28cpld_wdt_stop() 77 static unsigned int sl28cpld_wdt_get_timeleft(struct watchdog_device *wdd) in sl28cpld_wdt_get_timeleft() argument 79 struct sl28cpld_wdt *wdt = watchdog_get_drvdata(wdd); in sl28cpld_wdt_get_timeleft() 90 static int sl28cpld_wdt_set_timeout(struct watchdog_device *wdd, in sl28cpld_wdt_set_timeout() argument [all …]
|
| H A D | sbsa_gwdt.c | 92 struct watchdog_device wdd; member 152 static int sbsa_gwdt_set_timeout(struct watchdog_device *wdd, in sbsa_gwdt_set_timeout() argument 155 struct sbsa_gwdt *gwdt = watchdog_get_drvdata(wdd); in sbsa_gwdt_set_timeout() 157 wdd->timeout = timeout; in sbsa_gwdt_set_timeout() 158 timeout = clamp_t(unsigned int, timeout, 1, wdd->max_hw_heartbeat_ms / 1000); in sbsa_gwdt_set_timeout() 193 wdd->min_hw_heartbeat_ms = timeout * 500 + 1000; in sbsa_gwdt_set_timeout() 198 static unsigned int sbsa_gwdt_get_timeleft(struct watchdog_device *wdd) in sbsa_gwdt_get_timeleft() argument 200 struct sbsa_gwdt *gwdt = watchdog_get_drvdata(wdd); in sbsa_gwdt_get_timeleft() 220 static int sbsa_gwdt_keepalive(struct watchdog_device *wdd) in sbsa_gwdt_keepalive() argument 222 struct sbsa_gwdt *gwdt = watchdog_get_drvdata(wdd); in sbsa_gwdt_keepalive() [all …]
|
| H A D | intel_oc_wdt.c | 42 struct watchdog_device wdd; member 58 static int intel_oc_wdt_start(struct watchdog_device *wdd) in intel_oc_wdt_start() argument 60 struct intel_oc_wdt *oc_wdt = watchdog_get_drvdata(wdd); in intel_oc_wdt_start() 71 static int intel_oc_wdt_stop(struct watchdog_device *wdd) in intel_oc_wdt_stop() argument 73 struct intel_oc_wdt *oc_wdt = watchdog_get_drvdata(wdd); in intel_oc_wdt_stop() 81 static int intel_oc_wdt_ping(struct watchdog_device *wdd) in intel_oc_wdt_ping() argument 83 struct intel_oc_wdt *oc_wdt = watchdog_get_drvdata(wdd); in intel_oc_wdt_ping() 91 static int intel_oc_wdt_set_timeout(struct watchdog_device *wdd, in intel_oc_wdt_set_timeout() argument 94 struct intel_oc_wdt *oc_wdt = watchdog_get_drvdata(wdd); in intel_oc_wdt_set_timeout() 99 wdd->timeout = t; in intel_oc_wdt_set_timeout() [all …]
|
| H A 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 …]
|
| H A 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 …]
|
| H A 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 …]
|
| H A D | ep93xx_wdt.c | 42 struct watchdog_device wdd; member 45 static int ep93xx_wdt_start(struct watchdog_device *wdd) in ep93xx_wdt_start() argument 47 struct ep93xx_wdt_priv *priv = watchdog_get_drvdata(wdd); in ep93xx_wdt_start() 54 static int ep93xx_wdt_stop(struct watchdog_device *wdd) in ep93xx_wdt_stop() argument 56 struct ep93xx_wdt_priv *priv = watchdog_get_drvdata(wdd); in ep93xx_wdt_stop() 63 static int ep93xx_wdt_ping(struct watchdog_device *wdd) in ep93xx_wdt_ping() argument 65 struct ep93xx_wdt_priv *priv = watchdog_get_drvdata(wdd); in ep93xx_wdt_ping() 91 struct watchdog_device *wdd; in ep93xx_wdt_probe() local 105 wdd = &priv->wdd; in ep93xx_wdt_probe() 106 wdd->bootstatus = (val & 0x01) ? WDIOF_CARDRESET : 0; in ep93xx_wdt_probe() [all …]
|
| H A D | rti_wdt.c | 80 struct watchdog_device wdd; member 84 static int rti_wdt_start(struct watchdog_device *wdd) in rti_wdt_start() argument 87 struct rti_wdt_device *wdt = watchdog_get_drvdata(wdd); in rti_wdt_start() 91 ret = pm_runtime_resume_and_get(wdd->parent); in rti_wdt_start() 96 timer_margin = (u64)wdd->timeout * wdt->freq; in rti_wdt_start() 109 wdd->min_hw_heartbeat_ms = 520 * wdd->timeout + MAX_HW_ERROR; in rti_wdt_start() 129 static int rti_wdt_ping(struct watchdog_device *wdd) in rti_wdt_ping() argument 131 struct rti_wdt_device *wdt = watchdog_get_drvdata(wdd); in rti_wdt_ping() 141 static int rti_wdt_setup_hw_hb(struct watchdog_device *wdd, u32 wsize) in rti_wdt_setup_hw_hb() argument 154 wdd->min_hw_heartbeat_ms = 520 * heartbeat + MAX_HW_ERROR; in rti_wdt_setup_hw_hb() [all …]
|
| H A D | ixp4xx_wdt.c | 24 struct watchdog_device wdd; member 46 struct ixp4xx_wdt *to_ixp4xx_wdt(struct watchdog_device *wdd) in to_ixp4xx_wdt() argument 48 return container_of(wdd, struct ixp4xx_wdt, wdd); in to_ixp4xx_wdt() 51 static int ixp4xx_wdt_start(struct watchdog_device *wdd) in ixp4xx_wdt_start() argument 53 struct ixp4xx_wdt *iwdt = to_ixp4xx_wdt(wdd); in ixp4xx_wdt_start() 57 __raw_writel(wdd->timeout * iwdt->rate, in ixp4xx_wdt_start() 66 static int ixp4xx_wdt_stop(struct watchdog_device *wdd) in ixp4xx_wdt_stop() argument 68 struct ixp4xx_wdt *iwdt = to_ixp4xx_wdt(wdd); in ixp4xx_wdt_stop() 77 static int ixp4xx_wdt_set_timeout(struct watchdog_device *wdd, in ixp4xx_wdt_set_timeout() argument 80 wdd->timeout = timeout; in ixp4xx_wdt_set_timeout() [all …]
|
| H A D | asm9260_wdt.c | 56 struct watchdog_device wdd; member 67 static int asm9260_wdt_feed(struct watchdog_device *wdd) in asm9260_wdt_feed() argument 69 struct asm9260_wdt_priv *priv = watchdog_get_drvdata(wdd); in asm9260_wdt_feed() 77 static unsigned int asm9260_wdt_gettimeleft(struct watchdog_device *wdd) in asm9260_wdt_gettimeleft() argument 79 struct asm9260_wdt_priv *priv = watchdog_get_drvdata(wdd); in asm9260_wdt_gettimeleft() 87 static int asm9260_wdt_updatetimeout(struct watchdog_device *wdd) in asm9260_wdt_updatetimeout() argument 89 struct asm9260_wdt_priv *priv = watchdog_get_drvdata(wdd); in asm9260_wdt_updatetimeout() 92 counter = wdd->timeout * priv->wdt_freq; in asm9260_wdt_updatetimeout() 99 static int asm9260_wdt_enable(struct watchdog_device *wdd) in asm9260_wdt_enable() argument 101 struct asm9260_wdt_priv *priv = watchdog_get_drvdata(wdd); in asm9260_wdt_enable() [all …]
|
| H A D | ftwdt010_wdt.c | 37 struct watchdog_device wdd; member 44 struct ftwdt010_wdt *to_ftwdt010_wdt(struct watchdog_device *wdd) in to_ftwdt010_wdt() argument 46 return container_of(wdd, struct ftwdt010_wdt, wdd); in to_ftwdt010_wdt() 66 static int ftwdt010_wdt_start(struct watchdog_device *wdd) in ftwdt010_wdt_start() argument 68 struct ftwdt010_wdt *gwdt = to_ftwdt010_wdt(wdd); in ftwdt010_wdt_start() 70 ftwdt010_enable(gwdt, wdd->timeout, gwdt->has_irq); in ftwdt010_wdt_start() 74 static int ftwdt010_wdt_stop(struct watchdog_device *wdd) in ftwdt010_wdt_stop() argument 76 struct ftwdt010_wdt *gwdt = to_ftwdt010_wdt(wdd); in ftwdt010_wdt_stop() 83 static int ftwdt010_wdt_ping(struct watchdog_device *wdd) in ftwdt010_wdt_ping() argument 85 struct ftwdt010_wdt *gwdt = to_ftwdt010_wdt(wdd); in ftwdt010_wdt_ping() [all …]
|
| H A D | tqmx86_wdt.c | 28 struct watchdog_device wdd; member 35 static int tqmx86_wdt_start(struct watchdog_device *wdd) in tqmx86_wdt_start() argument 37 struct tqmx86_wdt *priv = watchdog_get_drvdata(wdd); in tqmx86_wdt_start() 44 static int tqmx86_wdt_set_timeout(struct watchdog_device *wdd, unsigned int t) in tqmx86_wdt_set_timeout() argument 46 struct tqmx86_wdt *priv = watchdog_get_drvdata(wdd); in tqmx86_wdt_set_timeout() 54 wdd->timeout = t; in tqmx86_wdt_set_timeout() 90 watchdog_set_drvdata(&priv->wdd, priv); in tqmx86_wdt_probe() 92 priv->wdd.parent = dev; in tqmx86_wdt_probe() 93 priv->wdd.info = &tqmx86_wdt_info; in tqmx86_wdt_probe() 94 priv->wdd.ops = &tqmx86_wdt_ops; in tqmx86_wdt_probe() [all …]
|
| H A 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 …]
|
| H A D | watchdog_pretimeout.c | 27 struct watchdog_device *wdd; member 68 int watchdog_pretimeout_governor_get(struct watchdog_device *wdd, char *buf) in watchdog_pretimeout_governor_get() argument 73 if (wdd->gov) in watchdog_pretimeout_governor_get() 74 count = sysfs_emit(buf, "%s\n", wdd->gov->name); in watchdog_pretimeout_governor_get() 80 int watchdog_pretimeout_governor_set(struct watchdog_device *wdd, in watchdog_pretimeout_governor_set() argument 94 wdd->gov = priv->gov; in watchdog_pretimeout_governor_set() 102 void watchdog_notify_pretimeout(struct watchdog_device *wdd) in watchdog_notify_pretimeout() argument 107 if (!wdd->gov) { in watchdog_notify_pretimeout() 112 wdd->gov->pretimeout(wdd); in watchdog_notify_pretimeout() 143 if (!p->wdd->gov) in watchdog_register_governor() [all …]
|
| H A D | ni903x_wdt.c | 42 struct watchdog_device wdd; member 65 static int ni903x_wdd_set_timeout(struct watchdog_device *wdd, in ni903x_wdd_set_timeout() argument 68 struct ni903x_wdt *wdt = watchdog_get_drvdata(wdd); in ni903x_wdd_set_timeout() 75 wdd->timeout = timeout; in ni903x_wdd_set_timeout() 80 static unsigned int ni903x_wdd_get_timeleft(struct watchdog_device *wdd) in ni903x_wdd_get_timeleft() argument 82 struct ni903x_wdt *wdt = watchdog_get_drvdata(wdd); in ni903x_wdd_get_timeleft() 99 static int ni903x_wdd_ping(struct watchdog_device *wdd) in ni903x_wdd_ping() argument 101 struct ni903x_wdt *wdt = watchdog_get_drvdata(wdd); in ni903x_wdd_ping() 110 static int ni903x_wdd_start(struct watchdog_device *wdd) in ni903x_wdd_start() argument 112 struct ni903x_wdt *wdt = watchdog_get_drvdata(wdd); in ni903x_wdd_start() [all …]
|
| H A D | davinci_wdt.c | 66 struct watchdog_device wdd; member 69 static int davinci_wdt_start(struct watchdog_device *wdd) in davinci_wdt_start() argument 74 struct davinci_wdt_device *davinci_wdt = watchdog_get_drvdata(wdd); in davinci_wdt_start() 88 timer_margin = (((u64)wdd->timeout * wdt_freq) & 0xffffffff); in davinci_wdt_start() 90 timer_margin = (((u64)wdd->timeout * wdt_freq) >> 32); in davinci_wdt_start() 105 static int davinci_wdt_ping(struct watchdog_device *wdd) in davinci_wdt_ping() argument 107 struct davinci_wdt_device *davinci_wdt = watchdog_get_drvdata(wdd); in davinci_wdt_ping() 116 static unsigned int davinci_wdt_get_timeleft(struct watchdog_device *wdd) in davinci_wdt_get_timeleft() argument 121 struct davinci_wdt_device *davinci_wdt = watchdog_get_drvdata(wdd); in davinci_wdt_get_timeleft() 138 return wdd->timeout - timer_counter; in davinci_wdt_get_timeleft() [all …]
|
| H A D | mlx_wdt.c | 44 struct watchdog_device wdd; member 65 if (!(wdt->wdd.info->options & WDIOF_CARDRESET)) in mlxreg_wdt_check_card_reset() 72 wdt->wdd.bootstatus = WDIOF_CARDRESET; in mlxreg_wdt_check_card_reset() 73 dev_info(wdt->wdd.parent, in mlxreg_wdt_check_card_reset() 79 static int mlxreg_wdt_start(struct watchdog_device *wdd) in mlxreg_wdt_start() argument 81 struct mlxreg_wdt *wdt = watchdog_get_drvdata(wdd); in mlxreg_wdt_start() 88 static int mlxreg_wdt_stop(struct watchdog_device *wdd) in mlxreg_wdt_stop() argument 90 struct mlxreg_wdt *wdt = watchdog_get_drvdata(wdd); in mlxreg_wdt_stop() 97 static int mlxreg_wdt_ping(struct watchdog_device *wdd) in mlxreg_wdt_ping() argument 99 struct mlxreg_wdt *wdt = watchdog_get_drvdata(wdd); in mlxreg_wdt_ping() [all …]
|