Home
last modified time | relevance | path

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

12

/Linux-v4.19/drivers/watchdog/
Dimx2_wdt.c66 struct watchdog_device wdog; member
92 static int imx2_wdt_restart(struct watchdog_device *wdog, unsigned long action, in imx2_wdt_restart() argument
95 struct imx2_wdt_device *wdev = watchdog_get_drvdata(wdog); in imx2_wdt_restart()
122 static inline void imx2_wdt_setup(struct watchdog_device *wdog) in imx2_wdt_setup() argument
124 struct imx2_wdt_device *wdev = watchdog_get_drvdata(wdog); in imx2_wdt_setup()
142 val |= WDOG_SEC_TO_COUNT(wdog->timeout); in imx2_wdt_setup()
160 static int imx2_wdt_ping(struct watchdog_device *wdog) in imx2_wdt_ping() argument
162 struct imx2_wdt_device *wdev = watchdog_get_drvdata(wdog); in imx2_wdt_ping()
169 static void __imx2_wdt_set_timeout(struct watchdog_device *wdog, in __imx2_wdt_set_timeout() argument
172 struct imx2_wdt_device *wdev = watchdog_get_drvdata(wdog); in __imx2_wdt_set_timeout()
[all …]
Domap_wdt.c57 #define to_omap_wdt_dev(_wdog) container_of(_wdog, struct omap_wdt_dev, wdog)
65 struct watchdog_device wdog; member
133 static int omap_wdt_start(struct watchdog_device *wdog) in omap_wdt_start() argument
135 struct omap_wdt_dev *wdev = to_omap_wdt_dev(wdog); in omap_wdt_start()
159 omap_wdt_set_timer(wdev, wdog->timeout); in omap_wdt_start()
168 static int omap_wdt_stop(struct watchdog_device *wdog) in omap_wdt_stop() argument
170 struct omap_wdt_dev *wdev = to_omap_wdt_dev(wdog); in omap_wdt_stop()
180 static int omap_wdt_ping(struct watchdog_device *wdog) in omap_wdt_ping() argument
182 struct omap_wdt_dev *wdev = to_omap_wdt_dev(wdog); in omap_wdt_ping()
191 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.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 …]
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.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
Dbcm2835_wdt.c62 static int bcm2835_wdt_start(struct watchdog_device *wdog) in bcm2835_wdt_start() argument
64 struct bcm2835_wdt *wdt = watchdog_get_drvdata(wdog); in bcm2835_wdt_start()
70 writel_relaxed(PM_PASSWORD | (SECS_TO_WDOG_TICKS(wdog->timeout) & in bcm2835_wdt_start()
81 static int bcm2835_wdt_stop(struct watchdog_device *wdog) in bcm2835_wdt_stop() argument
83 struct bcm2835_wdt *wdt = watchdog_get_drvdata(wdog); in bcm2835_wdt_stop()
89 static unsigned int bcm2835_wdt_get_timeleft(struct watchdog_device *wdog) in bcm2835_wdt_get_timeleft() argument
91 struct bcm2835_wdt *wdt = watchdog_get_drvdata(wdog); in bcm2835_wdt_get_timeleft()
112 static int bcm2835_restart(struct watchdog_device *wdog, in bcm2835_restart() argument
115 struct bcm2835_wdt *wdt = watchdog_get_drvdata(wdog); in bcm2835_restart()
Dbcm_kona_wdt.c215 static int bcm_kona_wdt_set_timeout_reg(struct watchdog_device *wdog, in bcm_kona_wdt_set_timeout_reg() argument
218 struct bcm_kona_wdt *wdt = watchdog_get_drvdata(wdog); in bcm_kona_wdt_set_timeout_reg()
221 SECS_TO_TICKS(wdog->timeout, wdt) | in bcm_kona_wdt_set_timeout_reg()
225 static int bcm_kona_wdt_set_timeout(struct watchdog_device *wdog, in bcm_kona_wdt_set_timeout() argument
228 wdog->timeout = t; in bcm_kona_wdt_set_timeout()
232 static unsigned int bcm_kona_wdt_get_timeleft(struct watchdog_device *wdog) in bcm_kona_wdt_get_timeleft() argument
234 struct bcm_kona_wdt *wdt = watchdog_get_drvdata(wdog); in bcm_kona_wdt_get_timeleft()
248 static int bcm_kona_wdt_start(struct watchdog_device *wdog) in bcm_kona_wdt_start() argument
250 return bcm_kona_wdt_set_timeout_reg(wdog, in bcm_kona_wdt_start()
254 static int bcm_kona_wdt_stop(struct watchdog_device *wdog) in bcm_kona_wdt_stop() argument
[all …]
Dw83627hf_wdt.c149 static int w83627hf_init(struct watchdog_device *wdog, enum chips chip) in w83627hf_init() argument
235 wdog->timeout); in w83627hf_init()
236 superio_outb(cr_wdt_timeout, wdog->timeout); in w83627hf_init()
268 static int wdt_start(struct watchdog_device *wdog) in wdt_start() argument
270 return wdt_set_time(wdog->timeout); in wdt_start()
273 static int wdt_stop(struct watchdog_device *wdog) in wdt_stop() argument
278 static int wdt_set_timeout(struct watchdog_device *wdog, unsigned int timeout) in wdt_set_timeout() argument
280 wdog->timeout = timeout; in wdt_set_timeout()
285 static unsigned int wdt_get_time(struct watchdog_device *wdog) in wdt_get_time() argument
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.c411 static int octeon_wdt_ping(struct watchdog_device __always_unused *wdog) in octeon_wdt_ping() argument
461 static int octeon_wdt_set_timeout(struct watchdog_device *wdog, in octeon_wdt_set_timeout() argument
487 octeon_wdt_ping(wdog); /* Get the irqs back on. */ in octeon_wdt_set_timeout()
491 static int octeon_wdt_start(struct watchdog_device *wdog) in octeon_wdt_start() argument
493 octeon_wdt_ping(wdog); in octeon_wdt_start()
498 static int octeon_wdt_stop(struct watchdog_device *wdog) in octeon_wdt_stop() argument
501 octeon_wdt_ping(wdog); in octeon_wdt_stop()
/Linux-v4.19/Documentation/devicetree/bindings/remoteproc/
Dqcom,adsp.txt23 Definition: must be "wdog", "fatal", "ready", "handover", "stop-ack"
84 interrupt-names = "wdog",
118 interrupt-names = "wdog",
Dqcom,q6v5.txt37 Definition: must be "wdog", "fatal", "ready", "handover", "stop-ack"
120 interrupt-names = "wdog",
Dqcom,wcnss-pil.txt34 Definition: should be "wdog", "fatal", optionally followed by "ready",
112 interrupt-names = "wdog", "fatal", "ready", "handover", "stop-ack";
/Linux-v4.19/arch/mips/include/asm/octeon/
Dcvmx-ciu2-defs.h1193 uint64_t wdog:32; member
1195 uint64_t wdog:32;
1208 uint64_t wdog:32; member
1210 uint64_t wdog:32;
1223 uint64_t wdog:32; member
1225 uint64_t wdog:32;
2180 uint64_t wdog:32; member
2182 uint64_t wdog:32;
2195 uint64_t wdog:32; member
2197 uint64_t wdog:32;
[all …]
/Linux-v4.19/arch/arm/boot/dts/
Darm-realview-eb-11mp-ctrevb.dts91 &wdog {
Dimx31.dtsi320 wdog: wdog@53fdc000 { label
Dimx35.dtsi293 wdog: wdog@53fdc000 { label
Darm-realview-eb.dts128 &wdog {
Dimx7s.dtsi405 wdog1: wdog@30280000 {
412 wdog2: wdog@30290000 {
420 wdog3: wdog@302a0000 {
428 wdog4: wdog@302b0000 {
Dpicoxcell-pc3x2.dtsi217 wdog: watchdog@50000 { label
Darm-realview-eb-mp.dtsi216 &wdog {
Dimx27.dtsi104 wdog: wdog@10002000 { label
/Linux-v4.19/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()

12