Searched refs:tv (Results 1 - 25 of 83) sorted by relevance

1234

/vbox/src/VBox/Devices/EFI/Firmware/StdLib/PosixLib/Gen/
H A Dutime.c60 struct timeval tv[2], *tvp; local
67 tv[0].tv_sec = times->actime;
68 tv[1].tv_sec = times->modtime;
69 tv[0].tv_usec = tv[1].tv_usec = 0;
70 tvp = tv;
/vbox/src/VBox/Devices/Network/slirp/
H A Dtcp_timer.h139 #define TCPT_RANGESET(tv, value, tvmin, tvmax) { \
140 (tv) = (value); \
141 if ((tv) < (tvmin)) \
142 (tv) = (tvmin); \
143 else if ((tv) > (tvmax)) \
144 (tv) = (tvmax); \
/vbox/src/VBox/Runtime/r3/posix/
H A DRTTimeNow-posix.cpp47 struct timeval tv; local
48 gettimeofday(&tv, NULL);
49 return RTTimeSpecSetTimeval(pTime, &tv);
H A Dtime-posix.cpp56 struct timeval tv; local
57 gettimeofday(&tv, NULL);
58 return (uint64_t)tv.tv_sec * RT_NS_1SEC_64
59 + (uint64_t)(tv.tv_usec * RT_NS_1US);
H A DRTTimeSet-posix.cpp45 struct timeval tv; local
46 if (settimeofday(RTTimeSpecGetTimeval(pTime, &tv), NULL) == 0)
H A Dsemmutex-posix.cpp75 struct timeval tv; local
82 gettimeofday(&tv, NULL);
84 ts.tv_sec = pTsAbsTimeout->tv_sec - tv.tv_sec;
85 ts.tv_nsec = pTsAbsTimeout->tv_nsec - tv.tv_sec;
284 struct timeval tv = {0,0}; local
285 gettimeofday(&tv, NULL);
286 ts.tv_sec = tv.tv_sec;
287 ts.tv_nsec = tv.tv_usec * 1000;
/vbox/src/libs/xpcom18a4/nsprpub/pr/src/md/beos/
H A Dbrng.c51 struct timeval tv; local
55 GETTIMEOFDAY(&tv);
58 s = _pr_CopyLowBits((char*)buf+n, size, &tv.tv_usec, sizeof(tv.tv_usec));
63 s = _pr_CopyLowBits((char*)buf+n, size, &tv.tv_sec, sizeof(tv.tv_usec));
H A Dbeos.c111 struct timeval tv; local
114 GETTIMEOFDAY(&tv);
116 LL_I2L(s, tv.tv_sec);
117 LL_I2L(us, tv.tv_usec);
/vbox/src/VBox/Runtime/r3/darwin/
H A Dtime-darwin.cpp89 struct timeval tv; local
90 gettimeofday(&tv, NULL);
91 return (uint64_t)tv.tv_sec * RT_NS_1SEC_64
92 + (uint64_t)(tv.tv_usec * RT_NS_1US);
111 struct timeval tv; local
112 gettimeofday(&tv, NULL);
113 return RTTimeSpecSetTimeval(pTime, &tv);
/vbox/src/VBox/Runtime/r3/haiku/
H A Dtime-haiku.cpp80 struct timeval tv; local
81 RTTimeSpecGetTimeval(pTime, &tv);
82 set_real_time_clock(tv.tv_sec);
/vbox/src/VBox/Additions/linux/testcase/
H A DTimesyncBackdoor.c82 struct timeval tv; local
83 tv.tv_sec = time / (unsigned long long)1000;
84 tv.tv_usec = (time % (unsigned long long)1000) * 1000;
85 settimeofday(&tv, NULL);
/vbox/src/VBox/Runtime/testcase/
H A DtstTime-3.cpp54 struct timeval tv;
55 gettimeofday(&tv, NULL);
56 return (uint64_t)tv.tv_sec * (uint64_t)(1000 * 1000 * 1000)
57 + (uint64_t)(tv.tv_usec * 1000);
/vbox/src/VBox/Runtime/r3/linux/
H A Dtime-linux.cpp127 struct timeval tv; local
128 gettimeofday(&tv, NULL);
129 return (uint64_t)tv.tv_sec * RT_NS_1SEC_64
130 + (uint64_t)(tv.tv_usec * RT_NS_1US);
/vbox/src/VBox/RDP/client-1.8.3/
H A Drdpsnd_libao.c51 libao_add_fds(int *n, fd_set * rfds, fd_set * wfds, struct timeval *tv) argument
156 struct timeval tv; local
162 gettimeofday(&tv, NULL);
163 prev_s = tv.tv_sec;
164 prev_us = tv.tv_usec;
180 gettimeofday(&tv, NULL);
182 duration = ((tv.tv_sec - prev_s) * 1000000 + (tv.tv_usec - prev_us)) / 1000;
191 prev_s = tv.tv_sec;
192 prev_us = tv
[all...]
H A Drdpsnd.h41 void (*add_fds) (int *n, fd_set * rfds, fd_set * wfds, struct timeval * tv);
/vbox/src/libs/xpcom18a4/nsprpub/config/
H A Dnow.c77 struct timeval tv;
79 gettimeofday(&tv);
81 gettimeofday(&tv, NULL);
83 now = ((1000000LL) * tv.tv_sec) + (long long)tv.tv_usec;
/vbox/src/libs/xpcom18a4/nsprpub/pr/src/md/unix/
H A Duxwrap.c104 int select(size_t width, int *rl, int *wl, int *el, const struct timeval *tv) argument
107 const struct timeval *tv)
110 struct timeval *tv)
113 const struct timeval *tv)
115 int select(int width, fd_set *rd, fd_set *wr, fd_set *ex, struct timeval *tv)
134 if (tv != NULL && tv->tv_sec == 0 && tv->tv_usec == 0) {
136 return _MD_SELECT(width, rl, wl, el, tv);
138 return _MD_SELECT(width, rd, wr, ex, tv);
[all...]
H A Duxrng.c331 struct timeval tv;
338 GETTIMEOFDAY(&tv);
341 s = _pr_CopyLowBits((char*)buf+n, size, &tv.tv_usec, sizeof(tv.tv_usec));
346 s = _pr_CopyLowBits((char*)buf+n, size, &tv.tv_sec, sizeof(tv.tv_usec));
319 struct timeval tv; local
/vbox/src/VBox/Runtime/r0drv/freebsd/
H A Dtimer-r0drv-freebsd.c162 struct timeval tv; local
182 tv.tv_sec = u64First / 1000000000;
183 tv.tv_usec = (u64First % 1000000000) / 1000;
184 callout_reset(&pTimer->Callout, tvtohz(&tv), rtTimerFreeBSDCallback, pTimer);
244 struct timeval tv; local
250 tv.tv_sec = pTimer->u64NextTS / 1000000000;
251 tv.tv_usec = (pTimer->u64NextTS % 1000000000) / 1000;
252 callout_reset(&pTimer->Callout, tvtohz(&tv), rtTimerFreeBSDCallback, pTimer);
H A Dsleepqueue-r0drv-freebsd.h75 struct timeval tv; local
77 tv.tv_sec = uTimeout / UINT64_C(1000000000);
78 tv.tv_usec = (uTimeout % UINT64_C(1000000000)) / UINT64_C(1000);
80 pWait->iTimeout = tvtohz(&tv);
/vbox/src/libs/xpcom18a4/nsprpub/pr/src/md/windows/
H A Dw95sock.c477 struct timeval tv; local
493 tv.tv_sec = _PR_INTERRUPT_CHECK_INTERVAL_SECS;
494 tv.tv_usec = 0;
503 rv = _MD_SELECT(osfd + 1, &rd_wr, NULL, NULL, &tv);
506 rv = _MD_SELECT(osfd + 1, NULL, &rd_wr, NULL, &tv);
509 rv = _MD_SELECT(osfd + 1, NULL, &rd_wr, &ex, &tv);
568 tv.tv_sec = PR_IntervalToSeconds(remaining);
569 if (tv.tv_sec > _PR_INTERRUPT_CHECK_INTERVAL_SECS) {
571 tv.tv_sec = _PR_INTERRUPT_CHECK_INTERVAL_SECS;
572 tv
[all...]
H A Dw32poll.c53 const struct timeval *tv; member in struct:select_data_s
61 cd->status = select(0, cd->rd, cd->wt, cd->ex, cd->tv);
94 data.tv = timeout;
120 struct timeval tv, *tvp = NULL; local
267 tv.tv_sec = timeout / ticksPerSecond;
268 tv.tv_usec = PR_IntervalToMicroseconds( timeout % ticksPerSecond );
269 tvp = &tv;
/vbox/src/VBox/Devices/EFI/Firmware/StdLib/Include/sys/
H A Dtime.h68 #define TIMEVAL_TO_TIMESPEC(tv, ts) do { \
69 (ts)->tv_sec = (tv)->tv_sec; \
70 (ts)->tv_nsec = (tv)->tv_usec * 1000; \
73 #define TIMESPEC_TO_TIMEVAL(tv, ts) do { \
74 (tv)->tv_sec = (ts)->tv_sec; \
75 (tv)->tv_usec = (ts)->tv_nsec / 1000; \
/vbox/src/VBox/Devices/EFI/Firmware/StdLib/LibC/Uefi/
H A Dselect.c154 struct timeval *tv
204 if (tv) {
205 timo = tv->tv_usec + (tv->tv_sec * 1000000);
/vbox/src/VBox/Devices/PC/ipxe/src/arch/x86/core/linux/
H A Dlinux_api.c88 int linux_gettimeofday ( struct timeval *tv, struct timezone *tz ) { argument
89 return linux_syscall ( __NR_gettimeofday, tv, tz );

Completed in 139 milliseconds

1234