Home
last modified time | relevance | path

Searched refs:wdt_dev (Results 1 – 25 of 31) sorted by relevance

12

/linux/drivers/watchdog/
A Dmeson_wdt.c56 struct watchdog_device wdt_dev; member
101 wdt_dev->timeout = timeout; in meson_wdt_set_timeout()
104 meson_wdt_ping(wdt_dev); in meson_wdt_set_timeout()
126 meson_wdt_change_timeout(wdt_dev, meson_wdt->wdt_dev.timeout); in meson_wdt_start()
127 meson_wdt_ping(wdt_dev); in meson_wdt_start()
177 meson_wdt->wdt_dev.parent = dev; in meson_wdt_probe()
179 meson_wdt->wdt_dev.ops = &meson_wdt_ops; in meson_wdt_probe()
180 meson_wdt->wdt_dev.max_timeout = in meson_wdt_probe()
185 meson_wdt->wdt_dev.max_timeout); in meson_wdt_probe()
193 meson_wdt_stop(&meson_wdt->wdt_dev); in meson_wdt_probe()
[all …]
A Dmeson_gxbb_wdt.c43 struct watchdog_device wdt_dev; member
89 wdt_dev->timeout = timeout; in meson_gxbb_wdt_set_timeout()
91 meson_gxbb_wdt_ping(wdt_dev); in meson_gxbb_wdt_set_timeout()
126 if (watchdog_active(&data->wdt_dev)) in meson_gxbb_wdt_resume()
127 meson_gxbb_wdt_start(&data->wdt_dev); in meson_gxbb_wdt_resume()
136 if (watchdog_active(&data->wdt_dev)) in meson_gxbb_wdt_suspend()
137 meson_gxbb_wdt_stop(&data->wdt_dev); in meson_gxbb_wdt_suspend()
184 data->wdt_dev.parent = dev; in meson_gxbb_wdt_probe()
186 data->wdt_dev.ops = &meson_gxbb_wdt_ops; in meson_gxbb_wdt_probe()
188 data->wdt_dev.min_timeout = 1; in meson_gxbb_wdt_probe()
[all …]
A Dimgpdc_wdt.c83 struct watchdog_device wdt_dev; member
109 pdc_wdt_keepalive(wdt_dev); in pdc_wdt_stop()
129 wdt->wdt_dev.timeout = new_timeout; in pdc_wdt_set_timeout()
223 pdc_wdt->wdt_dev.info = &pdc_wdt_info; in pdc_wdt_probe()
224 pdc_wdt->wdt_dev.ops = &pdc_wdt_ops; in pdc_wdt_probe()
228 pdc_wdt->wdt_dev.max_timeout = div; in pdc_wdt_probe()
229 pdc_wdt->wdt_dev.timeout = PDC_WDT_DEF_TIMEOUT; in pdc_wdt_probe()
230 pdc_wdt->wdt_dev.parent = dev; in pdc_wdt_probe()
235 pdc_wdt_stop(&pdc_wdt->wdt_dev); in pdc_wdt_probe()
268 watchdog_stop_on_reboot(&pdc_wdt->wdt_dev); in pdc_wdt_probe()
[all …]
A Dlpc18xx_wdt.c52 struct watchdog_device wdt_dev; member
81 struct watchdog_device *wdt_dev = &lpc18xx_wdt->wdt_dev; in lpc18xx_wdt_timer_feed() local
83 lpc18xx_wdt_feed(wdt_dev); in lpc18xx_wdt_timer_feed()
117 lpc18xx_wdt->wdt_dev.timeout = new_timeout; in lpc18xx_wdt_set_timeout()
150 lpc18xx_wdt_feed(wdt_dev); in lpc18xx_wdt_start()
232 lpc18xx_wdt->wdt_dev.info = &lpc18xx_wdt_info; in lpc18xx_wdt_probe()
233 lpc18xx_wdt->wdt_dev.ops = &lpc18xx_wdt_ops; in lpc18xx_wdt_probe()
241 lpc18xx_wdt->wdt_dev.timeout = min(lpc18xx_wdt->wdt_dev.max_timeout, in lpc18xx_wdt_probe()
246 lpc18xx_wdt->wdt_dev.parent = dev; in lpc18xx_wdt_probe()
255 watchdog_set_nowayout(&lpc18xx_wdt->wdt_dev, nowayout); in lpc18xx_wdt_probe()
[all …]
A Dmax77620_wdt.c49 struct watchdog_device wdt_dev; member
141 wdt_dev->timeout = wdt_timeout; in max77620_wdt_set_timeout()
163 struct watchdog_device *wdt_dev; in max77620_wdt_probe() local
180 wdt_dev = &wdt->wdt_dev; in max77620_wdt_probe()
182 wdt_dev->ops = &max77620_wdt_ops; in max77620_wdt_probe()
183 wdt_dev->min_timeout = 2; in max77620_wdt_probe()
184 wdt_dev->max_timeout = 128; in max77620_wdt_probe()
216 wdt_dev->timeout = 2; in max77620_wdt_probe()
219 wdt_dev->timeout = 16; in max77620_wdt_probe()
222 wdt_dev->timeout = 64; in max77620_wdt_probe()
[all …]
A Dmtk_wdt.c72 struct watchdog_device wdt_dev; member
256 wdt_dev->timeout = timeout; in mtk_wdt_set_timeout()
261 if (wdt_dev->pretimeout) in mtk_wdt_set_timeout()
272 mtk_wdt_ping(wdt_dev); in mtk_wdt_set_timeout()
286 mtk_wdt_set_timeout(wdt_dev, wdt_dev->timeout); in mtk_wdt_init()
311 ret = mtk_wdt_set_timeout(wdt_dev, wdt_dev->timeout); in mtk_wdt_start()
316 if (wdt_dev->pretimeout) in mtk_wdt_start()
407 &mtk_wdt->wdt_dev); in mtk_wdt_probe()
424 mtk_wdt->wdt_dev.parent = dev; in mtk_wdt_probe()
432 mtk_wdt_init(&mtk_wdt->wdt_dev); in mtk_wdt_probe()
[all …]
A Drn5t618_wdt.c27 struct watchdog_device wdt_dev; member
65 wdt_dev->timeout = rn5t618_wdt_map[i].time; in rn5t618_wdt_set_timeout()
75 ret = rn5t618_wdt_set_timeout(wdt_dev, wdt_dev->timeout); in rn5t618_wdt_start()
158 wdt->wdt_dev.info = &rn5t618_wdt_info; in rn5t618_wdt_probe()
159 wdt->wdt_dev.ops = &rn5t618_wdt_ops; in rn5t618_wdt_probe()
160 wdt->wdt_dev.min_timeout = min_timeout; in rn5t618_wdt_probe()
161 wdt->wdt_dev.max_timeout = max_timeout; in rn5t618_wdt_probe()
162 wdt->wdt_dev.timeout = max_timeout; in rn5t618_wdt_probe()
163 wdt->wdt_dev.parent = dev; in rn5t618_wdt_probe()
173 wdt->wdt_dev.bootstatus = WDIOF_CARDRESET; in rn5t618_wdt_probe()
[all …]
A Dsunxi_wdt.c54 struct watchdog_device wdt_dev; member
142 sunxi_wdt->wdt_dev.timeout = timeout; in sunxi_wdt_set_timeout()
150 sunxi_wdt_ping(wdt_dev); in sunxi_wdt_set_timeout()
175 sunxi_wdt->wdt_dev.timeout); in sunxi_wdt_start()
265 sunxi_wdt->wdt_dev.info = &sunxi_wdt_info; in sunxi_wdt_probe()
266 sunxi_wdt->wdt_dev.ops = &sunxi_wdt_ops; in sunxi_wdt_probe()
267 sunxi_wdt->wdt_dev.timeout = WDT_MAX_TIMEOUT; in sunxi_wdt_probe()
270 sunxi_wdt->wdt_dev.parent = dev; in sunxi_wdt_probe()
278 sunxi_wdt_stop(&sunxi_wdt->wdt_dev); in sunxi_wdt_probe()
280 watchdog_stop_on_reboot(&sunxi_wdt->wdt_dev); in sunxi_wdt_probe()
[all …]
A Drtd119x_wdt.c28 struct watchdog_device wdt_dev; member
74 data->wdt_dev.timeout = val; in rtd119x_wdt_set_timeout()
114 data->wdt_dev.info = &rtd119x_wdt_info; in rtd119x_wdt_probe()
115 data->wdt_dev.ops = &rtd119x_wdt_ops; in rtd119x_wdt_probe()
116 data->wdt_dev.timeout = 120; in rtd119x_wdt_probe()
118 data->wdt_dev.min_timeout = 1; in rtd119x_wdt_probe()
119 data->wdt_dev.parent = dev; in rtd119x_wdt_probe()
121 watchdog_stop_on_reboot(&data->wdt_dev); in rtd119x_wdt_probe()
122 watchdog_set_drvdata(&data->wdt_dev, data); in rtd119x_wdt_probe()
126 rtd119x_wdt_set_timeout(&data->wdt_dev, data->wdt_dev.timeout); in rtd119x_wdt_probe()
[all …]
A Dorion_wdt.c187 writel(dev->clk_rate * wdt_dev->timeout, in orion_wdt_ping()
190 writel(dev->clk_rate * (wdt_dev->timeout - wdt_dev->pretimeout), in orion_wdt_ping()
202 writel(dev->clk_rate * wdt_dev->timeout, in armada375_start()
205 writel(dev->clk_rate * (wdt_dev->timeout - wdt_dev->pretimeout), in armada375_start()
232 writel(dev->clk_rate * wdt_dev->timeout, in armada370_start()
256 writel(dev->clk_rate * wdt_dev->timeout, in orion_start()
275 return dev->data->start(wdt_dev); in orion_wdt_start()
305 if (wdt_dev->info->options & WDIOF_PRETIMEOUT) in armada375_stop()
335 return dev->data->stop(wdt_dev); in orion_wdt_stop()
655 watchdog_unregister_device(wdt_dev); in orion_wdt_remove()
[all …]
A Dintel-mid_wdt.c128 struct watchdog_device *wdt_dev; in mid_wdt_probe() local
149 wdt_dev = &mid->wd; in mid_wdt_probe()
151 wdt_dev->info = &mid_wdt_info; in mid_wdt_probe()
152 wdt_dev->ops = &mid_wdt_ops; in mid_wdt_probe()
153 wdt_dev->min_timeout = MID_WDT_TIMEOUT_MIN; in mid_wdt_probe()
154 wdt_dev->max_timeout = MID_WDT_TIMEOUT_MAX; in mid_wdt_probe()
155 wdt_dev->timeout = MID_WDT_DEFAULT_TIMEOUT; in mid_wdt_probe()
156 wdt_dev->parent = dev; in mid_wdt_probe()
159 watchdog_set_drvdata(wdt_dev, mid); in mid_wdt_probe()
167 wdt_dev); in mid_wdt_probe()
[all …]
A Djz4740_wdt.c46 static int jz4740_wdt_ping(struct watchdog_device *wdt_dev) in jz4740_wdt_ping() argument
48 struct jz4740_wdt_drvdata *drvdata = watchdog_get_drvdata(wdt_dev); in jz4740_wdt_ping()
55 static int jz4740_wdt_set_timeout(struct watchdog_device *wdt_dev, in jz4740_wdt_set_timeout() argument
58 struct jz4740_wdt_drvdata *drvdata = watchdog_get_drvdata(wdt_dev); in jz4740_wdt_set_timeout()
71 wdt_dev->timeout = new_timeout; in jz4740_wdt_set_timeout()
75 static int jz4740_wdt_start(struct watchdog_device *wdt_dev) in jz4740_wdt_start() argument
87 jz4740_wdt_set_timeout(wdt_dev, wdt_dev->timeout); in jz4740_wdt_start()
96 static int jz4740_wdt_stop(struct watchdog_device *wdt_dev) in jz4740_wdt_stop() argument
106 static int jz4740_wdt_restart(struct watchdog_device *wdt_dev, in jz4740_wdt_restart() argument
109 wdt_dev->timeout = 0; in jz4740_wdt_restart()
[all …]
A Dloongson1_wdt.c33 static int ls1x_wdt_ping(struct watchdog_device *wdt_dev) in ls1x_wdt_ping() argument
35 struct ls1x_wdt_drvdata *drvdata = watchdog_get_drvdata(wdt_dev); in ls1x_wdt_ping()
42 static int ls1x_wdt_set_timeout(struct watchdog_device *wdt_dev, in ls1x_wdt_set_timeout() argument
45 struct ls1x_wdt_drvdata *drvdata = watchdog_get_drvdata(wdt_dev); in ls1x_wdt_set_timeout()
49 wdt_dev->timeout = timeout; in ls1x_wdt_set_timeout()
57 static int ls1x_wdt_start(struct watchdog_device *wdt_dev) in ls1x_wdt_start() argument
59 struct ls1x_wdt_drvdata *drvdata = watchdog_get_drvdata(wdt_dev); in ls1x_wdt_start()
66 static int ls1x_wdt_stop(struct watchdog_device *wdt_dev) in ls1x_wdt_stop() argument
68 struct ls1x_wdt_drvdata *drvdata = watchdog_get_drvdata(wdt_dev); in ls1x_wdt_stop()
75 static int ls1x_wdt_restart(struct watchdog_device *wdt_dev, in ls1x_wdt_restart() argument
[all …]
A Duniphier_wdt.c48 struct watchdog_device wdt_dev; member
201 wdev->wdt_dev.info = &uniphier_wdt_info; in uniphier_wdt_probe()
202 wdev->wdt_dev.ops = &uniphier_wdt_ops; in uniphier_wdt_probe()
203 wdev->wdt_dev.max_timeout = WDT_PERIOD_MAX; in uniphier_wdt_probe()
204 wdev->wdt_dev.min_timeout = WDT_PERIOD_MIN; in uniphier_wdt_probe()
205 wdev->wdt_dev.timeout = WDT_DEFAULT_TIMEOUT; in uniphier_wdt_probe()
206 wdev->wdt_dev.parent = dev; in uniphier_wdt_probe()
210 watchdog_stop_on_reboot(&wdev->wdt_dev); in uniphier_wdt_probe()
212 watchdog_set_drvdata(&wdev->wdt_dev, wdev); in uniphier_wdt_probe()
214 uniphier_watchdog_stop(&wdev->wdt_dev); in uniphier_wdt_probe()
[all …]
A Dda9055_wdt.c52 static int da9055_wdt_set_timeout(struct watchdog_device *wdt_dev, in da9055_wdt_set_timeout() argument
55 struct da9055_wdt_data *driver_data = watchdog_get_drvdata(wdt_dev); in da9055_wdt_set_timeout()
76 wdt_dev->timeout = timeout; in da9055_wdt_set_timeout()
81 static int da9055_wdt_ping(struct watchdog_device *wdt_dev) in da9055_wdt_ping() argument
83 struct da9055_wdt_data *driver_data = watchdog_get_drvdata(wdt_dev); in da9055_wdt_ping()
97 static int da9055_wdt_start(struct watchdog_device *wdt_dev) in da9055_wdt_start() argument
99 return da9055_wdt_set_timeout(wdt_dev, wdt_dev->timeout); in da9055_wdt_start()
102 static int da9055_wdt_stop(struct watchdog_device *wdt_dev) in da9055_wdt_stop() argument
104 return da9055_wdt_set_timeout(wdt_dev, 0); in da9055_wdt_stop()
A Dda9052_wdt.c49 static int da9052_wdt_set_timeout(struct watchdog_device *wdt_dev, in da9052_wdt_set_timeout() argument
52 struct da9052_wdt_data *driver_data = watchdog_get_drvdata(wdt_dev); in da9052_wdt_set_timeout()
91 wdt_dev->timeout = timeout; in da9052_wdt_set_timeout()
98 static int da9052_wdt_start(struct watchdog_device *wdt_dev) in da9052_wdt_start() argument
100 return da9052_wdt_set_timeout(wdt_dev, wdt_dev->timeout); in da9052_wdt_start()
103 static int da9052_wdt_stop(struct watchdog_device *wdt_dev) in da9052_wdt_stop() argument
105 return da9052_wdt_set_timeout(wdt_dev, 0); in da9052_wdt_stop()
108 static int da9052_wdt_ping(struct watchdog_device *wdt_dev) in da9052_wdt_ping() argument
110 struct da9052_wdt_data *driver_data = watchdog_get_drvdata(wdt_dev); in da9052_wdt_ping()
A Dexar_wdt.c59 struct watchdog_device wdt_dev; member
257 struct watchdog_device *wdt_dev = &priv->wdt_dev; in exar_wdt_probe() local
267 wdt_dev->info = &exar_wdt_info; in exar_wdt_probe()
268 wdt_dev->ops = &exar_wdt_ops; in exar_wdt_probe()
269 wdt_dev->min_timeout = 1; in exar_wdt_probe()
270 wdt_dev->max_timeout = 255 * 60; in exar_wdt_probe()
274 watchdog_stop_on_reboot(wdt_dev); in exar_wdt_probe()
275 watchdog_stop_on_unregister(wdt_dev); in exar_wdt_probe()
276 watchdog_set_drvdata(wdt_dev, priv); in exar_wdt_probe()
282 exar_wdt_set_timeout(wdt_dev, timeout); in exar_wdt_probe()
[all …]
A Dmoxart_wdt.c33 static int moxart_wdt_restart(struct watchdog_device *wdt_dev, in moxart_wdt_restart() argument
36 struct moxart_wdt_dev *moxart_wdt = watchdog_get_drvdata(wdt_dev); in moxart_wdt_restart()
45 static int moxart_wdt_stop(struct watchdog_device *wdt_dev) in moxart_wdt_stop() argument
47 struct moxart_wdt_dev *moxart_wdt = watchdog_get_drvdata(wdt_dev); in moxart_wdt_stop()
54 static int moxart_wdt_start(struct watchdog_device *wdt_dev) in moxart_wdt_start() argument
56 struct moxart_wdt_dev *moxart_wdt = watchdog_get_drvdata(wdt_dev); in moxart_wdt_start()
58 writel(moxart_wdt->clock_frequency * wdt_dev->timeout, in moxart_wdt_start()
66 static int moxart_wdt_set_timeout(struct watchdog_device *wdt_dev, in moxart_wdt_set_timeout() argument
69 wdt_dev->timeout = timeout; in moxart_wdt_set_timeout()
A Dwm8350_wdt.c36 static int wm8350_wdt_set_timeout(struct watchdog_device *wdt_dev, in wm8350_wdt_set_timeout() argument
39 struct wm8350 *wm8350 = watchdog_get_drvdata(wdt_dev); in wm8350_wdt_set_timeout()
60 wdt_dev->timeout = timeout; in wm8350_wdt_set_timeout()
64 static int wm8350_wdt_start(struct watchdog_device *wdt_dev) in wm8350_wdt_start() argument
66 struct wm8350 *wm8350 = watchdog_get_drvdata(wdt_dev); in wm8350_wdt_start()
84 static int wm8350_wdt_stop(struct watchdog_device *wdt_dev) in wm8350_wdt_stop() argument
86 struct wm8350 *wm8350 = watchdog_get_drvdata(wdt_dev); in wm8350_wdt_stop()
103 static int wm8350_wdt_ping(struct watchdog_device *wdt_dev) in wm8350_wdt_ping() argument
105 struct wm8350 *wm8350 = watchdog_get_drvdata(wdt_dev); in wm8350_wdt_ping()
A Dvia_wdt.c66 static struct watchdog_device wdt_dev; variable
94 (!watchdog_active(&wdt_dev))) { in wdt_timer_tick()
151 static struct watchdog_device wdt_dev = { variable
208 wdt_dev.timeout = timeout; in wdt_probe()
209 wdt_dev.parent = &pdev->dev; in wdt_probe()
210 watchdog_set_nowayout(&wdt_dev, nowayout); in wdt_probe()
212 wdt_dev.bootstatus |= WDIOF_CARDRESET; in wdt_probe()
214 ret = watchdog_register_device(&wdt_dev); in wdt_probe()
235 watchdog_unregister_device(&wdt_dev); in wdt_remove()
A Dtxx9wdt.c43 static int txx9wdt_ping(struct watchdog_device *wdt_dev) in txx9wdt_ping() argument
51 static int txx9wdt_start(struct watchdog_device *wdt_dev) in txx9wdt_start() argument
54 __raw_writel(WD_TIMER_CLK * wdt_dev->timeout, &txx9wdt_reg->cpra); in txx9wdt_start()
64 static int txx9wdt_stop(struct watchdog_device *wdt_dev) in txx9wdt_stop() argument
74 static int txx9wdt_set_timeout(struct watchdog_device *wdt_dev, in txx9wdt_set_timeout() argument
77 wdt_dev->timeout = new_timeout; in txx9wdt_set_timeout()
78 txx9wdt_stop(wdt_dev); in txx9wdt_set_timeout()
79 txx9wdt_start(wdt_dev); in txx9wdt_set_timeout()
A Dwm831x_wdt.c49 static int wm831x_wdt_start(struct watchdog_device *wdt_dev) in wm831x_wdt_start() argument
51 struct wm831x_wdt_drvdata *driver_data = watchdog_get_drvdata(wdt_dev); in wm831x_wdt_start()
72 static int wm831x_wdt_stop(struct watchdog_device *wdt_dev) in wm831x_wdt_stop() argument
74 struct wm831x_wdt_drvdata *driver_data = watchdog_get_drvdata(wdt_dev); in wm831x_wdt_stop()
95 static int wm831x_wdt_ping(struct watchdog_device *wdt_dev) in wm831x_wdt_ping() argument
97 struct wm831x_wdt_drvdata *driver_data = watchdog_get_drvdata(wdt_dev); in wm831x_wdt_ping()
129 static int wm831x_wdt_set_timeout(struct watchdog_device *wdt_dev, in wm831x_wdt_set_timeout() argument
132 struct wm831x_wdt_drvdata *driver_data = watchdog_get_drvdata(wdt_dev); in wm831x_wdt_set_timeout()
153 wdt_dev->timeout = timeout; in wm831x_wdt_set_timeout()
A Dshwdt.c81 static int sh_wdt_start(struct watchdog_device *wdt_dev) in sh_wdt_start() argument
83 struct sh_wdt *wdt = watchdog_get_drvdata(wdt_dev); in sh_wdt_start()
124 static int sh_wdt_stop(struct watchdog_device *wdt_dev) in sh_wdt_stop() argument
126 struct sh_wdt *wdt = watchdog_get_drvdata(wdt_dev); in sh_wdt_stop()
146 static int sh_wdt_keepalive(struct watchdog_device *wdt_dev) in sh_wdt_keepalive() argument
148 struct sh_wdt *wdt = watchdog_get_drvdata(wdt_dev); in sh_wdt_keepalive()
158 static int sh_wdt_set_heartbeat(struct watchdog_device *wdt_dev, unsigned t) in sh_wdt_set_heartbeat() argument
160 struct sh_wdt *wdt = watchdog_get_drvdata(wdt_dev); in sh_wdt_set_heartbeat()
168 wdt_dev->timeout = t; in sh_wdt_set_heartbeat()
A Dw83627hf_wdt.c329 static struct watchdog_device wdt_dev = { variable
519 watchdog_init_timeout(&wdt_dev, timeout, NULL); in wdt_init()
520 watchdog_set_nowayout(&wdt_dev, nowayout); in wdt_init()
521 watchdog_stop_on_reboot(&wdt_dev); in wdt_init()
523 ret = w83627hf_init(&wdt_dev, chip); in wdt_init()
529 ret = watchdog_register_device(&wdt_dev); in wdt_init()
534 wdt_dev.timeout, nowayout); in wdt_init()
541 watchdog_unregister_device(&wdt_dev); in wdt_exit()
/linux/drivers/platform/x86/
A Dintel_scu_wdt.c22 static struct platform_device wdt_dev = { variable
66 wdt_dev.dev.platform_data = (struct intel_mid_wdt_pdata *)id->driver_data; in register_mid_wdt()
67 return platform_device_register(&wdt_dev); in register_mid_wdt()
73 platform_device_unregister(&wdt_dev); in unregister_mid_wdt()

Completed in 37 milliseconds

12