Lines Matching full:timeout
43 u32 timeout = wdev->timeout * VISCONTI_WDT_FREQ; in visconti_wdt_start() local
47 writel(timeout, priv->base + WDT_MAX); in visconti_wdt_start()
76 u32 timeout = wdev->timeout * VISCONTI_WDT_FREQ; in visconti_wdt_get_timeleft() local
79 if (timeout <= cnt) in visconti_wdt_get_timeleft()
81 timeout -= cnt; in visconti_wdt_get_timeleft()
83 return timeout / VISCONTI_WDT_FREQ; in visconti_wdt_get_timeleft()
86 static int visconti_wdt_set_timeout(struct watchdog_device *wdev, unsigned int timeout) in visconti_wdt_set_timeout() argument
91 wdev->timeout = timeout; in visconti_wdt_set_timeout()
92 val = wdev->timeout * VISCONTI_WDT_FREQ; in visconti_wdt_set_timeout()
94 /* Clear counter before setting timeout because WDT expires */ in visconti_wdt_set_timeout()
164 wdev->timeout = min(wdev->max_timeout, WDT_DEFAULT_TIMEOUT); in visconti_wdt_probe()
170 /* This overrides the default timeout only if DT configuration was found */ in visconti_wdt_probe()
173 dev_warn(dev, "Specified timeout value invalid, using default\n"); in visconti_wdt_probe()