Home
last modified time | relevance | path

Searched refs:tmrval (Results 1 – 4 of 4) sorted by relevance

/linux/drivers/watchdog/
H A Dwdt977.c201 int tmrval; in wdt977_set_timeout() local
204 tmrval = (t + 59) / 60; in wdt977_set_timeout()
211 tmrval += tmrval; in wdt977_set_timeout()
214 if (tmrval < 1 || tmrval > 255) in wdt977_set_timeout()
220 timeoutM = tmrval; in wdt977_set_timeout()
H A DiTCO_wdt.c370 unsigned int tmrval; in iTCO_wdt_set_timeout() local
372 tmrval = seconds_to_ticks(p, t); in iTCO_wdt_set_timeout()
376 tmrval /= 2; in iTCO_wdt_set_timeout()
380 if (tmrval < 0x04) in iTCO_wdt_set_timeout()
382 if ((p->iTCO_version >= 2 && tmrval > 0x3ff) || in iTCO_wdt_set_timeout()
383 (p->iTCO_version == 1 && tmrval > 0x03f)) in iTCO_wdt_set_timeout()
391 val16 |= tmrval; in iTCO_wdt_set_timeout()
396 if ((val16 & 0x3ff) != tmrval) in iTCO_wdt_set_timeout()
402 val8 |= (tmrval & 0xff); in iTCO_wdt_set_timeout()
407 if ((val8 & 0x3f) != tmrval) in iTCO_wdt_set_timeout()
H A Dnv_tco.c111 unsigned char tmrval; in tco_timer_set_heartbeat() local
122 tmrval = seconds_to_ticks(t); in tco_timer_set_heartbeat()
125 if (tmrval > 0x3f || tmrval < 0x04) in tco_timer_set_heartbeat()
132 val |= tmrval; in tco_timer_set_heartbeat()
136 if ((val & 0x3f) != tmrval) in tco_timer_set_heartbeat()
H A Dw83977f_wdt.c222 unsigned int tmrval; in wdt_set_timeout() local
234 tmrval = ((t + 15) + 29) / 30; in wdt_set_timeout()
236 if (tmrval > 255) in wdt_set_timeout()
243 timeoutW = tmrval; in wdt_set_timeout()