Lines Matching refs:timeout
101 imx_wdog_enable(struct imx_wdog_softc *sc, u_int timeout) in imx_wdog_enable() argument
105 if (timeout < 1 || timeout > 128) in imx_wdog_enable()
109 if (timeout != sc->sc_timeout) { in imx_wdog_enable()
110 sc->sc_timeout = timeout; in imx_wdog_enable()
113 reg |= ((2 * timeout - 1) << WDOG_CR_WT_SHIFT); in imx_wdog_enable()
134 u_int timeout; in imx_watchdog() local
142 timeout = (u_int)((1ULL << (cmd & WD_INTERVAL)) / 1000000000U); in imx_watchdog()
143 if (imx_wdog_enable(sc, timeout) == 0) in imx_watchdog()
187 pcell_t timeout; in imx_wdog_attach() local
224 &timeout, sizeof(timeout)) == sizeof(timeout)) { in imx_wdog_attach()
225 if (timeout < 1 || timeout > 128) { in imx_wdog_attach()
227 "property value %u, using 128\n", timeout); in imx_wdog_attach()
228 timeout = 128; in imx_wdog_attach()
230 imx_wdog_enable(sc, timeout); in imx_wdog_attach()
232 "timeout-sec property value %u\n", timeout); in imx_wdog_attach()