Home
last modified time | relevance | path

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

/optee_os/lib/libmbedtls/mbedtls/library/
H A 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()
H A 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 …]
/optee_os/core/lib/libtomcrypt/src/prngs/
H A Dfortuna.c99 struct timeval tv; in s_fortuna_current_time() local
100 gettimeofday(&tv, NULL); in s_fortuna_current_time()
101 cur_time = (ulong64)(tv.tv_sec) * 1000000 + (ulong64)(tv.tv_usec); /* get microseconds */ in s_fortuna_current_time()
/optee_os/core/drivers/
H A Dgic.c489 uint64_t tv = 0; in probe_redist_base_addrs() local
499 tv = io_read64(va + GICR_TYPER); in probe_redist_base_addrs()
506 mpidr |= SHIFT_U64((tv >> GICR_TYPER_AFF3_SHIFT) & in probe_redist_base_addrs()
508 mpidr |= (tv >> GICR_TYPER_AFF0_SHIFT) & in probe_redist_base_addrs()
519 } while (!(tv & GICR_TYPER_LAST)); in probe_redist_base_addrs()