Home
last modified time | relevance | path

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

/drivers/watchdog/
Dimx2_wdt.c69 struct watchdog_device wdog; member
95 static int imx2_wdt_restart(struct watchdog_device *wdog, unsigned long action, in imx2_wdt_restart() argument
98 struct imx2_wdt_device *wdev = watchdog_get_drvdata(wdog); in imx2_wdt_restart()
125 static inline void imx2_wdt_setup(struct watchdog_device *wdog) in imx2_wdt_setup() argument
127 struct imx2_wdt_device *wdev = watchdog_get_drvdata(wdog); in imx2_wdt_setup()
145 val |= WDOG_SEC_TO_COUNT(wdog->timeout); in imx2_wdt_setup()
163 static int imx2_wdt_ping(struct watchdog_device *wdog) in imx2_wdt_ping() argument
165 struct imx2_wdt_device *wdev = watchdog_get_drvdata(wdog); in imx2_wdt_ping()
172 static void __imx2_wdt_set_timeout(struct watchdog_device *wdog, in __imx2_wdt_set_timeout() argument
175 struct imx2_wdt_device *wdev = watchdog_get_drvdata(wdog); in __imx2_wdt_set_timeout()
[all …]
Domap_wdt.c56 #define to_omap_wdt_dev(_wdog) container_of(_wdog, struct omap_wdt_dev, wdog)
64 struct watchdog_device wdog; member
132 static int omap_wdt_start(struct watchdog_device *wdog) in omap_wdt_start() argument
134 struct omap_wdt_dev *wdev = to_omap_wdt_dev(wdog); in omap_wdt_start()
158 omap_wdt_set_timer(wdev, wdog->timeout); in omap_wdt_start()
167 static int omap_wdt_stop(struct watchdog_device *wdog) in omap_wdt_stop() argument
169 struct omap_wdt_dev *wdev = to_omap_wdt_dev(wdog); in omap_wdt_stop()
179 static int omap_wdt_ping(struct watchdog_device *wdog) in omap_wdt_ping() argument
181 struct omap_wdt_dev *wdev = to_omap_wdt_dev(wdog); in omap_wdt_ping()
190 static int omap_wdt_set_timeout(struct watchdog_device *wdog, in omap_wdt_set_timeout() argument
[all …]
Dretu_wdt.c62 static int retu_wdt_start(struct watchdog_device *wdog) in retu_wdt_start() argument
64 struct retu_wdt_dev *wdev = watchdog_get_drvdata(wdog); in retu_wdt_start()
68 return retu_write(wdev->rdev, RETU_REG_WATCHDOG, wdog->timeout); in retu_wdt_start()
71 static int retu_wdt_stop(struct watchdog_device *wdog) in retu_wdt_stop() argument
73 struct retu_wdt_dev *wdev = watchdog_get_drvdata(wdog); in retu_wdt_stop()
80 static int retu_wdt_ping(struct watchdog_device *wdog) in retu_wdt_ping() argument
82 struct retu_wdt_dev *wdev = watchdog_get_drvdata(wdog); in retu_wdt_ping()
84 return retu_write(wdev->rdev, RETU_REG_WATCHDOG, wdog->timeout); in retu_wdt_ping()
87 static int retu_wdt_set_timeout(struct watchdog_device *wdog, in retu_wdt_set_timeout() argument
90 struct retu_wdt_dev *wdev = watchdog_get_drvdata(wdog); in retu_wdt_set_timeout()
[all …]
Dbcm7038_wdt.c45 static void bcm7038_wdt_set_timeout_reg(struct watchdog_device *wdog) in bcm7038_wdt_set_timeout_reg() argument
47 struct bcm7038_watchdog *wdt = watchdog_get_drvdata(wdog); in bcm7038_wdt_set_timeout_reg()
50 timeout = wdt->rate * wdog->timeout; in bcm7038_wdt_set_timeout_reg()
55 static int bcm7038_wdt_ping(struct watchdog_device *wdog) in bcm7038_wdt_ping() argument
57 struct bcm7038_watchdog *wdt = watchdog_get_drvdata(wdog); in bcm7038_wdt_ping()
65 static int bcm7038_wdt_start(struct watchdog_device *wdog) in bcm7038_wdt_start() argument
67 bcm7038_wdt_set_timeout_reg(wdog); in bcm7038_wdt_start()
68 bcm7038_wdt_ping(wdog); in bcm7038_wdt_start()
73 static int bcm7038_wdt_stop(struct watchdog_device *wdog) in bcm7038_wdt_stop() argument
75 struct bcm7038_watchdog *wdt = watchdog_get_drvdata(wdog); in bcm7038_wdt_stop()
[all …]
Ddigicolor_wdt.c51 static int dc_wdt_restart(struct watchdog_device *wdog, unsigned long action, in dc_wdt_restart() argument
54 struct dc_wdt *wdt = watchdog_get_drvdata(wdog); in dc_wdt_restart()
63 static int dc_wdt_start(struct watchdog_device *wdog) in dc_wdt_start() argument
65 struct dc_wdt *wdt = watchdog_get_drvdata(wdog); in dc_wdt_start()
67 dc_wdt_set(wdt, wdog->timeout * clk_get_rate(wdt->clk)); in dc_wdt_start()
72 static int dc_wdt_stop(struct watchdog_device *wdog) in dc_wdt_stop() argument
74 struct dc_wdt *wdt = watchdog_get_drvdata(wdog); in dc_wdt_stop()
81 static int dc_wdt_set_timeout(struct watchdog_device *wdog, unsigned int t) in dc_wdt_set_timeout() argument
83 struct dc_wdt *wdt = watchdog_get_drvdata(wdog); in dc_wdt_set_timeout()
86 wdog->timeout = t; in dc_wdt_set_timeout()
[all …]
Dbooke_wdt.c109 struct watchdog_device *wdog = data; in __booke_wdt_set() local
113 val |= WDTP(sec_to_period(wdog->timeout)); in __booke_wdt_set()
128 static int booke_wdt_ping(struct watchdog_device *wdog) in booke_wdt_ping() argument
138 struct watchdog_device *wdog = data; in __booke_wdt_enable() local
144 val |= (TCR_WIE|TCR_WRC(WRC_CHIP)|WDTP(sec_to_period(wdog->timeout))); in __booke_wdt_enable()
170 static int booke_wdt_start(struct watchdog_device *wdog) in booke_wdt_start() argument
172 on_each_cpu(__booke_wdt_enable, wdog, 0); in booke_wdt_start()
173 pr_debug("watchdog enabled (timeout = %u sec)\n", wdog->timeout); in booke_wdt_start()
178 static int booke_wdt_stop(struct watchdog_device *wdog) in booke_wdt_stop() argument
Dbcm_kona_wdt.c222 static int bcm_kona_wdt_set_timeout_reg(struct watchdog_device *wdog, in bcm_kona_wdt_set_timeout_reg() argument
225 struct bcm_kona_wdt *wdt = watchdog_get_drvdata(wdog); in bcm_kona_wdt_set_timeout_reg()
228 SECS_TO_TICKS(wdog->timeout, wdt) | in bcm_kona_wdt_set_timeout_reg()
232 static int bcm_kona_wdt_set_timeout(struct watchdog_device *wdog, in bcm_kona_wdt_set_timeout() argument
235 wdog->timeout = t; in bcm_kona_wdt_set_timeout()
239 static unsigned int bcm_kona_wdt_get_timeleft(struct watchdog_device *wdog) in bcm_kona_wdt_get_timeleft() argument
241 struct bcm_kona_wdt *wdt = watchdog_get_drvdata(wdog); in bcm_kona_wdt_get_timeleft()
255 static int bcm_kona_wdt_start(struct watchdog_device *wdog) in bcm_kona_wdt_start() argument
257 return bcm_kona_wdt_set_timeout_reg(wdog, in bcm_kona_wdt_start()
261 static int bcm_kona_wdt_stop(struct watchdog_device *wdog) in bcm_kona_wdt_stop() argument
[all …]
Dw83627hf_wdt.c146 static int w83627hf_init(struct watchdog_device *wdog, enum chips chip) in w83627hf_init() argument
230 wdog->timeout); in w83627hf_init()
231 superio_outb(cr_wdt_timeout, wdog->timeout); in w83627hf_init()
263 static int wdt_start(struct watchdog_device *wdog) in wdt_start() argument
265 return wdt_set_time(wdog->timeout); in wdt_start()
268 static int wdt_stop(struct watchdog_device *wdog) in wdt_stop() argument
273 static int wdt_set_timeout(struct watchdog_device *wdog, unsigned int timeout) in wdt_set_timeout() argument
275 wdog->timeout = timeout; in wdt_set_timeout()
280 static unsigned int wdt_get_time(struct watchdog_device *wdog) in wdt_get_time() argument
Dbcm2835_wdt.c58 static int bcm2835_wdt_start(struct watchdog_device *wdog) in bcm2835_wdt_start() argument
60 struct bcm2835_wdt *wdt = watchdog_get_drvdata(wdog); in bcm2835_wdt_start()
66 writel_relaxed(PM_PASSWORD | (SECS_TO_WDOG_TICKS(wdog->timeout) & in bcm2835_wdt_start()
77 static int bcm2835_wdt_stop(struct watchdog_device *wdog) in bcm2835_wdt_stop() argument
79 struct bcm2835_wdt *wdt = watchdog_get_drvdata(wdog); in bcm2835_wdt_stop()
85 static unsigned int bcm2835_wdt_get_timeleft(struct watchdog_device *wdog) in bcm2835_wdt_get_timeleft() argument
87 struct bcm2835_wdt *wdt = watchdog_get_drvdata(wdog); in bcm2835_wdt_get_timeleft()
Dsb_wdog.c70 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 void sbwdog_pet(char __iomem *wdog) in sbwdog_pet() argument
87 __raw_writeb(__raw_readb(wdog) | 1, wdog); in sbwdog_pet()
Dalim1535_wdt.c321 u32 wdog; in ali_find_watchdog() local
346 pci_read_config_dword(pdev, 0xCC, &wdog); in ali_find_watchdog()
349 wdog &= ~0x3F; in ali_find_watchdog()
351 wdog &= ~((1 << 27)|(1 << 26)|(1 << 25)|(1 << 24)); in ali_find_watchdog()
353 wdog &= ~((1 << 16)|(1 << 13)|(1 << 12)|(1 << 11)|(1 << 10)|(1 << 9)); in ali_find_watchdog()
355 pci_write_config_dword(pdev, 0xCC, wdog); in ali_find_watchdog()
Docteon-wdt-main.c448 static int octeon_wdt_ping(struct watchdog_device __always_unused *wdog) in octeon_wdt_ping() argument
495 static int octeon_wdt_set_timeout(struct watchdog_device *wdog, in octeon_wdt_set_timeout() argument
516 octeon_wdt_ping(wdog); /* Get the irqs back on. */ in octeon_wdt_set_timeout()
520 static int octeon_wdt_start(struct watchdog_device *wdog) in octeon_wdt_start() argument
522 octeon_wdt_ping(wdog); in octeon_wdt_start()
527 static int octeon_wdt_stop(struct watchdog_device *wdog) in octeon_wdt_stop() argument
530 octeon_wdt_ping(wdog); in octeon_wdt_stop()
/drivers/net/ethernet/cavium/liquidio/
Dlio_main.c1190 u64 wdog; in liquidio_watchdog() local
1207 wdog = lio_pci_readq(oct, CIU3_WDOG(core_num)); in liquidio_watchdog()
1210 wdog &= CIU3_WDOG_MASK; in liquidio_watchdog()
1211 if (wdog) { in liquidio_watchdog()