Lines Matching refs:timer

89 bool btstack_run_loop_base_remove_timer(btstack_timer_source_t * timer){  in btstack_run_loop_base_remove_timer()  argument
90 … return btstack_linked_list_remove(&btstack_run_loop_base_timers, (btstack_linked_item_t *) timer); in btstack_run_loop_base_remove_timer()
93 void btstack_run_loop_base_add_timer(btstack_timer_source_t * timer){ in btstack_run_loop_base_add_timer() argument
98 if (next == timer){ in btstack_run_loop_base_add_timer()
99 … log_error("Timer %p already registered! Please read source code comment.", (void*)timer); in btstack_run_loop_base_add_timer()
115 int32_t delta = btstack_time_delta(timer->timeout, next->timeout); in btstack_run_loop_base_add_timer()
118 timer->item.next = it->next; in btstack_run_loop_base_add_timer()
119 it->next = (btstack_linked_item_t *) timer; in btstack_run_loop_base_add_timer()
125 btstack_timer_source_t * timer = (btstack_timer_source_t *) btstack_run_loop_base_timers; in btstack_run_loop_base_process_timers() local
126 int32_t delta = btstack_time_delta(timer->timeout, now); in btstack_run_loop_base_process_timers()
128 btstack_run_loop_base_remove_timer(timer); in btstack_run_loop_base_process_timers()
129 timer->process(timer); in btstack_run_loop_base_process_timers()
138 btstack_timer_source_t * timer = (btstack_timer_source_t*) it; in btstack_run_loop_base_dump_timer() local
139 … log_info("timer %u (%p): timeout %" PRIbtstack_time_t "\n", i, (void *) timer, timer->timeout); in btstack_run_loop_base_dump_timer()
150 btstack_timer_source_t * timer = (btstack_timer_source_t *) btstack_run_loop_base_timers; in btstack_run_loop_base_get_time_until_timeout() local
151 uint32_t list_timeout = timer->timeout; in btstack_run_loop_base_get_time_until_timeout()
193 void btstack_run_loop_set_timer_handler(btstack_timer_source_t * timer, void (*process)(btstack_tim… in btstack_run_loop_set_timer_handler() argument
194 timer->process = process; in btstack_run_loop_set_timer_handler()
255 void btstack_run_loop_set_timer(btstack_timer_source_t *timer, uint32_t timeout_in_ms){ in btstack_run_loop_set_timer() argument
257 the_run_loop->set_timer(timer, timeout_in_ms); in btstack_run_loop_set_timer()
263 void btstack_run_loop_set_timer_context(btstack_timer_source_t * timer, void * context){ in btstack_run_loop_set_timer_context() argument
264 timer->context = context; in btstack_run_loop_set_timer_context()
270 void * btstack_run_loop_get_timer_context(btstack_timer_source_t * timer){ in btstack_run_loop_get_timer_context() argument
271 return timer->context; in btstack_run_loop_get_timer_context()
277 void btstack_run_loop_add_timer(btstack_timer_source_t * timer){ in btstack_run_loop_add_timer() argument
279 btstack_assert(timer->process != NULL); in btstack_run_loop_add_timer()
280 the_run_loop->add_timer(timer); in btstack_run_loop_add_timer()
286 int btstack_run_loop_remove_timer(btstack_timer_source_t * timer){ in btstack_run_loop_remove_timer() argument
288 return the_run_loop->remove_timer(timer); in btstack_run_loop_remove_timer()