/linux-4.4.14/drivers/watchdog/ |
H A D | meson_wdt.c | 46 struct watchdog_device wdt_dev; member in struct:meson_wdt_dev 67 static int meson_wdt_ping(struct watchdog_device *wdt_dev) meson_wdt_ping() argument 69 struct meson_wdt_dev *meson_wdt = watchdog_get_drvdata(wdt_dev); meson_wdt_ping() 76 static void meson_wdt_change_timeout(struct watchdog_device *wdt_dev, meson_wdt_change_timeout() argument 79 struct meson_wdt_dev *meson_wdt = watchdog_get_drvdata(wdt_dev); meson_wdt_change_timeout() 88 static int meson_wdt_set_timeout(struct watchdog_device *wdt_dev, meson_wdt_set_timeout() argument 91 wdt_dev->timeout = timeout; meson_wdt_set_timeout() 93 meson_wdt_change_timeout(wdt_dev, timeout); meson_wdt_set_timeout() 94 meson_wdt_ping(wdt_dev); meson_wdt_set_timeout() 99 static int meson_wdt_stop(struct watchdog_device *wdt_dev) meson_wdt_stop() argument 101 struct meson_wdt_dev *meson_wdt = watchdog_get_drvdata(wdt_dev); meson_wdt_stop() 111 static int meson_wdt_start(struct watchdog_device *wdt_dev) meson_wdt_start() argument 113 struct meson_wdt_dev *meson_wdt = watchdog_get_drvdata(wdt_dev); meson_wdt_start() 116 meson_wdt_change_timeout(wdt_dev, meson_wdt->wdt_dev.timeout); meson_wdt_start() 117 meson_wdt_ping(wdt_dev); meson_wdt_start() 156 meson_wdt->wdt_dev.parent = &pdev->dev; meson_wdt_probe() 157 meson_wdt->wdt_dev.info = &meson_wdt_info; meson_wdt_probe() 158 meson_wdt->wdt_dev.ops = &meson_wdt_ops; meson_wdt_probe() 159 meson_wdt->wdt_dev.timeout = MESON_WDT_TIMEOUT; meson_wdt_probe() 160 meson_wdt->wdt_dev.max_timeout = MESON_WDT_MAX_TIMEOUT; meson_wdt_probe() 161 meson_wdt->wdt_dev.min_timeout = MESON_WDT_MIN_TIMEOUT; meson_wdt_probe() 163 watchdog_set_drvdata(&meson_wdt->wdt_dev, meson_wdt); meson_wdt_probe() 165 watchdog_init_timeout(&meson_wdt->wdt_dev, timeout, &pdev->dev); meson_wdt_probe() 166 watchdog_set_nowayout(&meson_wdt->wdt_dev, nowayout); meson_wdt_probe() 168 meson_wdt_stop(&meson_wdt->wdt_dev); meson_wdt_probe() 170 err = watchdog_register_device(&meson_wdt->wdt_dev); meson_wdt_probe() 184 meson_wdt->wdt_dev.timeout, nowayout); meson_wdt_probe() 195 watchdog_unregister_device(&meson_wdt->wdt_dev); meson_wdt_remove() 204 meson_wdt_stop(&meson_wdt->wdt_dev); meson_wdt_shutdown()
|
H A D | rn5t618_wdt.c | 33 struct watchdog_device wdt_dev; member in struct:rn5t618_wdt 53 static int rn5t618_wdt_set_timeout(struct watchdog_device *wdt_dev, rn5t618_wdt_set_timeout() argument 56 struct rn5t618_wdt *wdt = watchdog_get_drvdata(wdt_dev); rn5t618_wdt_set_timeout() 71 wdt_dev->timeout = rn5t618_wdt_map[i].time; rn5t618_wdt_set_timeout() 76 static int rn5t618_wdt_start(struct watchdog_device *wdt_dev) rn5t618_wdt_start() argument 78 struct rn5t618_wdt *wdt = watchdog_get_drvdata(wdt_dev); rn5t618_wdt_start() 81 ret = rn5t618_wdt_set_timeout(wdt_dev, wdt_dev->timeout); rn5t618_wdt_start() 105 static int rn5t618_wdt_stop(struct watchdog_device *wdt_dev) rn5t618_wdt_stop() argument 107 struct rn5t618_wdt *wdt = watchdog_get_drvdata(wdt_dev); rn5t618_wdt_stop() 113 static int rn5t618_wdt_ping(struct watchdog_device *wdt_dev) rn5t618_wdt_ping() argument 115 struct rn5t618_wdt *wdt = watchdog_get_drvdata(wdt_dev); rn5t618_wdt_ping() 161 wdt->wdt_dev.info = &rn5t618_wdt_info; rn5t618_wdt_probe() 162 wdt->wdt_dev.ops = &rn5t618_wdt_ops; rn5t618_wdt_probe() 163 wdt->wdt_dev.min_timeout = min_timeout; rn5t618_wdt_probe() 164 wdt->wdt_dev.max_timeout = max_timeout; rn5t618_wdt_probe() 165 wdt->wdt_dev.timeout = max_timeout; rn5t618_wdt_probe() 166 wdt->wdt_dev.parent = &pdev->dev; rn5t618_wdt_probe() 168 watchdog_set_drvdata(&wdt->wdt_dev, wdt); rn5t618_wdt_probe() 169 watchdog_init_timeout(&wdt->wdt_dev, timeout, &pdev->dev); rn5t618_wdt_probe() 170 watchdog_set_nowayout(&wdt->wdt_dev, nowayout); rn5t618_wdt_probe() 174 return watchdog_register_device(&wdt->wdt_dev); rn5t618_wdt_probe() 181 watchdog_unregister_device(&wdt->wdt_dev); rn5t618_wdt_remove()
|
H A D | mtk_wdt.c | 65 struct watchdog_device wdt_dev; member in struct:mtk_wdt_dev 87 static int mtk_wdt_ping(struct watchdog_device *wdt_dev) mtk_wdt_ping() argument 89 struct mtk_wdt_dev *mtk_wdt = watchdog_get_drvdata(wdt_dev); mtk_wdt_ping() 97 static int mtk_wdt_set_timeout(struct watchdog_device *wdt_dev, mtk_wdt_set_timeout() argument 100 struct mtk_wdt_dev *mtk_wdt = watchdog_get_drvdata(wdt_dev); mtk_wdt_set_timeout() 104 wdt_dev->timeout = timeout; mtk_wdt_set_timeout() 113 mtk_wdt_ping(wdt_dev); mtk_wdt_set_timeout() 118 static int mtk_wdt_stop(struct watchdog_device *wdt_dev) mtk_wdt_stop() argument 120 struct mtk_wdt_dev *mtk_wdt = watchdog_get_drvdata(wdt_dev); mtk_wdt_stop() 132 static int mtk_wdt_start(struct watchdog_device *wdt_dev) mtk_wdt_start() argument 135 struct mtk_wdt_dev *mtk_wdt = watchdog_get_drvdata(wdt_dev); mtk_wdt_start() 139 ret = mtk_wdt_set_timeout(wdt_dev, wdt_dev->timeout); mtk_wdt_start() 183 mtk_wdt->wdt_dev.info = &mtk_wdt_info; mtk_wdt_probe() 184 mtk_wdt->wdt_dev.ops = &mtk_wdt_ops; mtk_wdt_probe() 185 mtk_wdt->wdt_dev.timeout = WDT_MAX_TIMEOUT; mtk_wdt_probe() 186 mtk_wdt->wdt_dev.max_timeout = WDT_MAX_TIMEOUT; mtk_wdt_probe() 187 mtk_wdt->wdt_dev.min_timeout = WDT_MIN_TIMEOUT; mtk_wdt_probe() 188 mtk_wdt->wdt_dev.parent = &pdev->dev; mtk_wdt_probe() 190 watchdog_init_timeout(&mtk_wdt->wdt_dev, timeout, &pdev->dev); mtk_wdt_probe() 191 watchdog_set_nowayout(&mtk_wdt->wdt_dev, nowayout); mtk_wdt_probe() 193 watchdog_set_drvdata(&mtk_wdt->wdt_dev, mtk_wdt); mtk_wdt_probe() 195 mtk_wdt_stop(&mtk_wdt->wdt_dev); mtk_wdt_probe() 197 err = watchdog_register_device(&mtk_wdt->wdt_dev); mtk_wdt_probe() 209 mtk_wdt->wdt_dev.timeout, nowayout); mtk_wdt_probe() 218 if (watchdog_active(&mtk_wdt->wdt_dev)) mtk_wdt_shutdown() 219 mtk_wdt_stop(&mtk_wdt->wdt_dev); mtk_wdt_shutdown() 228 watchdog_unregister_device(&mtk_wdt->wdt_dev); mtk_wdt_remove() 238 if (watchdog_active(&mtk_wdt->wdt_dev)) mtk_wdt_suspend() 239 mtk_wdt_stop(&mtk_wdt->wdt_dev); mtk_wdt_suspend() 248 if (watchdog_active(&mtk_wdt->wdt_dev)) { mtk_wdt_resume() 249 mtk_wdt_start(&mtk_wdt->wdt_dev); mtk_wdt_resume() 250 mtk_wdt_ping(&mtk_wdt->wdt_dev); mtk_wdt_resume()
|
H A D | lpc18xx_wdt.c | 56 struct watchdog_device wdt_dev; member in struct:lpc18xx_wdt_dev 66 static int lpc18xx_wdt_feed(struct watchdog_device *wdt_dev) lpc18xx_wdt_feed() argument 68 struct lpc18xx_wdt_dev *lpc18xx_wdt = watchdog_get_drvdata(wdt_dev); lpc18xx_wdt_feed() 85 struct watchdog_device *wdt_dev = (struct watchdog_device *)data; lpc18xx_wdt_timer_feed() local 86 struct lpc18xx_wdt_dev *lpc18xx_wdt = watchdog_get_drvdata(wdt_dev); lpc18xx_wdt_timer_feed() 88 lpc18xx_wdt_feed(wdt_dev); lpc18xx_wdt_timer_feed() 92 msecs_to_jiffies((wdt_dev->timeout * MSEC_PER_SEC) / 2)); lpc18xx_wdt_timer_feed() 99 static int lpc18xx_wdt_stop(struct watchdog_device *wdt_dev) lpc18xx_wdt_stop() argument 101 lpc18xx_wdt_timer_feed((unsigned long)wdt_dev); lpc18xx_wdt_stop() 110 val = DIV_ROUND_UP(lpc18xx_wdt->wdt_dev.timeout * lpc18xx_wdt->clk_rate, __lpc18xx_wdt_set_timeout() 115 static int lpc18xx_wdt_set_timeout(struct watchdog_device *wdt_dev, lpc18xx_wdt_set_timeout() argument 118 struct lpc18xx_wdt_dev *lpc18xx_wdt = watchdog_get_drvdata(wdt_dev); lpc18xx_wdt_set_timeout() 120 lpc18xx_wdt->wdt_dev.timeout = new_timeout; lpc18xx_wdt_set_timeout() 126 static unsigned int lpc18xx_wdt_get_timeleft(struct watchdog_device *wdt_dev) lpc18xx_wdt_get_timeleft() argument 128 struct lpc18xx_wdt_dev *lpc18xx_wdt = watchdog_get_drvdata(wdt_dev); lpc18xx_wdt_get_timeleft() 135 static int lpc18xx_wdt_start(struct watchdog_device *wdt_dev) lpc18xx_wdt_start() argument 137 struct lpc18xx_wdt_dev *lpc18xx_wdt = watchdog_get_drvdata(wdt_dev); lpc18xx_wdt_start() 153 lpc18xx_wdt_feed(wdt_dev); lpc18xx_wdt_start() 251 lpc18xx_wdt->wdt_dev.info = &lpc18xx_wdt_info; lpc18xx_wdt_probe() 252 lpc18xx_wdt->wdt_dev.ops = &lpc18xx_wdt_ops; lpc18xx_wdt_probe() 254 lpc18xx_wdt->wdt_dev.min_timeout = DIV_ROUND_UP(LPC18XX_WDT_TC_MIN * lpc18xx_wdt_probe() 257 lpc18xx_wdt->wdt_dev.max_timeout = (LPC18XX_WDT_TC_MAX * lpc18xx_wdt_probe() 260 lpc18xx_wdt->wdt_dev.timeout = min(lpc18xx_wdt->wdt_dev.max_timeout, lpc18xx_wdt_probe() 265 lpc18xx_wdt->wdt_dev.parent = dev; lpc18xx_wdt_probe() 266 watchdog_set_drvdata(&lpc18xx_wdt->wdt_dev, lpc18xx_wdt); lpc18xx_wdt_probe() 268 ret = watchdog_init_timeout(&lpc18xx_wdt->wdt_dev, heartbeat, dev); lpc18xx_wdt_probe() 273 (unsigned long)&lpc18xx_wdt->wdt_dev); lpc18xx_wdt_probe() 275 watchdog_set_nowayout(&lpc18xx_wdt->wdt_dev, nowayout); lpc18xx_wdt_probe() 279 ret = watchdog_register_device(&lpc18xx_wdt->wdt_dev); lpc18xx_wdt_probe() 302 lpc18xx_wdt_stop(&lpc18xx_wdt->wdt_dev); lpc18xx_wdt_shutdown() 314 watchdog_unregister_device(&lpc18xx_wdt->wdt_dev); lpc18xx_wdt_remove()
|
H A D | intel-mid_wdt.c | 116 struct watchdog_device *wdt_dev; mid_wdt_probe() local 131 wdt_dev = devm_kzalloc(&pdev->dev, sizeof(*wdt_dev), GFP_KERNEL); mid_wdt_probe() 132 if (!wdt_dev) mid_wdt_probe() 135 wdt_dev->info = &mid_wdt_info; mid_wdt_probe() 136 wdt_dev->ops = &mid_wdt_ops; mid_wdt_probe() 137 wdt_dev->min_timeout = MID_WDT_TIMEOUT_MIN; mid_wdt_probe() 138 wdt_dev->max_timeout = MID_WDT_TIMEOUT_MAX; mid_wdt_probe() 139 wdt_dev->timeout = MID_WDT_DEFAULT_TIMEOUT; mid_wdt_probe() 140 wdt_dev->parent = &pdev->dev; mid_wdt_probe() 142 watchdog_set_drvdata(wdt_dev, &pdev->dev); mid_wdt_probe() 143 platform_set_drvdata(pdev, wdt_dev); mid_wdt_probe() 147 wdt_dev); mid_wdt_probe() 154 ret = watchdog_register_device(wdt_dev); mid_wdt_probe()
|
H A D | imgpdc_wdt.c | 86 struct watchdog_device wdt_dev; member in struct:pdc_wdt_dev 93 static int pdc_wdt_keepalive(struct watchdog_device *wdt_dev) pdc_wdt_keepalive() argument 95 struct pdc_wdt_dev *wdt = watchdog_get_drvdata(wdt_dev); pdc_wdt_keepalive() 103 static int pdc_wdt_stop(struct watchdog_device *wdt_dev) pdc_wdt_stop() argument 106 struct pdc_wdt_dev *wdt = watchdog_get_drvdata(wdt_dev); pdc_wdt_stop() 113 pdc_wdt_keepalive(wdt_dev); pdc_wdt_stop() 124 val |= order_base_2(wdt->wdt_dev.timeout * clk_rate) - 1; __pdc_wdt_set_timeout() 128 static int pdc_wdt_set_timeout(struct watchdog_device *wdt_dev, pdc_wdt_set_timeout() argument 131 struct pdc_wdt_dev *wdt = watchdog_get_drvdata(wdt_dev); pdc_wdt_set_timeout() 133 wdt->wdt_dev.timeout = new_timeout; pdc_wdt_set_timeout() 141 static int pdc_wdt_start(struct watchdog_device *wdt_dev) pdc_wdt_start() argument 144 struct pdc_wdt_dev *wdt = watchdog_get_drvdata(wdt_dev); pdc_wdt_start() 238 pdc_wdt->wdt_dev.min_timeout = PDC_WDT_MIN_TIMEOUT + 1; pdc_wdt_probe() 240 pdc_wdt->wdt_dev.min_timeout = PDC_WDT_MIN_TIMEOUT; pdc_wdt_probe() 242 pdc_wdt->wdt_dev.info = &pdc_wdt_info; pdc_wdt_probe() 243 pdc_wdt->wdt_dev.ops = &pdc_wdt_ops; pdc_wdt_probe() 247 pdc_wdt->wdt_dev.max_timeout = div; pdc_wdt_probe() 248 pdc_wdt->wdt_dev.timeout = PDC_WDT_DEF_TIMEOUT; pdc_wdt_probe() 249 pdc_wdt->wdt_dev.parent = &pdev->dev; pdc_wdt_probe() 250 watchdog_set_drvdata(&pdc_wdt->wdt_dev, pdc_wdt); pdc_wdt_probe() 252 watchdog_init_timeout(&pdc_wdt->wdt_dev, heartbeat, &pdev->dev); pdc_wdt_probe() 254 pdc_wdt_stop(&pdc_wdt->wdt_dev); pdc_wdt_probe() 262 pdc_wdt->wdt_dev.bootstatus |= WDIOF_CARDRESET; pdc_wdt_probe() 284 watchdog_set_nowayout(&pdc_wdt->wdt_dev, nowayout); pdc_wdt_probe() 288 ret = watchdog_register_device(&pdc_wdt->wdt_dev); pdc_wdt_probe() 312 pdc_wdt_stop(&pdc_wdt->wdt_dev); pdc_wdt_shutdown() 320 pdc_wdt_stop(&pdc_wdt->wdt_dev); pdc_wdt_remove() 321 watchdog_unregister_device(&pdc_wdt->wdt_dev); pdc_wdt_remove()
|
H A D | sunxi_wdt.c | 60 struct watchdog_device wdt_dev; member in struct:sunxi_wdt_dev 126 static int sunxi_wdt_ping(struct watchdog_device *wdt_dev) sunxi_wdt_ping() argument 128 struct sunxi_wdt_dev *sunxi_wdt = watchdog_get_drvdata(wdt_dev); sunxi_wdt_ping() 137 static int sunxi_wdt_set_timeout(struct watchdog_device *wdt_dev, sunxi_wdt_set_timeout() argument 140 struct sunxi_wdt_dev *sunxi_wdt = watchdog_get_drvdata(wdt_dev); sunxi_wdt_set_timeout() 148 sunxi_wdt->wdt_dev.timeout = timeout; sunxi_wdt_set_timeout() 155 sunxi_wdt_ping(wdt_dev); sunxi_wdt_set_timeout() 160 static int sunxi_wdt_stop(struct watchdog_device *wdt_dev) sunxi_wdt_stop() argument 162 struct sunxi_wdt_dev *sunxi_wdt = watchdog_get_drvdata(wdt_dev); sunxi_wdt_stop() 171 static int sunxi_wdt_start(struct watchdog_device *wdt_dev) sunxi_wdt_start() argument 174 struct sunxi_wdt_dev *sunxi_wdt = watchdog_get_drvdata(wdt_dev); sunxi_wdt_start() 179 ret = sunxi_wdt_set_timeout(&sunxi_wdt->wdt_dev, sunxi_wdt_start() 180 sunxi_wdt->wdt_dev.timeout); sunxi_wdt_start() 262 sunxi_wdt->wdt_dev.info = &sunxi_wdt_info; sunxi_wdt_probe() 263 sunxi_wdt->wdt_dev.ops = &sunxi_wdt_ops; sunxi_wdt_probe() 264 sunxi_wdt->wdt_dev.timeout = WDT_MAX_TIMEOUT; sunxi_wdt_probe() 265 sunxi_wdt->wdt_dev.max_timeout = WDT_MAX_TIMEOUT; sunxi_wdt_probe() 266 sunxi_wdt->wdt_dev.min_timeout = WDT_MIN_TIMEOUT; sunxi_wdt_probe() 267 sunxi_wdt->wdt_dev.parent = &pdev->dev; sunxi_wdt_probe() 269 watchdog_init_timeout(&sunxi_wdt->wdt_dev, timeout, &pdev->dev); sunxi_wdt_probe() 270 watchdog_set_nowayout(&sunxi_wdt->wdt_dev, nowayout); sunxi_wdt_probe() 272 watchdog_set_drvdata(&sunxi_wdt->wdt_dev, sunxi_wdt); sunxi_wdt_probe() 274 sunxi_wdt_stop(&sunxi_wdt->wdt_dev); sunxi_wdt_probe() 276 err = watchdog_register_device(&sunxi_wdt->wdt_dev); sunxi_wdt_probe() 288 sunxi_wdt->wdt_dev.timeout, nowayout); sunxi_wdt_probe() 299 watchdog_unregister_device(&sunxi_wdt->wdt_dev); sunxi_wdt_remove() 300 watchdog_set_drvdata(&sunxi_wdt->wdt_dev, NULL); sunxi_wdt_remove() 309 sunxi_wdt_stop(&sunxi_wdt->wdt_dev); sunxi_wdt_shutdown()
|
H A D | da9052_wdt.c | 58 static int da9052_wdt_set_timeout(struct watchdog_device *wdt_dev, da9052_wdt_set_timeout() argument 61 struct da9052_wdt_data *driver_data = watchdog_get_drvdata(wdt_dev); da9052_wdt_set_timeout() 100 wdt_dev->timeout = timeout; da9052_wdt_set_timeout() 107 static void da9052_wdt_ref(struct watchdog_device *wdt_dev) da9052_wdt_ref() argument 109 struct da9052_wdt_data *driver_data = watchdog_get_drvdata(wdt_dev); da9052_wdt_ref() 114 static void da9052_wdt_unref(struct watchdog_device *wdt_dev) da9052_wdt_unref() argument 116 struct da9052_wdt_data *driver_data = watchdog_get_drvdata(wdt_dev); da9052_wdt_unref() 121 static int da9052_wdt_start(struct watchdog_device *wdt_dev) da9052_wdt_start() argument 123 return da9052_wdt_set_timeout(wdt_dev, wdt_dev->timeout); da9052_wdt_start() 126 static int da9052_wdt_stop(struct watchdog_device *wdt_dev) da9052_wdt_stop() argument 128 return da9052_wdt_set_timeout(wdt_dev, 0); da9052_wdt_stop() 131 static int da9052_wdt_ping(struct watchdog_device *wdt_dev) da9052_wdt_ping() argument 133 struct da9052_wdt_data *driver_data = watchdog_get_drvdata(wdt_dev); da9052_wdt_ping()
|
H A D | da9055_wdt.c | 57 static int da9055_wdt_set_timeout(struct watchdog_device *wdt_dev, da9055_wdt_set_timeout() argument 60 struct da9055_wdt_data *driver_data = watchdog_get_drvdata(wdt_dev); da9055_wdt_set_timeout() 81 wdt_dev->timeout = timeout; da9055_wdt_set_timeout() 86 static int da9055_wdt_ping(struct watchdog_device *wdt_dev) da9055_wdt_ping() argument 88 struct da9055_wdt_data *driver_data = watchdog_get_drvdata(wdt_dev); da9055_wdt_ping() 106 static void da9055_wdt_ref(struct watchdog_device *wdt_dev) da9055_wdt_ref() argument 108 struct da9055_wdt_data *driver_data = watchdog_get_drvdata(wdt_dev); da9055_wdt_ref() 113 static void da9055_wdt_unref(struct watchdog_device *wdt_dev) da9055_wdt_unref() argument 115 struct da9055_wdt_data *driver_data = watchdog_get_drvdata(wdt_dev); da9055_wdt_unref() 120 static int da9055_wdt_start(struct watchdog_device *wdt_dev) da9055_wdt_start() argument 122 return da9055_wdt_set_timeout(wdt_dev, wdt_dev->timeout); da9055_wdt_start() 125 static int da9055_wdt_stop(struct watchdog_device *wdt_dev) da9055_wdt_stop() argument 127 return da9055_wdt_set_timeout(wdt_dev, 0); da9055_wdt_stop()
|
H A D | wm8350_wdt.c | 39 static int wm8350_wdt_set_timeout(struct watchdog_device *wdt_dev, wm8350_wdt_set_timeout() argument 42 struct wm8350 *wm8350 = watchdog_get_drvdata(wdt_dev); wm8350_wdt_set_timeout() 63 wdt_dev->timeout = timeout; wm8350_wdt_set_timeout() 67 static int wm8350_wdt_start(struct watchdog_device *wdt_dev) wm8350_wdt_start() argument 69 struct wm8350 *wm8350 = watchdog_get_drvdata(wdt_dev); wm8350_wdt_start() 87 static int wm8350_wdt_stop(struct watchdog_device *wdt_dev) wm8350_wdt_stop() argument 89 struct wm8350 *wm8350 = watchdog_get_drvdata(wdt_dev); wm8350_wdt_stop() 106 static int wm8350_wdt_ping(struct watchdog_device *wdt_dev) wm8350_wdt_ping() argument 108 struct wm8350 *wm8350 = watchdog_get_drvdata(wdt_dev); wm8350_wdt_ping()
|
H A D | orion_wdt.c | 180 static int orion_wdt_ping(struct watchdog_device *wdt_dev) orion_wdt_ping() argument 182 struct orion_watchdog *dev = watchdog_get_drvdata(wdt_dev); orion_wdt_ping() 184 writel(dev->clk_rate * wdt_dev->timeout, orion_wdt_ping() 189 static int armada375_start(struct watchdog_device *wdt_dev) armada375_start() argument 191 struct orion_watchdog *dev = watchdog_get_drvdata(wdt_dev); armada375_start() 195 writel(dev->clk_rate * wdt_dev->timeout, armada375_start() 214 static int armada370_start(struct watchdog_device *wdt_dev) armada370_start() argument 216 struct orion_watchdog *dev = watchdog_get_drvdata(wdt_dev); armada370_start() 220 writel(dev->clk_rate * wdt_dev->timeout, armada370_start() 237 static int orion_start(struct watchdog_device *wdt_dev) orion_start() argument 239 struct orion_watchdog *dev = watchdog_get_drvdata(wdt_dev); orion_start() 242 writel(dev->clk_rate * wdt_dev->timeout, orion_start() 256 static int orion_wdt_start(struct watchdog_device *wdt_dev) orion_wdt_start() argument 258 struct orion_watchdog *dev = watchdog_get_drvdata(wdt_dev); orion_wdt_start() 261 return dev->data->start(wdt_dev); orion_wdt_start() 264 static int orion_stop(struct watchdog_device *wdt_dev) orion_stop() argument 266 struct orion_watchdog *dev = watchdog_get_drvdata(wdt_dev); orion_stop() 277 static int armada375_stop(struct watchdog_device *wdt_dev) armada375_stop() argument 279 struct orion_watchdog *dev = watchdog_get_drvdata(wdt_dev); armada375_stop() 295 static int armada370_stop(struct watchdog_device *wdt_dev) armada370_stop() argument 297 struct orion_watchdog *dev = watchdog_get_drvdata(wdt_dev); armada370_stop() 311 static int orion_wdt_stop(struct watchdog_device *wdt_dev) orion_wdt_stop() argument 313 struct orion_watchdog *dev = watchdog_get_drvdata(wdt_dev); orion_wdt_stop() 315 return dev->data->stop(wdt_dev); orion_wdt_stop() 339 static int orion_wdt_enabled(struct watchdog_device *wdt_dev) orion_wdt_enabled() argument 341 struct orion_watchdog *dev = watchdog_get_drvdata(wdt_dev); orion_wdt_enabled() 346 static unsigned int orion_wdt_get_timeleft(struct watchdog_device *wdt_dev) orion_wdt_get_timeleft() argument 348 struct orion_watchdog *dev = watchdog_get_drvdata(wdt_dev); orion_wdt_get_timeleft() 352 static int orion_wdt_set_timeout(struct watchdog_device *wdt_dev, orion_wdt_set_timeout() argument 355 wdt_dev->timeout = timeout; orion_wdt_set_timeout() 617 struct watchdog_device *wdt_dev = platform_get_drvdata(pdev); orion_wdt_remove() local 618 struct orion_watchdog *dev = watchdog_get_drvdata(wdt_dev); orion_wdt_remove() 620 watchdog_unregister_device(wdt_dev); orion_wdt_remove() 628 struct watchdog_device *wdt_dev = platform_get_drvdata(pdev); orion_wdt_shutdown() local 629 orion_wdt_stop(wdt_dev); orion_wdt_shutdown()
|
H A D | txx9wdt.c | 46 static int txx9wdt_ping(struct watchdog_device *wdt_dev) txx9wdt_ping() argument 54 static int txx9wdt_start(struct watchdog_device *wdt_dev) txx9wdt_start() argument 57 __raw_writel(WD_TIMER_CLK * wdt_dev->timeout, &txx9wdt_reg->cpra); txx9wdt_start() 67 static int txx9wdt_stop(struct watchdog_device *wdt_dev) txx9wdt_stop() argument 77 static int txx9wdt_set_timeout(struct watchdog_device *wdt_dev, txx9wdt_set_timeout() argument 80 wdt_dev->timeout = new_timeout; txx9wdt_set_timeout() 81 txx9wdt_stop(wdt_dev); txx9wdt_set_timeout() 82 txx9wdt_start(wdt_dev); txx9wdt_set_timeout()
|
H A D | jz4740_wdt.c | 71 static int jz4740_wdt_ping(struct watchdog_device *wdt_dev) jz4740_wdt_ping() argument 73 struct jz4740_wdt_drvdata *drvdata = watchdog_get_drvdata(wdt_dev); jz4740_wdt_ping() 79 static int jz4740_wdt_set_timeout(struct watchdog_device *wdt_dev, jz4740_wdt_set_timeout() argument 82 struct jz4740_wdt_drvdata *drvdata = watchdog_get_drvdata(wdt_dev); jz4740_wdt_set_timeout() 111 wdt_dev->timeout = new_timeout; jz4740_wdt_set_timeout() 115 static int jz4740_wdt_start(struct watchdog_device *wdt_dev) jz4740_wdt_start() argument 118 jz4740_wdt_set_timeout(wdt_dev, wdt_dev->timeout); jz4740_wdt_start() 123 static int jz4740_wdt_stop(struct watchdog_device *wdt_dev) jz4740_wdt_stop() argument 125 struct jz4740_wdt_drvdata *drvdata = watchdog_get_drvdata(wdt_dev); jz4740_wdt_stop()
|
H A D | moxart_wdt.c | 50 static int moxart_wdt_stop(struct watchdog_device *wdt_dev) moxart_wdt_stop() argument 52 struct moxart_wdt_dev *moxart_wdt = watchdog_get_drvdata(wdt_dev); moxart_wdt_stop() 59 static int moxart_wdt_start(struct watchdog_device *wdt_dev) moxart_wdt_start() argument 61 struct moxart_wdt_dev *moxart_wdt = watchdog_get_drvdata(wdt_dev); moxart_wdt_start() 63 writel(moxart_wdt->clock_frequency * wdt_dev->timeout, moxart_wdt_start() 71 static int moxart_wdt_set_timeout(struct watchdog_device *wdt_dev, moxart_wdt_set_timeout() argument 74 wdt_dev->timeout = timeout; moxart_wdt_set_timeout()
|
H A D | shwdt.c | 85 static int sh_wdt_start(struct watchdog_device *wdt_dev) sh_wdt_start() argument 87 struct sh_wdt *wdt = watchdog_get_drvdata(wdt_dev); sh_wdt_start() 128 static int sh_wdt_stop(struct watchdog_device *wdt_dev) sh_wdt_stop() argument 130 struct sh_wdt *wdt = watchdog_get_drvdata(wdt_dev); sh_wdt_stop() 150 static int sh_wdt_keepalive(struct watchdog_device *wdt_dev) sh_wdt_keepalive() argument 152 struct sh_wdt *wdt = watchdog_get_drvdata(wdt_dev); sh_wdt_keepalive() 162 static int sh_wdt_set_heartbeat(struct watchdog_device *wdt_dev, unsigned t) sh_wdt_set_heartbeat() argument 164 struct sh_wdt *wdt = watchdog_get_drvdata(wdt_dev); sh_wdt_set_heartbeat() 172 wdt_dev->timeout = t; sh_wdt_set_heartbeat()
|
H A D | via_wdt.c | 66 static struct watchdog_device wdt_dev; variable in typeref:struct:watchdog_device 94 (!watchdog_active(&wdt_dev))) { wdt_timer_tick() 151 static struct watchdog_device wdt_dev = { variable in typeref:struct:watchdog_device 208 wdt_dev.timeout = timeout; wdt_probe() 209 wdt_dev.parent = &pdev->dev; wdt_probe() 210 watchdog_set_nowayout(&wdt_dev, nowayout); wdt_probe() 212 wdt_dev.bootstatus |= WDIOF_CARDRESET; wdt_probe() 214 ret = watchdog_register_device(&wdt_dev); wdt_probe() 235 watchdog_unregister_device(&wdt_dev); wdt_remove()
|
H A D | wm831x_wdt.c | 54 static int wm831x_wdt_start(struct watchdog_device *wdt_dev) wm831x_wdt_start() argument 56 struct wm831x_wdt_drvdata *driver_data = watchdog_get_drvdata(wdt_dev); wm831x_wdt_start() 77 static int wm831x_wdt_stop(struct watchdog_device *wdt_dev) wm831x_wdt_stop() argument 79 struct wm831x_wdt_drvdata *driver_data = watchdog_get_drvdata(wdt_dev); wm831x_wdt_stop() 100 static int wm831x_wdt_ping(struct watchdog_device *wdt_dev) wm831x_wdt_ping() argument 102 struct wm831x_wdt_drvdata *driver_data = watchdog_get_drvdata(wdt_dev); wm831x_wdt_ping() 142 static int wm831x_wdt_set_timeout(struct watchdog_device *wdt_dev, wm831x_wdt_set_timeout() argument 145 struct wm831x_wdt_drvdata *driver_data = watchdog_get_drvdata(wdt_dev); wm831x_wdt_set_timeout() 166 wdt_dev->timeout = timeout; wm831x_wdt_set_timeout()
|
H A D | diag288_wdt.c | 209 static struct watchdog_device wdt_dev = { variable in typeref:struct:watchdog_device 228 if (test_and_set_bit(WDOG_DEV_OPEN, &wdt_dev.status)) { wdt_suspend() 232 if (test_bit(WDOG_ACTIVE, &wdt_dev.status)) { wdt_suspend() 233 clear_bit(WDOG_DEV_OPEN, &wdt_dev.status); wdt_suspend() 242 clear_bit(WDOG_DEV_OPEN, &wdt_dev.status); wdt_resume() 272 watchdog_set_nowayout(&wdt_dev, nowayout_info); diag288_init() 296 ret = watchdog_register_device(&wdt_dev); diag288_init() 305 watchdog_unregister_device(&wdt_dev); diag288_exit()
|
H A D | sc1200wdt.c | 84 static struct pnp_dev *wdt_dev; variable in typeref:struct:pnp_dev 355 if (wdt_dev || !isapnp) scl200wdt_pnp_probe() 358 wdt_dev = dev; scl200wdt_pnp_probe() 359 io = pnp_port_start(wdt_dev, 0); scl200wdt_pnp_probe() 360 io_len = pnp_port_len(wdt_dev, 0); scl200wdt_pnp_probe() 373 if (wdt_dev) { scl200wdt_pnp_remove() 375 wdt_dev = NULL; scl200wdt_pnp_remove()
|
H A D | w83627hf_wdt.c | 319 static struct watchdog_device wdt_dev = { variable in typeref:struct:watchdog_device 457 watchdog_init_timeout(&wdt_dev, timeout, NULL); wdt_init() 458 watchdog_set_nowayout(&wdt_dev, nowayout); wdt_init() 460 ret = w83627hf_init(&wdt_dev, chip); wdt_init() 472 ret = watchdog_register_device(&wdt_dev); wdt_init() 477 wdt_dev.timeout, nowayout); wdt_init() 488 watchdog_unregister_device(&wdt_dev); wdt_exit()
|
H A D | coh901327_wdt.c | 154 static int coh901327_start(struct watchdog_device *wdt_dev) coh901327_start() argument 156 coh901327_enable(wdt_dev->timeout * 100); coh901327_start() 160 static int coh901327_stop(struct watchdog_device *wdt_dev) coh901327_stop() argument 176 static int coh901327_settimeout(struct watchdog_device *wdt_dev, coh901327_settimeout() argument 179 wdt_dev->timeout = time; coh901327_settimeout() 190 static unsigned int coh901327_gettimeleft(struct watchdog_device *wdt_dev) coh901327_gettimeleft() argument
|
H A D | booke_wdt.c | 186 static int booke_wdt_set_timeout(struct watchdog_device *wdt_dev, booke_wdt_set_timeout() argument 189 wdt_dev->timeout = timeout; booke_wdt_set_timeout() 190 booke_wdt_set(wdt_dev); booke_wdt_set_timeout()
|
/linux-4.4.14/arch/x86/platform/intel-mid/device_libs/ |
H A D | platform_wdt.c | 22 static struct platform_device wdt_dev = { variable in typeref:struct:platform_device 56 wdt_dev.dev.platform_data = &tangier_pdata; register_mid_wdt() 57 return platform_device_register(&wdt_dev); register_mid_wdt()
|
/linux-4.4.14/drivers/rtc/ |
H A D | rtc-m41t80.c | 611 static struct miscdevice wdt_dev = { variable in typeref:struct:miscdevice 701 rc = misc_register(&wdt_dev); m41t80_probe() 706 misc_deregister(&wdt_dev); m41t80_probe() 720 misc_deregister(&wdt_dev); m41t80_remove()
|