Lines Matching refs:delay
71 static void timer_set(timer_t *timer, lk_time_t delay, lk_time_t period, timer_callback callback, v… in timer_set() argument
74 …LTRACEF("timer %p, delay %u, period %u, callback %p, arg %p\n", timer, delay, period, callback, ar… in timer_set()
83 timer->scheduled_time = now + delay; in timer_set()
99 LTRACEF("setting new timer for %u msecs\n", delay); in timer_set()
100 platform_set_oneshot_timer(timer_tick, NULL, delay); in timer_set()
121 void timer_set_oneshot(timer_t *timer, lk_time_t delay, timer_callback callback, void *arg) { in timer_set_oneshot() argument
122 if (delay == 0) in timer_set_oneshot()
123 delay = 1; in timer_set_oneshot()
124 timer_set(timer, delay, 0, callback, arg); in timer_set_oneshot()
179 lk_time_t delay; in timer_cancel() local
183 delay = 0; in timer_cancel()
185 delay = newhead->scheduled_time - now; in timer_cancel()
187 LTRACEF("setting new timer to %u\n", (uint) delay); in timer_cancel()
188 platform_set_oneshot_timer(timer_tick, NULL, delay); in timer_cancel()
262 lk_time_t delay = timer->scheduled_time - now; in timer_tick() local
264 LTRACEF("setting new timer for %u msecs for event %p\n", (uint)delay, timer); in timer_tick()
265 platform_set_oneshot_timer(timer_tick, NULL, delay); in timer_tick()