Home
last modified time | relevance | path

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

/drivers/watchdog/
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()
DiTCO_wdt.c356 unsigned int tmrval; in iTCO_wdt_set_timeout() local
358 tmrval = seconds_to_ticks(p, t); in iTCO_wdt_set_timeout()
362 tmrval /= 2; in iTCO_wdt_set_timeout()
366 if (tmrval < 0x04) in iTCO_wdt_set_timeout()
368 if ((p->iTCO_version >= 2 && tmrval > 0x3ff) || in iTCO_wdt_set_timeout()
369 (p->iTCO_version == 1 && tmrval > 0x03f)) in iTCO_wdt_set_timeout()
377 val16 |= tmrval; in iTCO_wdt_set_timeout()
382 if ((val16 & 0x3ff) != tmrval) in iTCO_wdt_set_timeout()
388 val8 |= (tmrval & 0xff); in iTCO_wdt_set_timeout()
393 if ((val8 & 0x3f) != tmrval) in iTCO_wdt_set_timeout()
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()
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()