Home
last modified time | relevance | path

Searched refs:wdog (Results 1 - 25 of 34) sorted by relevance

12

/kernel/linux/linux-5.10/drivers/watchdog/
H A Dimx2_wdt.c66 struct watchdog_device wdog; member
91 static int imx2_wdt_restart(struct watchdog_device *wdog, unsigned long action, in imx2_wdt_restart() argument
94 struct imx2_wdt_device *wdev = watchdog_get_drvdata(wdog); in imx2_wdt_restart()
121 static inline void imx2_wdt_setup(struct watchdog_device *wdog) in imx2_wdt_setup() argument
123 struct imx2_wdt_device *wdev = watchdog_get_drvdata(wdog); in imx2_wdt_setup()
141 val |= WDOG_SEC_TO_COUNT(wdog->timeout); in imx2_wdt_setup()
159 static int imx2_wdt_ping(struct watchdog_device *wdog) in imx2_wdt_ping() argument
161 struct imx2_wdt_device *wdev = watchdog_get_drvdata(wdog); in imx2_wdt_ping()
168 static void __imx2_wdt_set_timeout(struct watchdog_device *wdog, in __imx2_wdt_set_timeout() argument
171 struct imx2_wdt_device *wdev = watchdog_get_drvdata(wdog); in __imx2_wdt_set_timeout()
177 imx2_wdt_set_timeout(struct watchdog_device *wdog, unsigned int new_timeout) imx2_wdt_set_timeout() argument
188 imx2_wdt_set_pretimeout(struct watchdog_device *wdog, unsigned int new_pretimeout) imx2_wdt_set_pretimeout() argument
206 struct watchdog_device *wdog = wdog_arg; imx2_wdt_isr() local
217 imx2_wdt_start(struct watchdog_device *wdog) imx2_wdt_start() argument
256 struct watchdog_device *wdog; imx2_wdt_probe() local
332 struct watchdog_device *wdog = platform_get_drvdata(pdev); imx2_wdt_shutdown() local
349 struct watchdog_device *wdog = dev_get_drvdata(dev); imx2_wdt_suspend() local
370 struct watchdog_device *wdog = dev_get_drvdata(dev); imx2_wdt_resume() local
[all...]
H A Domap_wdt.c55 #define to_omap_wdt_dev(_wdog) container_of(_wdog, struct omap_wdt_dev, wdog)
63 struct watchdog_device wdog; member
131 static int omap_wdt_start(struct watchdog_device *wdog) in omap_wdt_start() argument
133 struct omap_wdt_dev *wdev = to_omap_wdt_dev(wdog); in omap_wdt_start()
157 omap_wdt_set_timer(wdev, wdog->timeout); in omap_wdt_start()
166 static int omap_wdt_stop(struct watchdog_device *wdog) in omap_wdt_stop() argument
168 struct omap_wdt_dev *wdev = to_omap_wdt_dev(wdog); in omap_wdt_stop()
178 static int omap_wdt_ping(struct watchdog_device *wdog) in omap_wdt_ping() argument
180 struct omap_wdt_dev *wdev = to_omap_wdt_dev(wdog); in omap_wdt_ping()
189 static int omap_wdt_set_timeout(struct watchdog_device *wdog, in omap_wdt_set_timeout() argument
205 omap_wdt_get_timeleft(struct watchdog_device *wdog) omap_wdt_get_timeleft() argument
[all...]
H A Dimx_sc_wdt.c48 static int imx_sc_wdt_ping(struct watchdog_device *wdog) in imx_sc_wdt_ping() argument
58 static int imx_sc_wdt_start(struct watchdog_device *wdog) in imx_sc_wdt_start() argument
73 static int imx_sc_wdt_stop(struct watchdog_device *wdog) in imx_sc_wdt_stop() argument
83 static int imx_sc_wdt_set_timeout(struct watchdog_device *wdog, in imx_sc_wdt_set_timeout() argument
88 wdog->timeout = timeout; in imx_sc_wdt_set_timeout()
95 static int imx_sc_wdt_set_pretimeout(struct watchdog_device *wdog, in imx_sc_wdt_set_pretimeout() argument
106 (wdog->timeout - pretimeout) * 1000, 0, 0, 0, in imx_sc_wdt_set_pretimeout()
111 wdog->pretimeout = pretimeout; in imx_sc_wdt_set_pretimeout()
159 struct watchdog_device *wdog; in imx_sc_wdt_probe() local
169 wdog in imx_sc_wdt_probe()
[all...]
H A Dimx7ulp_wdt.c67 static int imx7ulp_wdt_enable(struct watchdog_device *wdog, bool enable) in imx7ulp_wdt_enable() argument
69 struct imx7ulp_wdt_device *wdt = watchdog_get_drvdata(wdog); in imx7ulp_wdt_enable()
98 static int imx7ulp_wdt_ping(struct watchdog_device *wdog) in imx7ulp_wdt_ping() argument
100 struct imx7ulp_wdt_device *wdt = watchdog_get_drvdata(wdog); in imx7ulp_wdt_ping()
107 static int imx7ulp_wdt_start(struct watchdog_device *wdog) in imx7ulp_wdt_start() argument
109 return imx7ulp_wdt_enable(wdog, true); in imx7ulp_wdt_start()
112 static int imx7ulp_wdt_stop(struct watchdog_device *wdog) in imx7ulp_wdt_stop() argument
114 return imx7ulp_wdt_enable(wdog, false); in imx7ulp_wdt_stop()
117 static int imx7ulp_wdt_set_timeout(struct watchdog_device *wdog, in imx7ulp_wdt_set_timeout() argument
120 struct imx7ulp_wdt_device *wdt = watchdog_get_drvdata(wdog); in imx7ulp_wdt_set_timeout()
140 imx7ulp_wdt_restart(struct watchdog_device *wdog, unsigned long action, void *data) imx7ulp_wdt_restart() argument
212 struct watchdog_device *wdog; imx7ulp_wdt_probe() local
[all...]
H A Dretu_wdt.c54 static int retu_wdt_start(struct watchdog_device *wdog) in retu_wdt_start() argument
56 struct retu_wdt_dev *wdev = watchdog_get_drvdata(wdog); in retu_wdt_start()
60 return retu_write(wdev->rdev, RETU_REG_WATCHDOG, wdog->timeout); in retu_wdt_start()
63 static int retu_wdt_stop(struct watchdog_device *wdog) in retu_wdt_stop() argument
65 struct retu_wdt_dev *wdev = watchdog_get_drvdata(wdog); in retu_wdt_stop()
72 static int retu_wdt_ping(struct watchdog_device *wdog) in retu_wdt_ping() argument
74 struct retu_wdt_dev *wdev = watchdog_get_drvdata(wdog); in retu_wdt_ping()
76 return retu_write(wdev->rdev, RETU_REG_WATCHDOG, wdog->timeout); in retu_wdt_ping()
79 static int retu_wdt_set_timeout(struct watchdog_device *wdog, in retu_wdt_set_timeout() argument
82 struct retu_wdt_dev *wdev = watchdog_get_drvdata(wdog); in retu_wdt_set_timeout()
148 struct watchdog_device *wdog = platform_get_drvdata(pdev); retu_wdt_remove() local
[all...]
H A Dbcm7038_wdt.c37 static void bcm7038_wdt_set_timeout_reg(struct watchdog_device *wdog) in bcm7038_wdt_set_timeout_reg() argument
39 struct bcm7038_watchdog *wdt = watchdog_get_drvdata(wdog); in bcm7038_wdt_set_timeout_reg()
42 timeout = wdt->rate * wdog->timeout; in bcm7038_wdt_set_timeout_reg()
47 static int bcm7038_wdt_ping(struct watchdog_device *wdog) in bcm7038_wdt_ping() argument
49 struct bcm7038_watchdog *wdt = watchdog_get_drvdata(wdog); in bcm7038_wdt_ping()
57 static int bcm7038_wdt_start(struct watchdog_device *wdog) in bcm7038_wdt_start() argument
59 bcm7038_wdt_set_timeout_reg(wdog); in bcm7038_wdt_start()
60 bcm7038_wdt_ping(wdog); in bcm7038_wdt_start()
65 static int bcm7038_wdt_stop(struct watchdog_device *wdog) in bcm7038_wdt_stop() argument
67 struct bcm7038_watchdog *wdt = watchdog_get_drvdata(wdog); in bcm7038_wdt_stop()
75 bcm7038_wdt_set_timeout(struct watchdog_device *wdog, unsigned int t) bcm7038_wdt_set_timeout() argument
86 bcm7038_wdt_get_timeleft(struct watchdog_device *wdog) bcm7038_wdt_get_timeleft() argument
[all...]
H A Ddigicolor_wdt.c48 static int dc_wdt_restart(struct watchdog_device *wdog, unsigned long action, in dc_wdt_restart() argument
51 struct dc_wdt *wdt = watchdog_get_drvdata(wdog); in dc_wdt_restart()
60 static int dc_wdt_start(struct watchdog_device *wdog) in dc_wdt_start() argument
62 struct dc_wdt *wdt = watchdog_get_drvdata(wdog); in dc_wdt_start()
64 dc_wdt_set(wdt, wdog->timeout * clk_get_rate(wdt->clk)); in dc_wdt_start()
69 static int dc_wdt_stop(struct watchdog_device *wdog) in dc_wdt_stop() argument
71 struct dc_wdt *wdt = watchdog_get_drvdata(wdog); in dc_wdt_stop()
78 static int dc_wdt_set_timeout(struct watchdog_device *wdog, unsigned int t) in dc_wdt_set_timeout() argument
80 struct dc_wdt *wdt = watchdog_get_drvdata(wdog); in dc_wdt_set_timeout()
83 wdog in dc_wdt_set_timeout()
88 dc_wdt_get_timeleft(struct watchdog_device *wdog) dc_wdt_get_timeleft() argument
[all...]
H A Dbooke_wdt.c110 struct watchdog_device *wdog = data; in __booke_wdt_set() local
114 val |= WDTP(sec_to_period(wdog->timeout)); in __booke_wdt_set()
129 static int booke_wdt_ping(struct watchdog_device *wdog) in booke_wdt_ping() argument
139 struct watchdog_device *wdog = data; in __booke_wdt_enable() local
145 val |= (TCR_WIE|TCR_WRC(WRC_CHIP)|WDTP(sec_to_period(wdog->timeout))); in __booke_wdt_enable()
171 static int booke_wdt_start(struct watchdog_device *wdog) in booke_wdt_start() argument
173 on_each_cpu(__booke_wdt_enable, wdog, 0); in booke_wdt_start()
174 pr_debug("watchdog enabled (timeout = %u sec)\n", wdog->timeout); in booke_wdt_start()
179 static int booke_wdt_stop(struct watchdog_device *wdog) in booke_wdt_stop() argument
H A Dbcm2835_wdt.c66 static int bcm2835_wdt_start(struct watchdog_device *wdog) in bcm2835_wdt_start() argument
68 struct bcm2835_wdt *wdt = watchdog_get_drvdata(wdog); in bcm2835_wdt_start()
74 writel_relaxed(PM_PASSWORD | (SECS_TO_WDOG_TICKS(wdog->timeout) & in bcm2835_wdt_start()
85 static int bcm2835_wdt_stop(struct watchdog_device *wdog) in bcm2835_wdt_stop() argument
87 struct bcm2835_wdt *wdt = watchdog_get_drvdata(wdog); in bcm2835_wdt_stop()
93 static unsigned int bcm2835_wdt_get_timeleft(struct watchdog_device *wdog) in bcm2835_wdt_get_timeleft() argument
95 struct bcm2835_wdt *wdt = watchdog_get_drvdata(wdog); in bcm2835_wdt_get_timeleft()
116 static int bcm2835_restart(struct watchdog_device *wdog, in bcm2835_restart() argument
119 struct bcm2835_wdt *wdt = watchdog_get_drvdata(wdog); in bcm2835_restart()
H A Dbcm_kona_wdt.c199 static int bcm_kona_wdt_set_timeout_reg(struct watchdog_device *wdog, in bcm_kona_wdt_set_timeout_reg() argument
202 struct bcm_kona_wdt *wdt = watchdog_get_drvdata(wdog); in bcm_kona_wdt_set_timeout_reg()
205 SECS_TO_TICKS(wdog->timeout, wdt) | in bcm_kona_wdt_set_timeout_reg()
209 static int bcm_kona_wdt_set_timeout(struct watchdog_device *wdog, in bcm_kona_wdt_set_timeout() argument
212 wdog->timeout = t; in bcm_kona_wdt_set_timeout()
216 static unsigned int bcm_kona_wdt_get_timeleft(struct watchdog_device *wdog) in bcm_kona_wdt_get_timeleft() argument
218 struct bcm_kona_wdt *wdt = watchdog_get_drvdata(wdog); in bcm_kona_wdt_get_timeleft()
232 static int bcm_kona_wdt_start(struct watchdog_device *wdog) in bcm_kona_wdt_start() argument
234 return bcm_kona_wdt_set_timeout_reg(wdog, in bcm_kona_wdt_start()
238 static int bcm_kona_wdt_stop(struct watchdog_device *wdog) in bcm_kona_wdt_stop() argument
[all...]
/kernel/linux/linux-6.6/drivers/watchdog/
H A Dimx2_wdt.c71 struct watchdog_device wdog; member
100 static int imx2_wdt_restart(struct watchdog_device *wdog, unsigned long action, in imx2_wdt_restart() argument
103 struct imx2_wdt_device *wdev = watchdog_get_drvdata(wdog); in imx2_wdt_restart()
130 static inline void imx2_wdt_setup(struct watchdog_device *wdog) in imx2_wdt_setup() argument
132 struct imx2_wdt_device *wdev = watchdog_get_drvdata(wdog); in imx2_wdt_setup()
153 val |= WDOG_SEC_TO_COUNT(wdog->timeout); in imx2_wdt_setup()
171 static int imx2_wdt_ping(struct watchdog_device *wdog) in imx2_wdt_ping() argument
173 struct imx2_wdt_device *wdev = watchdog_get_drvdata(wdog); in imx2_wdt_ping()
183 static void __imx2_wdt_set_timeout(struct watchdog_device *wdog, in __imx2_wdt_set_timeout() argument
186 struct imx2_wdt_device *wdev = watchdog_get_drvdata(wdog); in __imx2_wdt_set_timeout()
192 imx2_wdt_set_timeout(struct watchdog_device *wdog, unsigned int new_timeout) imx2_wdt_set_timeout() argument
203 imx2_wdt_set_pretimeout(struct watchdog_device *wdog, unsigned int new_pretimeout) imx2_wdt_set_pretimeout() argument
221 struct watchdog_device *wdog = wdog_arg; imx2_wdt_isr() local
232 imx2_wdt_start(struct watchdog_device *wdog) imx2_wdt_start() argument
271 struct watchdog_device *wdog; imx2_wdt_probe() local
367 struct watchdog_device *wdog = platform_get_drvdata(pdev); imx2_wdt_shutdown() local
384 struct watchdog_device *wdog = dev_get_drvdata(dev); imx2_wdt_suspend() local
409 struct watchdog_device *wdog = dev_get_drvdata(dev); imx2_wdt_resume() local
[all...]
H A Domap_wdt.c55 #define to_omap_wdt_dev(_wdog) container_of(_wdog, struct omap_wdt_dev, wdog)
63 struct watchdog_device wdog; member
131 static int omap_wdt_start(struct watchdog_device *wdog) in omap_wdt_start() argument
133 struct omap_wdt_dev *wdev = to_omap_wdt_dev(wdog); in omap_wdt_start()
157 omap_wdt_set_timer(wdev, wdog->timeout); in omap_wdt_start()
166 static int omap_wdt_stop(struct watchdog_device *wdog) in omap_wdt_stop() argument
168 struct omap_wdt_dev *wdev = to_omap_wdt_dev(wdog); in omap_wdt_stop()
178 static int omap_wdt_ping(struct watchdog_device *wdog) in omap_wdt_ping() argument
180 struct omap_wdt_dev *wdev = to_omap_wdt_dev(wdog); in omap_wdt_ping()
189 static int omap_wdt_set_timeout(struct watchdog_device *wdog, in omap_wdt_set_timeout() argument
205 omap_wdt_get_timeleft(struct watchdog_device *wdog) omap_wdt_get_timeleft() argument
[all...]
H A Dimx_sc_wdt.c48 static int imx_sc_wdt_ping(struct watchdog_device *wdog) in imx_sc_wdt_ping() argument
58 static int imx_sc_wdt_start(struct watchdog_device *wdog) in imx_sc_wdt_start() argument
73 static int imx_sc_wdt_stop(struct watchdog_device *wdog) in imx_sc_wdt_stop() argument
83 static int imx_sc_wdt_set_timeout(struct watchdog_device *wdog, in imx_sc_wdt_set_timeout() argument
88 wdog->timeout = timeout; in imx_sc_wdt_set_timeout()
95 static int imx_sc_wdt_set_pretimeout(struct watchdog_device *wdog, in imx_sc_wdt_set_pretimeout() argument
106 (wdog->timeout - pretimeout) * 1000, 0, 0, 0, in imx_sc_wdt_set_pretimeout()
111 wdog->pretimeout = pretimeout; in imx_sc_wdt_set_pretimeout()
159 struct watchdog_device *wdog; in imx_sc_wdt_probe() local
169 wdog in imx_sc_wdt_probe()
[all...]
H A Dkeembay_wdt.c70 static void keembay_wdt_set_timeout_reg(struct watchdog_device *wdog) in keembay_wdt_set_timeout_reg() argument
72 struct keembay_wdt *wdt = watchdog_get_drvdata(wdog); in keembay_wdt_set_timeout_reg()
74 keembay_wdt_writel(wdt, TIM_WATCHDOG, wdog->timeout * wdt->rate); in keembay_wdt_set_timeout_reg()
77 static void keembay_wdt_set_pretimeout_reg(struct watchdog_device *wdog) in keembay_wdt_set_pretimeout_reg() argument
79 struct keembay_wdt *wdt = watchdog_get_drvdata(wdog); in keembay_wdt_set_pretimeout_reg()
82 if (wdog->pretimeout) in keembay_wdt_set_pretimeout_reg()
83 th_val = wdog->timeout - wdog->pretimeout; in keembay_wdt_set_pretimeout_reg()
88 static int keembay_wdt_start(struct watchdog_device *wdog) in keembay_wdt_start() argument
90 struct keembay_wdt *wdt = watchdog_get_drvdata(wdog); in keembay_wdt_start()
97 keembay_wdt_stop(struct watchdog_device *wdog) keembay_wdt_stop() argument
106 keembay_wdt_ping(struct watchdog_device *wdog) keembay_wdt_ping() argument
113 keembay_wdt_set_timeout(struct watchdog_device *wdog, u32 t) keembay_wdt_set_timeout() argument
122 keembay_wdt_set_pretimeout(struct watchdog_device *wdog, u32 t) keembay_wdt_set_pretimeout() argument
133 keembay_wdt_get_timeleft(struct watchdog_device *wdog) keembay_wdt_get_timeleft() argument
[all...]
H A Dretu_wdt.c55 static int retu_wdt_start(struct watchdog_device *wdog) in retu_wdt_start() argument
57 struct retu_wdt_dev *wdev = watchdog_get_drvdata(wdog); in retu_wdt_start()
61 return retu_write(wdev->rdev, RETU_REG_WATCHDOG, wdog->timeout); in retu_wdt_start()
64 static int retu_wdt_stop(struct watchdog_device *wdog) in retu_wdt_stop() argument
66 struct retu_wdt_dev *wdev = watchdog_get_drvdata(wdog); in retu_wdt_stop()
73 static int retu_wdt_ping(struct watchdog_device *wdog) in retu_wdt_ping() argument
75 struct retu_wdt_dev *wdev = watchdog_get_drvdata(wdog); in retu_wdt_ping()
77 return retu_write(wdev->rdev, RETU_REG_WATCHDOG, wdog->timeout); in retu_wdt_ping()
80 static int retu_wdt_set_timeout(struct watchdog_device *wdog, in retu_wdt_set_timeout() argument
83 struct retu_wdt_dev *wdev = watchdog_get_drvdata(wdog); in retu_wdt_set_timeout()
[all...]
H A Dbcm7038_wdt.c57 static void bcm7038_wdt_set_timeout_reg(struct watchdog_device *wdog) in bcm7038_wdt_set_timeout_reg() argument
59 struct bcm7038_watchdog *wdt = watchdog_get_drvdata(wdog); in bcm7038_wdt_set_timeout_reg()
62 timeout = wdt->rate * wdog->timeout; in bcm7038_wdt_set_timeout_reg()
67 static int bcm7038_wdt_ping(struct watchdog_device *wdog) in bcm7038_wdt_ping() argument
69 struct bcm7038_watchdog *wdt = watchdog_get_drvdata(wdog); in bcm7038_wdt_ping()
77 static int bcm7038_wdt_start(struct watchdog_device *wdog) in bcm7038_wdt_start() argument
79 bcm7038_wdt_set_timeout_reg(wdog); in bcm7038_wdt_start()
80 bcm7038_wdt_ping(wdog); in bcm7038_wdt_start()
85 static int bcm7038_wdt_stop(struct watchdog_device *wdog) in bcm7038_wdt_stop() argument
87 struct bcm7038_watchdog *wdt = watchdog_get_drvdata(wdog); in bcm7038_wdt_stop()
95 bcm7038_wdt_set_timeout(struct watchdog_device *wdog, unsigned int t) bcm7038_wdt_set_timeout() argument
106 bcm7038_wdt_get_timeleft(struct watchdog_device *wdog) bcm7038_wdt_get_timeleft() argument
[all...]
H A Dimx7ulp_wdt.c127 static int imx7ulp_wdt_enable(struct watchdog_device *wdog, bool enable) in imx7ulp_wdt_enable() argument
129 struct imx7ulp_wdt_device *wdt = watchdog_get_drvdata(wdog); in imx7ulp_wdt_enable()
145 static int imx7ulp_wdt_ping(struct watchdog_device *wdog) in imx7ulp_wdt_ping() argument
147 struct imx7ulp_wdt_device *wdt = watchdog_get_drvdata(wdog); in imx7ulp_wdt_ping()
154 static int imx7ulp_wdt_start(struct watchdog_device *wdog) in imx7ulp_wdt_start() argument
156 return imx7ulp_wdt_enable(wdog, true); in imx7ulp_wdt_start()
159 static int imx7ulp_wdt_stop(struct watchdog_device *wdog) in imx7ulp_wdt_stop() argument
161 return imx7ulp_wdt_enable(wdog, false); in imx7ulp_wdt_stop()
184 static int imx7ulp_wdt_set_timeout(struct watchdog_device *wdog, in imx7ulp_wdt_set_timeout() argument
187 struct imx7ulp_wdt_device *wdt = watchdog_get_drvdata(wdog); in imx7ulp_wdt_set_timeout()
205 imx7ulp_wdt_restart(struct watchdog_device *wdog, unsigned long action, void *data) imx7ulp_wdt_restart() argument
305 struct watchdog_device *wdog; imx7ulp_wdt_probe() local
[all...]
H A Ddigicolor_wdt.c48 static int dc_wdt_restart(struct watchdog_device *wdog, unsigned long action, in dc_wdt_restart() argument
51 struct dc_wdt *wdt = watchdog_get_drvdata(wdog); in dc_wdt_restart()
60 static int dc_wdt_start(struct watchdog_device *wdog) in dc_wdt_start() argument
62 struct dc_wdt *wdt = watchdog_get_drvdata(wdog); in dc_wdt_start()
64 dc_wdt_set(wdt, wdog->timeout * clk_get_rate(wdt->clk)); in dc_wdt_start()
69 static int dc_wdt_stop(struct watchdog_device *wdog) in dc_wdt_stop() argument
71 struct dc_wdt *wdt = watchdog_get_drvdata(wdog); in dc_wdt_stop()
78 static int dc_wdt_set_timeout(struct watchdog_device *wdog, unsigned int t) in dc_wdt_set_timeout() argument
80 struct dc_wdt *wdt = watchdog_get_drvdata(wdog); in dc_wdt_set_timeout()
83 wdog in dc_wdt_set_timeout()
88 dc_wdt_get_timeleft(struct watchdog_device *wdog) dc_wdt_get_timeleft() argument
[all...]
H A Dbooke_wdt.c110 struct watchdog_device *wdog = data; in __booke_wdt_set() local
114 val |= WDTP(sec_to_period(wdog->timeout)); in __booke_wdt_set()
129 static int booke_wdt_ping(struct watchdog_device *wdog) in booke_wdt_ping() argument
139 struct watchdog_device *wdog = data; in __booke_wdt_enable() local
145 val |= (TCR_WIE|TCR_WRC(WRC_CHIP)|WDTP(sec_to_period(wdog->timeout))); in __booke_wdt_enable()
171 static int booke_wdt_start(struct watchdog_device *wdog) in booke_wdt_start() argument
173 on_each_cpu(__booke_wdt_enable, wdog, 0); in booke_wdt_start()
174 pr_debug("watchdog enabled (timeout = %u sec)\n", wdog->timeout); in booke_wdt_start()
179 static int booke_wdt_stop(struct watchdog_device *wdog) in booke_wdt_stop() argument
H A Dexar_wdt.c153 static int exar_wdt_start(struct watchdog_device *wdog) in exar_wdt_start() argument
155 struct wdt_priv *priv = watchdog_get_drvdata(wdog); in exar_wdt_start()
168 static int exar_wdt_stop(struct watchdog_device *wdog) in exar_wdt_stop() argument
170 struct wdt_priv *priv = watchdog_get_drvdata(wdog); in exar_wdt_stop()
180 static int exar_wdt_keepalive(struct watchdog_device *wdog) in exar_wdt_keepalive() argument
182 struct wdt_priv *priv = watchdog_get_drvdata(wdog); in exar_wdt_keepalive()
194 static int exar_wdt_set_timeout(struct watchdog_device *wdog, unsigned int t) in exar_wdt_set_timeout() argument
196 struct wdt_priv *priv = watchdog_get_drvdata(wdog); in exar_wdt_set_timeout()
212 wdog->timeout = unit_min ? t * 60 : t; in exar_wdt_set_timeout()
214 if (watchdog_hw_running(wdog)) in exar_wdt_set_timeout()
235 exar_wdt_config(struct watchdog_device *wdog, const unsigned char conf) exar_wdt_config() argument
[all...]
H A Dbcm2835_wdt.c66 static int bcm2835_wdt_start(struct watchdog_device *wdog) in bcm2835_wdt_start() argument
68 struct bcm2835_wdt *wdt = watchdog_get_drvdata(wdog); in bcm2835_wdt_start()
74 writel_relaxed(PM_PASSWORD | (SECS_TO_WDOG_TICKS(wdog->timeout) & in bcm2835_wdt_start()
85 static int bcm2835_wdt_stop(struct watchdog_device *wdog) in bcm2835_wdt_stop() argument
87 struct bcm2835_wdt *wdt = watchdog_get_drvdata(wdog); in bcm2835_wdt_stop()
93 static unsigned int bcm2835_wdt_get_timeleft(struct watchdog_device *wdog) in bcm2835_wdt_get_timeleft() argument
95 struct bcm2835_wdt *wdt = watchdog_get_drvdata(wdog); in bcm2835_wdt_get_timeleft()
116 static int bcm2835_restart(struct watchdog_device *wdog, in bcm2835_restart() argument
119 struct bcm2835_wdt *wdt = watchdog_get_drvdata(wdog); in bcm2835_restart()
H A Dbcm_kona_wdt.c199 static int bcm_kona_wdt_set_timeout_reg(struct watchdog_device *wdog, in bcm_kona_wdt_set_timeout_reg() argument
202 struct bcm_kona_wdt *wdt = watchdog_get_drvdata(wdog); in bcm_kona_wdt_set_timeout_reg()
205 SECS_TO_TICKS(wdog->timeout, wdt) | in bcm_kona_wdt_set_timeout_reg()
209 static int bcm_kona_wdt_set_timeout(struct watchdog_device *wdog, in bcm_kona_wdt_set_timeout() argument
212 wdog->timeout = t; in bcm_kona_wdt_set_timeout()
216 static unsigned int bcm_kona_wdt_get_timeleft(struct watchdog_device *wdog) in bcm_kona_wdt_get_timeleft() argument
218 struct bcm_kona_wdt *wdt = watchdog_get_drvdata(wdog); in bcm_kona_wdt_get_timeleft()
232 static int bcm_kona_wdt_start(struct watchdog_device *wdog) in bcm_kona_wdt_start() argument
234 return bcm_kona_wdt_set_timeout_reg(wdog, in bcm_kona_wdt_start()
238 static int bcm_kona_wdt_stop(struct watchdog_device *wdog) in bcm_kona_wdt_stop() argument
[all...]
H A Dw83627hf_wdt.c154 static int w83627hf_init(struct watchdog_device *wdog, enum chips chip) in w83627hf_init() argument
242 wdog->timeout); in w83627hf_init()
243 superio_outb(cr_wdt_timeout, wdog->timeout); in w83627hf_init()
253 wdog->bootstatus |= WDIOF_CARDRESET; in w83627hf_init()
279 static int wdt_start(struct watchdog_device *wdog) in wdt_start() argument
281 return wdt_set_time(wdog->timeout); in wdt_start()
284 static int wdt_stop(struct watchdog_device *wdog) in wdt_stop() argument
289 static int wdt_set_timeout(struct watchdog_device *wdog, unsigned int timeout) in wdt_set_timeout() argument
291 wdog->timeout = timeout; in wdt_set_timeout()
296 static unsigned int wdt_get_time(struct watchdog_device *wdog) in wdt_get_time() argument
[all...]
/kernel/linux/linux-5.10/drivers/rtc/
H A Drtc-abx80x.c117 struct watchdog_device wdog; member
603 static int __abx80x_wdog_set_timeout(struct watchdog_device *wdog, in __abx80x_wdog_set_timeout() argument
606 struct abx80x_priv *priv = watchdog_get_drvdata(wdog); in __abx80x_wdog_set_timeout()
616 static int abx80x_wdog_set_timeout(struct watchdog_device *wdog, in abx80x_wdog_set_timeout() argument
621 if (watchdog_hw_running(wdog)) in abx80x_wdog_set_timeout()
622 err = __abx80x_wdog_set_timeout(wdog, new_timeout); in abx80x_wdog_set_timeout()
625 wdog->timeout = new_timeout; in abx80x_wdog_set_timeout()
630 static int abx80x_wdog_ping(struct watchdog_device *wdog) in abx80x_wdog_ping() argument
632 return __abx80x_wdog_set_timeout(wdog, wdog in abx80x_wdog_ping()
635 abx80x_wdog_start(struct watchdog_device *wdog) abx80x_wdog_start() argument
640 abx80x_wdog_stop(struct watchdog_device *wdog) abx80x_wdog_stop() argument
[all...]
/kernel/linux/linux-6.6/drivers/rtc/
H A Drtc-abx80x.c129 struct watchdog_device wdog; member
613 static int __abx80x_wdog_set_timeout(struct watchdog_device *wdog, in __abx80x_wdog_set_timeout() argument
616 struct abx80x_priv *priv = watchdog_get_drvdata(wdog); in __abx80x_wdog_set_timeout()
626 static int abx80x_wdog_set_timeout(struct watchdog_device *wdog, in abx80x_wdog_set_timeout() argument
631 if (watchdog_hw_running(wdog)) in abx80x_wdog_set_timeout()
632 err = __abx80x_wdog_set_timeout(wdog, new_timeout); in abx80x_wdog_set_timeout()
635 wdog->timeout = new_timeout; in abx80x_wdog_set_timeout()
640 static int abx80x_wdog_ping(struct watchdog_device *wdog) in abx80x_wdog_ping() argument
642 return __abx80x_wdog_set_timeout(wdog, wdog in abx80x_wdog_ping()
645 abx80x_wdog_start(struct watchdog_device *wdog) abx80x_wdog_start() argument
650 abx80x_wdog_stop(struct watchdog_device *wdog) abx80x_wdog_stop() argument
[all...]

Completed in 15 milliseconds

12