Home
last modified time | relevance | path

Searched refs:wdd (Results 1 – 32 of 32) sorted by relevance

/linux-4.4.14/drivers/watchdog/
Dwatchdog_dev.c62 static int watchdog_ping(struct watchdog_device *wdd) in watchdog_ping() argument
66 mutex_lock(&wdd->lock); in watchdog_ping()
68 if (test_bit(WDOG_UNREGISTERED, &wdd->status)) { in watchdog_ping()
73 if (!watchdog_active(wdd)) in watchdog_ping()
76 if (wdd->ops->ping) in watchdog_ping()
77 err = wdd->ops->ping(wdd); /* ping the watchdog */ in watchdog_ping()
79 err = wdd->ops->start(wdd); /* restart watchdog */ in watchdog_ping()
82 mutex_unlock(&wdd->lock); in watchdog_ping()
95 static int watchdog_start(struct watchdog_device *wdd) in watchdog_start() argument
99 mutex_lock(&wdd->lock); in watchdog_start()
[all …]
Dwatchdog_core.c63 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->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()
111 int watchdog_init_timeout(struct watchdog_device *wdd, in watchdog_init_timeout() argument
117 watchdog_check_min_max_timeout(wdd); in watchdog_init_timeout()
[all …]
Dtegra_wdt.c68 struct watchdog_device wdd; member
86 static int tegra_wdt_start(struct watchdog_device *wdd) in tegra_wdt_start() argument
88 struct tegra_wdt *wdt = watchdog_get_drvdata(wdd); in tegra_wdt_start()
109 (wdd->timeout << WDT_CFG_PERIOD_SHIFT) | in tegra_wdt_start()
118 static int tegra_wdt_stop(struct watchdog_device *wdd) in tegra_wdt_stop() argument
120 struct tegra_wdt *wdt = watchdog_get_drvdata(wdd); in tegra_wdt_stop()
129 static int tegra_wdt_ping(struct watchdog_device *wdd) in tegra_wdt_ping() argument
131 struct tegra_wdt *wdt = watchdog_get_drvdata(wdd); in tegra_wdt_ping()
138 static int tegra_wdt_set_timeout(struct watchdog_device *wdd, in tegra_wdt_set_timeout() argument
141 wdd->timeout = timeout; in tegra_wdt_set_timeout()
[all …]
Dbcm47xx_wdt.c47 static inline struct bcm47xx_wdt *bcm47xx_wdt_get(struct watchdog_device *wdd) in bcm47xx_wdt_get() argument
49 return container_of(wdd, struct bcm47xx_wdt, wdd); in bcm47xx_wdt_get()
52 static int bcm47xx_wdt_hard_keepalive(struct watchdog_device *wdd) in bcm47xx_wdt_hard_keepalive() argument
54 struct bcm47xx_wdt *wdt = bcm47xx_wdt_get(wdd); in bcm47xx_wdt_hard_keepalive()
56 wdt->timer_set_ms(wdt, wdd->timeout * 1000); in bcm47xx_wdt_hard_keepalive()
61 static int bcm47xx_wdt_hard_start(struct watchdog_device *wdd) in bcm47xx_wdt_hard_start() argument
66 static int bcm47xx_wdt_hard_stop(struct watchdog_device *wdd) in bcm47xx_wdt_hard_stop() argument
68 struct bcm47xx_wdt *wdt = bcm47xx_wdt_get(wdd); in bcm47xx_wdt_hard_stop()
75 static int bcm47xx_wdt_hard_set_timeout(struct watchdog_device *wdd, in bcm47xx_wdt_hard_set_timeout() argument
78 struct bcm47xx_wdt *wdt = bcm47xx_wdt_get(wdd); in bcm47xx_wdt_hard_set_timeout()
[all …]
Ddavinci_wdt.c68 struct watchdog_device wdd; member
71 static int davinci_wdt_start(struct watchdog_device *wdd) in davinci_wdt_start() argument
76 struct davinci_wdt_device *davinci_wdt = watchdog_get_drvdata(wdd); in davinci_wdt_start()
90 timer_margin = (((u64)wdd->timeout * wdt_freq) & 0xffffffff); in davinci_wdt_start()
92 timer_margin = (((u64)wdd->timeout * wdt_freq) >> 32); in davinci_wdt_start()
107 static int davinci_wdt_ping(struct watchdog_device *wdd) in davinci_wdt_ping() argument
109 struct davinci_wdt_device *davinci_wdt = watchdog_get_drvdata(wdd); in davinci_wdt_ping()
118 static unsigned int davinci_wdt_get_timeleft(struct watchdog_device *wdd) in davinci_wdt_get_timeleft() argument
123 struct davinci_wdt_device *davinci_wdt = watchdog_get_drvdata(wdd); in davinci_wdt_get_timeleft()
140 return wdd->timeout - timer_counter; in davinci_wdt_get_timeleft()
[all …]
Dqcom-wdt.c28 struct watchdog_device wdd; member
36 struct qcom_wdt *to_qcom_wdt(struct watchdog_device *wdd) in to_qcom_wdt() argument
38 return container_of(wdd, struct qcom_wdt, wdd); in to_qcom_wdt()
41 static int qcom_wdt_start(struct watchdog_device *wdd) in qcom_wdt_start() argument
43 struct qcom_wdt *wdt = to_qcom_wdt(wdd); in qcom_wdt_start()
47 writel(wdd->timeout * wdt->rate, wdt->base + WDT_BITE_TIME); in qcom_wdt_start()
52 static int qcom_wdt_stop(struct watchdog_device *wdd) in qcom_wdt_stop() argument
54 struct qcom_wdt *wdt = to_qcom_wdt(wdd); in qcom_wdt_stop()
60 static int qcom_wdt_ping(struct watchdog_device *wdd) in qcom_wdt_ping() argument
62 struct qcom_wdt *wdt = to_qcom_wdt(wdd); in qcom_wdt_ping()
[all …]
Dkempld_wdt.c83 struct watchdog_device wdd; member
205 static int kempld_wdt_set_timeout(struct watchdog_device *wdd, in kempld_wdt_set_timeout() argument
208 struct kempld_wdt_data *wdt_data = watchdog_get_drvdata(wdd); in kempld_wdt_set_timeout()
228 wdd->timeout = timeout; in kempld_wdt_set_timeout()
232 static int kempld_wdt_set_pretimeout(struct watchdog_device *wdd, in kempld_wdt_set_pretimeout() argument
235 struct kempld_wdt_data *wdt_data = watchdog_get_drvdata(wdd); in kempld_wdt_set_pretimeout()
245 if (pretimeout > wdd->timeout) in kempld_wdt_set_pretimeout()
256 wdd->timeout - pretimeout); in kempld_wdt_set_pretimeout()
284 wdt_data->wdd.timeout = pretimeout + timeout; in kempld_wdt_update_timeouts()
287 static int kempld_wdt_start(struct watchdog_device *wdd) in kempld_wdt_start() argument
[all …]
Dgpio_wdt.c41 struct watchdog_device wdd; member
55 struct watchdog_device *wdd = (struct watchdog_device *)data; in gpio_wdt_hwping() local
56 struct gpio_wdt_priv *priv = watchdog_get_drvdata(wdd); in gpio_wdt_hwping()
59 msecs_to_jiffies(wdd->timeout * 1000))) { in gpio_wdt_hwping()
60 dev_crit(wdd->dev, "Timer expired. System will reboot soon!\n"); in gpio_wdt_hwping()
87 gpio_wdt_hwping((unsigned long)&priv->wdd); in gpio_wdt_start_impl()
90 static int gpio_wdt_start(struct watchdog_device *wdd) in gpio_wdt_start() argument
92 struct gpio_wdt_priv *priv = watchdog_get_drvdata(wdd); in gpio_wdt_start()
100 static int gpio_wdt_stop(struct watchdog_device *wdd) in gpio_wdt_stop() argument
102 struct gpio_wdt_priv *priv = watchdog_get_drvdata(wdd); in gpio_wdt_stop()
[all …]
Dsama5d4_wdt.c29 struct watchdog_device wdd; member
53 static int sama5d4_wdt_start(struct watchdog_device *wdd) in sama5d4_wdt_start() argument
55 struct sama5d4_wdt *wdt = watchdog_get_drvdata(wdd); in sama5d4_wdt_start()
65 static int sama5d4_wdt_stop(struct watchdog_device *wdd) in sama5d4_wdt_stop() argument
67 struct sama5d4_wdt *wdt = watchdog_get_drvdata(wdd); in sama5d4_wdt_stop()
77 static int sama5d4_wdt_ping(struct watchdog_device *wdd) in sama5d4_wdt_ping() argument
79 struct sama5d4_wdt *wdt = watchdog_get_drvdata(wdd); in sama5d4_wdt_ping()
86 static int sama5d4_wdt_set_timeout(struct watchdog_device *wdd, in sama5d4_wdt_set_timeout() argument
89 struct sama5d4_wdt *wdt = watchdog_get_drvdata(wdd); in sama5d4_wdt_set_timeout()
100 wdd->timeout = timeout; in sama5d4_wdt_set_timeout()
[all …]
Dsp805_wdt.c64 struct watchdog_device wdd; member
78 static int wdt_setload(struct watchdog_device *wdd, unsigned int timeout) in wdt_setload() argument
80 struct sp805_wdt *wdt = watchdog_get_drvdata(wdd); in wdt_setload()
99 wdd->timeout = div_u64((load + 1) * 2 + (rate / 2), rate); in wdt_setload()
106 static unsigned int wdt_timeleft(struct watchdog_device *wdd) in wdt_timeleft() argument
108 struct sp805_wdt *wdt = watchdog_get_drvdata(wdd); in wdt_timeleft()
124 static int wdt_config(struct watchdog_device *wdd, bool ping) in wdt_config() argument
126 struct sp805_wdt *wdt = watchdog_get_drvdata(wdd); in wdt_config()
158 static int wdt_ping(struct watchdog_device *wdd) in wdt_ping() argument
160 return wdt_config(wdd, true); in wdt_ping()
[all …]
Dstmp3xxx_rtc_wdt.c28 static int wdt_start(struct watchdog_device *wdd) in wdt_start() argument
30 struct device *dev = watchdog_get_drvdata(wdd); in wdt_start()
33 pdata->wdt_set_timeout(dev->parent, wdd->timeout * WDOG_TICK_RATE); in wdt_start()
37 static int wdt_stop(struct watchdog_device *wdd) in wdt_stop() argument
39 struct device *dev = watchdog_get_drvdata(wdd); in wdt_stop()
46 static int wdt_set_timeout(struct watchdog_device *wdd, unsigned new_timeout) in wdt_set_timeout() argument
48 wdd->timeout = new_timeout; in wdt_set_timeout()
49 return wdt_start(wdd); in wdt_set_timeout()
100 struct watchdog_device *wdd = &stmp3xxx_wdd; in stmp3xxx_wdt_suspend() local
102 if (watchdog_active(wdd)) in stmp3xxx_wdt_suspend()
[all …]
Dsirfsoc_wdt.c42 static unsigned int sirfsoc_wdt_gettimeleft(struct watchdog_device *wdd) in sirfsoc_wdt_gettimeleft() argument
48 wdt_base = watchdog_get_drvdata(wdd); in sirfsoc_wdt_gettimeleft()
58 static int sirfsoc_wdt_updatetimeout(struct watchdog_device *wdd) in sirfsoc_wdt_updatetimeout() argument
63 timeout_ticks = wdd->timeout * CLOCK_FREQ; in sirfsoc_wdt_updatetimeout()
64 wdt_base = watchdog_get_drvdata(wdd); in sirfsoc_wdt_updatetimeout()
80 static int sirfsoc_wdt_enable(struct watchdog_device *wdd) in sirfsoc_wdt_enable() argument
82 void __iomem *wdt_base = watchdog_get_drvdata(wdd); in sirfsoc_wdt_enable()
83 sirfsoc_wdt_updatetimeout(wdd); in sirfsoc_wdt_enable()
97 static int sirfsoc_wdt_disable(struct watchdog_device *wdd) in sirfsoc_wdt_disable() argument
99 void __iomem *wdt_base = watchdog_get_drvdata(wdd); in sirfsoc_wdt_disable()
[all …]
Dat91sam9_wdt.c83 #define to_wdt(wdd) container_of(wdd, struct at91wdt, wdd) argument
85 struct watchdog_device wdd; member
127 !watchdog_active(&wdt->wdd)) { in at91_ping()
135 static int at91_wdt_start(struct watchdog_device *wdd) in at91_wdt_start() argument
137 struct at91wdt *wdt = to_wdt(wdd); in at91_wdt_start()
139 wdt->next_heartbeat = jiffies + wdd->timeout * HZ; in at91_wdt_start()
143 static int at91_wdt_stop(struct watchdog_device *wdd) in at91_wdt_stop() argument
149 static int at91_wdt_set_timeout(struct watchdog_device *wdd, unsigned int new_timeout) in at91_wdt_set_timeout() argument
151 wdd->timeout = new_timeout; in at91_wdt_set_timeout()
152 return at91_wdt_start(wdd); in at91_wdt_set_timeout()
[all …]
Dbcm7038_wdt.c38 struct watchdog_device wdd; member
149 wdt->wdd.info = &bcm7038_wdt_info; in bcm7038_wdt_probe()
150 wdt->wdd.ops = &bcm7038_wdt_ops; in bcm7038_wdt_probe()
151 wdt->wdd.min_timeout = WDT_MIN_TIMEOUT; in bcm7038_wdt_probe()
152 wdt->wdd.timeout = WDT_DEFAULT_TIMEOUT; in bcm7038_wdt_probe()
153 wdt->wdd.max_timeout = 0xffffffff / wdt->rate; in bcm7038_wdt_probe()
154 wdt->wdd.parent = dev; in bcm7038_wdt_probe()
155 watchdog_set_drvdata(&wdt->wdd, wdt); in bcm7038_wdt_probe()
157 err = watchdog_register_device(&wdt->wdd); in bcm7038_wdt_probe()
174 bcm7038_wdt_stop(&wdt->wdd); in bcm7038_wdt_remove()
[all …]
Dmax63xx_wdt.c47 struct watchdog_device wdd; member
119 static int max63xx_wdt_ping(struct watchdog_device *wdd) in max63xx_wdt_ping() argument
121 struct max63xx_wdt *wdt = watchdog_get_drvdata(wdd); in max63xx_wdt_ping()
127 static int max63xx_wdt_start(struct watchdog_device *wdd) in max63xx_wdt_start() argument
129 struct max63xx_wdt *wdt = watchdog_get_drvdata(wdd); in max63xx_wdt_start()
139 static int max63xx_wdt_stop(struct watchdog_device *wdd) in max63xx_wdt_stop() argument
141 struct max63xx_wdt *wdt = watchdog_get_drvdata(wdd); in max63xx_wdt_stop()
228 platform_set_drvdata(pdev, &wdt->wdd); in max63xx_wdt_probe()
229 watchdog_set_drvdata(&wdt->wdd, wdt); in max63xx_wdt_probe()
231 wdt->wdd.parent = &pdev->dev; in max63xx_wdt_probe()
[all …]
Dmpc8xxx_wdt.c55 struct watchdog_device wdd; member
90 mod_timer(&ddata->timer, jiffies + HZ * ddata->wdd.timeout / 2); in mpc8xxx_wdt_timer_ping()
96 container_of(w, struct mpc8xxx_wdt_ddata, wdd); in mpc8xxx_wdt_start()
116 container_of(w, struct mpc8xxx_wdt_ddata, wdd); in mpc8xxx_wdt_ping()
125 container_of(w, struct mpc8xxx_wdt_ddata, wdd); in mpc8xxx_wdt_stop()
180 ddata->wdd.info = &mpc8xxx_wdt_info, in mpc8xxx_wdt_probe()
181 ddata->wdd.ops = &mpc8xxx_wdt_ops, in mpc8xxx_wdt_probe()
186 ddata->wdd.timeout = timeout_sec; in mpc8xxx_wdt_probe()
188 watchdog_set_nowayout(&ddata->wdd, nowayout); in mpc8xxx_wdt_probe()
190 ret = watchdog_register_device(&ddata->wdd); in mpc8xxx_wdt_probe()
[all …]
Dda9063_wdt.c63 static int da9063_wdt_start(struct watchdog_device *wdd) in da9063_wdt_start() argument
65 struct da9063_watchdog *wdt = watchdog_get_drvdata(wdd); in da9063_wdt_start()
78 static int da9063_wdt_stop(struct watchdog_device *wdd) in da9063_wdt_stop() argument
80 struct da9063_watchdog *wdt = watchdog_get_drvdata(wdd); in da9063_wdt_stop()
92 static int da9063_wdt_ping(struct watchdog_device *wdd) in da9063_wdt_ping() argument
94 struct da9063_watchdog *wdt = watchdog_get_drvdata(wdd); in da9063_wdt_ping()
106 static int da9063_wdt_set_timeout(struct watchdog_device *wdd, in da9063_wdt_set_timeout() argument
109 struct da9063_watchdog *wdt = watchdog_get_drvdata(wdd); in da9063_wdt_set_timeout()
119 wdd->timeout = wdt_timeout[selector]; in da9063_wdt_set_timeout()
Dda9062_wdt.c109 static int da9062_wdt_start(struct watchdog_device *wdd) in da9062_wdt_start() argument
111 struct da9062_watchdog *wdt = watchdog_get_drvdata(wdd); in da9062_wdt_start()
124 static int da9062_wdt_stop(struct watchdog_device *wdd) in da9062_wdt_stop() argument
126 struct da9062_watchdog *wdt = watchdog_get_drvdata(wdd); in da9062_wdt_stop()
147 static int da9062_wdt_ping(struct watchdog_device *wdd) in da9062_wdt_ping() argument
149 struct da9062_watchdog *wdt = watchdog_get_drvdata(wdd); in da9062_wdt_ping()
160 static int da9062_wdt_set_timeout(struct watchdog_device *wdd, in da9062_wdt_set_timeout() argument
163 struct da9062_watchdog *wdt = watchdog_get_drvdata(wdd); in da9062_wdt_set_timeout()
173 wdd->timeout = wdt_timeout[selector]; in da9062_wdt_set_timeout()
Dvia_wdt.c101 static int wdt_ping(struct watchdog_device *wdd) in wdt_ping() argument
104 next_heartbeat = jiffies + wdd->timeout * HZ; in wdt_ping()
108 static int wdt_start(struct watchdog_device *wdd) in wdt_start() argument
112 writel(wdd->timeout, wdt_mem + VIA_WDT_COUNT); in wdt_start()
114 wdt_ping(wdd); in wdt_start()
119 static int wdt_stop(struct watchdog_device *wdd) in wdt_stop() argument
127 static int wdt_set_timeout(struct watchdog_device *wdd, in wdt_set_timeout() argument
131 wdd->timeout = new_timeout; in wdt_set_timeout()
Dux500_wdt.c41 static int ux500_wdt_start(struct watchdog_device *wdd) in ux500_wdt_start() argument
46 static int ux500_wdt_stop(struct watchdog_device *wdd) in ux500_wdt_stop() argument
51 static int ux500_wdt_keepalive(struct watchdog_device *wdd) in ux500_wdt_keepalive() argument
56 static int ux500_wdt_set_timeout(struct watchdog_device *wdd, in ux500_wdt_set_timeout() argument
59 ux500_wdt_stop(wdd); in ux500_wdt_set_timeout()
61 ux500_wdt_start(wdd); in ux500_wdt_set_timeout()
Dst_lpc_wdt.c126 static int st_wdog_start(struct watchdog_device *wdd) in st_wdog_start() argument
128 struct st_wdog *st_wdog = watchdog_get_drvdata(wdd); in st_wdog_start()
135 static int st_wdog_stop(struct watchdog_device *wdd) in st_wdog_stop() argument
137 struct st_wdog *st_wdog = watchdog_get_drvdata(wdd); in st_wdog_stop()
144 static int st_wdog_set_timeout(struct watchdog_device *wdd, in st_wdog_set_timeout() argument
147 struct st_wdog *st_wdog = watchdog_get_drvdata(wdd); in st_wdog_set_timeout()
149 wdd->timeout = timeout; in st_wdog_set_timeout()
155 static int st_wdog_keepalive(struct watchdog_device *wdd) in st_wdog_keepalive() argument
157 struct st_wdog *st_wdog = watchdog_get_drvdata(wdd); in st_wdog_keepalive()
159 st_wdog_load_timer(st_wdog, wdd->timeout); in st_wdog_keepalive()
Dcadence_wdt.c130 static int cdns_wdt_stop(struct watchdog_device *wdd) in cdns_wdt_stop() argument
132 struct cdns_wdt *wdt = watchdog_get_drvdata(wdd); in cdns_wdt_stop()
151 static int cdns_wdt_reload(struct watchdog_device *wdd) in cdns_wdt_reload() argument
153 struct cdns_wdt *wdt = watchdog_get_drvdata(wdd); in cdns_wdt_reload()
181 static int cdns_wdt_start(struct watchdog_device *wdd) in cdns_wdt_start() argument
183 struct cdns_wdt *wdt = watchdog_get_drvdata(wdd); in cdns_wdt_start()
192 count = (wdd->timeout * (clock_f / wdt->prescaler)) / in cdns_wdt_start()
236 static int cdns_wdt_settimeout(struct watchdog_device *wdd, in cdns_wdt_settimeout() argument
239 wdd->timeout = new_time; in cdns_wdt_settimeout()
241 return cdns_wdt_start(wdd); in cdns_wdt_settimeout()
Die6xx_wdt.c101 static int ie6xx_wdt_ping(struct watchdog_device *wdd) in ie6xx_wdt_ping() argument
110 static int ie6xx_wdt_set_timeout(struct watchdog_device *wdd, unsigned int t) in ie6xx_wdt_set_timeout() argument
143 wdd->timeout = t; in ie6xx_wdt_set_timeout()
147 static int ie6xx_wdt_start(struct watchdog_device *wdd) in ie6xx_wdt_start() argument
149 ie6xx_wdt_set_timeout(wdd, wdd->timeout); in ie6xx_wdt_start()
159 static int ie6xx_wdt_stop(struct watchdog_device *wdd) in ie6xx_wdt_stop() argument
Dof_xilinx_wdt.c50 static int xilinx_wdt_start(struct watchdog_device *wdd) in xilinx_wdt_start() argument
53 struct xwdt_device *xdev = watchdog_get_drvdata(wdd); in xilinx_wdt_start()
71 static int xilinx_wdt_stop(struct watchdog_device *wdd) in xilinx_wdt_stop() argument
74 struct xwdt_device *xdev = watchdog_get_drvdata(wdd); in xilinx_wdt_stop()
91 static int xilinx_wdt_keepalive(struct watchdog_device *wdd) in xilinx_wdt_keepalive() argument
94 struct xwdt_device *xdev = watchdog_get_drvdata(wdd); in xilinx_wdt_keepalive()
Dpnx4008_wdt.c85 static int pnx4008_wdt_start(struct watchdog_device *wdd) in pnx4008_wdt_start() argument
102 writel(wdd->timeout * WDOG_COUNTER_RATE, WDTIM_MATCH0(wdt_base)); in pnx4008_wdt_start()
110 static int pnx4008_wdt_stop(struct watchdog_device *wdd) in pnx4008_wdt_stop() argument
120 static int pnx4008_wdt_set_timeout(struct watchdog_device *wdd, in pnx4008_wdt_set_timeout() argument
123 wdd->timeout = new_timeout; in pnx4008_wdt_set_timeout()
Dep93xx_wdt.c69 static int ep93xx_wdt_start(struct watchdog_device *wdd) in ep93xx_wdt_start() argument
79 static int ep93xx_wdt_stop(struct watchdog_device *wdd) in ep93xx_wdt_stop() argument
87 static int ep93xx_wdt_keepalive(struct watchdog_device *wdd) in ep93xx_wdt_keepalive() argument
Ds3c2410_wdt.c237 static int s3c2410wdt_keepalive(struct watchdog_device *wdd) in s3c2410wdt_keepalive() argument
239 struct s3c2410_wdt *wdt = watchdog_get_drvdata(wdd); in s3c2410wdt_keepalive()
257 static int s3c2410wdt_stop(struct watchdog_device *wdd) in s3c2410wdt_stop() argument
259 struct s3c2410_wdt *wdt = watchdog_get_drvdata(wdd); in s3c2410wdt_stop()
268 static int s3c2410wdt_start(struct watchdog_device *wdd) in s3c2410wdt_start() argument
271 struct s3c2410_wdt *wdt = watchdog_get_drvdata(wdd); in s3c2410wdt_start()
304 static int s3c2410wdt_set_heartbeat(struct watchdog_device *wdd, unsigned timeout) in s3c2410wdt_set_heartbeat() argument
306 struct s3c2410_wdt *wdt = watchdog_get_drvdata(wdd); in s3c2410wdt_set_heartbeat()
349 wdd->timeout = (count * divisor) / freq; in s3c2410wdt_set_heartbeat()
Dcoh901327_wdt.c166 static int coh901327_ping(struct watchdog_device *wdd) in coh901327_ping() argument
/linux-4.4.14/include/linux/
Dwatchdog.h107 static inline bool watchdog_active(struct watchdog_device *wdd) in watchdog_active() argument
109 return test_bit(WDOG_ACTIVE, &wdd->status); in watchdog_active()
113 static inline void watchdog_set_nowayout(struct watchdog_device *wdd, bool nowayout) in watchdog_set_nowayout() argument
116 set_bit(WDOG_NO_WAY_OUT, &wdd->status); in watchdog_set_nowayout()
120 static inline bool watchdog_timeout_invalid(struct watchdog_device *wdd, unsigned int t) in watchdog_timeout_invalid() argument
129 return t < wdd->min_timeout || in watchdog_timeout_invalid()
130 (wdd->max_timeout && t > wdd->max_timeout); in watchdog_timeout_invalid()
134 static inline void watchdog_set_drvdata(struct watchdog_device *wdd, void *data) in watchdog_set_drvdata() argument
136 wdd->driver_data = data; in watchdog_set_drvdata()
139 static inline void *watchdog_get_drvdata(struct watchdog_device *wdd) in watchdog_get_drvdata() argument
[all …]
Dbcm47xx_wdt.h17 struct watchdog_device wdd; member
/linux-4.4.14/Documentation/watchdog/
Dwatchdog-kernel-api.txt202 static inline void watchdog_set_nowayout(struct watchdog_device *wdd, int nowayout)
212 static inline void watchdog_set_drvdata(struct watchdog_device *wdd, void *data)
213 static inline void *watchdog_get_drvdata(struct watchdog_device *wdd)
225 extern int watchdog_init_timeout(struct watchdog_device *wdd,
Dconvert_drivers_to_kernel_api.txt137 +static int s3c2410wdt_keepalive(struct watchdog_device *wdd)