• Home
  • Raw
  • Download

Lines Matching refs:wdd

38 	struct watchdog_device	wdd;  member
45 struct ftwdt010_wdt *to_ftwdt010_wdt(struct watchdog_device *wdd) in to_ftwdt010_wdt() argument
47 return container_of(wdd, struct ftwdt010_wdt, wdd); in to_ftwdt010_wdt()
50 static int ftwdt010_wdt_start(struct watchdog_device *wdd) in ftwdt010_wdt_start() argument
52 struct ftwdt010_wdt *gwdt = to_ftwdt010_wdt(wdd); in ftwdt010_wdt_start()
55 writel(wdd->timeout * WDT_CLOCK, gwdt->base + FTWDT010_WDLOAD); in ftwdt010_wdt_start()
68 static int ftwdt010_wdt_stop(struct watchdog_device *wdd) in ftwdt010_wdt_stop() argument
70 struct ftwdt010_wdt *gwdt = to_ftwdt010_wdt(wdd); in ftwdt010_wdt_stop()
77 static int ftwdt010_wdt_ping(struct watchdog_device *wdd) in ftwdt010_wdt_ping() argument
79 struct ftwdt010_wdt *gwdt = to_ftwdt010_wdt(wdd); in ftwdt010_wdt_ping()
86 static int ftwdt010_wdt_set_timeout(struct watchdog_device *wdd, in ftwdt010_wdt_set_timeout() argument
89 wdd->timeout = timeout; in ftwdt010_wdt_set_timeout()
90 if (watchdog_active(wdd)) in ftwdt010_wdt_set_timeout()
91 ftwdt010_wdt_start(wdd); in ftwdt010_wdt_set_timeout()
100 watchdog_notify_pretimeout(&gwdt->wdd); in ftwdt010_wdt_interrupt()
138 gwdt->wdd.info = &ftwdt010_wdt_info; in ftwdt010_wdt_probe()
139 gwdt->wdd.ops = &ftwdt010_wdt_ops; in ftwdt010_wdt_probe()
140 gwdt->wdd.min_timeout = 1; in ftwdt010_wdt_probe()
141 gwdt->wdd.max_timeout = 0xFFFFFFFF / WDT_CLOCK; in ftwdt010_wdt_probe()
142 gwdt->wdd.parent = dev; in ftwdt010_wdt_probe()
148 gwdt->wdd.timeout = 13U; in ftwdt010_wdt_probe()
149 watchdog_init_timeout(&gwdt->wdd, 0, dev); in ftwdt010_wdt_probe()
167 ret = devm_watchdog_register_device(dev, &gwdt->wdd); in ftwdt010_wdt_probe()
195 if (watchdog_active(&gwdt->wdd)) { in ftwdt010_wdt_resume()