/hal_espressif-3.7.0/components/bt/esp_ble_mesh/mesh_common/ |
D | mesh_timer.c | 66 osi_alarm_t *alarm = NULL; in k_delayed_work_init() local 77 alarm = osi_alarm_new("bt_mesh", (osi_alarm_callback_t)handler, (void *)&work->work, 0); in k_delayed_work_init() 78 if (alarm == NULL) { in k_delayed_work_init() 83 if (!hash_map_set(bm_alarm_hash_map, work, (void *)alarm)) { in k_delayed_work_init() 90 alarm = hash_map_get(bm_alarm_hash_map, work); in k_delayed_work_init() 91 if (alarm == NULL) { in k_delayed_work_init() 98 osi_alarm_cancel(alarm); in k_delayed_work_init() 111 osi_alarm_t *alarm = hash_map_get(bm_alarm_hash_map, (void *)work); in k_delayed_work_submit() local 112 if (alarm == NULL) { in k_delayed_work_submit() 119 osi_alarm_cancel(alarm); in k_delayed_work_submit() [all …]
|
/hal_espressif-3.7.0/components/bt/common/osi/ |
D | alarm.c | 52 static osi_alarm_err_t alarm_free(osi_alarm_t *alarm); 53 static osi_alarm_err_t alarm_set(osi_alarm_t *alarm, period_ms_t timeout, bool is_periodic); 139 static void alarm_cb_handler(struct alarm_t *alarm) in alarm_cb_handler() argument 141 OSI_TRACE_DEBUG("TimerID %p\n", alarm); in alarm_cb_handler() 150 arg.cb = alarm->cb; in alarm_cb_handler() 151 arg.cb_data = alarm->cb_data; in alarm_cb_handler() 198 static osi_alarm_err_t alarm_free(osi_alarm_t *alarm) in alarm_free() argument 200 if (!alarm || alarm->alarm_hdl == NULL) { in alarm_free() 204 esp_timer_stop(alarm->alarm_hdl); in alarm_free() 205 esp_err_t stat = esp_timer_delete(alarm->alarm_hdl); in alarm_free() [all …]
|
/hal_espressif-3.7.0/components/bt/host/bluedroid/stack/btu/ |
D | btu_task.c | 428 osi_alarm_t *alarm = NULL; in btu_start_timer() local 435 alarm = osi_alarm_new("btu_gen", btu_general_alarm_cb, (void *)p_tle, 0); in btu_start_timer() 436 hash_map_set(btu_general_alarm_hash_map, p_tle, alarm); in btu_start_timer() 440 alarm = hash_map_get(btu_general_alarm_hash_map, p_tle); in btu_start_timer() 441 if (alarm == NULL) { in btu_start_timer() 445 osi_alarm_cancel(alarm); in btu_start_timer() 451 osi_alarm_set(alarm, (period_ms_t)(timeout_sec * 1000)); in btu_start_timer() 474 osi_alarm_t *alarm = hash_map_get(btu_general_alarm_hash_map, p_tle); in btu_stop_timer() local 475 if (alarm == NULL) { in btu_stop_timer() 479 osi_alarm_cancel(alarm); in btu_stop_timer() [all …]
|
/hal_espressif-3.7.0/components/bt/common/osi/include/osi/ |
D | alarm.h | 51 void osi_alarm_free(osi_alarm_t *alarm); 58 osi_alarm_err_t osi_alarm_set(osi_alarm_t *alarm, period_ms_t timeout); 61 osi_alarm_err_t osi_alarm_set_periodic(osi_alarm_t *alarm, period_ms_t period); 67 osi_alarm_err_t osi_alarm_cancel(osi_alarm_t *alarm); 73 period_ms_t osi_alarm_get_remaining_ms(const osi_alarm_t *alarm); 82 bool osi_alarm_is_active(osi_alarm_t *alarm);
|
/hal_espressif-3.7.0/components/esp_timer/src/ |
D | esp_timer.c | 65 uint64_t alarm; member 195 timer->alarm = now + new_period; in esp_timer_restart() 199 timer->alarm = now + timeout_us; in esp_timer_restart() 218 int64_t alarm = esp_timer_get_time() + timeout_us; in esp_timer_start_once() local 232 timer->alarm = alarm; in esp_timer_start_once() 253 int64_t alarm = esp_timer_get_time() + period_us; in esp_timer_start_periodic() local 262 timer->alarm = alarm; in esp_timer_start_periodic() 300 int64_t alarm = esp_timer_get_time(); in esp_timer_delete() local 314 timer->alarm = alarm; in esp_timer_delete() 333 if (timer->alarm < it->alarm) { in timer_insert() [all …]
|
D | esp_timer_impl_lac.c | 166 timer_64b_reg_t alarm = { .val = MAX(timestamp * TICKS_PER_US, now_time + offset) }; in esp_timer_impl_set_alarm_id() local 169 REG_WRITE(ALARM_LO_REG, alarm.lo); in esp_timer_impl_set_alarm_id() 170 REG_WRITE(ALARM_HI_REG, alarm.hi); in esp_timer_impl_set_alarm_id() 173 int64_t delta = (int64_t)alarm.val - (int64_t)now_time; in esp_timer_impl_set_alarm_id() 177 alarm.val = now_time + offset; in esp_timer_impl_set_alarm_id() 292 timer_64b_reg_t alarm = { in esp_timer_impl_get_alarm_reg() local 297 return alarm.val; in esp_timer_impl_get_alarm_reg()
|
/hal_espressif-3.7.0/components/bt/host/bluedroid/bta/sys/ |
D | bta_sys_main.c | 610 osi_alarm_t *alarm = hash_map_get(bta_alarm_hash_map, p_tle); in bta_sys_start_timer() local 611 if (alarm == NULL) { in bta_sys_start_timer() 619 osi_alarm_set(alarm, (period_ms_t)timeout_ms); in bta_sys_start_timer() 624 osi_alarm_t *alarm = (osi_alarm_t *)hash_map_entry->data; in hash_iter_ro_cb() local 626 *p_remaining_ms += osi_alarm_get_remaining_ms(alarm); in hash_iter_ro_cb() 654 osi_alarm_t *alarm = hash_map_get(bta_alarm_hash_map, p_tle); in bta_sys_timer_is_active() local 655 if (alarm != NULL && osi_alarm_is_active(alarm)) { in bta_sys_timer_is_active() 675 osi_alarm_t *alarm = hash_map_get(bta_alarm_hash_map, p_tle); in bta_sys_stop_timer() local 676 if (alarm == NULL) { in bta_sys_stop_timer() 680 osi_alarm_cancel(alarm); in bta_sys_stop_timer() [all …]
|
/hal_espressif-3.7.0/components/hal/ |
D | systimer_hal.c | 85 systimer_counter_value_t alarm = { in systimer_hal_set_alarm_target() local 89 systimer_ll_set_alarm_target(hal->dev, alarm_id, alarm.val); in systimer_hal_set_alarm_target() 100 systimer_counter_value_t alarm = { .val = MAX(hal->us_to_ticks(timestamp), now_time + offset) }; in systimer_hal_set_alarm_target() local 103 systimer_ll_set_alarm_target(hal->dev, alarm_id, alarm.val); in systimer_hal_set_alarm_target() 106 int64_t delta = (int64_t)alarm.val - (int64_t)now_time; in systimer_hal_set_alarm_target() 110 alarm.val = now_time + offset; in systimer_hal_set_alarm_target()
|
/hal_espressif-3.7.0/components/hal/esp32c6/include/hal/ |
D | lp_timer_ll.h | 51 dev->int_clr.alarm = 1; in lp_timer_ll_clear_alarm_intr_status() 61 dev->lp_int_clr.alarm = 1; in lp_timer_ll_clear_lp_alarm_intr_status()
|
/hal_espressif-3.7.0/components/soc/esp32c6/include/soc/ |
D | lp_timer_struct.h | 69 uint32_t alarm : 1; member 78 uint32_t alarm : 1; member
|
/hal_espressif-3.7.0/components/soc/esp32h2/include/soc/ |
D | lp_timer_struct.h | 69 uint32_t alarm : 1; member 78 uint32_t alarm : 1; member
|
/hal_espressif-3.7.0/components/esp_rom/patches/ |
D | esp_rom_systimer.c | 40 systimer_counter_value_t alarm = { in systimer_hal_set_alarm_target() local 44 systimer_ll_set_alarm_target(hal->dev, alarm_id, alarm.val); in systimer_hal_set_alarm_target()
|
/hal_espressif-3.7.0/components/hal/esp32h2/include/hal/ |
D | lp_timer_ll.h | 50 dev->int_clr.alarm = 1; in lp_timer_ll_clear_alarm_intr_status()
|
/hal_espressif-3.7.0/components/bt/ |
D | CMakeLists.txt | 55 "common/osi/alarm.c"
|