Home
last modified time | relevance | path

Searched refs:now (Results 1 – 25 of 59) sorted by relevance

123

/hal_espressif-3.7.0/components/wpa_supplicant/port/
Deloop.c225 struct os_reltime now; in eloop_cancel_timeout_one() local
227 os_get_reltime(&now); in eloop_cancel_timeout_one()
236 if (os_reltime_before(&now, &timeout->time)) in eloop_cancel_timeout_one()
237 os_reltime_sub(&timeout->time, &now, remaining); in eloop_cancel_timeout_one()
266 struct os_reltime now, requested, remaining; in eloop_deplete_timeout() local
275 os_get_reltime(&now); in eloop_deplete_timeout()
276 os_reltime_sub(&tmp->time, &now, &remaining); in eloop_deplete_timeout()
298 struct os_reltime now, requested, remaining; in eloop_replenish_timeout() local
307 os_get_reltime(&now); in eloop_replenish_timeout()
308 os_reltime_sub(&tmp->time, &now, &remaining); in eloop_replenish_timeout()
[all …]
/hal_espressif-3.7.0/components/bootloader_support/src/
Dbootloader_random.c41 uint32_t start, now; in bootloader_fill_random() local
51 now = esp_cpu_get_cycle_count(); in bootloader_fill_random()
52 } while (now - start < RNG_CPU_WAIT_CYCLE_NUM); in bootloader_fill_random()
73 now = esp_cpu_get_cycle_count(); in bootloader_fill_random()
74 } while (now - start < RNG_CPU_WAIT_CYCLE_NUM); in bootloader_fill_random()
/hal_espressif-3.7.0/components/esp_pm/
Dpm_locks.c108 pm_time_t now = 0; in esp_pm_lock_acquire() local
110 now = pm_get_time(); in esp_pm_lock_acquire()
112 esp_pm_impl_switch_mode(handle->mode, MODE_LOCK, now); in esp_pm_lock_acquire()
114 handle->last_taken = now; in esp_pm_lock_acquire()
138 pm_time_t now = 0; in esp_pm_lock_release() local
140 now = pm_get_time(); in esp_pm_lock_release()
141 handle->time_held += now - handle->last_taken; in esp_pm_lock_release()
143 esp_pm_impl_switch_mode(handle->mode, MODE_UNLOCK, now); in esp_pm_lock_release()
Dpm_impl.c339 pm_mode_switch_t lock_or_unlock, pm_time_t now) in esp_pm_impl_switch_mode() argument
364 pm_time_t diff = now - s_last_mode_change_time; in esp_pm_impl_switch_mode()
367 s_last_mode_change_time = now; in esp_pm_impl_switch_mode()
616 int64_t now = esp_timer_get_time(); in vApplicationSleep() local
617 int64_t time_until_next_alarm = next_esp_timer_alarm - now; in vApplicationSleep()
674 pm_time_t now = pm_get_time(); in esp_pm_impl_dump_stats() local
680 time_in_mode[cur_mode] += now - last_mode_change_time; in esp_pm_impl_dump_stats()
694 (int) (time_in_mode[i] * 100 / now)); in esp_pm_impl_dump_stats()
/hal_espressif-3.7.0/components/mbedtls/port/
Desp_timing.c42 struct timeval now; in mbedtls_timing_get_timer() local
43 gettimeofday( &now, NULL ); in mbedtls_timing_get_timer()
44 delta = ( now.tv_sec - t->start.tv_sec ) * 1000ul in mbedtls_timing_get_timer()
45 + ( now.tv_usec - t->start.tv_usec ) / 1000; in mbedtls_timing_get_timer()
/hal_espressif-3.7.0/zephyr/port/wifi/wpa_supplicant/
Dos_xtensa.c38 int64_t now = k_uptime_ticks(); in os_get_time() local
39 t->sec = now / CONFIG_SYS_CLOCK_TICKS_PER_SEC; in os_get_time()
40 t->usec = k_ticks_to_us_floor64(now); in os_get_time()
/hal_espressif-3.7.0/components/wpa_supplicant/src/ap/
Dpmksa_cache_auth.c109 struct os_reltime now; in pmksa_cache_expire() local
111 os_get_reltime(&now); in pmksa_cache_expire()
112 while (pmksa->pmksa && pmksa->pmksa->expiration <= now.sec) { in pmksa_cache_expire()
125 struct os_reltime now; in pmksa_cache_set_expiration() local
130 os_get_reltime(&now); in pmksa_cache_set_expiration()
131 sec = pmksa->pmksa->expiration - now.sec; in pmksa_cache_set_expiration()
245 struct os_reltime now; in pmksa_cache_auth_create_entry() local
266 os_get_reltime(&now); in pmksa_cache_auth_create_entry()
267 entry->expiration = now.sec; in pmksa_cache_auth_create_entry()
414 struct os_reltime now; in pmksa_cache_auth_list() local
[all …]
Dcomeback_token.c79 struct os_reltime now; in auth_build_token_req() local
86 os_get_time(&now); in auth_build_token_req()
88 os_reltime_expired(&now, last_comeback_key_update, 60) || in auth_build_token_req()
95 *last_comeback_key_update = now; in auth_build_token_req()
/hal_espressif-3.7.0/components/wpa_supplicant/src/rsn_supp/
Dpmksa_cache.c57 struct os_reltime now; in pmksa_cache_expire() local
59 os_get_reltime(&now); in pmksa_cache_expire()
60 while (pmksa->pmksa && pmksa->pmksa->expiration <= now.sec) { in pmksa_cache_expire()
74 struct os_reltime now; in pmksa_cache_set_expiration() local
80 os_get_reltime(&now); in pmksa_cache_set_expiration()
81 sec = pmksa->pmksa->expiration - now.sec; in pmksa_cache_set_expiration()
112 struct os_reltime now; in pmksa_cache_add() local
134 os_get_reltime(&now); in pmksa_cache_add()
135 entry->expiration = now.sec + dot11RSNAConfigPMKLifetime; in pmksa_cache_add()
136 entry->reauth_time = now.sec + dot11RSNAConfigPMKLifetime * in pmksa_cache_add()
[all …]
/hal_espressif-3.7.0/components/esp_adc/test_apps/adc/main/
Dtest_adc2_wifi.c45 #define TIME_REMAIN(start, now, timeout) ((now) >= (start) ? MINUS_UNTIL_ZERO((timeout), (now)-(sta… argument
177 int32_t now; variable
182 now = xTaskGetTickCount();
183 remain_wait_ms = pdTICKS_TO_MS(TIME_REMAIN(start, now, timeout));
/hal_espressif-3.7.0/components/newlib/test_apps/newlib/main/
Dtest_time.c383 struct timeval now = {0}; in test_posix_timers_clock() local
384 now.tv_sec = 10L; in test_posix_timers_clock()
385 now.tv_usec = 100000L; in test_posix_timers_clock()
386 TEST_ASSERT(settimeofday(&now, NULL) == 0); in test_posix_timers_clock()
387 TEST_ASSERT(gettimeofday(&now, NULL) == 0); in test_posix_timers_clock()
396 TEST_ASSERT(now.tv_sec == ts.tv_sec); in test_posix_timers_clock()
397 TEST_ASSERT_INT_WITHIN(5000000L, ts.tv_nsec, now.tv_usec * 1000L); in test_posix_timers_clock()
402 TEST_ASSERT(gettimeofday(&now, NULL) == 0); in test_posix_timers_clock()
403 TEST_ASSERT_EQUAL(ts.tv_sec, now.tv_sec); in test_posix_timers_clock()
404 TEST_ASSERT_INT_WITHIN(5000L, ts.tv_nsec / 1000L, now.tv_usec); in test_posix_timers_clock()
[all …]
Dtest_newlib.c73 time_t now = 1464248488; variable
76 struct tm *tm_utc = gmtime(&now);
86 struct tm *tm_local = localtime(&now);
113 struct timeval now = { .tv_sec = t }; variable
114 settimeofday(&now, NULL);
/hal_espressif-3.7.0/components/wpa_supplicant/test/
Dtest_eloop.c34 struct os_time age, now; in callback() local
36 os_get_reltime(&now); in callback()
37 os_time_sub(&now, &ts, &age); in callback()
/hal_espressif-3.7.0/components/bt/esp_ble_mesh/mesh_models/server/
Dserver_common.c192 uint8_t tid, uint16_t src, uint16_t dst, int64_t *now) in bt_mesh_is_server_recv_last_msg() argument
194 *now = k_uptime_get(); in bt_mesh_is_server_recv_last_msg()
202 (*now - last->timestamp <= K_SECONDS(6))) { in bt_mesh_is_server_recv_last_msg()
210 uint8_t tid, uint16_t src, uint16_t dst, int64_t *now) in bt_mesh_server_update_last_msg() argument
220 last->timestamp = *now; in bt_mesh_server_update_last_msg()
/hal_espressif-3.7.0/components/esp_phy/src/
Dphy_common.c29 int64_t now = esp_timer_get_time(); in phy_track_pll_init() local
30 if (now - s_previous_timestamp > PHY_TRACK_PLL_PERIOD_IN_US) { in phy_track_pll_init()
/hal_espressif-3.7.0/components/bt/esp_ble_mesh/mesh_models/server/include/
Dserver_common.h113 uint8_t tid, uint16_t src, uint16_t dst, int64_t *now);
116 uint8_t tid, uint16_t src, uint16_t dst, int64_t *now);
/hal_espressif-3.7.0/components/wpa_supplicant/src/utils/
Dcommon.c132 struct os_time now; in wpa_get_ntp_timestamp() local
137 os_get_time(&now); in wpa_get_ntp_timestamp()
138 sec = now.sec + 2208988800U; /* Epoch to 1900 */ in wpa_get_ntp_timestamp()
140 usec = now.usec; in wpa_get_ntp_timestamp()
531 int os_reltime_expired(struct os_time *now, in os_reltime_expired() argument
537 os_time_sub(now, ts, &age); in os_reltime_expired()
/hal_espressif-3.7.0/components/esp_timer/src/
Desp_timer.c180 const int64_t now = esp_timer_impl_get_time(); in esp_timer_restart() local
195 timer->alarm = now + new_period; in esp_timer_restart()
199 timer->alarm = now + timeout_us; in esp_timer_restart()
427 int64_t now = esp_timer_impl_get_time(); in timer_process_alarm() local
428 if (it == NULL || it->alarm > now) { in timer_process_alarm()
441 int skipped = (now - it->alarm) / it->period; in timer_process_alarm()
443 it->alarm = now + it->period; in timer_process_alarm()
458 uint64_t callback_start = now; in timer_process_alarm()
/hal_espressif-3.7.0/components/esp_timer/test_apps/main/
Dtest_esp_timer.c96 int64_t now = start; in set_alarm_task() local
100 while (now - start < test_time_sec * 1000000) { in set_alarm_task()
101 now = esp_timer_impl_get_time(); in set_alarm_task()
102 esp_timer_impl_set_alarm(now + delays[count % delays_count]); in set_alarm_task()
280 int64_t now = ref_clock_get();
288 .t_start = now
297 .t_start = now
306 .t_start = now
955 int64_t now = esp_timer_get_time(); in timer_isr_callback() local
956 int64_t dt = now - old_time[num_timer]; in timer_isr_callback()
[all …]
/hal_espressif-3.7.0/tools/esptool_py/docs/en/
Dconf.py24 datetime.datetime.now().year
/hal_espressif-3.7.0/components/newlib/test_apps/newlib/
Dsdkconfig.ci.single_core_esp323 …64 test nano format in this configuration (current tests are not passing, so keep disabled for now)
/hal_espressif-3.7.0/components/wpa_supplicant/esp_supplicant/src/
Desp_scan.c120 struct os_reltime now; in esp_handle_beacon_probe() local
136 os_get_time(&now); in esp_handle_beacon_probe()
167 wpa_bss_update_scan_res(wpa_s, res, &now); in esp_handle_beacon_probe()
/hal_espressif-3.7.0/components/wpa_supplicant/src/common/
Dwnm_sta.c354 struct os_reltime now; in compare_scan_neighbor_results() local
356 if (os_get_reltime(&now) == 0 && in compare_scan_neighbor_results()
357 os_reltime_expired(&now, &target->last_update, in compare_scan_neighbor_results()
539 struct os_reltime now; in wnm_add_cand_list() local
548 os_get_reltime(&now); in wnm_add_cand_list()
549 if (os_reltime_expired(&now, &wpa_s->last_scan, 10)) in wnm_add_cand_list()
1010 struct os_reltime now; in ieee802_11_rx_bss_trans_mgmt_req() local
1012 os_get_reltime(&now); in ieee802_11_rx_bss_trans_mgmt_req()
1013 if (!os_reltime_expired(&now, &wpa_s->last_scan, 10)) { in ieee802_11_rx_bss_trans_mgmt_req()
/hal_espressif-3.7.0/components/esp_pm/include/esp_private/
Dpm_impl.h80 void esp_pm_impl_switch_mode(pm_mode_t mode, pm_mode_switch_t lock_or_unlock, pm_time_t now);
/hal_espressif-3.7.0/tools/idf_monitor/idf_monitor_base/
Dlogger.py76 datetime.datetime.now().strftime('%Y%m%d%H%M%S'))
100 t = datetime.datetime.now().strftime(self.timestamp_format)

123