/freebsd-current/sys/libkern/ |
H A D | arc4random.c | 197 struct timeval tv; local 211 getmicrouptime(&tv); 214 if ((chacha20->numbytes > CHACHA20_RESEED_BYTES) || (tv.tv_sec > chacha20->t_reseed))
|
/freebsd-current/sys/dev/tpm/ |
H A D | tpm.c | 487 struct timeval tv; local 489 tv.tv_sec = tmo / 1000; 490 tv.tv_usec = 1000 * (tmo % 1000); 492 return tvtohz(&tv); 1039 struct timeval tv; local 1044 tv.tv_sec = TPM_LEGACY_TMO; 1045 tv.tv_usec = 0; 1046 to = tvtohz(&tv) / TPM_LEGACY_SLEEP; 1108 struct timeval tv; local 1115 tv [all...] |
/freebsd-current/contrib/ntp/sntp/libevent/test/ |
H A D | regress_util.c | 1396 struct timeval tv[10], delay; local 1428 evutil_gettime_monotonic_(&timer, &tv[i]); 1434 tt_assert(evutil_timercmp(&tv[i], &tv[i+1], <)); 1435 evutil_timersub(&tv[i+1], &tv[i], &diff); 1453 struct timeval tv[10]; local 1466 evutil_gettime_monotonic_(&timer, &tv[0]); 1469 evutil_gettime_monotonic_(&timer, &tv[i]); 1470 } while (evutil_timercmp(&tv[ [all...] |
/freebsd-current/contrib/libevent/test/ |
H A D | regress_util.c | 1396 struct timeval tv[10], delay; local 1428 evutil_gettime_monotonic_(&timer, &tv[i]); 1434 tt_assert(evutil_timercmp(&tv[i], &tv[i+1], <)); 1435 evutil_timersub(&tv[i+1], &tv[i], &diff); 1453 struct timeval tv[10]; local 1466 evutil_gettime_monotonic_(&timer, &tv[0]); 1469 evutil_gettime_monotonic_(&timer, &tv[i]); 1470 } while (evutil_timercmp(&tv[ [all...] |
/freebsd-current/contrib/bsnmp/snmp_mibII/ |
H A D | mibII_interfaces.c | 143 ticks_get_timeval(struct timeval *tv) argument 147 if (tv->tv_sec != 0 || tv->tv_usec != 0) { 148 v = 100ULL * tv->tv_sec + tv->tv_usec / 10000ULL;
|
/freebsd-current/contrib/libpcap/ |
H A D | pcap-snf.c | 112 struct timeval tv; local 119 tv.tv_sec = ts_nanosec / _NSEC_PER_SEC; 124 tv.tv_usec = tv_nsec; 126 tv.tv_usec = tv_nsec / 1000; 128 return tv;
|
/freebsd-current/sbin/setkey/ |
H A D | test-pfkey.c | 106 struct timeval tv; 107 tv.tv_sec = 1; 108 tv.tv_usec = 0; 109 if (setsockopt(so, SOL_SOCKET, SO_RCVTIMEO, &tv, sizeof(tv)) < 0) {
|
H A D | setkey.c | 337 struct timeval tv; local 338 tv.tv_sec = 1; 339 tv.tv_usec = 0; 340 if (setsockopt(so, SOL_SOCKET, SO_RCVTIMEO, &tv, sizeof(tv)) < 0) {
|
/freebsd-current/sys/dev/fb/ |
H A D | splash_bmp.c | 112 struct timeval tv; local 132 getmicrotime(&tv); 134 time_stamp = tv.tv_sec; 135 if (tv.tv_sec > time_stamp + FADE_TIMEOUT) { 152 time_stamp = tv.tv_sec;
|
/freebsd-current/contrib/ntp/libparse/ |
H A D | parsestreams.c | 514 parse->parse_ppsclockev.tv.tv_sec = 0; 515 parse->parse_ppsclockev.tv.tv_usec = 0; 806 uniqtime(&ctime.tv); 885 uniqtime(&ctime.tv); 914 parse->parse_ppsclockev.tv = ctime.tv; 1165 uniqtime(&cdevent.tv); 1179 usec = cdevent.tv.tv_usec - usec; 1183 hardpps(&cdevent.tv, usec); 1224 ((parsestream_t *)(void *)q->q_ptr)->parse_ppsclockev.tv [all...] |
H A D | parse.c | 123 delta.tv_sec = tstamp->tv.tv_sec - parseio->parse_lastchar.tv.tv_sec; 124 delta.tv_usec = tstamp->tv.tv_usec - parseio->parse_lastchar.tv.tv_usec; 589 parseio->parse_dtime.parse_time.tv.tv_sec)); 732 parseio->parse_dtime.parse_time.tv.tv_sec = t; 733 parseio->parse_dtime.parse_time.tv.tv_usec = clock_time.usecond;
|
/freebsd-current/tools/tools/net80211/wlaninject/ |
H A D | wlaninject.c | 769 struct timeval tv; local 778 tv.tv_usec = 0; 779 tv.tv_sec = time(NULL) - start; 780 if (tv.tv_sec >= timeout) { 784 tv.tv_sec = timeout - tv.tv_sec; 785 if (select(fd2+1, &fds, NULL, NULL, &tv) == -1)
|
/freebsd-current/tools/tools/net80211/w00t/redir/ |
H A D | redir.c | 568 struct timeval tv; local 580 if (gettimeofday(&tv, NULL) == -1) 583 el = elapsed(&p->last, &tv); 596 tv.tv_sec = el/1000/1000; 597 tv.tv_usec = el - tv.tv_sec*1000*1000; 598 to = &tv;
|
/freebsd-current/usr.bin/at/ |
H A D | at.c | 644 struct timeval tv[2]; local 650 if (gettimeofday(&tv[0], NULL)) 654 now = tv[0].tv_sec; 696 tv[0].tv_sec = tv[1].tv_sec = mktime(t); 697 if (tv[0].tv_sec != -1) 698 return tv[0].tv_sec;
|
/freebsd-current/sbin/ipf/ipsend/ |
H A D | iptests.c | 88 # define PAUSE() tv.tv_sec = 0; tv.tv_usec = 10000; \ 89 (void) select(0, NULL, NULL, NULL, &tv) 99 struct timeval tv; 289 struct timeval tv; local 291 gettimeofday(&tv, NULL); 292 srand(tv.tv_sec ^ getpid() ^ tv.tv_usec); 450 struct timeval tv; 544 struct timeval tv; local 1323 struct timeval tv; local [all...] |
/freebsd-current/contrib/tcsh/ |
H A D | ed.screen.c | 444 struct termcapval *tv; local 475 for (tv = tval; tv->name != NULL; tv++) 476 if (strcmp(tv->name, what) == 0) 479 if (tv->name != NULL) { 480 if (tv == &tval[T_pt] || tv == &tval[T_km] || 481 tv == &tval[T_am] || tv [all...] |
/freebsd-current/contrib/capsicum-test/ |
H A D | capmode.cc | 350 struct timeval tv; local 352 EXPECT_OK(gettimeofday(&tv, &tz)); 459 struct timeval tv[2]; local 461 EXPECT_OK(gettimeofday(&tv[0], &tz)); 462 EXPECT_OK(gettimeofday(&tv[1], &tz)); 463 EXPECT_OK(futimesat(dfd, "testfile", tv)); 523 struct timeval tv[2]; local 525 EXPECT_OK(gettimeofday(&tv[0], &tz)); 526 EXPECT_OK(gettimeofday(&tv[1], &tz)); 527 EXPECT_CAPMODE(futimesat(AT_FDCWD, "testfile", tv)); [all...] |
/freebsd-current/lib/libc/rpc/ |
H A D | clnt_dg.c | 327 struct timeval next_sendtime, starttime, time_waited, tv; local 452 timersub(&next_sendtime, &time_waited, &tv); 454 timersub(&timeout, &time_waited, &tv); 455 if (tv.tv_sec < 0 || tv.tv_usec < 0) 456 tv.tv_sec = tv.tv_usec = 0; 457 TIMEVAL_TO_TIMESPEC(&tv, &ts); 492 gettimeofday(&tv, NULL); 493 timersub(&tv, [all...] |
/freebsd-current/contrib/wpa/src/crypto/ |
H A D | crypto_module_tests.c | 218 static int test_omac1_vector(const struct omac1_test_vector *tv, argument 230 if (omac1_aes_128(tv->k, tv->msg, tv->msg_len, result) || 231 os_memcmp(result, tv->tag, 16) != 0) { 236 if (tv->msg_len > 1) { 238 addr[0] = tv->msg; 240 addr[1] = tv->msg + 1; 241 len[1] = tv->msg_len - 1; 243 if (omac1_aes_128_vector(tv 388 struct cbc_test_vector *tv = &vectors[i]; local 478 struct ecb_test_vector *tv = &vectors[i]; local [all...] |
/freebsd-current/contrib/wpa/src/utils/ |
H A D | wpa_debug.c | 72 struct os_time tv; local 77 os_get_time(&tv); 80 fprintf(out_file, "%ld.%06u: ", (long) tv.sec, 81 (unsigned int) tv.usec); 84 printf("%ld.%06u: ", (long) tv.sec, (unsigned int) tv.usec);
|
H A D | eloop_win.c | 535 struct os_reltime tv, now; local 543 tv.sec = tv.usec = 0; 549 os_reltime_sub(&timeout->time, &now, &tv); 563 timeout_val = tv.sec * 1000 + tv.usec / 1000;
|
/freebsd-current/crypto/openssh/ |
H A D | defines.h | 517 #define TIMEVAL_TO_TIMESPEC(tv, ts) { \ 518 (ts)->tv_sec = (tv)->tv_sec; \ 519 (ts)->tv_nsec = (tv)->tv_usec * 1000; \ 524 #define TIMESPEC_TO_TIMEVAL(tv, ts) { \ 525 (tv)->tv_sec = (ts)->tv_sec; \ 526 (tv)->tv_usec = (ts)->tv_nsec / 1000; \
|
/freebsd-current/sys/compat/linux/ |
H A D | linux_misc.c | 389 struct timeval tv; local 393 microtime(&tv); 394 tm = tv.tv_sec; 425 struct timeval tv, utime, stime, cutime, cstime; local 449 microuptime(&tv); 450 td->td_retval[0] = (int)CONVTCK(tv); 507 struct timeval tv[2], *tvp; local 514 tv[0].tv_sec = lut.l_actime; 515 tv[0].tv_usec = 0; 516 tv[ 532 struct timeval tv[2], *tvp = NULL; local 697 struct timeval tv[2], *tvp = NULL; local [all...] |
/freebsd-current/crypto/heimdal/lib/kadm5/ |
H A D | ad.c | 578 *samvals[2], *dnsvals[2], *spnvals[5], *upnvals[2], *tv[2]; local 729 a->mod_values = tv; 730 tv[0] = "9223372036854775807"; /* "never" */ 731 tv[1] = NULL; 763 a->mod_values = tv; 764 tv[0] = "9223372036854775807"; /* "never" */ 765 tv[1] = NULL; 1078 char *tv[2] = { NULL, NULL }; local 1190 asprintf(&tv[0], "%llu", wt); 1194 a->mod_values = tv; [all...] |
/freebsd-current/contrib/pf/libevent/ |
H A D | poll.c | 151 poll_dispatch(struct event_base *base, void *arg, struct timeval *tv) argument 157 sec = tv->tv_sec * 1000 + (tv->tv_usec + 999) / 1000;
|