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

12

/linux-master/drivers/watchdog/
H A Drn5t618_wdt.c27 struct watchdog_device wdt_dev; member in struct:rn5t618_wdt
47 static int rn5t618_wdt_set_timeout(struct watchdog_device *wdt_dev, argument
50 struct rn5t618_wdt *wdt = watchdog_get_drvdata(wdt_dev);
65 wdt_dev->timeout = rn5t618_wdt_map[i].time;
70 static int rn5t618_wdt_start(struct watchdog_device *wdt_dev) argument
72 struct rn5t618_wdt *wdt = watchdog_get_drvdata(wdt_dev);
75 ret = rn5t618_wdt_set_timeout(wdt_dev, wdt_dev->timeout);
99 static int rn5t618_wdt_stop(struct watchdog_device *wdt_dev) argument
101 struct rn5t618_wdt *wdt = watchdog_get_drvdata(wdt_dev);
107 rn5t618_wdt_ping(struct watchdog_device *wdt_dev) argument
[all...]
H A Dlpc18xx_wdt.c52 struct watchdog_device wdt_dev; member in struct:lpc18xx_wdt_dev
61 static int lpc18xx_wdt_feed(struct watchdog_device *wdt_dev) argument
63 struct lpc18xx_wdt_dev *lpc18xx_wdt = watchdog_get_drvdata(wdt_dev);
81 struct watchdog_device *wdt_dev = &lpc18xx_wdt->wdt_dev; local
83 lpc18xx_wdt_feed(wdt_dev);
87 msecs_to_jiffies((wdt_dev->timeout * MSEC_PER_SEC) / 2));
94 static int lpc18xx_wdt_stop(struct watchdog_device *wdt_dev) argument
96 struct lpc18xx_wdt_dev *lpc18xx_wdt = watchdog_get_drvdata(wdt_dev);
107 val = DIV_ROUND_UP(lpc18xx_wdt->wdt_dev
112 lpc18xx_wdt_set_timeout(struct watchdog_device *wdt_dev, unsigned int new_timeout) argument
123 lpc18xx_wdt_get_timeleft(struct watchdog_device *wdt_dev) argument
132 lpc18xx_wdt_start(struct watchdog_device *wdt_dev) argument
155 lpc18xx_wdt_restart(struct watchdog_device *wdt_dev, unsigned long action, void *data) argument
[all...]
H A Dmeson_wdt.c56 struct watchdog_device wdt_dev; member in struct:meson_wdt_dev
61 static int meson_wdt_restart(struct watchdog_device *wdt_dev, argument
64 struct meson_wdt_dev *meson_wdt = watchdog_get_drvdata(wdt_dev);
77 static int meson_wdt_ping(struct watchdog_device *wdt_dev) argument
79 struct meson_wdt_dev *meson_wdt = watchdog_get_drvdata(wdt_dev);
86 static void meson_wdt_change_timeout(struct watchdog_device *wdt_dev, argument
89 struct meson_wdt_dev *meson_wdt = watchdog_get_drvdata(wdt_dev);
98 static int meson_wdt_set_timeout(struct watchdog_device *wdt_dev, argument
101 wdt_dev->timeout = timeout;
103 meson_wdt_change_timeout(wdt_dev, timeou
109 meson_wdt_stop(struct watchdog_device *wdt_dev) argument
121 meson_wdt_start(struct watchdog_device *wdt_dev) argument
[all...]
H A Dmeson_gxbb_wdt.c43 struct watchdog_device wdt_dev; member in struct:meson_gxbb_wdt
51 static int meson_gxbb_wdt_start(struct watchdog_device *wdt_dev) argument
53 struct meson_gxbb_wdt *data = watchdog_get_drvdata(wdt_dev);
61 static int meson_gxbb_wdt_stop(struct watchdog_device *wdt_dev) argument
63 struct meson_gxbb_wdt *data = watchdog_get_drvdata(wdt_dev);
71 static int meson_gxbb_wdt_ping(struct watchdog_device *wdt_dev) argument
73 struct meson_gxbb_wdt *data = watchdog_get_drvdata(wdt_dev);
80 static int meson_gxbb_wdt_set_timeout(struct watchdog_device *wdt_dev, argument
83 struct meson_gxbb_wdt *data = watchdog_get_drvdata(wdt_dev);
89 wdt_dev
98 meson_gxbb_wdt_get_timeleft(struct watchdog_device *wdt_dev) argument
[all...]
H A Dimgpdc_wdt.c83 struct watchdog_device wdt_dev; member in struct:pdc_wdt_dev
89 static int pdc_wdt_keepalive(struct watchdog_device *wdt_dev) argument
91 struct pdc_wdt_dev *wdt = watchdog_get_drvdata(wdt_dev);
99 static int pdc_wdt_stop(struct watchdog_device *wdt_dev) argument
102 struct pdc_wdt_dev *wdt = watchdog_get_drvdata(wdt_dev);
109 pdc_wdt_keepalive(wdt_dev);
120 val |= order_base_2(wdt->wdt_dev.timeout * clk_rate) - 1;
124 static int pdc_wdt_set_timeout(struct watchdog_device *wdt_dev, argument
127 struct pdc_wdt_dev *wdt = watchdog_get_drvdata(wdt_dev);
129 wdt->wdt_dev
137 pdc_wdt_start(struct watchdog_device *wdt_dev) argument
151 pdc_wdt_restart(struct watchdog_device *wdt_dev, unsigned long action, void *data) argument
[all...]
H A Dsunxi_wdt.c54 struct watchdog_device wdt_dev; member in struct:sunxi_wdt_dev
82 static int sunxi_wdt_restart(struct watchdog_device *wdt_dev, argument
85 struct sunxi_wdt_dev *sunxi_wdt = watchdog_get_drvdata(wdt_dev);
120 static int sunxi_wdt_ping(struct watchdog_device *wdt_dev) argument
122 struct sunxi_wdt_dev *sunxi_wdt = watchdog_get_drvdata(wdt_dev);
131 static int sunxi_wdt_set_timeout(struct watchdog_device *wdt_dev, argument
134 struct sunxi_wdt_dev *sunxi_wdt = watchdog_get_drvdata(wdt_dev);
142 sunxi_wdt->wdt_dev.timeout = timeout;
150 sunxi_wdt_ping(wdt_dev);
155 static int sunxi_wdt_stop(struct watchdog_device *wdt_dev) argument
166 sunxi_wdt_start(struct watchdog_device *wdt_dev) argument
[all...]
H A Dmax77620_wdt.c49 struct watchdog_device wdt_dev; member in struct:max77620_wdt
72 static int max77620_wdt_start(struct watchdog_device *wdt_dev) argument
74 struct max77620_wdt *wdt = watchdog_get_drvdata(wdt_dev);
80 static int max77620_wdt_stop(struct watchdog_device *wdt_dev) argument
82 struct max77620_wdt *wdt = watchdog_get_drvdata(wdt_dev);
88 static int max77620_wdt_ping(struct watchdog_device *wdt_dev) argument
90 struct max77620_wdt *wdt = watchdog_get_drvdata(wdt_dev);
96 static int max77620_wdt_set_timeout(struct watchdog_device *wdt_dev, argument
99 struct max77620_wdt *wdt = watchdog_get_drvdata(wdt_dev);
141 wdt_dev
163 struct watchdog_device *wdt_dev; local
[all...]
H A Dmtk_wdt.c72 struct watchdog_device wdt_dev; member in struct:mtk_wdt_dev
223 static int mtk_wdt_restart(struct watchdog_device *wdt_dev, argument
226 struct mtk_wdt_dev *mtk_wdt = watchdog_get_drvdata(wdt_dev);
239 static int mtk_wdt_ping(struct watchdog_device *wdt_dev) argument
241 struct mtk_wdt_dev *mtk_wdt = watchdog_get_drvdata(wdt_dev);
249 static int mtk_wdt_set_timeout(struct watchdog_device *wdt_dev, argument
252 struct mtk_wdt_dev *mtk_wdt = watchdog_get_drvdata(wdt_dev);
256 wdt_dev->timeout = timeout;
261 if (wdt_dev->pretimeout)
262 wdt_dev
277 mtk_wdt_init(struct watchdog_device *wdt_dev) argument
290 mtk_wdt_stop(struct watchdog_device *wdt_dev) argument
304 mtk_wdt_start(struct watchdog_device *wdt_dev) argument
[all...]
H A Dda9055_wdt.c52 static int da9055_wdt_set_timeout(struct watchdog_device *wdt_dev, argument
55 struct da9055_wdt_data *driver_data = watchdog_get_drvdata(wdt_dev);
76 wdt_dev->timeout = timeout;
81 static int da9055_wdt_ping(struct watchdog_device *wdt_dev) argument
83 struct da9055_wdt_data *driver_data = watchdog_get_drvdata(wdt_dev);
97 static int da9055_wdt_start(struct watchdog_device *wdt_dev) argument
99 return da9055_wdt_set_timeout(wdt_dev, wdt_dev->timeout);
102 static int da9055_wdt_stop(struct watchdog_device *wdt_dev) argument
104 return da9055_wdt_set_timeout(wdt_dev,
[all...]
H A Drtd119x_wdt.c28 struct watchdog_device wdt_dev; member in struct:rtd119x_watchdog_device
74 data->wdt_dev.timeout = val;
114 data->wdt_dev.info = &rtd119x_wdt_info;
115 data->wdt_dev.ops = &rtd119x_wdt_ops;
116 data->wdt_dev.timeout = 120;
117 data->wdt_dev.max_timeout = 0xffffffff / clk_get_rate(data->clk);
118 data->wdt_dev.min_timeout = 1;
119 data->wdt_dev.parent = dev;
121 watchdog_stop_on_reboot(&data->wdt_dev);
122 watchdog_set_drvdata(&data->wdt_dev, dat
[all...]
H A Dintel-mid_wdt.c129 struct watchdog_device *wdt_dev; local
150 wdt_dev = &mid->wd;
152 wdt_dev->info = &mid_wdt_info;
153 wdt_dev->ops = &mid_wdt_ops;
154 wdt_dev->min_timeout = MID_WDT_TIMEOUT_MIN;
155 wdt_dev->max_timeout = MID_WDT_TIMEOUT_MAX;
156 wdt_dev->timeout = MID_WDT_DEFAULT_TIMEOUT;
157 wdt_dev->parent = dev;
159 watchdog_set_nowayout(wdt_dev, WATCHDOG_NOWAYOUT);
160 watchdog_set_drvdata(wdt_dev, mi
[all...]
H A Dloongson1_wdt.c33 static int ls1x_wdt_ping(struct watchdog_device *wdt_dev) argument
35 struct ls1x_wdt_drvdata *drvdata = watchdog_get_drvdata(wdt_dev);
42 static int ls1x_wdt_set_timeout(struct watchdog_device *wdt_dev, argument
45 struct ls1x_wdt_drvdata *drvdata = watchdog_get_drvdata(wdt_dev);
46 unsigned int max_hw_heartbeat = wdt_dev->max_hw_heartbeat_ms / 1000;
49 wdt_dev->timeout = timeout;
57 static int ls1x_wdt_start(struct watchdog_device *wdt_dev) argument
59 struct ls1x_wdt_drvdata *drvdata = watchdog_get_drvdata(wdt_dev);
66 static int ls1x_wdt_stop(struct watchdog_device *wdt_dev) argument
68 struct ls1x_wdt_drvdata *drvdata = watchdog_get_drvdata(wdt_dev);
75 ls1x_wdt_restart(struct watchdog_device *wdt_dev, unsigned long action, void *data) argument
[all...]
H A Dda9052_wdt.c49 static int da9052_wdt_set_timeout(struct watchdog_device *wdt_dev, argument
52 struct da9052_wdt_data *driver_data = watchdog_get_drvdata(wdt_dev);
91 wdt_dev->timeout = timeout;
98 static int da9052_wdt_start(struct watchdog_device *wdt_dev) argument
100 return da9052_wdt_set_timeout(wdt_dev, wdt_dev->timeout);
103 static int da9052_wdt_stop(struct watchdog_device *wdt_dev) argument
105 return da9052_wdt_set_timeout(wdt_dev, 0);
108 static int da9052_wdt_ping(struct watchdog_device *wdt_dev) argument
110 struct da9052_wdt_data *driver_data = watchdog_get_drvdata(wdt_dev);
[all...]
H A Dorion_wdt.c183 static int orion_wdt_ping(struct watchdog_device *wdt_dev) argument
185 struct orion_watchdog *dev = watchdog_get_drvdata(wdt_dev);
187 writel(dev->clk_rate * wdt_dev->timeout,
190 writel(dev->clk_rate * (wdt_dev->timeout - wdt_dev->pretimeout),
196 static int armada375_start(struct watchdog_device *wdt_dev) argument
198 struct orion_watchdog *dev = watchdog_get_drvdata(wdt_dev);
202 writel(dev->clk_rate * wdt_dev->timeout,
205 writel(dev->clk_rate * (wdt_dev->timeout - wdt_dev
226 armada370_start(struct watchdog_device *wdt_dev) argument
251 orion_start(struct watchdog_device *wdt_dev) argument
270 orion_wdt_start(struct watchdog_device *wdt_dev) argument
278 orion_stop(struct watchdog_device *wdt_dev) argument
291 armada375_stop(struct watchdog_device *wdt_dev) argument
312 armada370_stop(struct watchdog_device *wdt_dev) argument
331 orion_wdt_stop(struct watchdog_device *wdt_dev) argument
359 orion_wdt_enabled(struct watchdog_device *wdt_dev) argument
366 orion_wdt_get_timeleft(struct watchdog_device *wdt_dev) argument
652 struct watchdog_device *wdt_dev = platform_get_drvdata(pdev); local
662 struct watchdog_device *wdt_dev = platform_get_drvdata(pdev); local
[all...]
H A Dwm8350_wdt.c36 static int wm8350_wdt_set_timeout(struct watchdog_device *wdt_dev, argument
39 struct wm8350 *wm8350 = watchdog_get_drvdata(wdt_dev);
60 wdt_dev->timeout = timeout;
64 static int wm8350_wdt_start(struct watchdog_device *wdt_dev) argument
66 struct wm8350 *wm8350 = watchdog_get_drvdata(wdt_dev);
84 static int wm8350_wdt_stop(struct watchdog_device *wdt_dev) argument
86 struct wm8350 *wm8350 = watchdog_get_drvdata(wdt_dev);
103 static int wm8350_wdt_ping(struct watchdog_device *wdt_dev) argument
105 struct wm8350 *wm8350 = watchdog_get_drvdata(wdt_dev);
H A Dmoxart_wdt.c33 static int moxart_wdt_restart(struct watchdog_device *wdt_dev, argument
36 struct moxart_wdt_dev *moxart_wdt = watchdog_get_drvdata(wdt_dev);
45 static int moxart_wdt_stop(struct watchdog_device *wdt_dev) argument
47 struct moxart_wdt_dev *moxart_wdt = watchdog_get_drvdata(wdt_dev);
54 static int moxart_wdt_start(struct watchdog_device *wdt_dev) argument
56 struct moxart_wdt_dev *moxart_wdt = watchdog_get_drvdata(wdt_dev);
58 writel(moxart_wdt->clock_frequency * wdt_dev->timeout,
66 static int moxart_wdt_set_timeout(struct watchdog_device *wdt_dev, argument
69 wdt_dev->timeout = timeout;
H A Duniphier_wdt.c48 struct watchdog_device wdt_dev; member in struct:uniphier_wdt_dev
201 wdev->wdt_dev.info = &uniphier_wdt_info;
202 wdev->wdt_dev.ops = &uniphier_wdt_ops;
203 wdev->wdt_dev.max_timeout = WDT_PERIOD_MAX;
204 wdev->wdt_dev.min_timeout = WDT_PERIOD_MIN;
205 wdev->wdt_dev.timeout = WDT_DEFAULT_TIMEOUT;
206 wdev->wdt_dev.parent = dev;
208 watchdog_init_timeout(&wdev->wdt_dev, timeout, dev);
209 watchdog_set_nowayout(&wdev->wdt_dev, nowayout);
210 watchdog_stop_on_reboot(&wdev->wdt_dev);
[all...]
H A Djz4740_wdt.c46 static int jz4740_wdt_ping(struct watchdog_device *wdt_dev) argument
48 struct jz4740_wdt_drvdata *drvdata = watchdog_get_drvdata(wdt_dev);
55 static int jz4740_wdt_set_timeout(struct watchdog_device *wdt_dev, argument
58 struct jz4740_wdt_drvdata *drvdata = watchdog_get_drvdata(wdt_dev);
71 wdt_dev->timeout = new_timeout;
75 static int jz4740_wdt_start(struct watchdog_device *wdt_dev) argument
77 struct jz4740_wdt_drvdata *drvdata = watchdog_get_drvdata(wdt_dev);
87 jz4740_wdt_set_timeout(wdt_dev, wdt_dev->timeout);
96 static int jz4740_wdt_stop(struct watchdog_device *wdt_dev) argument
106 jz4740_wdt_restart(struct watchdog_device *wdt_dev, unsigned long action, void *data) argument
[all...]
H A Dtxx9wdt.c43 static int txx9wdt_ping(struct watchdog_device *wdt_dev) argument
51 static int txx9wdt_start(struct watchdog_device *wdt_dev) argument
54 __raw_writel(WD_TIMER_CLK * wdt_dev->timeout, &txx9wdt_reg->cpra);
64 static int txx9wdt_stop(struct watchdog_device *wdt_dev) argument
74 static int txx9wdt_set_timeout(struct watchdog_device *wdt_dev, argument
77 wdt_dev->timeout = new_timeout;
78 txx9wdt_stop(wdt_dev);
79 txx9wdt_start(wdt_dev);
H A Dexar_wdt.c59 struct watchdog_device wdt_dev; member in struct:wdt_priv
257 struct watchdog_device *wdt_dev = &priv->wdt_dev; local
267 wdt_dev->info = &exar_wdt_info;
268 wdt_dev->ops = &exar_wdt_ops;
269 wdt_dev->min_timeout = 1;
270 wdt_dev->max_timeout = 255 * 60;
272 watchdog_init_timeout(wdt_dev, timeout, NULL);
273 watchdog_set_nowayout(wdt_dev, nowayout);
274 watchdog_stop_on_reboot(wdt_dev);
[all...]
H A Dvia_wdt.c66 static struct watchdog_device wdt_dev; variable in typeref:struct:watchdog_device
94 (!watchdog_active(&wdt_dev))) {
151 static struct watchdog_device wdt_dev = { variable in typeref:struct:watchdog_device
208 wdt_dev.timeout = timeout;
209 wdt_dev.parent = &pdev->dev;
210 watchdog_set_nowayout(&wdt_dev, nowayout);
212 wdt_dev.bootstatus |= WDIOF_CARDRESET;
214 ret = watchdog_register_device(&wdt_dev);
235 watchdog_unregister_device(&wdt_dev);
H A Dwm831x_wdt.c49 static int wm831x_wdt_start(struct watchdog_device *wdt_dev) argument
51 struct wm831x_wdt_drvdata *driver_data = watchdog_get_drvdata(wdt_dev);
72 static int wm831x_wdt_stop(struct watchdog_device *wdt_dev) argument
74 struct wm831x_wdt_drvdata *driver_data = watchdog_get_drvdata(wdt_dev);
95 static int wm831x_wdt_ping(struct watchdog_device *wdt_dev) argument
97 struct wm831x_wdt_drvdata *driver_data = watchdog_get_drvdata(wdt_dev);
129 static int wm831x_wdt_set_timeout(struct watchdog_device *wdt_dev, argument
132 struct wm831x_wdt_drvdata *driver_data = watchdog_get_drvdata(wdt_dev);
153 wdt_dev->timeout = timeout;
H A Dshwdt.c81 static int sh_wdt_start(struct watchdog_device *wdt_dev) argument
83 struct sh_wdt *wdt = watchdog_get_drvdata(wdt_dev);
124 static int sh_wdt_stop(struct watchdog_device *wdt_dev) argument
126 struct sh_wdt *wdt = watchdog_get_drvdata(wdt_dev);
146 static int sh_wdt_keepalive(struct watchdog_device *wdt_dev) argument
148 struct sh_wdt *wdt = watchdog_get_drvdata(wdt_dev);
158 static int sh_wdt_set_heartbeat(struct watchdog_device *wdt_dev, unsigned t) argument
160 struct sh_wdt *wdt = watchdog_get_drvdata(wdt_dev);
168 wdt_dev->timeout = t;
H A Dsc1200wdt.c79 static struct pnp_dev *wdt_dev; variable in typeref:struct:pnp_dev
351 if (wdt_dev || !isapnp)
354 wdt_dev = dev;
355 io = pnp_port_start(wdt_dev, 0);
356 io_len = pnp_port_len(wdt_dev, 0);
369 if (wdt_dev) {
371 wdt_dev = NULL;
/linux-master/drivers/platform/x86/
H A Dintel_scu_wdt.c21 static struct platform_device wdt_dev = { variable in typeref:struct:platform_device
65 wdt_dev.dev.platform_data = (struct intel_mid_wdt_pdata *)id->driver_data;
66 return platform_device_register(&wdt_dev);
72 platform_device_unregister(&wdt_dev);

Completed in 267 milliseconds

12