| /linux/drivers/watchdog/ |
| H A D | meson_wdt.c | 55 struct watchdog_device wdt_dev; member 60 static int meson_wdt_restart(struct watchdog_device *wdt_dev, in meson_wdt_restart() argument 63 struct meson_wdt_dev *meson_wdt = watchdog_get_drvdata(wdt_dev); in meson_wdt_restart() 76 static int meson_wdt_ping(struct watchdog_device *wdt_dev) in meson_wdt_ping() argument 78 struct meson_wdt_dev *meson_wdt = watchdog_get_drvdata(wdt_dev); in meson_wdt_ping() 85 static void meson_wdt_change_timeout(struct watchdog_device *wdt_dev, in meson_wdt_change_timeout() argument 88 struct meson_wdt_dev *meson_wdt = watchdog_get_drvdata(wdt_dev); in meson_wdt_change_timeout() 97 static int meson_wdt_set_timeout(struct watchdog_device *wdt_dev, in meson_wdt_set_timeout() argument 100 wdt_dev->timeout = timeout; in meson_wdt_set_timeout() 102 meson_wdt_change_timeout(wdt_dev, timeout); in meson_wdt_set_timeout() [all …]
|
| H A D | meson_gxbb_wdt.c | 43 struct watchdog_device wdt_dev; member 51 static int meson_gxbb_wdt_start(struct watchdog_device *wdt_dev) in meson_gxbb_wdt_start() argument 53 struct meson_gxbb_wdt *data = watchdog_get_drvdata(wdt_dev); in meson_gxbb_wdt_start() 61 static int meson_gxbb_wdt_stop(struct watchdog_device *wdt_dev) in meson_gxbb_wdt_stop() argument 63 struct meson_gxbb_wdt *data = watchdog_get_drvdata(wdt_dev); in meson_gxbb_wdt_stop() 71 static int meson_gxbb_wdt_ping(struct watchdog_device *wdt_dev) in meson_gxbb_wdt_ping() argument 73 struct meson_gxbb_wdt *data = watchdog_get_drvdata(wdt_dev); in meson_gxbb_wdt_ping() 80 static int meson_gxbb_wdt_set_timeout(struct watchdog_device *wdt_dev, in meson_gxbb_wdt_set_timeout() argument 83 struct meson_gxbb_wdt *data = watchdog_get_drvdata(wdt_dev); in meson_gxbb_wdt_set_timeout() 89 wdt_dev->timeout = timeout; in meson_gxbb_wdt_set_timeout() [all …]
|
| H A D | imgpdc_wdt.c | 82 struct watchdog_device wdt_dev; member 88 static int pdc_wdt_keepalive(struct watchdog_device *wdt_dev) in pdc_wdt_keepalive() argument 90 struct pdc_wdt_dev *wdt = watchdog_get_drvdata(wdt_dev); in pdc_wdt_keepalive() 98 static int pdc_wdt_stop(struct watchdog_device *wdt_dev) in pdc_wdt_stop() argument 101 struct pdc_wdt_dev *wdt = watchdog_get_drvdata(wdt_dev); in pdc_wdt_stop() 108 pdc_wdt_keepalive(wdt_dev); in pdc_wdt_stop() 119 val |= order_base_2(wdt->wdt_dev.timeout * clk_rate) - 1; in __pdc_wdt_set_timeout() 123 static int pdc_wdt_set_timeout(struct watchdog_device *wdt_dev, in pdc_wdt_set_timeout() argument 126 struct pdc_wdt_dev *wdt = watchdog_get_drvdata(wdt_dev); in pdc_wdt_set_timeout() 128 wdt->wdt_dev.timeout = new_timeout; in pdc_wdt_set_timeout() [all …]
|
| H A D | lpc18xx_wdt.c | 52 struct watchdog_device wdt_dev; member 61 static int lpc18xx_wdt_feed(struct watchdog_device *wdt_dev) in lpc18xx_wdt_feed() argument 63 struct lpc18xx_wdt_dev *lpc18xx_wdt = watchdog_get_drvdata(wdt_dev); in lpc18xx_wdt_feed() 82 struct watchdog_device *wdt_dev = &lpc18xx_wdt->wdt_dev; in lpc18xx_wdt_timer_feed() local 84 lpc18xx_wdt_feed(wdt_dev); in lpc18xx_wdt_timer_feed() 88 msecs_to_jiffies((wdt_dev->timeout * MSEC_PER_SEC) / 2)); in lpc18xx_wdt_timer_feed() 95 static int lpc18xx_wdt_stop(struct watchdog_device *wdt_dev) in lpc18xx_wdt_stop() argument 97 struct lpc18xx_wdt_dev *lpc18xx_wdt = watchdog_get_drvdata(wdt_dev); in lpc18xx_wdt_stop() 108 val = DIV_ROUND_UP(lpc18xx_wdt->wdt_dev.timeout * lpc18xx_wdt->clk_rate, in __lpc18xx_wdt_set_timeout() 113 static int lpc18xx_wdt_set_timeout(struct watchdog_device *wdt_dev, in lpc18xx_wdt_set_timeout() argument [all …]
|
| H A D | max77620_wdt.c | 47 struct watchdog_device wdt_dev; member 70 static int max77620_wdt_start(struct watchdog_device *wdt_dev) in max77620_wdt_start() argument 72 struct max77620_wdt *wdt = watchdog_get_drvdata(wdt_dev); in max77620_wdt_start() 78 static int max77620_wdt_stop(struct watchdog_device *wdt_dev) in max77620_wdt_stop() argument 80 struct max77620_wdt *wdt = watchdog_get_drvdata(wdt_dev); in max77620_wdt_stop() 86 static int max77620_wdt_ping(struct watchdog_device *wdt_dev) in max77620_wdt_ping() argument 88 struct max77620_wdt *wdt = watchdog_get_drvdata(wdt_dev); in max77620_wdt_ping() 94 static int max77620_wdt_set_timeout(struct watchdog_device *wdt_dev, in max77620_wdt_set_timeout() argument 97 struct max77620_wdt *wdt = watchdog_get_drvdata(wdt_dev); in max77620_wdt_set_timeout() 139 wdt_dev->timeout = wdt_timeout; in max77620_wdt_set_timeout() [all …]
|
| H A D | rn5t618_wdt.c | 27 struct watchdog_device wdt_dev; member 47 static int rn5t618_wdt_set_timeout(struct watchdog_device *wdt_dev, in rn5t618_wdt_set_timeout() argument 50 struct rn5t618_wdt *wdt = watchdog_get_drvdata(wdt_dev); in rn5t618_wdt_set_timeout() 65 wdt_dev->timeout = rn5t618_wdt_map[i].time; in rn5t618_wdt_set_timeout() 70 static int rn5t618_wdt_start(struct watchdog_device *wdt_dev) in rn5t618_wdt_start() argument 72 struct rn5t618_wdt *wdt = watchdog_get_drvdata(wdt_dev); in rn5t618_wdt_start() 75 ret = rn5t618_wdt_set_timeout(wdt_dev, wdt_dev->timeout); in rn5t618_wdt_start() 99 static int rn5t618_wdt_stop(struct watchdog_device *wdt_dev) in rn5t618_wdt_stop() argument 101 struct rn5t618_wdt *wdt = watchdog_get_drvdata(wdt_dev); in rn5t618_wdt_stop() 107 static int rn5t618_wdt_ping(struct watchdog_device *wdt_dev) in rn5t618_wdt_ping() argument [all …]
|
| H A D | rtd119x_wdt.c | 28 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() 117 data->wdt_dev.max_timeout = 0xffffffff / clk_get_rate(data->clk); 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() [all …]
|
| H A D | atcwdt200_wdt.c | 88 struct watchdog_device wdt_dev; member 269 struct device *dev = drv_data->wdt_dev.parent; in atcwdt_get_int_timer_type() 308 static int atcwdt_ping(struct watchdog_device *wdt_dev) in atcwdt_ping() argument 310 struct atcwdt_drv *drv_data = watchdog_get_drvdata(wdt_dev); in atcwdt_ping() 322 static int atcwdt_set_timeout(struct watchdog_device *wdt_dev, in atcwdt_set_timeout() argument 325 struct atcwdt_drv *drv_data = watchdog_get_drvdata(wdt_dev); in atcwdt_set_timeout() 330 wdt_dev->timeout = timeout; in atcwdt_set_timeout() 347 atcwdt_ping(wdt_dev); in atcwdt_set_timeout() 352 static int atcwdt_start(struct watchdog_device *wdt_dev) in atcwdt_start() argument 354 struct atcwdt_drv *drv_data = watchdog_get_drvdata(wdt_dev); in atcwdt_start() [all …]
|
| H A D | jz4740_wdt.c | 46 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 77 struct jz4740_wdt_drvdata *drvdata = watchdog_get_drvdata(wdt_dev); in jz4740_wdt_start() 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 98 struct jz4740_wdt_drvdata *drvdata = watchdog_get_drvdata(wdt_dev); in jz4740_wdt_stop() [all …]
|
| H A D | uniphier_wdt.c | 48 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() 208 watchdog_init_timeout(&wdev->wdt_dev, timeout, dev); in uniphier_wdt_probe() 209 watchdog_set_nowayout(&wdev->wdt_dev, nowayout); in uniphier_wdt_probe() 210 watchdog_stop_on_reboot(&wdev->wdt_dev); in uniphier_wdt_probe() [all …]
|
| H A D | da9055_wdt.c | 52 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()
|
| H A D | loongson1_wdt.c | 55 static int ls1x_wdt_ping(struct watchdog_device *wdt_dev) in ls1x_wdt_ping() argument 57 struct ls1x_wdt_drvdata *drvdata = watchdog_get_drvdata(wdt_dev); in ls1x_wdt_ping() 64 static int ls1x_wdt_set_timeout(struct watchdog_device *wdt_dev, in ls1x_wdt_set_timeout() argument 67 struct ls1x_wdt_drvdata *drvdata = watchdog_get_drvdata(wdt_dev); in ls1x_wdt_set_timeout() 68 unsigned int max_hw_heartbeat = wdt_dev->max_hw_heartbeat_ms / 1000; in ls1x_wdt_set_timeout() 71 wdt_dev->timeout = timeout; in ls1x_wdt_set_timeout() 79 static int ls1x_wdt_start(struct watchdog_device *wdt_dev) in ls1x_wdt_start() argument 81 struct ls1x_wdt_drvdata *drvdata = watchdog_get_drvdata(wdt_dev); in ls1x_wdt_start() 88 static int ls1x_wdt_stop(struct watchdog_device *wdt_dev) in ls1x_wdt_stop() argument 90 struct ls1x_wdt_drvdata *drvdata = watchdog_get_drvdata(wdt_dev); in ls1x_wdt_stop() [all …]
|
| H A D | da9052_wdt.c | 61 static int da9052_wdt_set_timeout(struct watchdog_device *wdt_dev, in da9052_wdt_set_timeout() argument 64 struct da9052_wdt_data *driver_data = watchdog_get_drvdata(wdt_dev); in da9052_wdt_set_timeout() 103 wdt_dev->timeout = timeout; in da9052_wdt_set_timeout() 110 static int da9052_wdt_start(struct watchdog_device *wdt_dev) in da9052_wdt_start() argument 112 return da9052_wdt_set_timeout(wdt_dev, wdt_dev->timeout); in da9052_wdt_start() 115 static int da9052_wdt_stop(struct watchdog_device *wdt_dev) in da9052_wdt_stop() argument 117 return da9052_wdt_set_timeout(wdt_dev, 0); in da9052_wdt_stop() 120 static int da9052_wdt_ping(struct watchdog_device *wdt_dev) in da9052_wdt_ping() argument 122 struct da9052_wdt_data *driver_data = watchdog_get_drvdata(wdt_dev); in da9052_wdt_ping()
|
| H A D | exar_wdt.c | 59 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() 272 watchdog_init_timeout(wdt_dev, timeout, NULL); in exar_wdt_probe() 273 watchdog_set_nowayout(wdt_dev, nowayout); 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() [all …]
|
| H A D | wm8350_wdt.c | 36 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()
|
| H A D | moxart_wdt.c | 32 static int moxart_wdt_restart(struct watchdog_device *wdt_dev, in moxart_wdt_restart() argument 35 struct moxart_wdt_dev *moxart_wdt = watchdog_get_drvdata(wdt_dev); in moxart_wdt_restart() 44 static int moxart_wdt_stop(struct watchdog_device *wdt_dev) in moxart_wdt_stop() argument 46 struct moxart_wdt_dev *moxart_wdt = watchdog_get_drvdata(wdt_dev); in moxart_wdt_stop() 53 static int moxart_wdt_start(struct watchdog_device *wdt_dev) in moxart_wdt_start() argument 55 struct moxart_wdt_dev *moxart_wdt = watchdog_get_drvdata(wdt_dev); in moxart_wdt_start() 57 writel(moxart_wdt->clock_frequency * wdt_dev->timeout, in moxart_wdt_start() 65 static int moxart_wdt_set_timeout(struct watchdog_device *wdt_dev, in moxart_wdt_set_timeout() argument 68 wdt_dev->timeout = timeout; in moxart_wdt_set_timeout()
|
| H A D | txx9wdt.c | 43 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()
|
| H A D | wm831x_wdt.c | 49 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()
|
| H A D | shwdt.c | 81 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()
|
| H A D | diag288_wdt.c | 152 static struct watchdog_device wdt_dev = { variable 164 watchdog_set_nowayout(&wdt_dev, nowayout_info); in diag288_init() 174 return watchdog_register_device(&wdt_dev); in diag288_init() 179 watchdog_unregister_device(&wdt_dev); in diag288_exit()
|
| /linux/drivers/platform/x86/ |
| H A D | intel_scu_wdt.c | 22 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()
|