• Home
  • Raw
  • Download

Lines Matching refs:wdog

70 static void keembay_wdt_set_timeout_reg(struct watchdog_device *wdog)  in keembay_wdt_set_timeout_reg()  argument
72 struct keembay_wdt *wdt = watchdog_get_drvdata(wdog); in keembay_wdt_set_timeout_reg()
74 keembay_wdt_writel(wdt, TIM_WATCHDOG, wdog->timeout * wdt->rate); in keembay_wdt_set_timeout_reg()
77 static void keembay_wdt_set_pretimeout_reg(struct watchdog_device *wdog) in keembay_wdt_set_pretimeout_reg() argument
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()
88 static int keembay_wdt_start(struct watchdog_device *wdog) in keembay_wdt_start() argument
90 struct keembay_wdt *wdt = watchdog_get_drvdata(wdog); in keembay_wdt_start()
97 static int keembay_wdt_stop(struct watchdog_device *wdog) in keembay_wdt_stop() argument
99 struct keembay_wdt *wdt = watchdog_get_drvdata(wdog); in keembay_wdt_stop()
106 static int keembay_wdt_ping(struct watchdog_device *wdog) in keembay_wdt_ping() argument
108 keembay_wdt_set_timeout_reg(wdog); in keembay_wdt_ping()
113 static int keembay_wdt_set_timeout(struct watchdog_device *wdog, u32 t) in keembay_wdt_set_timeout() argument
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()
122 static int keembay_wdt_set_pretimeout(struct watchdog_device *wdog, u32 t) in keembay_wdt_set_pretimeout() argument
124 if (t > wdog->timeout) in keembay_wdt_set_pretimeout()
127 wdog->pretimeout = t; in keembay_wdt_set_pretimeout()
128 keembay_wdt_set_pretimeout_reg(wdog); in keembay_wdt_set_pretimeout()
133 static unsigned int keembay_wdt_get_timeleft(struct watchdog_device *wdog) in keembay_wdt_get_timeleft() argument
135 struct keembay_wdt *wdt = watchdog_get_drvdata(wdog); in keembay_wdt_get_timeleft()