Home
last modified time | relevance | path

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

1234

/OK3568_Linux_fs/kernel/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()
[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 = &imx_sc_wdd->wdd; 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()
[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
[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()
[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()
[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->timeout = t; in dc_wdt_set_timeout()
[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 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 Dbcm2835_wdt.c65 static int bcm2835_wdt_start(struct watchdog_device *wdog) in bcm2835_wdt_start() argument
67 struct bcm2835_wdt *wdt = watchdog_get_drvdata(wdog); in bcm2835_wdt_start()
73 writel_relaxed(PM_PASSWORD | (SECS_TO_WDOG_TICKS(wdog->timeout) & in bcm2835_wdt_start()
84 static int bcm2835_wdt_stop(struct watchdog_device *wdog) in bcm2835_wdt_stop() argument
86 struct bcm2835_wdt *wdt = watchdog_get_drvdata(wdog); in bcm2835_wdt_stop()
92 static unsigned int bcm2835_wdt_get_timeleft(struct watchdog_device *wdog) in bcm2835_wdt_get_timeleft() argument
94 struct bcm2835_wdt *wdt = watchdog_get_drvdata(wdog); in bcm2835_wdt_get_timeleft()
115 static int bcm2835_restart(struct watchdog_device *wdog, in bcm2835_restart() argument
118 struct bcm2835_wdt *wdt = watchdog_get_drvdata(wdog); in bcm2835_restart()
H A Dw83627hf_wdt.c150 static int w83627hf_init(struct watchdog_device *wdog, enum chips chip) in w83627hf_init() argument
238 wdog->timeout); in w83627hf_init()
239 superio_outb(cr_wdt_timeout, wdog->timeout); in w83627hf_init()
271 static int wdt_start(struct watchdog_device *wdog) in wdt_start() argument
273 return wdt_set_time(wdog->timeout); in wdt_start()
276 static int wdt_stop(struct watchdog_device *wdog) in wdt_stop() argument
281 static int wdt_set_timeout(struct watchdog_device *wdog, unsigned int timeout) in wdt_set_timeout() argument
283 wdog->timeout = timeout; in wdt_set_timeout()
288 static unsigned int wdt_get_time(struct watchdog_device *wdog) in wdt_get_time() argument
H A 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()
H A 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()
H A Docteon-wdt-main.c402 static int octeon_wdt_ping(struct watchdog_device __always_unused *wdog) in octeon_wdt_ping() argument
452 static int octeon_wdt_set_timeout(struct watchdog_device *wdog, in octeon_wdt_set_timeout() argument
478 octeon_wdt_ping(wdog); /* Get the irqs back on. */ in octeon_wdt_set_timeout()
482 static int octeon_wdt_start(struct watchdog_device *wdog) in octeon_wdt_start() argument
484 octeon_wdt_ping(wdog); in octeon_wdt_start()
489 static int octeon_wdt_stop(struct watchdog_device *wdog) in octeon_wdt_stop() argument
492 octeon_wdt_ping(wdog); in octeon_wdt_stop()
/OK3568_Linux_fs/external/rkwifibt/drivers/rtl8852be/phl/
H A Dphl_watchdog.c84 struct phl_watchdog *wdog = &(phl_info->wdog); in _phl_trigger_next_watchdog() local
86 if (wdog->state == WD_STATE_STARTED) in _phl_trigger_next_watchdog()
87 _os_set_timer(phl_to_drvpriv(phl_info), &wdog->wdog_timer, wdog->period); in _phl_trigger_next_watchdog()
211 struct phl_watchdog *wdog = &(phl_info->wdog); in phl_watchdog_hw_cmd_hdl() local
216 if (NULL != wdog->core_hw_wdog) in phl_watchdog_hw_cmd_hdl()
217 wdog->core_hw_wdog(phl_to_drvpriv(phl_info)); in phl_watchdog_hw_cmd_hdl()
226 struct phl_watchdog *wdog = &(phl_info->wdog); in phl_watchdog_sw_cmd_hdl() local
229 if (NULL != wdog->core_sw_wdog) in phl_watchdog_sw_cmd_hdl()
230 wdog->core_sw_wdog(phl_to_drvpriv(phl_info)); in phl_watchdog_sw_cmd_hdl()
242 struct phl_watchdog *wdog = &(phl_info->wdog); in rtw_phl_watchdog_init() local
[all …]
/OK3568_Linux_fs/external/rkwifibt/drivers/rtl8852bs/phl/
H A Dphl_watchdog.c84 struct phl_watchdog *wdog = &(phl_info->wdog); in _phl_trigger_next_watchdog() local
86 if (wdog->state == WD_STATE_STARTED) in _phl_trigger_next_watchdog()
87 _os_set_timer(phl_to_drvpriv(phl_info), &wdog->wdog_timer, wdog->period); in _phl_trigger_next_watchdog()
209 struct phl_watchdog *wdog = &(phl_info->wdog); in phl_watchdog_hw_cmd_hdl() local
214 if (NULL != wdog->core_hw_wdog) in phl_watchdog_hw_cmd_hdl()
215 wdog->core_hw_wdog(phl_to_drvpriv(phl_info)); in phl_watchdog_hw_cmd_hdl()
224 struct phl_watchdog *wdog = &(phl_info->wdog); in phl_watchdog_sw_cmd_hdl() local
227 if (NULL != wdog->core_sw_wdog) in phl_watchdog_sw_cmd_hdl()
228 wdog->core_sw_wdog(phl_to_drvpriv(phl_info)); in phl_watchdog_sw_cmd_hdl()
240 struct phl_watchdog *wdog = &(phl_info->wdog); in rtw_phl_watchdog_init() local
[all …]
/OK3568_Linux_fs/u-boot/drivers/watchdog/
H A Dulp_wdog.c48 struct wdog_regs *wdog = (struct wdog_regs *)WDOG_BASE_ADDR; in hw_watchdog_set_timeout() local
50 writel(val, &wdog->toval); in hw_watchdog_set_timeout()
55 struct wdog_regs *wdog = (struct wdog_regs *)WDOG_BASE_ADDR; in hw_watchdog_reset() local
57 writel(REFRESH_WORD0, &wdog->cnt); in hw_watchdog_reset()
58 writel(REFRESH_WORD1, &wdog->cnt); in hw_watchdog_reset()
64 struct wdog_regs *wdog = (struct wdog_regs *)WDOG_BASE_ADDR; in hw_watchdog_init() local
66 writel(UNLOCK_WORD0, &wdog->cnt); in hw_watchdog_init()
67 writel(UNLOCK_WORD1, &wdog->cnt); in hw_watchdog_init()
69 val = readb(&wdog->cs2); in hw_watchdog_init()
71 writeb(val, &wdog->cs2); in hw_watchdog_init()
[all …]
H A Dimx_watchdog.c16 struct watchdog_regs *wdog = (struct watchdog_regs *)WDOG1_BASE_ADDR; in hw_watchdog_reset() local
18 writew(0x5555, &wdog->wsr); in hw_watchdog_reset()
19 writew(0xaaaa, &wdog->wsr); in hw_watchdog_reset()
24 struct watchdog_regs *wdog = (struct watchdog_regs *)WDOG1_BASE_ADDR; in hw_watchdog_init() local
37 WCR_WDA | SET_WCR_WT(timeout), &wdog->wcr); in hw_watchdog_init()
44 struct watchdog_regs *wdog = (struct watchdog_regs *)WDOG1_BASE_ADDR; in reset_cpu() local
46 clrsetbits_le16(&wdog->wcr, WCR_WT_MSK, WCR_WDE); in reset_cpu()
48 writew(0x5555, &wdog->wsr); in reset_cpu()
49 writew(0xaaaa, &wdog->wsr); /* load minimum 1/2 second timeout */ in reset_cpu()
/OK3568_Linux_fs/u-boot/arch/arm/mach-sunxi/
H A Dboard.c280 static const struct sunxi_wdog *wdog = in reset_cpu() local
281 &((struct sunxi_timer_reg *)SUNXI_TIMER_BASE)->wdog; in reset_cpu()
284 writel(WDT_MODE_RESET_EN | WDT_MODE_EN, &wdog->mode); in reset_cpu()
285 writel(WDT_CTRL_KEY | WDT_CTRL_RESTART, &wdog->ctl); in reset_cpu()
289 writel(WDT_MODE_RESET_EN | WDT_MODE_EN, &wdog->mode); in reset_cpu()
292 static const struct sunxi_wdog *wdog = in reset_cpu()
293 ((struct sunxi_timer_reg *)SUNXI_TIMER_BASE)->wdog; in reset_cpu()
296 writel(WDT_CFG_RESET, &wdog->cfg); in reset_cpu()
297 writel(WDT_MODE_EN, &wdog->mode); in reset_cpu()
298 writel(WDT_CTRL_KEY | WDT_CTRL_RESTART, &wdog->ctl); in reset_cpu()
/OK3568_Linux_fs/kernel/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->timeout); in abx80x_wdog_ping()
635 static int abx80x_wdog_start(struct watchdog_device *wdog) in abx80x_wdog_start() argument
[all …]
/OK3568_Linux_fs/u-boot/drivers/mmc/
H A Ddavinci_mmc.c61 uint wdog = WATCHDOG_COUNT; in dmmc_wait_fifo_status() local
63 while (--wdog && ((get_val(&regs->mmcst1) & status) != status)) in dmmc_wait_fifo_status()
69 if (wdog == 0) in dmmc_wait_fifo_status()
78 uint wdog = WATCHDOG_COUNT; in dmmc_busy_wait() local
80 while (--wdog && (get_val(&regs->mmcst1) & MMCST1_BUSY)) in dmmc_busy_wait()
83 if (wdog == 0) in dmmc_busy_wait()
93 uint wdog = WATCHDOG_COUNT; in dmmc_check_status() local
96 while (wdog--) { in dmmc_check_status()
/OK3568_Linux_fs/u-boot/arch/arm/mach-davinci/
H A Ddm365_lowlevel.c267 struct davinci_timer *wdog = in dm365_por_reset() local
276 writel(DV_WDT_ENABLE_SYS_RESET, &wdog->na1); in dm365_por_reset()
277 writel(DV_WDT_TRIGGER_SYS_RESET, &wdog->na2); in dm365_por_reset()
285 struct davinci_timer *wdog = in dm365_wdt_reset() local
297 writel(DV_WDT_ENABLE_SYS_RESET, &wdog->na1); in dm365_wdt_reset()
298 writel(DV_WDT_TRIGGER_SYS_RESET, &wdog->na2); in dm365_wdt_reset()
/OK3568_Linux_fs/u-boot/board/warp7/
H A Dwarp7.c188 struct wdog_regs *wdog = (struct wdog_regs *)WDOG1_BASE_ADDR; in board_late_init() local
192 set_wdog_reset(wdog); in board_late_init()
198 clrsetbits_le16(&wdog->wcr, 0, 0x10); in board_late_init()
/OK3568_Linux_fs/u-boot/arch/arm/mach-imx/mx7/
H A Dsoc.c350 void set_wdog_reset(struct wdog_regs *wdog) in set_wdog_reset() argument
352 u32 reg = readw(&wdog->wcr); in set_wdog_reset()
358 reg = readw(&wdog->wcr); in set_wdog_reset()
365 writew(reg, &wdog->wcr); in set_wdog_reset()
/OK3568_Linux_fs/u-boot/arch/arm/include/asm/arch-sunxi/
H A Dtimer.h71 struct sunxi_wdog wdog; /* 0x90 */ member
82 struct sunxi_wdog wdog[5]; /* We have 5 watchdogs */ member

1234