Lines Matching refs:dispatch_method
142 args->dispatch_method < 0 || args->dispatch_method >= ESP_TIMER_MAX) { in esp_timer_create()
151 result->flags = (args->dispatch_method ? FL_ISR_DISPATCH_METHOD : 0) | in esp_timer_create()
155 esp_timer_dispatch_t dispatch_method = result->flags & FL_ISR_DISPATCH_METHOD; in esp_timer_create() local
156 timer_list_lock(dispatch_method); in esp_timer_create()
158 timer_list_unlock(dispatch_method); in esp_timer_create()
182 esp_timer_dispatch_t dispatch_method = timer->flags & FL_ISR_DISPATCH_METHOD; in esp_timer_restart() local
183 timer_list_lock(dispatch_method); in esp_timer_restart()
186 timer_list_unlock(dispatch_method); in esp_timer_restart()
215 timer_list_unlock(dispatch_method); in esp_timer_restart()
229 esp_timer_dispatch_t dispatch_method = timer->flags & FL_ISR_DISPATCH_METHOD; in esp_timer_start_once() local
232 timer_list_lock(dispatch_method); in esp_timer_start_once()
250 timer_list_unlock(dispatch_method); in esp_timer_start_once()
264 esp_timer_dispatch_t dispatch_method = timer->flags & FL_ISR_DISPATCH_METHOD; in esp_timer_start_periodic() local
266 timer_list_lock(dispatch_method); in esp_timer_start_periodic()
281 timer_list_unlock(dispatch_method); in esp_timer_start_periodic()
290 esp_timer_dispatch_t dispatch_method = timer->flags & FL_ISR_DISPATCH_METHOD; in esp_timer_stop() local
293 timer_list_lock(dispatch_method); in esp_timer_stop()
301 timer_list_unlock(dispatch_method); in esp_timer_stop()
338 esp_timer_dispatch_t dispatch_method = timer->flags & FL_ISR_DISPATCH_METHOD; in timer_insert() local
339 if (LIST_FIRST(&s_timers[dispatch_method]) == NULL) { in timer_insert()
340 LIST_INSERT_HEAD(&s_timers[dispatch_method], timer, list_entry); in timer_insert()
342 LIST_FOREACH(it, &s_timers[dispatch_method], list_entry) { in timer_insert()
354 if (without_update_alarm == false && timer == LIST_FIRST(&s_timers[dispatch_method])) { in timer_insert()
355 esp_timer_impl_set_alarm_id(timer->alarm, dispatch_method); in timer_insert()
362 esp_timer_dispatch_t dispatch_method = timer->flags & FL_ISR_DISPATCH_METHOD; in timer_remove() local
363 esp_timer_handle_t first_timer = LIST_FIRST(&s_timers[dispatch_method]); in timer_remove()
369 first_timer = LIST_FIRST(&s_timers[dispatch_method]); in timer_remove()
373 esp_timer_impl_set_alarm_id(next_timestamp, dispatch_method); in timer_remove()
385 esp_timer_dispatch_t dispatch_method = timer->flags & FL_ISR_DISPATCH_METHOD; in timer_insert_inactive() local
386 esp_timer_handle_t head = LIST_FIRST(&s_inactive_timers[dispatch_method]); in timer_insert_inactive()
388 LIST_INSERT_HEAD(&s_inactive_timers[dispatch_method], timer, list_entry); in timer_insert_inactive()
427 static IRAM_ATTR bool timer_process_alarm(esp_timer_dispatch_t dispatch_method) in timer_process_alarm() argument
429 static bool timer_process_alarm(esp_timer_dispatch_t dispatch_method) in timer_process_alarm()
432 timer_list_lock(dispatch_method); in timer_process_alarm()
436 it = LIST_FIRST(&s_timers[dispatch_method]); in timer_process_alarm()
472 timer_list_unlock(dispatch_method); in timer_process_alarm()
474 timer_list_lock(dispatch_method); in timer_process_alarm()
482 …if (dispatch_method == ESP_TIMER_TASK || (dispatch_method != ESP_TIMER_TASK && processed == true))… in timer_process_alarm()
483 esp_timer_impl_set_alarm_id(it->alarm, dispatch_method); in timer_process_alarm()
487 esp_timer_impl_set_alarm_id(UINT64_MAX, dispatch_method); in timer_process_alarm()
490 timer_list_unlock(dispatch_method); in timer_process_alarm()
600 …for (esp_timer_dispatch_t dispatch_method = ESP_TIMER_TASK; dispatch_method < ESP_TIMER_MAX; ++dis…
601 if (!LIST_EMPTY(&s_timers[dispatch_method])) {
610 …for (esp_timer_dispatch_t dispatch_method = ESP_TIMER_TASK; dispatch_method < ESP_TIMER_MAX; ++dis…
611 if (!LIST_EMPTY(&s_inactive_timers[dispatch_method])) {
659 …for (esp_timer_dispatch_t dispatch_method = ESP_TIMER_TASK; dispatch_method < ESP_TIMER_MAX; ++dis…
660 timer_list_lock(dispatch_method);
661 LIST_FOREACH(it, &s_timers[dispatch_method], list_entry) {
665 LIST_FOREACH(it, &s_inactive_timers[dispatch_method], list_entry) {
669 timer_list_unlock(dispatch_method);
685 …for (esp_timer_dispatch_t dispatch_method = ESP_TIMER_TASK; dispatch_method < ESP_TIMER_MAX; ++dis…
686 timer_list_lock(dispatch_method);
687 LIST_FOREACH(it, &s_timers[dispatch_method], list_entry) {
691 LIST_FOREACH(it, &s_inactive_timers[dispatch_method], list_entry) {
695 timer_list_unlock(dispatch_method);
718 …for (esp_timer_dispatch_t dispatch_method = ESP_TIMER_TASK; dispatch_method < ESP_TIMER_MAX; ++dis…
719 timer_list_lock(dispatch_method);
720 esp_timer_handle_t it = LIST_FIRST(&s_timers[dispatch_method]);
726 timer_list_unlock(dispatch_method);
734 …for (esp_timer_dispatch_t dispatch_method = ESP_TIMER_TASK; dispatch_method < ESP_TIMER_MAX; ++dis…
735 timer_list_lock(dispatch_method);
737 LIST_FOREACH(it, &s_timers[dispatch_method], list_entry) {
746 timer_list_unlock(dispatch_method);
757 esp_timer_dispatch_t dispatch_method = timer->flags & FL_ISR_DISPATCH_METHOD;
759 timer_list_lock(dispatch_method);
761 timer_list_unlock(dispatch_method);
777 esp_timer_dispatch_t dispatch_method = timer->flags & FL_ISR_DISPATCH_METHOD;
779 timer_list_lock(dispatch_method);
781 timer_list_unlock(dispatch_method);