Lines Matching refs:idle
239 != bundle->phys_type.open && bundle->idle.timer.state == TIMER_STOPPED) in bundle_LinkAdded()
828 bundle.cfg.idle.timeout = NCP_IDLE_TIMEOUT; in bundle_Create()
829 bundle.cfg.idle.min_timeout = 0; in bundle_Create()
884 memset(&bundle.idle.timer, '\0', sizeof bundle.idle.timer); in bundle_Create()
885 bundle.idle.done = 0; in bundle_Create()
917 timer_Stop(&bundle->idle.timer); in bundle_Destroy()
1106 if (arg->bundle->cfg.idle.timeout) { in bundle_ShowStatus()
1107 prompt_Printf(arg->prompt, "%us", arg->bundle->cfg.idle.timeout); in bundle_ShowStatus()
1108 if (arg->bundle->cfg.idle.min_timeout) in bundle_ShowStatus()
1110 arg->bundle->cfg.idle.min_timeout); in bundle_ShowStatus()
1173 timer_Stop(&bundle->idle.timer); in bundle_StartIdleTimer()
1175 bundle->phys_type.open && bundle->cfg.idle.timeout) { in bundle_StartIdleTimer()
1179 secs = bundle->cfg.idle.timeout; in bundle_StartIdleTimer()
1182 if (bundle->cfg.idle.min_timeout > secs && bundle->upat) { in bundle_StartIdleTimer()
1185 if (bundle->cfg.idle.min_timeout > up && in bundle_StartIdleTimer()
1186 bundle->cfg.idle.min_timeout - up > (long long)secs) in bundle_StartIdleTimer()
1188 secs = bundle->cfg.idle.min_timeout - up; in bundle_StartIdleTimer()
1190 bundle->idle.timer.func = bundle_IdleTimeout; in bundle_StartIdleTimer()
1191 bundle->idle.timer.name = "idle"; in bundle_StartIdleTimer()
1192 bundle->idle.timer.load = secs * SECTICKS; in bundle_StartIdleTimer()
1193 bundle->idle.timer.arg = bundle; in bundle_StartIdleTimer()
1194 timer_Start(&bundle->idle.timer); in bundle_StartIdleTimer()
1195 bundle->idle.done = now + secs; in bundle_StartIdleTimer()
1203 bundle->cfg.idle.timeout = timeout; in bundle_SetIdleTimer()
1204 bundle->cfg.idle.min_timeout = min_timeout; in bundle_SetIdleTimer()
1212 timer_Stop(&bundle->idle.timer); in bundle_StopIdleTimer()
1213 bundle->idle.done = 0; in bundle_StopIdleTimer()
1219 if (bundle->idle.done) in bundle_RemainingIdleTime()
1220 return bundle->idle.done - time(NULL); in bundle_RemainingIdleTime()