/linux/drivers/watchdog/ |
A D | imx2_wdt.c | 226 imx2_wdt_set_timeout(wdog, wdog->timeout); in imx2_wdt_start() 228 imx2_wdt_setup(wdog); in imx2_wdt_start() 286 wdog = &wdev->wdog; in imx2_wdt_probe() 289 wdog->min_timeout = 1; in imx2_wdt_probe() 292 wdog->parent = dev; in imx2_wdt_probe() 323 imx2_wdt_set_timeout(wdog, wdog->timeout); in imx2_wdt_probe() 348 imx2_wdt_ping(wdog); in imx2_wdt_shutdown() 366 imx2_wdt_ping(wdog); in imx2_wdt_suspend() 395 imx2_wdt_setup(wdog); in imx2_wdt_resume() 398 imx2_wdt_set_timeout(wdog, wdog->timeout); in imx2_wdt_resume() [all …]
|
A D | imx_sc_wdt.c | 88 wdog->timeout = timeout; in imx_sc_wdt_set_timeout() 111 wdog->pretimeout = pretimeout; in imx_sc_wdt_set_pretimeout() 159 struct watchdog_device *wdog; in imx_sc_wdt_probe() local 169 wdog = &imx_sc_wdd->wdd; in imx_sc_wdt_probe() 170 wdog->info = &imx_sc_wdt_info; in imx_sc_wdt_probe() 171 wdog->ops = &imx_sc_wdt_ops; in imx_sc_wdt_probe() 172 wdog->min_timeout = 1; in imx_sc_wdt_probe() 173 wdog->max_timeout = MAX_TIMEOUT; in imx_sc_wdt_probe() 174 wdog->parent = dev; in imx_sc_wdt_probe() 179 ret = imx_sc_wdt_set_timeout(wdog, wdog->timeout); in imx_sc_wdt_probe() [all …]
|
A D | imx7ulp_wdt.c | 132 wdog->timeout = timeout; in imx7ulp_wdt_set_timeout() 212 struct watchdog_device *wdog; in imx7ulp_wdt_probe() local 239 wdog = &imx7ulp_wdt->wdd; in imx7ulp_wdt_probe() 240 wdog->info = &imx7ulp_wdt_info; in imx7ulp_wdt_probe() 241 wdog->ops = &imx7ulp_wdt_ops; in imx7ulp_wdt_probe() 242 wdog->min_timeout = 1; in imx7ulp_wdt_probe() 243 wdog->max_timeout = MAX_TIMEOUT; in imx7ulp_wdt_probe() 244 wdog->parent = dev; in imx7ulp_wdt_probe() 245 wdog->timeout = DEFAULT_TIMEOUT; in imx7ulp_wdt_probe() 248 watchdog_stop_on_reboot(wdog); in imx7ulp_wdt_probe() [all …]
|
A D | omap_wdt.c | 63 struct watchdog_device wdog; member 157 omap_wdt_set_timer(wdev, wdog->timeout); in omap_wdt_start() 199 wdog->timeout = timeout; in omap_wdt_set_timeout() 249 wdev->wdog.info = &omap_wdt_info; in omap_wdt_probe() 250 wdev->wdog.ops = &omap_wdt_ops; in omap_wdt_probe() 251 wdev->wdog.min_timeout = TIMER_MARGIN_MIN; in omap_wdt_probe() 254 wdev->wdog.parent = &pdev->dev; in omap_wdt_probe() 272 omap_wdt_start(&wdev->wdog); in omap_wdt_probe() 287 wdev->wdog.timeout); in omap_wdt_probe() 290 omap_wdt_start(&wdev->wdog); in omap_wdt_probe() [all …]
|
A D | keembay_wdt.c | 72 struct keembay_wdt *wdt = watchdog_get_drvdata(wdog); in keembay_wdt_set_timeout_reg() 79 struct keembay_wdt *wdt = watchdog_get_drvdata(wdog); in keembay_wdt_set_pretimeout_reg() 82 if (wdog->pretimeout) in keembay_wdt_set_pretimeout_reg() 83 th_val = wdog->timeout - wdog->pretimeout; in keembay_wdt_set_pretimeout_reg() 108 keembay_wdt_set_timeout_reg(wdog); in keembay_wdt_ping() 115 wdog->timeout = t; in keembay_wdt_set_timeout() 116 keembay_wdt_set_timeout_reg(wdog); in keembay_wdt_set_timeout() 117 keembay_wdt_set_pretimeout_reg(wdog); in keembay_wdt_set_timeout() 124 if (t > wdog->timeout) in keembay_wdt_set_pretimeout() 127 wdog->pretimeout = t; in keembay_wdt_set_pretimeout() [all …]
|
A D | bcm7038_wdt.c | 58 struct bcm7038_watchdog *wdt = watchdog_get_drvdata(wdog); in bcm7038_wdt_set_timeout_reg() 61 timeout = wdt->rate * wdog->timeout; in bcm7038_wdt_set_timeout_reg() 66 static int bcm7038_wdt_ping(struct watchdog_device *wdog) in bcm7038_wdt_ping() argument 68 struct bcm7038_watchdog *wdt = watchdog_get_drvdata(wdog); in bcm7038_wdt_ping() 76 static int bcm7038_wdt_start(struct watchdog_device *wdog) in bcm7038_wdt_start() argument 78 bcm7038_wdt_set_timeout_reg(wdog); in bcm7038_wdt_start() 79 bcm7038_wdt_ping(wdog); in bcm7038_wdt_start() 84 static int bcm7038_wdt_stop(struct watchdog_device *wdog) in bcm7038_wdt_stop() argument 98 bcm7038_wdt_stop(wdog); in bcm7038_wdt_set_timeout() 99 wdog->timeout = t; in bcm7038_wdt_set_timeout() [all …]
|
A D | retu_wdt.c | 55 static int retu_wdt_start(struct watchdog_device *wdog) in retu_wdt_start() argument 57 struct retu_wdt_dev *wdev = watchdog_get_drvdata(wdog); in retu_wdt_start() 61 return retu_write(wdev->rdev, RETU_REG_WATCHDOG, wdog->timeout); in retu_wdt_start() 64 static int retu_wdt_stop(struct watchdog_device *wdog) in retu_wdt_stop() argument 66 struct retu_wdt_dev *wdev = watchdog_get_drvdata(wdog); in retu_wdt_stop() 73 static int retu_wdt_ping(struct watchdog_device *wdog) in retu_wdt_ping() argument 75 struct retu_wdt_dev *wdev = watchdog_get_drvdata(wdog); in retu_wdt_ping() 77 return retu_write(wdev->rdev, RETU_REG_WATCHDOG, wdog->timeout); in retu_wdt_ping() 80 static int retu_wdt_set_timeout(struct watchdog_device *wdog, in retu_wdt_set_timeout() argument 83 struct retu_wdt_dev *wdev = watchdog_get_drvdata(wdog); in retu_wdt_set_timeout() [all …]
|
A D | digicolor_wdt.c | 51 struct dc_wdt *wdt = watchdog_get_drvdata(wdog); in dc_wdt_restart() 60 static int dc_wdt_start(struct watchdog_device *wdog) in dc_wdt_start() argument 62 struct dc_wdt *wdt = watchdog_get_drvdata(wdog); in dc_wdt_start() 64 dc_wdt_set(wdt, wdog->timeout * clk_get_rate(wdt->clk)); in dc_wdt_start() 69 static int dc_wdt_stop(struct watchdog_device *wdog) in dc_wdt_stop() argument 71 struct dc_wdt *wdt = watchdog_get_drvdata(wdog); in dc_wdt_stop() 78 static int dc_wdt_set_timeout(struct watchdog_device *wdog, unsigned int t) in dc_wdt_set_timeout() argument 80 struct dc_wdt *wdt = watchdog_get_drvdata(wdog); in dc_wdt_set_timeout() 83 wdog->timeout = t; in dc_wdt_set_timeout() 88 static unsigned int dc_wdt_get_timeleft(struct watchdog_device *wdog) in dc_wdt_get_timeleft() argument [all …]
|
A D | booke_wdt.c | 110 struct watchdog_device *wdog = data; in __booke_wdt_set() local 114 val |= WDTP(sec_to_period(wdog->timeout)); in __booke_wdt_set() 129 static int booke_wdt_ping(struct watchdog_device *wdog) in booke_wdt_ping() argument 139 struct watchdog_device *wdog = data; in __booke_wdt_enable() local 145 val |= (TCR_WIE|TCR_WRC(WRC_CHIP)|WDTP(sec_to_period(wdog->timeout))); in __booke_wdt_enable() 171 static int booke_wdt_start(struct watchdog_device *wdog) in booke_wdt_start() argument 173 on_each_cpu(__booke_wdt_enable, wdog, 0); in booke_wdt_start() 174 pr_debug("watchdog enabled (timeout = %u sec)\n", wdog->timeout); in booke_wdt_start() 179 static int booke_wdt_stop(struct watchdog_device *wdog) in booke_wdt_stop() argument
|
A D | bcm2835_wdt.c | 65 static int bcm2835_wdt_start(struct watchdog_device *wdog) in bcm2835_wdt_start() argument 67 struct bcm2835_wdt *wdt = watchdog_get_drvdata(wdog); in bcm2835_wdt_start() 73 writel_relaxed(PM_PASSWORD | (SECS_TO_WDOG_TICKS(wdog->timeout) & in bcm2835_wdt_start() 84 static int bcm2835_wdt_stop(struct watchdog_device *wdog) in bcm2835_wdt_stop() argument 86 struct bcm2835_wdt *wdt = watchdog_get_drvdata(wdog); in bcm2835_wdt_stop() 92 static unsigned int bcm2835_wdt_get_timeleft(struct watchdog_device *wdog) in bcm2835_wdt_get_timeleft() argument 94 struct bcm2835_wdt *wdt = watchdog_get_drvdata(wdog); in bcm2835_wdt_get_timeleft() 115 static int bcm2835_restart(struct watchdog_device *wdog, in bcm2835_restart() argument 118 struct bcm2835_wdt *wdt = watchdog_get_drvdata(wdog); in bcm2835_restart()
|
A D | bcm_kona_wdt.c | 199 static int bcm_kona_wdt_set_timeout_reg(struct watchdog_device *wdog, in bcm_kona_wdt_set_timeout_reg() argument 202 struct bcm_kona_wdt *wdt = watchdog_get_drvdata(wdog); in bcm_kona_wdt_set_timeout_reg() 205 SECS_TO_TICKS(wdog->timeout, wdt) | in bcm_kona_wdt_set_timeout_reg() 209 static int bcm_kona_wdt_set_timeout(struct watchdog_device *wdog, in bcm_kona_wdt_set_timeout() argument 212 wdog->timeout = t; in bcm_kona_wdt_set_timeout() 216 static unsigned int bcm_kona_wdt_get_timeleft(struct watchdog_device *wdog) in bcm_kona_wdt_get_timeleft() argument 218 struct bcm_kona_wdt *wdt = watchdog_get_drvdata(wdog); in bcm_kona_wdt_get_timeleft() 232 static int bcm_kona_wdt_start(struct watchdog_device *wdog) in bcm_kona_wdt_start() argument 234 return bcm_kona_wdt_set_timeout_reg(wdog, in bcm_kona_wdt_start() 238 static int bcm_kona_wdt_stop(struct watchdog_device *wdog) in bcm_kona_wdt_stop() argument [all …]
|
A D | w83627hf_wdt.c | 150 static int w83627hf_init(struct watchdog_device *wdog, enum chips chip) in w83627hf_init() argument 238 wdog->timeout); in w83627hf_init() 239 superio_outb(cr_wdt_timeout, wdog->timeout); in w83627hf_init() 271 static int wdt_start(struct watchdog_device *wdog) in wdt_start() argument 273 return wdt_set_time(wdog->timeout); in wdt_start() 276 static int wdt_stop(struct watchdog_device *wdog) in wdt_stop() argument 281 static int wdt_set_timeout(struct watchdog_device *wdog, unsigned int timeout) in wdt_set_timeout() argument 283 wdog->timeout = timeout; in wdt_set_timeout() 288 static unsigned int wdt_get_time(struct watchdog_device *wdog) in wdt_get_time() argument
|
A D | sb_wdog.c | 70 static void sbwdog_set(char __iomem *wdog, unsigned long t) in sbwdog_set() argument 73 __raw_writeb(0, wdog); in sbwdog_set() 74 __raw_writeq(t & 0x7fffffUL, wdog - 0x10); in sbwdog_set() 84 static void sbwdog_pet(char __iomem *wdog) in sbwdog_pet() argument 87 __raw_writeb(__raw_readb(wdog) | 1, wdog); in sbwdog_pet()
|
A D | alim1535_wdt.c | 317 u32 wdog; in ali_find_watchdog() local 342 pci_read_config_dword(pdev, 0xCC, &wdog); in ali_find_watchdog() 345 wdog &= ~0x3F; in ali_find_watchdog() 347 wdog &= ~((1 << 27)|(1 << 26)|(1 << 25)|(1 << 24)); in ali_find_watchdog() 349 wdog &= ~((1 << 16)|(1 << 13)|(1 << 12)|(1 << 11)|(1 << 10)|(1 << 9)); in ali_find_watchdog() 351 pci_write_config_dword(pdev, 0xCC, wdog); in ali_find_watchdog()
|
A D | octeon-wdt-main.c | 405 static int octeon_wdt_ping(struct watchdog_device __always_unused *wdog) in octeon_wdt_ping() argument 455 static int octeon_wdt_set_timeout(struct watchdog_device *wdog, in octeon_wdt_set_timeout() argument 481 octeon_wdt_ping(wdog); /* Get the irqs back on. */ in octeon_wdt_set_timeout() 485 static int octeon_wdt_start(struct watchdog_device *wdog) in octeon_wdt_start() argument 487 octeon_wdt_ping(wdog); in octeon_wdt_start() 492 static int octeon_wdt_stop(struct watchdog_device *wdog) in octeon_wdt_stop() argument 495 octeon_wdt_ping(wdog); in octeon_wdt_stop()
|
/linux/drivers/rtc/ |
A D | rtc-abx80x.c | 117 struct watchdog_device wdog; member 619 if (watchdog_hw_running(wdog)) in abx80x_wdog_set_timeout() 623 wdog->timeout = new_timeout; in abx80x_wdog_set_timeout() 630 return __abx80x_wdog_set_timeout(wdog, wdog->timeout); in abx80x_wdog_ping() 635 return __abx80x_wdog_set_timeout(wdog, wdog->timeout); in abx80x_wdog_start() 658 priv->wdog.parent = &priv->client->dev; in abx80x_setup_watchdog() 659 priv->wdog.ops = &abx80x_wdog_ops; in abx80x_setup_watchdog() 660 priv->wdog.info = &abx80x_wdog_info; in abx80x_setup_watchdog() 661 priv->wdog.min_timeout = 1; in abx80x_setup_watchdog() 663 priv->wdog.timeout = ABX8XX_WDT_MAX_TIME; in abx80x_setup_watchdog() [all …]
|
/linux/Documentation/devicetree/bindings/remoteproc/ |
A D | qcom,hexagon-v56.txt | 27 Definition: must be "wdog", "fatal", "ready", "handover", "stop-ack" 113 interrupt-names = "wdog", "fatal", "ready",
|
A D | qcom,wcnss-pil.txt | 34 Definition: should be "wdog", "fatal", optionally followed by "ready", 130 interrupt-names = "wdog", "fatal", "ready", "handover", "stop-ack";
|
A D | qcom,adsp.yaml | 289 - const: wdog 318 - const: wdog 525 interrupt-names = "wdog",
|
A D | qcom,q6v5.txt | 47 must be "wdog", "fatal", "ready", "handover", "stop-ack" 53 must be "wdog", "fatal", "ready", "handover", "stop-ack", 271 interrupt-names = "wdog",
|
/linux/arch/arm/boot/dts/ |
A D | arm-realview-eb-11mp-ctrevb.dts | 91 &wdog {
|
A D | arm-realview-eb.dts | 128 &wdog {
|
A D | arm-realview-eb-mp.dtsi | 216 &wdog {
|
/linux/drivers/mmc/host/ |
A D | cavium.c | 253 u64 emm_switch, wdog; in cvm_mmc_reset_bus() local 260 wdog = readq(slot->host->base + MIO_EMM_WDOG(host)); in cvm_mmc_reset_bus() 267 writeq(wdog, slot->host->base + MIO_EMM_WDOG(host)); in cvm_mmc_reset_bus()
|
/linux/arch/arm64/boot/dts/lg/ |
A D | lg1313.dtsi | 140 wdog: watchdog@fd200000 { label
|