Home
last modified time | relevance | path

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

/linux-4.4.14/drivers/watchdog/
Dmeson_wdt.c46 struct watchdog_device wdt_dev; member
67 static int meson_wdt_ping(struct watchdog_device *wdt_dev) in meson_wdt_ping() argument
69 struct meson_wdt_dev *meson_wdt = watchdog_get_drvdata(wdt_dev); in meson_wdt_ping()
76 static void meson_wdt_change_timeout(struct watchdog_device *wdt_dev, in meson_wdt_change_timeout() argument
79 struct meson_wdt_dev *meson_wdt = watchdog_get_drvdata(wdt_dev); in meson_wdt_change_timeout()
88 static int meson_wdt_set_timeout(struct watchdog_device *wdt_dev, in meson_wdt_set_timeout() argument
91 wdt_dev->timeout = timeout; in meson_wdt_set_timeout()
93 meson_wdt_change_timeout(wdt_dev, timeout); in meson_wdt_set_timeout()
94 meson_wdt_ping(wdt_dev); in meson_wdt_set_timeout()
99 static int meson_wdt_stop(struct watchdog_device *wdt_dev) in meson_wdt_stop() argument
[all …]
Dmtk_wdt.c65 struct watchdog_device wdt_dev; member
87 static int mtk_wdt_ping(struct watchdog_device *wdt_dev) in mtk_wdt_ping() argument
89 struct mtk_wdt_dev *mtk_wdt = watchdog_get_drvdata(wdt_dev); in mtk_wdt_ping()
97 static int mtk_wdt_set_timeout(struct watchdog_device *wdt_dev, in mtk_wdt_set_timeout() argument
100 struct mtk_wdt_dev *mtk_wdt = watchdog_get_drvdata(wdt_dev); in mtk_wdt_set_timeout()
104 wdt_dev->timeout = timeout; in mtk_wdt_set_timeout()
113 mtk_wdt_ping(wdt_dev); in mtk_wdt_set_timeout()
118 static int mtk_wdt_stop(struct watchdog_device *wdt_dev) in mtk_wdt_stop() argument
120 struct mtk_wdt_dev *mtk_wdt = watchdog_get_drvdata(wdt_dev); in mtk_wdt_stop()
132 static int mtk_wdt_start(struct watchdog_device *wdt_dev) in mtk_wdt_start() argument
[all …]
Drn5t618_wdt.c33 struct watchdog_device wdt_dev; member
53 static int rn5t618_wdt_set_timeout(struct watchdog_device *wdt_dev, in rn5t618_wdt_set_timeout() argument
56 struct rn5t618_wdt *wdt = watchdog_get_drvdata(wdt_dev); in rn5t618_wdt_set_timeout()
71 wdt_dev->timeout = rn5t618_wdt_map[i].time; in rn5t618_wdt_set_timeout()
76 static int rn5t618_wdt_start(struct watchdog_device *wdt_dev) in rn5t618_wdt_start() argument
78 struct rn5t618_wdt *wdt = watchdog_get_drvdata(wdt_dev); in rn5t618_wdt_start()
81 ret = rn5t618_wdt_set_timeout(wdt_dev, wdt_dev->timeout); in rn5t618_wdt_start()
105 static int rn5t618_wdt_stop(struct watchdog_device *wdt_dev) in rn5t618_wdt_stop() argument
107 struct rn5t618_wdt *wdt = watchdog_get_drvdata(wdt_dev); in rn5t618_wdt_stop()
113 static int rn5t618_wdt_ping(struct watchdog_device *wdt_dev) in rn5t618_wdt_ping() argument
[all …]
Dlpc18xx_wdt.c56 struct watchdog_device wdt_dev; member
66 static int lpc18xx_wdt_feed(struct watchdog_device *wdt_dev) in lpc18xx_wdt_feed() argument
68 struct lpc18xx_wdt_dev *lpc18xx_wdt = watchdog_get_drvdata(wdt_dev); in lpc18xx_wdt_feed()
85 struct watchdog_device *wdt_dev = (struct watchdog_device *)data; in lpc18xx_wdt_timer_feed() local
86 struct lpc18xx_wdt_dev *lpc18xx_wdt = watchdog_get_drvdata(wdt_dev); in lpc18xx_wdt_timer_feed()
88 lpc18xx_wdt_feed(wdt_dev); in lpc18xx_wdt_timer_feed()
92 msecs_to_jiffies((wdt_dev->timeout * MSEC_PER_SEC) / 2)); in lpc18xx_wdt_timer_feed()
99 static int lpc18xx_wdt_stop(struct watchdog_device *wdt_dev) in lpc18xx_wdt_stop() argument
101 lpc18xx_wdt_timer_feed((unsigned long)wdt_dev); in lpc18xx_wdt_stop()
110 val = DIV_ROUND_UP(lpc18xx_wdt->wdt_dev.timeout * lpc18xx_wdt->clk_rate, in __lpc18xx_wdt_set_timeout()
[all …]
Dimgpdc_wdt.c86 struct watchdog_device wdt_dev; member
93 static int pdc_wdt_keepalive(struct watchdog_device *wdt_dev) in pdc_wdt_keepalive() argument
95 struct pdc_wdt_dev *wdt = watchdog_get_drvdata(wdt_dev); in pdc_wdt_keepalive()
103 static int pdc_wdt_stop(struct watchdog_device *wdt_dev) in pdc_wdt_stop() argument
106 struct pdc_wdt_dev *wdt = watchdog_get_drvdata(wdt_dev); in pdc_wdt_stop()
113 pdc_wdt_keepalive(wdt_dev); in pdc_wdt_stop()
124 val |= order_base_2(wdt->wdt_dev.timeout * clk_rate) - 1; in __pdc_wdt_set_timeout()
128 static int pdc_wdt_set_timeout(struct watchdog_device *wdt_dev, in pdc_wdt_set_timeout() argument
131 struct pdc_wdt_dev *wdt = watchdog_get_drvdata(wdt_dev); in pdc_wdt_set_timeout()
133 wdt->wdt_dev.timeout = new_timeout; in pdc_wdt_set_timeout()
[all …]
Dsunxi_wdt.c60 struct watchdog_device wdt_dev; member
126 static int sunxi_wdt_ping(struct watchdog_device *wdt_dev) in sunxi_wdt_ping() argument
128 struct sunxi_wdt_dev *sunxi_wdt = watchdog_get_drvdata(wdt_dev); in sunxi_wdt_ping()
137 static int sunxi_wdt_set_timeout(struct watchdog_device *wdt_dev, in sunxi_wdt_set_timeout() argument
140 struct sunxi_wdt_dev *sunxi_wdt = watchdog_get_drvdata(wdt_dev); in sunxi_wdt_set_timeout()
148 sunxi_wdt->wdt_dev.timeout = timeout; in sunxi_wdt_set_timeout()
155 sunxi_wdt_ping(wdt_dev); in sunxi_wdt_set_timeout()
160 static int sunxi_wdt_stop(struct watchdog_device *wdt_dev) in sunxi_wdt_stop() argument
162 struct sunxi_wdt_dev *sunxi_wdt = watchdog_get_drvdata(wdt_dev); in sunxi_wdt_stop()
171 static int sunxi_wdt_start(struct watchdog_device *wdt_dev) in sunxi_wdt_start() argument
[all …]
Dintel-mid_wdt.c116 struct watchdog_device *wdt_dev; in mid_wdt_probe() local
131 wdt_dev = devm_kzalloc(&pdev->dev, sizeof(*wdt_dev), GFP_KERNEL); in mid_wdt_probe()
132 if (!wdt_dev) in mid_wdt_probe()
135 wdt_dev->info = &mid_wdt_info; in mid_wdt_probe()
136 wdt_dev->ops = &mid_wdt_ops; in mid_wdt_probe()
137 wdt_dev->min_timeout = MID_WDT_TIMEOUT_MIN; in mid_wdt_probe()
138 wdt_dev->max_timeout = MID_WDT_TIMEOUT_MAX; in mid_wdt_probe()
139 wdt_dev->timeout = MID_WDT_DEFAULT_TIMEOUT; in mid_wdt_probe()
140 wdt_dev->parent = &pdev->dev; in mid_wdt_probe()
142 watchdog_set_drvdata(wdt_dev, &pdev->dev); in mid_wdt_probe()
[all …]
Dda9055_wdt.c57 static int da9055_wdt_set_timeout(struct watchdog_device *wdt_dev, in da9055_wdt_set_timeout() argument
60 struct da9055_wdt_data *driver_data = watchdog_get_drvdata(wdt_dev); in da9055_wdt_set_timeout()
81 wdt_dev->timeout = timeout; in da9055_wdt_set_timeout()
86 static int da9055_wdt_ping(struct watchdog_device *wdt_dev) in da9055_wdt_ping() argument
88 struct da9055_wdt_data *driver_data = watchdog_get_drvdata(wdt_dev); in da9055_wdt_ping()
106 static void da9055_wdt_ref(struct watchdog_device *wdt_dev) in da9055_wdt_ref() argument
108 struct da9055_wdt_data *driver_data = watchdog_get_drvdata(wdt_dev); in da9055_wdt_ref()
113 static void da9055_wdt_unref(struct watchdog_device *wdt_dev) in da9055_wdt_unref() argument
115 struct da9055_wdt_data *driver_data = watchdog_get_drvdata(wdt_dev); in da9055_wdt_unref()
120 static int da9055_wdt_start(struct watchdog_device *wdt_dev) in da9055_wdt_start() argument
[all …]
Dda9052_wdt.c58 static int da9052_wdt_set_timeout(struct watchdog_device *wdt_dev, in da9052_wdt_set_timeout() argument
61 struct da9052_wdt_data *driver_data = watchdog_get_drvdata(wdt_dev); in da9052_wdt_set_timeout()
100 wdt_dev->timeout = timeout; in da9052_wdt_set_timeout()
107 static void da9052_wdt_ref(struct watchdog_device *wdt_dev) in da9052_wdt_ref() argument
109 struct da9052_wdt_data *driver_data = watchdog_get_drvdata(wdt_dev); in da9052_wdt_ref()
114 static void da9052_wdt_unref(struct watchdog_device *wdt_dev) in da9052_wdt_unref() argument
116 struct da9052_wdt_data *driver_data = watchdog_get_drvdata(wdt_dev); in da9052_wdt_unref()
121 static int da9052_wdt_start(struct watchdog_device *wdt_dev) in da9052_wdt_start() argument
123 return da9052_wdt_set_timeout(wdt_dev, wdt_dev->timeout); in da9052_wdt_start()
126 static int da9052_wdt_stop(struct watchdog_device *wdt_dev) in da9052_wdt_stop() argument
[all …]
Dorion_wdt.c180 static int orion_wdt_ping(struct watchdog_device *wdt_dev) in orion_wdt_ping() argument
182 struct orion_watchdog *dev = watchdog_get_drvdata(wdt_dev); in orion_wdt_ping()
184 writel(dev->clk_rate * wdt_dev->timeout, in orion_wdt_ping()
189 static int armada375_start(struct watchdog_device *wdt_dev) in armada375_start() argument
191 struct orion_watchdog *dev = watchdog_get_drvdata(wdt_dev); in armada375_start()
195 writel(dev->clk_rate * wdt_dev->timeout, in armada375_start()
214 static int armada370_start(struct watchdog_device *wdt_dev) in armada370_start() argument
216 struct orion_watchdog *dev = watchdog_get_drvdata(wdt_dev); in armada370_start()
220 writel(dev->clk_rate * wdt_dev->timeout, in armada370_start()
237 static int orion_start(struct watchdog_device *wdt_dev) in orion_start() argument
[all …]
Dwm8350_wdt.c39 static int wm8350_wdt_set_timeout(struct watchdog_device *wdt_dev, in wm8350_wdt_set_timeout() argument
42 struct wm8350 *wm8350 = watchdog_get_drvdata(wdt_dev); in wm8350_wdt_set_timeout()
63 wdt_dev->timeout = timeout; in wm8350_wdt_set_timeout()
67 static int wm8350_wdt_start(struct watchdog_device *wdt_dev) in wm8350_wdt_start() argument
69 struct wm8350 *wm8350 = watchdog_get_drvdata(wdt_dev); in wm8350_wdt_start()
87 static int wm8350_wdt_stop(struct watchdog_device *wdt_dev) in wm8350_wdt_stop() argument
89 struct wm8350 *wm8350 = watchdog_get_drvdata(wdt_dev); in wm8350_wdt_stop()
106 static int wm8350_wdt_ping(struct watchdog_device *wdt_dev) in wm8350_wdt_ping() argument
108 struct wm8350 *wm8350 = watchdog_get_drvdata(wdt_dev); in wm8350_wdt_ping()
Djz4740_wdt.c71 static int jz4740_wdt_ping(struct watchdog_device *wdt_dev) in jz4740_wdt_ping() argument
73 struct jz4740_wdt_drvdata *drvdata = watchdog_get_drvdata(wdt_dev); in jz4740_wdt_ping()
79 static int jz4740_wdt_set_timeout(struct watchdog_device *wdt_dev, in jz4740_wdt_set_timeout() argument
82 struct jz4740_wdt_drvdata *drvdata = watchdog_get_drvdata(wdt_dev); in jz4740_wdt_set_timeout()
111 wdt_dev->timeout = new_timeout; in jz4740_wdt_set_timeout()
115 static int jz4740_wdt_start(struct watchdog_device *wdt_dev) in jz4740_wdt_start() argument
118 jz4740_wdt_set_timeout(wdt_dev, wdt_dev->timeout); in jz4740_wdt_start()
123 static int jz4740_wdt_stop(struct watchdog_device *wdt_dev) in jz4740_wdt_stop() argument
125 struct jz4740_wdt_drvdata *drvdata = watchdog_get_drvdata(wdt_dev); in jz4740_wdt_stop()
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()
Dtxx9wdt.c46 static int txx9wdt_ping(struct watchdog_device *wdt_dev) in txx9wdt_ping() argument
54 static int txx9wdt_start(struct watchdog_device *wdt_dev) in txx9wdt_start() argument
57 __raw_writel(WD_TIMER_CLK * wdt_dev->timeout, &txx9wdt_reg->cpra); in txx9wdt_start()
67 static int txx9wdt_stop(struct watchdog_device *wdt_dev) in txx9wdt_stop() argument
77 static int txx9wdt_set_timeout(struct watchdog_device *wdt_dev, in txx9wdt_set_timeout() argument
80 wdt_dev->timeout = new_timeout; in txx9wdt_set_timeout()
81 txx9wdt_stop(wdt_dev); in txx9wdt_set_timeout()
82 txx9wdt_start(wdt_dev); in txx9wdt_set_timeout()
Dmoxart_wdt.c50 static int moxart_wdt_stop(struct watchdog_device *wdt_dev) in moxart_wdt_stop() argument
52 struct moxart_wdt_dev *moxart_wdt = watchdog_get_drvdata(wdt_dev); in moxart_wdt_stop()
59 static int moxart_wdt_start(struct watchdog_device *wdt_dev) in moxart_wdt_start() argument
61 struct moxart_wdt_dev *moxart_wdt = watchdog_get_drvdata(wdt_dev); in moxart_wdt_start()
63 writel(moxart_wdt->clock_frequency * wdt_dev->timeout, in moxart_wdt_start()
71 static int moxart_wdt_set_timeout(struct watchdog_device *wdt_dev, in moxart_wdt_set_timeout() argument
74 wdt_dev->timeout = timeout; in moxart_wdt_set_timeout()
Ddiag288_wdt.c209 static struct watchdog_device wdt_dev = { variable
228 if (test_and_set_bit(WDOG_DEV_OPEN, &wdt_dev.status)) { in wdt_suspend()
232 if (test_bit(WDOG_ACTIVE, &wdt_dev.status)) { in wdt_suspend()
233 clear_bit(WDOG_DEV_OPEN, &wdt_dev.status); in wdt_suspend()
242 clear_bit(WDOG_DEV_OPEN, &wdt_dev.status); in wdt_resume()
272 watchdog_set_nowayout(&wdt_dev, nowayout_info); in diag288_init()
296 ret = watchdog_register_device(&wdt_dev); in diag288_init()
305 watchdog_unregister_device(&wdt_dev); in diag288_exit()
Dwm831x_wdt.c54 static int wm831x_wdt_start(struct watchdog_device *wdt_dev) in wm831x_wdt_start() argument
56 struct wm831x_wdt_drvdata *driver_data = watchdog_get_drvdata(wdt_dev); in wm831x_wdt_start()
77 static int wm831x_wdt_stop(struct watchdog_device *wdt_dev) in wm831x_wdt_stop() argument
79 struct wm831x_wdt_drvdata *driver_data = watchdog_get_drvdata(wdt_dev); in wm831x_wdt_stop()
100 static int wm831x_wdt_ping(struct watchdog_device *wdt_dev) in wm831x_wdt_ping() argument
102 struct wm831x_wdt_drvdata *driver_data = watchdog_get_drvdata(wdt_dev); in wm831x_wdt_ping()
142 static int wm831x_wdt_set_timeout(struct watchdog_device *wdt_dev, in wm831x_wdt_set_timeout() argument
145 struct wm831x_wdt_drvdata *driver_data = watchdog_get_drvdata(wdt_dev); in wm831x_wdt_set_timeout()
166 wdt_dev->timeout = timeout; in wm831x_wdt_set_timeout()
Dshwdt.c85 static int sh_wdt_start(struct watchdog_device *wdt_dev) in sh_wdt_start() argument
87 struct sh_wdt *wdt = watchdog_get_drvdata(wdt_dev); in sh_wdt_start()
128 static int sh_wdt_stop(struct watchdog_device *wdt_dev) in sh_wdt_stop() argument
130 struct sh_wdt *wdt = watchdog_get_drvdata(wdt_dev); in sh_wdt_stop()
150 static int sh_wdt_keepalive(struct watchdog_device *wdt_dev) in sh_wdt_keepalive() argument
152 struct sh_wdt *wdt = watchdog_get_drvdata(wdt_dev); in sh_wdt_keepalive()
162 static int sh_wdt_set_heartbeat(struct watchdog_device *wdt_dev, unsigned t) in sh_wdt_set_heartbeat() argument
164 struct sh_wdt *wdt = watchdog_get_drvdata(wdt_dev); in sh_wdt_set_heartbeat()
172 wdt_dev->timeout = t; in sh_wdt_set_heartbeat()
Dsc1200wdt.c84 static struct pnp_dev *wdt_dev; variable
355 if (wdt_dev || !isapnp) in scl200wdt_pnp_probe()
358 wdt_dev = dev; in scl200wdt_pnp_probe()
359 io = pnp_port_start(wdt_dev, 0); in scl200wdt_pnp_probe()
360 io_len = pnp_port_len(wdt_dev, 0); in scl200wdt_pnp_probe()
373 if (wdt_dev) { in scl200wdt_pnp_remove()
375 wdt_dev = NULL; in scl200wdt_pnp_remove()
Dw83627hf_wdt.c319 static struct watchdog_device wdt_dev = { variable
457 watchdog_init_timeout(&wdt_dev, timeout, NULL); in wdt_init()
458 watchdog_set_nowayout(&wdt_dev, nowayout); in wdt_init()
460 ret = w83627hf_init(&wdt_dev, chip); in wdt_init()
472 ret = watchdog_register_device(&wdt_dev); in wdt_init()
477 wdt_dev.timeout, nowayout); in wdt_init()
488 watchdog_unregister_device(&wdt_dev); in wdt_exit()
Dcoh901327_wdt.c154 static int coh901327_start(struct watchdog_device *wdt_dev) in coh901327_start() argument
156 coh901327_enable(wdt_dev->timeout * 100); in coh901327_start()
160 static int coh901327_stop(struct watchdog_device *wdt_dev) in coh901327_stop() argument
176 static int coh901327_settimeout(struct watchdog_device *wdt_dev, in coh901327_settimeout() argument
179 wdt_dev->timeout = time; in coh901327_settimeout()
190 static unsigned int coh901327_gettimeleft(struct watchdog_device *wdt_dev) in coh901327_gettimeleft() argument
Dbooke_wdt.c186 static int booke_wdt_set_timeout(struct watchdog_device *wdt_dev, in booke_wdt_set_timeout() argument
189 wdt_dev->timeout = timeout; in booke_wdt_set_timeout()
190 booke_wdt_set(wdt_dev); in booke_wdt_set_timeout()
/linux-4.4.14/arch/x86/platform/intel-mid/device_libs/
Dplatform_wdt.c22 static struct platform_device wdt_dev = { variable
56 wdt_dev.dev.platform_data = &tangier_pdata; in register_mid_wdt()
57 return platform_device_register(&wdt_dev); in register_mid_wdt()
/linux-4.4.14/drivers/rtc/
Drtc-m41t80.c611 static struct miscdevice wdt_dev = { variable
701 rc = misc_register(&wdt_dev); in m41t80_probe()
706 misc_deregister(&wdt_dev); in m41t80_probe()
720 misc_deregister(&wdt_dev); in m41t80_remove()