Home
last modified time | relevance | path

Searched refs:wdog (Results 1 – 18 of 18) sorted by relevance

/drivers/watchdog/
Dimx2_wdt.c66 struct watchdog_device wdog; member
93 static int imx2_wdt_restart(struct watchdog_device *wdog, unsigned long action, in imx2_wdt_restart() argument
96 struct imx2_wdt_device *wdev = watchdog_get_drvdata(wdog); in imx2_wdt_restart()
123 static inline void imx2_wdt_setup(struct watchdog_device *wdog) in imx2_wdt_setup() argument
125 struct imx2_wdt_device *wdev = watchdog_get_drvdata(wdog); in imx2_wdt_setup()
143 val |= WDOG_SEC_TO_COUNT(wdog->timeout); in imx2_wdt_setup()
161 static int imx2_wdt_ping(struct watchdog_device *wdog) in imx2_wdt_ping() argument
163 struct imx2_wdt_device *wdev = watchdog_get_drvdata(wdog); in imx2_wdt_ping()
173 static void __imx2_wdt_set_timeout(struct watchdog_device *wdog, in __imx2_wdt_set_timeout() argument
176 struct imx2_wdt_device *wdev = watchdog_get_drvdata(wdog); in __imx2_wdt_set_timeout()
[all …]
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 = &imx_sc_wdd->wdd; in imx_sc_wdt_probe()
[all …]
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
[all …]
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 static int keembay_wdt_stop(struct watchdog_device *wdog) in keembay_wdt_stop() argument
[all …]
Dimx7ulp_wdt.c128 static int imx7ulp_wdt_enable(struct watchdog_device *wdog, bool enable) in imx7ulp_wdt_enable() argument
130 struct imx7ulp_wdt_device *wdt = watchdog_get_drvdata(wdog); in imx7ulp_wdt_enable()
146 static int imx7ulp_wdt_ping(struct watchdog_device *wdog) in imx7ulp_wdt_ping() argument
148 struct imx7ulp_wdt_device *wdt = watchdog_get_drvdata(wdog); in imx7ulp_wdt_ping()
155 static int imx7ulp_wdt_start(struct watchdog_device *wdog) in imx7ulp_wdt_start() argument
157 return imx7ulp_wdt_enable(wdog, true); in imx7ulp_wdt_start()
160 static int imx7ulp_wdt_stop(struct watchdog_device *wdog) in imx7ulp_wdt_stop() argument
162 return imx7ulp_wdt_enable(wdog, false); in imx7ulp_wdt_stop()
185 static int imx7ulp_wdt_set_timeout(struct watchdog_device *wdog, in imx7ulp_wdt_set_timeout() argument
188 struct imx7ulp_wdt_device *wdt = watchdog_get_drvdata(wdog); in imx7ulp_wdt_set_timeout()
[all …]
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()
[all …]
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 …]
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->timeout = t; in dc_wdt_set_timeout()
[all …]
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
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()
[all …]
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 …]
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()
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
Dsb_wdog.c70 static void sbwdog_set(char __iomem *wdog, unsigned long t) in sbwdog_set() argument
73 __raw_writeb(0, wdog); in sbwdog_set()
74 __raw_writeq(t & 0x7fffffUL, wdog - 0x10); in sbwdog_set()
84 static void sbwdog_pet(char __iomem *wdog) in sbwdog_pet() argument
87 __raw_writeb(__raw_readb(wdog) | 1, wdog); in sbwdog_pet()
Dalim1535_wdt.c317 u32 wdog; in ali_find_watchdog() local
342 pci_read_config_dword(pdev, 0xCC, &wdog); in ali_find_watchdog()
345 wdog &= ~0x3F; in ali_find_watchdog()
347 wdog &= ~((1 << 27)|(1 << 26)|(1 << 25)|(1 << 24)); in ali_find_watchdog()
349 wdog &= ~((1 << 16)|(1 << 13)|(1 << 12)|(1 << 11)|(1 << 10)|(1 << 9)); in ali_find_watchdog()
351 pci_write_config_dword(pdev, 0xCC, wdog); in ali_find_watchdog()
Docteon-wdt-main.c405 static int octeon_wdt_ping(struct watchdog_device __always_unused *wdog) in octeon_wdt_ping() argument
455 static int octeon_wdt_set_timeout(struct watchdog_device *wdog, in octeon_wdt_set_timeout() argument
481 octeon_wdt_ping(wdog); /* Get the irqs back on. */ in octeon_wdt_set_timeout()
485 static int octeon_wdt_start(struct watchdog_device *wdog) in octeon_wdt_start() argument
487 octeon_wdt_ping(wdog); in octeon_wdt_start()
492 static int octeon_wdt_stop(struct watchdog_device *wdog) in octeon_wdt_stop() argument
495 octeon_wdt_ping(wdog); in octeon_wdt_stop()
/drivers/rtc/
Drtc-abx80x.c117 struct watchdog_device wdog; member
601 static int __abx80x_wdog_set_timeout(struct watchdog_device *wdog, in __abx80x_wdog_set_timeout() argument
604 struct abx80x_priv *priv = watchdog_get_drvdata(wdog); in __abx80x_wdog_set_timeout()
614 static int abx80x_wdog_set_timeout(struct watchdog_device *wdog, in abx80x_wdog_set_timeout() argument
619 if (watchdog_hw_running(wdog)) in abx80x_wdog_set_timeout()
620 err = __abx80x_wdog_set_timeout(wdog, new_timeout); in abx80x_wdog_set_timeout()
623 wdog->timeout = new_timeout; in abx80x_wdog_set_timeout()
628 static int abx80x_wdog_ping(struct watchdog_device *wdog) in abx80x_wdog_ping() argument
630 return __abx80x_wdog_set_timeout(wdog, wdog->timeout); in abx80x_wdog_ping()
633 static int abx80x_wdog_start(struct watchdog_device *wdog) in abx80x_wdog_start() argument
[all …]
/drivers/mmc/host/
Dcavium.c253 u64 emm_switch, wdog; in cvm_mmc_reset_bus() local
260 wdog = readq(slot->host->base + MIO_EMM_WDOG(host)); in cvm_mmc_reset_bus()
267 writeq(wdog, slot->host->base + MIO_EMM_WDOG(host)); in cvm_mmc_reset_bus()