Home
last modified time | relevance | path

Searched refs:wdd (Results 1 – 8 of 8) sorted by relevance

/drivers/watchdog/
Dwatchdog_dev.c48 static struct watchdog_device *wdd; variable
149 clear_bit(WDOG_ALLOW_RELEASE, &wdd->status); in watchdog_write()
156 set_bit(WDOG_ALLOW_RELEASE, &wdd->status); in watchdog_write()
160 watchdog_ping(wdd); in watchdog_write()
183 if (wdd->ops->ioctl) { in watchdog_ioctl()
184 err = wdd->ops->ioctl(wdd, cmd, arg); in watchdog_ioctl()
191 return copy_to_user(argp, wdd->info, in watchdog_ioctl()
194 val = wdd->ops->status ? wdd->ops->status(wdd) : 0; in watchdog_ioctl()
197 return put_user(wdd->bootstatus, p); in watchdog_ioctl()
202 err = watchdog_stop(wdd); in watchdog_ioctl()
[all …]
Dwatchdog_core.c50 int watchdog_register_device(struct watchdog_device *wdd) in watchdog_register_device() argument
54 if (wdd == NULL || wdd->info == NULL || wdd->ops == NULL) in watchdog_register_device()
58 if (wdd->ops->start == NULL || wdd->ops->stop == NULL) in watchdog_register_device()
65 if (wdd->min_timeout > wdd->max_timeout) { in watchdog_register_device()
67 wdd->min_timeout = 0; in watchdog_register_device()
68 wdd->max_timeout = 0; in watchdog_register_device()
78 ret = watchdog_dev_register(wdd); in watchdog_register_device()
95 void watchdog_unregister_device(struct watchdog_device *wdd) in watchdog_unregister_device() argument
99 if (wdd == NULL) in watchdog_unregister_device()
102 ret = watchdog_dev_unregister(wdd); in watchdog_unregister_device()
Dvia_wdt.c101 static int wdt_ping(struct watchdog_device *wdd) in wdt_ping() argument
104 next_heartbeat = jiffies + wdd->timeout * HZ; in wdt_ping()
108 static int wdt_start(struct watchdog_device *wdd) in wdt_start() argument
112 writel(wdd->timeout, wdt_mem + VIA_WDT_COUNT); in wdt_start()
114 wdt_ping(wdd); in wdt_start()
119 static int wdt_stop(struct watchdog_device *wdd) in wdt_stop() argument
127 static int wdt_set_timeout(struct watchdog_device *wdd, in wdt_set_timeout() argument
131 wdd->timeout = new_timeout; in wdt_set_timeout()
Dmax63xx_wdt.c110 static int max63xx_wdt_ping(struct watchdog_device *wdd) in max63xx_wdt_ping() argument
125 static int max63xx_wdt_start(struct watchdog_device *wdd) in max63xx_wdt_start() argument
127 struct max63xx_timeout *entry = watchdog_get_drvdata(wdd); in max63xx_wdt_start()
141 max63xx_wdt_ping(wdd); in max63xx_wdt_start()
145 static int max63xx_wdt_stop(struct watchdog_device *wdd) in max63xx_wdt_stop() argument
Dpnx4008_wdt.c86 static int pnx4008_wdt_start(struct watchdog_device *wdd) in pnx4008_wdt_start() argument
103 writel(wdd->timeout * WDOG_COUNTER_RATE, WDTIM_MATCH0(wdt_base)); in pnx4008_wdt_start()
111 static int pnx4008_wdt_stop(struct watchdog_device *wdd) in pnx4008_wdt_stop() argument
121 static int pnx4008_wdt_set_timeout(struct watchdog_device *wdd, in pnx4008_wdt_set_timeout() argument
124 wdd->timeout = new_timeout; in pnx4008_wdt_set_timeout()
Dep93xx_wdt.c70 static int ep93xx_wdt_start(struct watchdog_device *wdd) in ep93xx_wdt_start() argument
80 static int ep93xx_wdt_stop(struct watchdog_device *wdd) in ep93xx_wdt_stop() argument
88 static int ep93xx_wdt_keepalive(struct watchdog_device *wdd) in ep93xx_wdt_keepalive() argument
Ds3c2410_wdt.c95 static int s3c2410wdt_keepalive(struct watchdog_device *wdd) in s3c2410wdt_keepalive() argument
113 static int s3c2410wdt_stop(struct watchdog_device *wdd) in s3c2410wdt_stop() argument
122 static int s3c2410wdt_start(struct watchdog_device *wdd) in s3c2410wdt_start() argument
157 static int s3c2410wdt_set_heartbeat(struct watchdog_device *wdd, unsigned timeout) in s3c2410wdt_set_heartbeat() argument
204 wdd->timeout = timeout; in s3c2410wdt_set_heartbeat()
Dcoh901327_wdt.c166 static int coh901327_ping(struct watchdog_device *wdd) in coh901327_ping() argument