/drivers/watchdog/ |
D | meson_wdt.c | 46 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 …]
|
D | rn5t618_wdt.c | 33 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 …]
|
D | sunxi_wdt.c | 60 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 …]
|
D | orion_wdt.c | 140 static int orion_wdt_ping(struct watchdog_device *wdt_dev) in orion_wdt_ping() argument 142 struct orion_watchdog *dev = watchdog_get_drvdata(wdt_dev); in orion_wdt_ping() 144 writel(dev->clk_rate * wdt_dev->timeout, in orion_wdt_ping() 149 static int armada375_start(struct watchdog_device *wdt_dev) in armada375_start() argument 151 struct orion_watchdog *dev = watchdog_get_drvdata(wdt_dev); in armada375_start() 155 writel(dev->clk_rate * wdt_dev->timeout, in armada375_start() 174 static int armada370_start(struct watchdog_device *wdt_dev) in armada370_start() argument 176 struct orion_watchdog *dev = watchdog_get_drvdata(wdt_dev); in armada370_start() 180 writel(dev->clk_rate * wdt_dev->timeout, in armada370_start() 197 static int orion_start(struct watchdog_device *wdt_dev) in orion_start() argument [all …]
|
D | da9055_wdt.c | 57 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 …]
|
D | intel-mid_wdt.c | 116 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() 141 watchdog_set_drvdata(wdt_dev, &pdev->dev); in mid_wdt_probe() 142 platform_set_drvdata(pdev, wdt_dev); in mid_wdt_probe() [all …]
|
D | da9052_wdt.c | 58 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 …]
|
D | wm8350_wdt.c | 39 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()
|
D | jz4740_wdt.c | 70 static int jz4740_wdt_ping(struct watchdog_device *wdt_dev) in jz4740_wdt_ping() argument 72 struct jz4740_wdt_drvdata *drvdata = watchdog_get_drvdata(wdt_dev); in jz4740_wdt_ping() 78 static int jz4740_wdt_set_timeout(struct watchdog_device *wdt_dev, in jz4740_wdt_set_timeout() argument 81 struct jz4740_wdt_drvdata *drvdata = watchdog_get_drvdata(wdt_dev); in jz4740_wdt_set_timeout() 110 wdt_dev->timeout = new_timeout; in jz4740_wdt_set_timeout() 114 static int jz4740_wdt_start(struct watchdog_device *wdt_dev) in jz4740_wdt_start() argument 117 jz4740_wdt_set_timeout(wdt_dev, wdt_dev->timeout); in jz4740_wdt_start() 122 static int jz4740_wdt_stop(struct watchdog_device *wdt_dev) in jz4740_wdt_stop() argument 124 struct jz4740_wdt_drvdata *drvdata = watchdog_get_drvdata(wdt_dev); in jz4740_wdt_stop()
|
D | txx9wdt.c | 46 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()
|
D | via_wdt.c | 66 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 watchdog_set_nowayout(&wdt_dev, nowayout); in wdt_probe() 211 wdt_dev.bootstatus |= WDIOF_CARDRESET; in wdt_probe() 213 ret = watchdog_register_device(&wdt_dev); in wdt_probe() 234 watchdog_unregister_device(&wdt_dev); in wdt_remove()
|
D | shwdt.c | 85 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()
|
D | diag288_wdt.c | 210 static struct watchdog_device wdt_dev = { variable 229 if (test_and_set_bit(WDOG_DEV_OPEN, &wdt_dev.status)) { in wdt_suspend() 233 if (test_bit(WDOG_ACTIVE, &wdt_dev.status)) { in wdt_suspend() 234 clear_bit(WDOG_DEV_OPEN, &wdt_dev.status); in wdt_suspend() 243 clear_bit(WDOG_DEV_OPEN, &wdt_dev.status); in wdt_resume() 273 watchdog_set_nowayout(&wdt_dev, nowayout_info); in diag288_init() 302 ret = watchdog_register_device(&wdt_dev); in diag288_init() 311 watchdog_unregister_device(&wdt_dev); in diag288_exit()
|
D | moxart_wdt.c | 50 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()
|
D | wm831x_wdt.c | 54 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()
|
D | sc1200wdt.c | 84 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()
|
D | w83627hf_wdt.c | 315 static struct watchdog_device wdt_dev = { variable 445 watchdog_init_timeout(&wdt_dev, timeout, NULL); in wdt_init() 446 watchdog_set_nowayout(&wdt_dev, nowayout); in wdt_init() 448 ret = w83627hf_init(&wdt_dev, chip); in wdt_init() 460 ret = watchdog_register_device(&wdt_dev); in wdt_init() 465 wdt_dev.timeout, nowayout); in wdt_init() 476 watchdog_unregister_device(&wdt_dev); in wdt_exit()
|
D | coh901327_wdt.c | 154 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
|
D | booke_wdt.c | 186 static int booke_wdt_set_timeout(struct watchdog_device *wdt_dev, in booke_wdt_set_timeout() argument 191 wdt_dev->timeout = timeout; in booke_wdt_set_timeout() 192 booke_wdt_set(wdt_dev); in booke_wdt_set_timeout()
|
/drivers/rtc/ |
D | rtc-m41t80.c | 609 static struct miscdevice wdt_dev = { variable 699 rc = misc_register(&wdt_dev); in m41t80_probe() 704 misc_deregister(&wdt_dev); in m41t80_probe() 718 misc_deregister(&wdt_dev); in m41t80_remove()
|