Home
last modified time | relevance | path

Searched refs:tv (Results 1 – 8 of 8) sorted by relevance

/openthread-latest/third_party/tcplp/bsdtcp/
Dtcp_const.h112 #define TCPT_RANGESET(tv, value, tvmin, tvmax) do { \ argument
113 (tv) = (value) + tcp_rexmit_slop; \
114 if ((uint64_t)(tv) < (uint64_t)(tvmin)) \
115 (tv) = (tvmin); \
116 if ((uint64_t)(tv) > (uint64_t)(tvmax)) \
117 (tv) = (tvmax); \
/openthread-latest/third_party/mbedtls/repo/library/
Dnet_sockets.c456 struct timeval tv; in mbedtls_net_poll() local
494 tv.tv_sec = timeout / 1000; in mbedtls_net_poll()
495 tv.tv_usec = (timeout % 1000) * 1000; in mbedtls_net_poll()
499 timeout == (uint32_t) -1 ? NULL : &tv); in mbedtls_net_poll()
525 struct timeval tv; in mbedtls_net_usleep()
526 tv.tv_sec = usec / 1000000; in mbedtls_net_usleep()
529 tv.tv_usec = (suseconds_t) usec % 1000000; in mbedtls_net_usleep()
531 tv.tv_usec = usec % 1000000; in mbedtls_net_usleep()
533 select(0, NULL, NULL, NULL, &tv); in mbedtls_net_usleep()
585 struct timeval tv; in mbedtls_net_recv_timeout() local
[all …]
Dplatform_util.c231 struct timespec tv; in mbedtls_ms_time() local
235 ret = clock_gettime(CLOCK_BOOTTIME, &tv); in mbedtls_ms_time()
237 ret = clock_gettime(CLOCK_MONOTONIC, &tv); in mbedtls_ms_time()
243 current_ms = tv.tv_sec; in mbedtls_ms_time()
245 return current_ms*1000 + tv.tv_nsec / 1000000; in mbedtls_ms_time()
/openthread-latest/examples/platforms/simulation/
Dalarm.c150 struct timeval tv; in platformGetNow() local
153 err = gettimeofday(&tv, NULL); in platformGetNow()
157 … return (uint64_t)tv.tv_sec * sSpeedUpFactor * OT_US_PER_S + (uint64_t)tv.tv_usec * sSpeedUpFactor; in platformGetNow()
Dradio.c807 struct timeval tv = {0, 0}; in platformRadioUpdateFdSet() local
814 tv.tv_sec = remaining / OT_MS_PER_S; in platformRadioUpdateFdSet()
815 tv.tv_usec = (remaining % OT_MS_PER_S) * OT_US_PER_MS; in platformRadioUpdateFdSet()
818 if (timercmp(&tv, aTimeout, <)) in platformRadioUpdateFdSet()
820 *aTimeout = tv; in platformRadioUpdateFdSet()
/openthread-latest/tests/unit/
Dtest_platform.cpp121 struct timeval tv; in otPlatAlarmMilliGetNow() local
123 gettimeofday(&tv, nullptr); in otPlatAlarmMilliGetNow()
125 return (uint32_t)((tv.tv_sec * 1000) + (tv.tv_usec / 1000) + 123456); in otPlatAlarmMilliGetNow()
134 struct timeval tv; in otPlatAlarmMicroGetNow() local
136 gettimeofday(&tv, nullptr); in otPlatAlarmMicroGetNow()
138 return (uint32_t)((tv.tv_sec * 1000000) + tv.tv_usec + 123456); in otPlatAlarmMicroGetNow()
/openthread-latest/third_party/mbedtls/repo/tests/data_files/
Drsa_pkcs1_2048_3des.pem6 Da97zrRwrhhGxNVobJhhffQlyB6vhM6h5aq9dKwD3auOVFosOm0xdiAC/tv+DqAx
/openthread-latest/src/posix/platform/
Dplatform-posix.h112 void platformAlarmUpdateTimeout(struct timeval *tv);