Lines Matching refs:idle
241 != bundle->phys_type.open && bundle->idle.timer.state == TIMER_STOPPED)
242 /* We may need to start our idle timer */
277 * If it's the first NCP, start the idle timer.
309 * If it's our last NCP, stop the idle timer.
827 bundle.cfg.idle.timeout = NCP_IDLE_TIMEOUT;
828 bundle.cfg.idle.min_timeout = 0;
883 memset(&bundle.idle.timer, '\0', sizeof bundle.idle.timer);
884 bundle.idle.done = 0;
916 timer_Stop(&bundle->idle.timer);
1105 if (arg->bundle->cfg.idle.timeout) {
1106 prompt_Printf(arg->prompt, "%us", arg->bundle->cfg.idle.timeout);
1107 if (arg->bundle->cfg.idle.min_timeout)
1109 arg->bundle->cfg.idle.min_timeout);
1172 timer_Stop(&bundle->idle.timer);
1174 bundle->phys_type.open && bundle->cfg.idle.timeout) {
1178 secs = bundle->cfg.idle.timeout;
1181 if (bundle->cfg.idle.min_timeout > secs && bundle->upat) {
1184 if (bundle->cfg.idle.min_timeout > up &&
1185 bundle->cfg.idle.min_timeout - up > (long long)secs)
1187 secs = bundle->cfg.idle.min_timeout - up;
1189 bundle->idle.timer.func = bundle_IdleTimeout;
1190 bundle->idle.timer.name = "idle";
1191 bundle->idle.timer.load = secs * SECTICKS;
1192 bundle->idle.timer.arg = bundle;
1193 timer_Start(&bundle->idle.timer);
1194 bundle->idle.done = now + secs;
1202 bundle->cfg.idle.timeout = timeout;
1203 bundle->cfg.idle.min_timeout = min_timeout;
1211 timer_Stop(&bundle->idle.timer);
1212 bundle->idle.done = 0;
1218 if (bundle->idle.done)
1219 return bundle->idle.done - time(NULL);
1708 /* Regenerate phys_type and adjust idle timer */