/external/qemu/slirp/ |
H A D | tcp_timer.h | 117 #define TCPT_RANGESET(tv, value, tvmin, tvmax) { \ 118 (tv) = (value); \ 119 if ((tv) < (tvmin)) \ 120 (tv) = (tvmin); \ 121 else if ((tv) > (tvmax)) \ 122 (tv) = (tvmax); \
|
/external/qemu/slirp-android/ |
H A D | tcp_timer.h | 117 #define TCPT_RANGESET(tv, value, tvmin, tvmax) { \ 118 (tv) = (value); \ 119 if ((tv) < (tvmin)) \ 120 (tv) = (tvmin); \ 121 else if ((tv) > (tvmax)) \ 122 (tv) = (tvmax); \
|
/external/llvm/test/CodeGen/CellSPU/useful-harnesses/ |
H A D | vecoperations.c | 14 } tv; local 15 tv.vec = v; 19 str, tv.elts[0], tv.elts[1], tv.elts[2], tv.elts[3], tv.elts[4], tv.elts[5], 20 tv.elts[6], tv 28 } tv; local 42 } tv; local [all...] |
/external/chromium/third_party/libevent/test/ |
H A D | test-time.c | 48 struct timeval tv; local 56 tv.tv_sec = 0; 57 tv.tv_usec = rand_int(50000); 58 if (tv.tv_usec % 2) 59 evtimer_add(ev[j], &tv); 69 struct timeval tv; local 80 tv.tv_sec = 0; 81 tv.tv_usec = rand_int(50000); 82 evtimer_add(ev[i], &tv);
|
/external/chromium/third_party/libevent/sample/ |
H A D | time-test.c | 35 struct timeval tv; local 43 evutil_timerclear(&tv); 44 tv.tv_sec = 2; 45 event_add(timeout, &tv); 52 struct timeval tv; local 60 evutil_timerclear(&tv); 61 tv.tv_sec = 2; 62 event_add(&timeout, &tv);
|
/external/kernel-headers/original/linux/ |
H A D | ktime.h | 38 * endian-aware order of the tv struct members is choosen to allow 55 } tv; member in union:__anon5781 106 static inline ktime_t timeval_to_ktime(struct timeval tv) argument 108 return ktime_set(tv.tv_sec, tv.tv_usec * NSEC_PER_USEC); 130 * that the tv.sec field is negative and the tv.nsec field is greater 134 * tv.sec < 0 and 0 >= tv.nsec < NSEC_PER_SEC 140 return (ktime_t) { .tv 214 timeval_to_ktime(const struct timeval tv) argument [all...] |
/external/e2fsprogs/lib/uuid/ |
H A D | uuid_time.c | 58 struct timeval tv; local 69 tv.tv_sec = clock_reg / 10000000; 70 tv.tv_usec = (clock_reg % 10000000) / 10; 73 *ret_tv = tv; 75 return tv.tv_sec; 124 struct timeval tv; local 137 time_reg = uuid_time(buf, &tv); 166 printf("UUID time is: (%ld, %ld): %s\n", tv.tv_sec, tv.tv_usec,
|
H A D | tst_uuid.c | 74 struct timeval tv; local 137 tv.tv_sec = 0; 138 tv.tv_usec = 0; 139 time_reg = uuid_time(buf, &tv); 140 printf("UUID time is: (%ld, %ld): %s\n", tv.tv_sec, tv.tv_usec,
|
/external/ppp/pppd/plugins/radius/ |
H A D | util.c | 56 struct timeval tv; local 58 tv.tv_sec = (int) msecs / 1000; 59 tv.tv_usec = (msecs % 1000) * 1000; 61 select(0,(fd_set *)NULL,(fd_set *)NULL,(fd_set *)NULL, &tv);
|
/external/skia/src/ports/ |
H A D | SkTime_Unix.cpp | 45 struct timeval tv; local 46 gettimeofday(&tv, NULL); 47 return (SkMSec) (tv.tv_sec * 1000 + tv.tv_usec / 1000 ); // microseconds to milliseconds
|
H A D | SkOSEvent_android.cpp | 104 struct timeval tv; local 105 gettimeofday(&tv, NULL); 107 // normalize tv 108 if (tv.tv_usec >= kMillion) 110 tv.tv_sec += tv.tv_usec / kMillion; 111 tv.tv_usec %= kMillion; 114 // add tv + delay, scale each up to land on nanoseconds 115 gTimeSpec.tv_nsec = (tv.tv_usec + (delay % kThousand) * kThousand) * kThousand; 116 gTimeSpec.tv_sec = (tv [all...] |
/external/bison/lib/ |
H A D | timevar.c | 287 struct timevar_def *tv = &timevars[timevar]; local 295 tv->used = 1; 298 if (tv->standalone) 325 context->timevar = tv; 376 struct timevar_def *tv = &timevars[timevar]; local 382 tv->used = 1; 386 if (tv->standalone) 388 tv->standalone = 1; 390 get_time (&tv->start_time); 400 struct timevar_def *tv local 422 struct timevar_def *tv = &timevars[timevar]; local 478 struct timevar_def *tv = &timevars[(timevar_id_t) id]; local [all...] |
/external/tremolo/Tremolo/ |
H A D | misc.c | 91 struct timeval tv; local 95 gettimeofday(&tv,&tz); 115 if(start_time==-1)start_time=(tv.tv_sec*1000)+(tv.tv_usec/1000); 121 fprintf(out,"%ld, %ld\n",-start_time+(tv.tv_sec*1000)+(tv.tv_usec/1000), 124 -start_time+(tv.tv_sec*1000)+(tv.tv_usec/1000), 129 fprintf(out,"%ld, %ld\n",-start_time+(tv.tv_sec*1000)+(tv 148 struct timeval tv; local [all...] |
/external/dhcpcd/ |
H A D | common.h | 39 #define timeval_to_double(tv) ((tv)->tv_sec * 1.0 + (tv)->tv_usec * 1.0e-6)
|
H A D | arp.c | 205 struct timeval tv; local 234 tv.tv_sec = state->interval - DHCP_RAND_MIN; 235 tv.tv_usec = arc4random() % (DHCP_RAND_MAX_U - DHCP_RAND_MIN_U); 236 timernorm(&tv); 237 add_timeout_tv(&tv, start_discover, iface); 251 struct timeval tv; local 278 tv.tv_sec = PROBE_MIN; 279 tv.tv_usec = arc4random() % (PROBE_MAX_U - PROBE_MIN_U); 280 timernorm(&tv); 281 add_timeout_tv(&tv, send_arp_prob [all...] |
/external/dropbear/ |
H A D | scpmisc.h | 64 #define TIMEVAL_TO_TIMESPEC(tv, ts) { \ 65 (ts)->tv_sec = (tv)->tv_sec; \ 66 (ts)->tv_nsec = (tv)->tv_usec * 1000; \
|
/external/qemu/distrib/sdl-1.2.12/src/timer/unix/ |
H A D | SDL_systimer.c | 91 pth_time_t tv; local 92 tv.tv_sec = ms/1000; 93 tv.tv_usec = (ms%1000)*1000; 94 pth_nap(tv); 99 struct timespec elapsed, tv; 101 struct timeval tv; 116 tv.tv_sec = elapsed.tv_sec; 117 tv.tv_nsec = elapsed.tv_nsec; 118 was_error = nanosleep(&tv, &elapsed); 128 tv [all...] |
/external/strace/ |
H A D | util.c | 156 tv_tv(tv, a, b) 157 struct timeval *tv; 161 tv->tv_sec = a; 162 tv->tv_usec = b; 187 tv_float(tv) 188 struct timeval *tv; 190 return tv->tv_sec + tv->tv_usec/1000000.0; 194 tv_add(tv, a, b) 195 struct timeval *tv, * [all...] |
/external/qemu/ |
H A D | oslib-posix.c | 116 struct timeval tv[2], tv_now; local 147 tv[i].tv_sec = tv_now.tv_sec; 148 tv[i].tv_usec = tv_now.tv_usec; 150 tv[i].tv_sec = (i == 0) ? st.st_atime : st.st_mtime; 151 tv[i].tv_usec = 0; 153 tv[i].tv_sec = times[i].tv_sec; 154 tv[i].tv_usec = times[i].tv_nsec / 1000; 158 return utimes(path, &tv[0]);
|
/external/wpa_supplicant/tests/ |
H A D | test_aes.c | 144 struct cbc_test_vector *tv = &vectors[i]; local 145 buf = malloc(tv->len); 150 memcpy(buf, tv->plain, tv->len); 151 aes_128_cbc_encrypt(tv->key, tv->iv, buf, tv->len); 152 if (memcmp(buf, tv->cipher, tv->len) != 0) { 156 memcpy(buf, tv 247 struct omac1_test_vector *tv; local [all...] |
/external/wpa_supplicant_6/wpa_supplicant/tests/ |
H A D | test_aes.c | 144 struct cbc_test_vector *tv = &vectors[i]; local 145 buf = malloc(tv->len); 150 memcpy(buf, tv->plain, tv->len); 151 aes_128_cbc_encrypt(tv->key, tv->iv, buf, tv->len); 152 if (memcmp(buf, tv->cipher, tv->len) != 0) { 156 memcpy(buf, tv 249 struct omac1_test_vector *tv; local [all...] |
/external/chromium/third_party/libevent/compat/sys/ |
H A D | _libevent_time.h | 57 #define TIMEVAL_TO_TIMESPEC(tv, ts) { \ 58 (ts)->tv_sec = (tv)->tv_sec; \ 59 (ts)->tv_nsec = (tv)->tv_usec * 1000; \ 61 #define TIMESPEC_TO_TIMEVAL(tv, ts) { \ 62 (tv)->tv_sec = (ts)->tv_sec; \ 63 (tv)->tv_usec = (ts)->tv_nsec / 1000; \
|
H A D | _time.h | 57 #define TIMEVAL_TO_TIMESPEC(tv, ts) { \ 58 (ts)->tv_sec = (tv)->tv_sec; \ 59 (ts)->tv_nsec = (tv)->tv_usec * 1000; \ 61 #define TIMESPEC_TO_TIMEVAL(tv, ts) { \ 62 (tv)->tv_sec = (ts)->tv_sec; \ 63 (tv)->tv_usec = (ts)->tv_nsec / 1000; \
|
/external/chromium/third_party/libjingle/source/talk/base/ |
H A D | time.cc | 49 struct timeval tv; local 50 gettimeofday(&tv, 0); 51 return tv.tv_sec * 1000 + tv.tv_usec / 1000;
|
/external/webrtc/src/system_wrappers/source/ |
H A D | condition_variable_linux.cc | 117 struct timeval tv; local 118 gettimeofday(&tv, 0); 119 ts.tv_sec = tv.tv_sec; 120 ts.tv_nsec = tv.tv_usec * MICROSECONDS_PER_MILLISECOND;
|