Home
last modified time | relevance | path

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

123

/hal_espressif-latest/components/wpa_supplicant/port/
Deloop.c230 struct os_reltime now; in eloop_cancel_timeout_one() local
232 os_get_reltime(&now); in eloop_cancel_timeout_one()
241 if (os_reltime_before(&now, &timeout->time)) { in eloop_cancel_timeout_one()
242 os_reltime_sub(&timeout->time, &now, remaining); in eloop_cancel_timeout_one()
271 struct os_reltime now, requested, remaining; in eloop_deplete_timeout() local
280 os_get_reltime(&now); in eloop_deplete_timeout()
281 os_reltime_sub(&tmp->time, &now, &remaining); in eloop_deplete_timeout()
302 struct os_reltime now, requested, remaining; in eloop_replenish_timeout() local
311 os_get_reltime(&now); in eloop_replenish_timeout()
312 os_reltime_sub(&tmp->time, &now, &remaining); in eloop_replenish_timeout()
[all …]
/hal_espressif-latest/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-latest/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.c309 pm_mode_switch_t lock_or_unlock, pm_time_t now) in esp_pm_impl_switch_mode() argument
334 pm_time_t diff = now - s_last_mode_change_time; in esp_pm_impl_switch_mode()
337 s_last_mode_change_time = now; in esp_pm_impl_switch_mode()
523 pm_time_t now = pm_get_time(); in esp_pm_impl_dump_stats() local
529 time_in_mode[cur_mode] += now - last_mode_change_time; in esp_pm_impl_dump_stats()
543 (int) (time_in_mode[i] * 100 / now)); in esp_pm_impl_dump_stats()
/hal_espressif-latest/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-latest/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-latest/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-latest/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-latest/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()
Dlighting_server.c228 int64_t now = 0; in light_lightness_set() local
256 if (bt_mesh_is_server_recv_last_msg(&srv->last, tid, ctx->addr, ctx->recv_dst, &now)) { in light_lightness_set()
268 bt_mesh_server_update_last_msg(&srv->last, tid, ctx->addr, ctx->recv_dst, &now); in light_lightness_set()
340 int64_t now = 0; in light_lightness_linear_set() local
368 if (bt_mesh_is_server_recv_last_msg(&srv->last, tid, ctx->addr, ctx->recv_dst, &now)) { in light_lightness_linear_set()
380 bt_mesh_server_update_last_msg(&srv->last, tid, ctx->addr, ctx->recv_dst, &now); in light_lightness_linear_set()
759 int64_t now = 0; in light_ctl_set() local
796 if (bt_mesh_is_server_recv_last_msg(&srv->last, tid, ctx->addr, ctx->recv_dst, &now)) { in light_ctl_set()
808 bt_mesh_server_update_last_msg(&srv->last, tid, ctx->addr, ctx->recv_dst, &now); in light_ctl_set()
1008 int64_t now = 0; in light_ctl_temp_set() local
[all …]
Dgeneric_server.c134 int64_t now = 0; in gen_onoff_set() local
166 if (bt_mesh_is_server_recv_last_msg(&srv->last, tid, ctx->addr, ctx->recv_dst, &now)) { in gen_onoff_set()
178 bt_mesh_server_update_last_msg(&srv->last, tid, ctx->addr, ctx->recv_dst, &now); in gen_onoff_set()
316 int64_t now = 0; in gen_level_set() local
344 if (bt_mesh_is_server_recv_last_msg(&srv->last, tid, ctx->addr, ctx->recv_dst, &now)) { in gen_level_set()
356 bt_mesh_server_update_last_msg(&srv->last, tid, ctx->addr, ctx->recv_dst, &now); in gen_level_set()
412 int64_t now = 0; in gen_delta_set() local
451 if (bt_mesh_is_server_recv_last_msg(&srv->last, tid, ctx->addr, ctx->recv_dst, &now)) { in gen_delta_set()
471 bt_mesh_server_update_last_msg(&srv->last, tid, ctx->addr, ctx->recv_dst, &now); in gen_delta_set()
534 int64_t now = 0; in gen_move_set() local
[all …]
/hal_espressif-latest/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-latest/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-latest/components/esp_timer/src/
Desp_timer.c190 const int64_t now = esp_timer_impl_get_time(); in esp_timer_restart() local
205 timer->alarm = now + new_period; in esp_timer_restart()
209 timer->alarm = now + timeout_us; in esp_timer_restart()
437 int64_t now = esp_timer_impl_get_time(); in timer_process_alarm() local
438 if (it == NULL || it->alarm > now) { in timer_process_alarm()
451 int skipped = (now - it->alarm) / it->period; in timer_process_alarm()
453 it->alarm = now + it->period; in timer_process_alarm()
468 uint64_t callback_start = now; in timer_process_alarm()
Desp_timer_impl_lac.c207 uint64_t now = esp_timer_impl_get_time(); in esp_timer_impl_advance() local
208 esp_timer_impl_set(now + time_diff_us); in esp_timer_impl_advance()
/hal_espressif-latest/tools/esptool_py/docs/en/
Dconf.py24 datetime.datetime.now().year
Dabout.rst4 …ed by Angus Gratton (`projectgus <https://github.com/projectgus>`_). It is now supported by `Espre…
/hal_espressif-latest/components/wpa_supplicant/esp_supplicant/src/
Desp_scan.c117 struct os_reltime now; in esp_handle_beacon_probe() local
133 os_get_time(&now); in esp_handle_beacon_probe()
164 wpa_bss_update_scan_res(wpa_s, res, &now); in esp_handle_beacon_probe()
/hal_espressif-latest/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()
1012 struct os_reltime now; in ieee802_11_rx_bss_trans_mgmt_req() local
1014 os_get_reltime(&now); in ieee802_11_rx_bss_trans_mgmt_req()
1015 if (!os_reltime_expired(&now, &wpa_s->last_scan, 10)) { in ieee802_11_rx_bss_trans_mgmt_req()
/hal_espressif-latest/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-latest/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)
/hal_espressif-latest/components/bt/host/bluedroid/external/sbc/decoder/include/
Doi_osinterface.h89 void OI_Time_Now(OI_TIME *now);
/hal_espressif-latest/zephyr/scripts/partitions/
Desp_genpartition.py125 if start_year < datetime.now().year:
173 if start_year < datetime.now().year:
/hal_espressif-latest/components/newlib/
Dtime.c183 uint64_t now = ((uint64_t) tv->tv_sec) * 1000000LL + tv->tv_usec; in settimeofday() local
185 esp_time_impl_set_boot_time(now - since_boot); in settimeofday()

123