Home
last modified time | relevance | path

Searched refs:tv_usec (Results 1 – 24 of 24) sorted by relevance

/components/drivers/rtc/
A Ddev_soft_rtc.c122 tv->tv_usec = init_tv.tv_usec + _tv.tv_usec; in soft_rtc_control()
131 init_tv.tv_usec = tv->tv_usec - _tv.tv_usec; in soft_rtc_control()
165 … tv->tv_usec = init_tv.tv_usec + ((tick % RT_TICK_PER_SECOND) * (1000000 / RT_TICK_PER_SECOND)); in soft_rtc_control()
173 … init_tv.tv_usec = tv->tv_usec - ((tick % RT_TICK_PER_SECOND) * (1000000 / RT_TICK_PER_SECOND)); in soft_rtc_control()
/components/lwp/terminal/
A Dbsd_porting.h513 #define timevalclear(tvp) ((tvp)->tv_sec = (tvp)->tv_usec = 0)
514 #define timevalisset(tvp) ((tvp)->tv_sec || (tvp)->tv_usec)
516 (((tvp)->tv_sec == (uvp)->tv_sec) ? ((tvp)->tv_usec cmp(uvp)->tv_usec) \
526 if (tv->tv_usec < 0) in timevalfix()
529 tv->tv_usec += 1000000; in timevalfix()
531 if (tv->tv_usec >= 1000000) in timevalfix()
534 tv->tv_usec -= 1000000; in timevalfix()
541 op1->tv_usec += op2->tv_usec; in timevaladd()
548 op1->tv_usec -= op2->tv_usec; in timevalsub()
556 rc += tv->tv_usec * RT_TICK_PER_SECOND / MICROSECOND_PER_SECOND; in tvtohz()
/components/drivers/ktime/src/
A Dboottime.c22 tv->tv_usec = (ns % (1000ULL * 1000 * 1000)) / 1000; in rt_ktime_boottime_get_us()
/components/dfs/dfs_v1/filesystems/nfs/rpc/
A Dclnt_generic.c77 tv.tv_usec = 0; in clnt_create()
A Dclnt_udp.c165 cu->cu_total.tv_usec = -1; in clntudp_bufcreate()
369 mtimeout = ((cu->cu_total.tv_sec * 1000) + ((cu->cu_total.tv_usec + 500)/1000)); in clntudp_control()
/components/libc/posix/io/poll/
A Dselect.c119 msec = (int)timeout->tv_sec * 1000 + (int)timeout->tv_usec / 1000; in select()
/components/net/lwip/lwip-2.1.2/test/sockets/
A Dsockets_stresstest.c196 tv.tv_usec = (timeout_ms - (tv.tv_sec * 1000)) * 1000; in sockets_stresstest_wait_readable_select()
259 opt_on.tv_usec = (timeout_ms - (opt_on.tv_sec * 1000)) * 1000; in sockets_stresstest_wait_readable_recvtimeo()
261 opt_off.tv_usec = 0; in sockets_stresstest_wait_readable_recvtimeo()
/components/lwp/
A Dlwp_pid.c593 …lwp->rt_rusage.ru_stime.tv_usec += thread->system_time % RT_TICK_PER_SECOND * (1000000 / RT_TICK_P… in _thread_exit()
595 …lwp->rt_rusage.ru_utime.tv_usec += thread->user_time % RT_TICK_PER_SECOND * (1000000 / RT_TICK_PER… in _thread_exit()
847 rt_rusage.ru_stime.tv_usec = child->rt_rusage.ru_stime.tv_usec; in _update_ru()
849 rt_rusage.ru_utime.tv_usec = child->rt_rusage.ru_utime.tv_usec; in _update_ru()
A Dlwp_syscall.c1235 t_k.tv_usec = (rt_tick_get() % RT_TICK_PER_SECOND) * (1000000 / RT_TICK_PER_SECOND); in sys_gettimeofday()
1247 tp->tv_usec = (rt_tick_get() % RT_TICK_PER_SECOND) * (1000000 / RT_TICK_PER_SECOND); in sys_gettimeofday()
/components/libc/compilers/common/include/sys/
A Dtime.h55 suseconds_t tv_usec; /* and microseconds */ member
/components/net/at/at_socket/
A Dat_socket.c1272 ((struct timeval *)(optval))->tv_usec = (timeout % 1000U) * 1000U; in at_getsockopt()
1278 ((struct timeval *) optval)->tv_usec = (timeout % 1000U) * 1000U; in at_getsockopt()
1322 + ((const struct timeval *) optval)->tv_usec / 1000; in at_setsockopt()
1327 + ((const struct timeval *) optval)->tv_usec / 1000; in at_setsockopt()
/components/net/lwip/lwip-2.1.2/src/netif/ppp/
A Ddemand.c334 tv.tv_usec = 0;
/components/net/lwip/lwip-2.0.3/src/netif/ppp/
A Ddemand.c334 tv.tv_usec = 0;
/components/utilities/ulog/
A Dulog.c294 long old_usec = now.tv_usec; in ulog_head_formater()
300 if (now.tv_usec != old_usec) in ulog_head_formater()
307 … rt_snprintf(log_buf + log_len, ULOG_LINE_BUF_SIZE - log_len, ".%03d", now.tv_usec / 1000); in ulog_head_formater()
/components/net/lwip/lwip-1.4.1/src/include/lwip/
A Dsockets.h317 long tv_usec; /* and microseconds */ member
/components/net/lwip/lwip-2.0.3/src/api/
A Dsockets.c186 ((struct timeval *)(optval))->tv_usec = ((loc) % 1000U) * 1000U; }while(0)
187 …truct timeval *)(optval))->tv_sec * 1000U) + (((const struct timeval *)(optval))->tv_usec / 1000U))
1414 timeout ? (s32_t)timeout->tv_usec : (s32_t)-1)); in lwip_select()
1422 if (timeout && timeout->tv_sec == 0 && timeout->tv_usec == 0) { in lwip_select()
1498 msectimeout = ((timeout->tv_sec * 1000) + ((timeout->tv_usec + 500)/1000)); in lwip_select()
/components/libc/compilers/common/
A Dctime.c488 tv->tv_usec = 0; in gettimeofday()
517 if (tv != RT_NULL && (long)tv->tv_usec >= 0 && (long)tv->tv_sec >= 0) in settimeofday()
/components/net/lwip/lwip-2.0.3/src/include/lwip/
A Dsockets.h444 long tv_usec; /* and microseconds */ member
/components/net/lwip/lwip-2.1.2/src/include/lwip/
A Dsockets.h541 long tv_usec; /* and microseconds */ member
/components/net/lwip/lwip-1.4.1/src/api/
A Dsockets.c1116 timeout ? (s32_t)timeout->tv_usec : (s32_t)-1));
1124 if (timeout && timeout->tv_sec == 0 && timeout->tv_usec == 0) {
1187 msectimeout = ((timeout->tv_sec * 1000) + ((timeout->tv_usec + 500)/1000));
/components/net/lwip/lwip-2.1.2/src/api/
A Dsockets.c198 ((struct timeval *)(optval))->tv_usec = (long)(((loc) % 1000U) * 1000U); }while(0)
199 … struct timeval *)(optval))->tv_sec * 1000) + (((const struct timeval *)(optval))->tv_usec / 1000))
2006 timeout ? (s32_t)timeout->tv_usec : (s32_t) - 1)); in lwip_select()
2029 if (timeout && timeout->tv_sec == 0 && timeout->tv_usec == 0) { in lwip_select()
2104 long msecs_long = ((timeout->tv_sec * 1000) + ((timeout->tv_usec + 500) / 1000)); in lwip_select()
/components/net/lwip/lwip-2.1.2/test/unit/api/
A Dtest_sockets.c675 tv.tv_sec = tv.tv_usec = 0; in START_TEST()
/components/lwp/terminal/freebsd/
A Dtty_ttydisc.c250 end.tv_usec = (vtime % 10) * 100000; in ttydisc_read_raw_read_timer()
/components/net/sal/src/
A Dsal_socket.c228 timeout.tv_usec = 0; in check_netdev_internet_up_work()

Completed in 64 milliseconds