bin/date/date.c
143
struct timeval tv;
bin/date/date.c
241
tv.tv_sec = tval - now;
bin/date/date.c
242
tv.tv_usec = 0;
bin/date/date.c
243
if (adjtime(&tv, NULL) == -1)
bin/date/date.c
249
tv.tv_sec = tval;
bin/date/date.c
250
tv.tv_usec = 0;
bin/date/date.c
251
if (settimeofday(&tv, NULL))
bin/ksh/c_sh.c
680
p_tv(struct shf *shf, int posix, struct timeval *tv, int width, char *prefix,
bin/ksh/c_sh.c
685
TIMEVAL_TO_TIMESPEC(tv, &ts);
bin/pax/file_subs.c
699
struct timespec tv[2];
bin/pax/file_subs.c
701
tv[0] = *atimp;
bin/pax/file_subs.c
702
tv[1] = *mtimp;
bin/pax/file_subs.c
710
tv[0].tv_nsec = UTIME_OMIT;
bin/pax/file_subs.c
712
tv[1].tv_nsec = UTIME_OMIT;
bin/pax/file_subs.c
718
if (utimensat(AT_FDCWD, fnm, tv, AT_SYMLINK_NOFOLLOW) < 0)
bin/pax/file_subs.c
727
struct timespec tv[2];
bin/pax/file_subs.c
730
tv[0] = *atimp;
bin/pax/file_subs.c
731
tv[1] = *mtimp;
bin/pax/file_subs.c
739
tv[0].tv_nsec = UTIME_OMIT;
bin/pax/file_subs.c
741
tv[1].tv_nsec = UTIME_OMIT;
bin/pax/file_subs.c
746
if (futimens(fd, tv) == -1)
games/battlestar/command6.c
120
time_t tv;
games/battlestar/command6.c
127
tv = time(NULL);
games/battlestar/command6.c
128
date = ctime(&tv);
games/cribbage/support.c
42
int tv[NTV] = {8, 7, 9, 6, 11, 12, 13, 14, 10, 5};
games/cribbage/support.c
75
if ((j = anysumto(h, n, s, tv[i])) >= 0) {
games/cribbage/support.c
76
if ((l = numofval(h, n, 15 - tv[i])) > 0) {
games/cribbage/support.c
78
VAL(h[j].rank) != 15 - tv[i])
games/robots/extern.c
66
struct timespec tv; /* how long to wait; could be an option */
games/robots/main.c
85
tv.tv_sec = 3;
games/robots/move.c
213
timespecadd(&tn, &tv, &tn);
games/robots/move.c
69
t = tv;
games/robots/robots.h
95
extern struct timespec tv;
games/worm/worm.c
124
tv = newwin(LINES-1, COLS-1, 1, 0);
games/worm/worm.c
125
box(tv, '*', '*');
games/worm/worm.c
126
scrollok(tv, FALSE);
games/worm/worm.c
132
wrefresh(tv);
games/worm/worm.c
135
wmove(tv, head->y, head->x); /* Leave cursor on worm */
games/worm/worm.c
136
wrefresh(tv);
games/worm/worm.c
223
wmove(tv, pos->y, pos->x);
games/worm/worm.c
224
waddch(tv, chr);
games/worm/worm.c
250
wmove(tv, bp->y, bp->x);
games/worm/worm.c
251
} while(winch(tv) != ' ');
games/worm/worm.c
261
waddch(tv, value+'0');
games/worm/worm.c
262
wrefresh(tv);
games/worm/worm.c
347
wmove(tv, y, x);
games/worm/worm.c
348
if (isdigit(ch = winch(tv))) {
games/worm/worm.c
369
wmove(tv, head->y, head->x);
games/worm/worm.c
370
wrefresh(tv);
games/worm/worm.c
411
touchwin(tv);
games/worm/worm.c
412
wrefresh(tv);
games/worm/worm.c
51
WINDOW *tv;
lib/libc/gen/utime.c
38
struct timeval tv[2], *tvp;
lib/libc/gen/utime.c
43
tv[0].tv_sec = times->actime;
lib/libc/gen/utime.c
44
tv[1].tv_sec = times->modtime;
lib/libc/gen/utime.c
45
tv[0].tv_usec = tv[1].tv_usec = 0;
lib/libc/gen/utime.c
46
tvp = tv;
lib/libc/rpc/clnt_generic.c
52
struct timeval tv;
lib/libc/rpc/clnt_generic.c
82
tv.tv_sec = 5;
lib/libc/rpc/clnt_generic.c
83
tv.tv_usec = 0;
lib/libc/rpc/clnt_generic.c
84
client = clntudp_create(&sin, prog, vers, tv, &sock);
lib/libc/yp/yp_all.c
105
struct timeval tv;
lib/libc/yp/yp_all.c
134
tv.tv_sec = _yplib_timeout;
lib/libc/yp/yp_all.c
135
tv.tv_usec = 0;
lib/libc/yp/yp_all.c
141
xdr_ypreq_nokey, &yprnk, _xdr_ypresp_all_seq, &status, tv);
lib/libc/yp/yp_bind.c
57
struct timeval tv;
lib/libc/yp/yp_bind.c
77
tv.tv_sec = _yplib_timeout / 2;
lib/libc/yp/yp_bind.c
78
tv.tv_usec = 0;
lib/libc/yp/yp_bind.c
80
YPPROG, YPVERS, tv, &ypbinding->dom_socket, UDPMSGSIZE, UDPMSGSIZE);
lib/libc/yp/yp_first.c
45
struct timeval tv;
lib/libc/yp/yp_first.c
60
tv.tv_sec = _yplib_timeout;
lib/libc/yp/yp_first.c
61
tv.tv_usec = 0;
lib/libc/yp/yp_first.c
68
xdr_ypreq_nokey, &yprnk, xdr_ypresp_key_val, &yprkv, tv);
lib/libc/yp/yp_maplist.c
42
struct timeval tv;
lib/libc/yp/yp_maplist.c
49
tv.tv_sec = _yplib_timeout;
lib/libc/yp/yp_maplist.c
50
tv.tv_usec = 0;
lib/libc/yp/yp_maplist.c
55
xdr_domainname, &indomain, xdr_ypresp_maplist, &ypml, tv);
lib/libc/yp/yp_master.c
43
struct timeval tv;
lib/libc/yp/yp_master.c
55
tv.tv_sec = _yplib_timeout;
lib/libc/yp/yp_master.c
56
tv.tv_usec = 0;
lib/libc/yp/yp_master.c
64
xdr_ypreq_nokey, &yprnk, xdr_ypresp_master, &yprm, tv);
lib/libc/yp/yp_order.c
43
struct timeval tv;
lib/libc/yp/yp_order.c
55
tv.tv_sec = _yplib_timeout;
lib/libc/yp/yp_order.c
56
tv.tv_usec = 0;
lib/libc/yp/yp_order.c
64
xdr_ypreq_nokey, &yprnk, xdr_ypresp_order, &ypro, tv);
lib/libc/yp/ypmatch_cache.c
143
struct timeval tv;
lib/libc/yp/ypmatch_cache.c
175
tv.tv_sec = _yplib_timeout;
lib/libc/yp/ypmatch_cache.c
176
tv.tv_usec = 0;
lib/libc/yp/ypmatch_cache.c
186
xdr_ypreq_key, &yprk, xdr_ypresp_val, &yprv, tv);
lib/libc/yp/ypmatch_cache.c
221
struct timeval tv;
lib/libc/yp/ypmatch_cache.c
237
tv.tv_sec = _yplib_timeout;
lib/libc/yp/ypmatch_cache.c
238
tv.tv_usec = 0;
lib/libc/yp/ypmatch_cache.c
247
xdr_ypreq_key, &yprk, xdr_ypresp_key_val, &yprkv, tv);
lib/libcrypto/arc4random/getentropy_aix.c
204
struct timeval tv;
lib/libcrypto/arc4random/getentropy_aix.c
234
HX((e = gettimeofday(&tv, NULL)) == -1, tv);
lib/libcrypto/arc4random/getentropy_aix.c
236
cnt += (int)tv.tv_sec;
lib/libcrypto/arc4random/getentropy_aix.c
237
cnt += (int)tv.tv_usec;
lib/libcrypto/arc4random/getentropy_aix.c
386
HX((e = gettimeofday(&tv, NULL)) == -1, tv);
lib/libcrypto/arc4random/getentropy_aix.c
388
cnt += (int)tv.tv_sec;
lib/libcrypto/arc4random/getentropy_aix.c
389
cnt += (int)tv.tv_usec;
lib/libcrypto/arc4random/getentropy_hpux.c
208
struct timeval tv;
lib/libcrypto/arc4random/getentropy_hpux.c
234
HX((e = gettimeofday(&tv, NULL)) == -1, tv);
lib/libcrypto/arc4random/getentropy_hpux.c
236
cnt += (int)tv.tv_sec;
lib/libcrypto/arc4random/getentropy_hpux.c
237
cnt += (int)tv.tv_usec;
lib/libcrypto/arc4random/getentropy_hpux.c
380
HX((e = gettimeofday(&tv, NULL)) == -1, tv);
lib/libcrypto/arc4random/getentropy_hpux.c
382
cnt += (int)tv.tv_sec;
lib/libcrypto/arc4random/getentropy_hpux.c
383
cnt += (int)tv.tv_usec;
lib/libcrypto/arc4random/getentropy_linux.c
325
struct timeval tv;
lib/libcrypto/arc4random/getentropy_linux.c
348
HX((e = gettimeofday(&tv, NULL)) == -1, tv);
lib/libcrypto/arc4random/getentropy_linux.c
350
cnt += (int)tv.tv_sec;
lib/libcrypto/arc4random/getentropy_linux.c
351
cnt += (int)tv.tv_usec;
lib/libcrypto/arc4random/getentropy_linux.c
490
HX((e = gettimeofday(&tv, NULL)) == -1, tv);
lib/libcrypto/arc4random/getentropy_linux.c
492
cnt += (int)tv.tv_sec;
lib/libcrypto/arc4random/getentropy_linux.c
493
cnt += (int)tv.tv_usec;
lib/libcrypto/arc4random/getentropy_osx.c
211
struct timeval tv;
lib/libcrypto/arc4random/getentropy_osx.c
242
HX((e = gettimeofday(&tv, NULL)) == -1, tv);
lib/libcrypto/arc4random/getentropy_osx.c
244
cnt += (int)tv.tv_sec;
lib/libcrypto/arc4random/getentropy_osx.c
245
cnt += (int)tv.tv_usec;
lib/libcrypto/arc4random/getentropy_osx.c
400
HX((e = gettimeofday(&tv, NULL)) == -1, tv);
lib/libcrypto/arc4random/getentropy_osx.c
402
cnt += (int)tv.tv_sec;
lib/libcrypto/arc4random/getentropy_osx.c
403
cnt += (int)tv.tv_usec;
lib/libcrypto/arc4random/getentropy_solaris.c
244
struct timeval tv;
lib/libcrypto/arc4random/getentropy_solaris.c
268
HX((e = gettimeofday(&tv, NULL)) == -1, tv);
lib/libcrypto/arc4random/getentropy_solaris.c
270
cnt += (int)tv.tv_sec;
lib/libcrypto/arc4random/getentropy_solaris.c
271
cnt += (int)tv.tv_usec;
lib/libcrypto/arc4random/getentropy_solaris.c
406
HX((e = gettimeofday(&tv, NULL)) == -1, tv);
lib/libcrypto/arc4random/getentropy_solaris.c
408
cnt += (int)tv.tv_sec;
lib/libcrypto/arc4random/getentropy_solaris.c
409
cnt += (int)tv.tv_usec;
lib/libcrypto/conf/conf_def.c
138
CONF_VALUE *v = NULL, *tv;
lib/libcrypto/conf/conf_def.c
292
if ((tv = _CONF_get_section(conf, psection))
lib/libcrypto/conf/conf_def.c
294
tv = _CONF_new_section(conf, psection);
lib/libcrypto/conf/conf_def.c
295
if (tv == NULL) {
lib/libcrypto/conf/conf_def.c
300
tv = sv;
lib/libcrypto/conf/conf_def.c
302
if (_CONF_add_string(conf, tv, v) == 0) {
lib/libcrypto/ts/ts_rsp_sign.c
120
struct timeval tv;
lib/libcrypto/ts/ts_rsp_sign.c
122
if (gettimeofday(&tv, NULL) != 0) {
lib/libcrypto/ts/ts_rsp_sign.c
130
*sec = tv.tv_sec;
lib/libcrypto/ts/ts_rsp_sign.c
131
*usec = tv.tv_usec;
lib/libcurses/tinfo/lib_win32util.c
120
_nc_gettimeofday(struct timeval *tv, void *tz GCC_UNUSED)
lib/libcurses/tinfo/lib_win32util.c
128
tv->tv_usec = (long) ((data.since1601 / 10LL) % 1000000LL);
lib/libcurses/tinfo/lib_win32util.c
129
tv->tv_sec = (long) ((data.since1601 - JAN1970) / 10000000LL);
lib/libcurses/tty/lib_twait.c
203
struct timeval tv;
lib/libcurses/tty/lib_twait.c
393
tv.tv_sec = 0;
lib/libcurses/tty/lib_twait.c
394
tv.tv_usec = (milliseconds == 0) ? 0 : (10 * 1000);
lib/libcurses/tty/lib_twait.c
396
if ((result = select(count, &set, NULL, NULL, &tv)) != 0)
lib/libedit/terminal.c
1316
const struct termcapval *tv;
lib/libedit/terminal.c
1342
for (tv = tval; tv->name != NULL; tv++)
lib/libedit/terminal.c
1343
if (strcmp(tv->name, what) == 0)
lib/libedit/terminal.c
1346
if (tv->name != NULL)
lib/libedit/terminal.c
1349
if (tv == &tval[T_pt] || tv == &tval[T_km] ||
lib/libedit/terminal.c
1350
tv == &tval[T_am] || tv == &tval[T_xn]) {
lib/libedit/terminal.c
1352
el->el_terminal.t_val[tv - tval] = 1;
lib/libedit/terminal.c
1354
el->el_terminal.t_val[tv - tval] = 0;
lib/libedit/terminal.c
1374
el->el_terminal.t_val[tv - tval] = (int) i;
lib/libedit/terminal.c
1377
if (tv == &tval[T_co] || tv == &tval[T_li])
lib/libedit/terminal.c
1393
const struct termcapval *tv;
lib/libedit/terminal.c
1417
for (tv = tval; tv->name != NULL; tv++)
lib/libedit/terminal.c
1418
if (strcmp(tv->name, what) == 0)
lib/libedit/terminal.c
1421
if (tv->name == NULL)
lib/libedit/terminal.c
1424
if (tv == &tval[T_pt] || tv == &tval[T_km] ||
lib/libedit/terminal.c
1425
tv == &tval[T_am] || tv == &tval[T_xn]) {
lib/libedit/terminal.c
1428
if (el->el_terminal.t_val[tv - tval])
lib/libedit/terminal.c
1434
*(int *)how = el->el_terminal.t_val[tv - tval];
lib/libevent/evbuffer.c
48
struct timeval tv, *ptv = NULL;
lib/libevent/evbuffer.c
51
timerclear(&tv);
lib/libevent/evbuffer.c
52
tv.tv_sec = timeout;
lib/libevent/evbuffer.c
53
ptv = &tv;
lib/libevent/event.c
372
event_loopexit(const struct timeval *tv)
lib/libevent/event.c
375
current_base, tv));
lib/libevent/event.c
379
event_base_loopexit(struct event_base *event_base, const struct timeval *tv)
lib/libevent/event.c
382
event_base, tv));
lib/libevent/event.c
417
struct timeval tv;
lib/libevent/event.c
451
tv_p = &tv;
lib/libevent/event.c
459
timerclear(&tv);
lib/libevent/event.c
520
void (*callback)(int, short, void *), void *arg, const struct timeval *tv)
lib/libevent/event.c
522
return event_base_once(current_base, fd, events, callback, arg, tv);
lib/libevent/event.c
528
void (*callback)(int, short, void *), void *arg, const struct timeval *tv)
lib/libevent/event.c
545
if (tv == NULL) {
lib/libevent/event.c
547
tv = &etv;
lib/libevent/event.c
563
res = event_add(&eonce->ev, tv);
lib/libevent/event.c
631
event_pending(struct event *ev, short event, struct timeval *tv)
lib/libevent/event.c
646
if (tv != NULL && (flags & event & EV_TIMEOUT)) {
lib/libevent/event.c
651
timeradd(&now, &res, tv);
lib/libevent/event.c
658
event_add(struct event *ev, const struct timeval *tv)
lib/libevent/event.c
670
tv ? "EV_TIMEOUT " : " ",
lib/libevent/event.c
679
if (tv != NULL && !(ev->ev_flags & EVLIST_TIMEOUT)) {
lib/libevent/event.c
696
if (res != -1 && tv != NULL) {
lib/libevent/event.c
723
timeradd(&now, tv, &ev->ev_timeout);
lib/libevent/event.c
727
(long long)tv->tv_sec, ev->ev_callback));
lib/libevent/event.c
795
struct timeval *tv = *tv_p;
lib/libevent/event.c
806
timerclear(tv);
lib/libevent/event.c
810
timersub(&ev->ev_timeout, &now, tv);
lib/libevent/event.c
812
assert(tv->tv_sec >= 0);
lib/libevent/event.c
813
assert(tv->tv_usec >= 0);
lib/libevent/event.c
815
event_debug(("timeout_next: in %lld seconds", (long long)tv->tv_sec));
lib/libevent/event.c
941
struct timeval tv;
lib/libevent/event.c
952
tv.tv_sec = ar.ar_timeout / 1000;
lib/libevent/event.c
953
tv.tv_usec = (ar.ar_timeout % 1000) * 1000;
lib/libevent/event.c
954
event_add(&eva->ev, &tv);
lib/libevent/event.c
963
struct timeval tv;
lib/libevent/event.c
971
tv.tv_sec = 0;
lib/libevent/event.c
972
tv.tv_usec = 0;
lib/libevent/event.c
974
evtimer_add(&eva->ev, &tv);
lib/libevent/event.h
437
#define evtimer_add(ev, tv) event_add(ev, tv)
lib/libevent/event.h
456
#define evtimer_pending(ev, tv) event_pending(ev, EV_TIMEOUT, tv)
lib/libevent/event.h
473
#define timeout_add(ev, tv) event_add(ev, tv)
lib/libevent/event.h
493
#define timeout_pending(ev, tv) event_pending(ev, EV_TIMEOUT, tv)
lib/libevent/event.h
498
#define signal_add(ev, tv) event_add(ev, tv)
lib/libevent/event.h
502
#define signal_pending(ev, tv) event_pending(ev, EV_SIGNAL, tv)
lib/libevent/event.h
626
int event_pending(struct event *ev, short event, struct timeval *tv);
lib/libevent/evutil.h
77
#define evutil_gettimeofday(tv, tz) gettimeofday((tv), (tz))
lib/libevent/kqueue.c
184
kq_dispatch(struct event_base *base, void *arg, struct timeval *tv)
lib/libevent/kqueue.c
193
if (tv != NULL) {
lib/libevent/kqueue.c
194
TIMEVAL_TO_TIMESPEC(tv, &ts);
lib/libevent/poll.c
130
poll_dispatch(struct event_base *base, void *arg, struct timeval *tv)
lib/libevent/poll.c
137
if (tv != NULL)
lib/libevent/poll.c
138
msec = tv->tv_sec * 1000 + (tv->tv_usec + 999) / 1000;
lib/libevent/select.c
126
select_dispatch(struct event_base *base, void *arg, struct timeval *tv)
lib/libevent/select.c
139
sop->event_writeset_out, NULL, tv);
lib/libexpat/lib/xmlparse.c
1084
struct timeval tv;
lib/libexpat/lib/xmlparse.c
1087
gettimeofday_res = gettimeofday(&tv, NULL);
lib/libexpat/lib/xmlparse.c
1096
return tv.tv_usec;
lib/libm/src/s_exp2f.c
128
tv = exp2ft[i0];
lib/libm/src/s_exp2f.c
129
u = tv * z;
lib/libm/src/s_exp2f.c
130
tv = tv + u * (P1 + z * P2) + u * (z * z) * (P3 + z * P4);
lib/libm/src/s_exp2f.c
133
return (tv * twopk);
lib/libm/src/s_exp2f.c
94
double tv, twopk, u, z;
libexec/ftpd/logutmp.c
103
struct timeval tv;
libexec/ftpd/logutmp.c
119
gettimeofday(&tv, NULL);
libexec/ftpd/logutmp.c
120
ut.ut_time = tv.tv_sec;
libexec/ftpd/logwtmp.c
59
struct timeval tv;
libexec/ftpd/logwtmp.c
69
gettimeofday(&tv, NULL);
libexec/ftpd/logwtmp.c
70
ut.ut_time = tv.tv_sec;
libexec/snmpd/snmpd_metrics/timer.c
57
struct timeval tv = { 60, 0 }; /* every 60 seconds */
libexec/snmpd/snmpd_metrics/timer.c
73
1000 : (cptime2[CP_IDLE] / 10)), (long long) tv.tv_sec);
libexec/snmpd/snmpd_metrics/timer.c
77
evtimer_add(ev, &tv);
regress/lib/libc/gcvt/gcvt_test.c
101
got = gcvt(tv->d, tv->ndig, buf);
regress/lib/libc/gcvt/gcvt_test.c
102
if (strcmp(tv->expect, got) != 0) {
regress/lib/libc/gcvt/gcvt_test.c
104
tv->d, tv->ndig, tv->expect, got);
regress/lib/libc/gcvt/gcvt_test.c
97
dotest(struct test_vector *tv)
regress/lib/libc/timekeep/test_gettimeofday.c
26
struct timeval tv = {0};
regress/lib/libc/timekeep/test_gettimeofday.c
29
ASSERT_EQ(0, gettimeofday(&tv, NULL));
regress/lib/libc/timekeep/test_gettimeofday.c
30
ASSERT_EQ(0, gettimeofday(&tv, &tzp));
regress/lib/libcrypto/chacha/chachatest.c
228
crypto_chacha_20_test(struct chacha_tv *tv, unsigned char *out,
regress/lib/libcrypto/chacha/chachatest.c
231
CRYPTO_chacha_20(out, in, tv->len, tv->key, tv->iv, 0);
regress/lib/libcrypto/chacha/chachatest.c
236
chacha_ctx_full_test(struct chacha_tv *tv, unsigned char *out,
regress/lib/libcrypto/chacha/chachatest.c
241
ChaCha_set_key(&ctx, tv->key, 256);
regress/lib/libcrypto/chacha/chachatest.c
242
ChaCha_set_iv(&ctx, tv->iv, NULL);
regress/lib/libcrypto/chacha/chachatest.c
243
ChaCha(&ctx, out, in, tv->len);
regress/lib/libcrypto/chacha/chachatest.c
248
chacha_ctx_partial_test(struct chacha_tv *tv, unsigned char *out,
regress/lib/libcrypto/chacha/chachatest.c
254
ChaCha_set_key(&ctx, tv->key, 256);
regress/lib/libcrypto/chacha/chachatest.c
255
ChaCha_set_iv(&ctx, tv->iv, NULL);
regress/lib/libcrypto/chacha/chachatest.c
256
len = tv->len - 1;
regress/lib/libcrypto/chacha/chachatest.c
269
chacha_ctx_single_test(struct chacha_tv *tv, unsigned char *out,
regress/lib/libcrypto/chacha/chachatest.c
275
ChaCha_set_key(&ctx, tv->key, 256);
regress/lib/libcrypto/chacha/chachatest.c
276
ChaCha_set_iv(&ctx, tv->iv, NULL);
regress/lib/libcrypto/chacha/chachatest.c
277
for (i = 0; i < tv->len; i++)
regress/lib/libcrypto/chacha/chachatest.c
462
struct chacha_tv *tv;
regress/lib/libcrypto/chacha/chachatest.c
468
tv = &chacha_test_vectors[i];
regress/lib/libcrypto/chacha/chachatest.c
471
in = calloc(1, tv->len);
regress/lib/libcrypto/chacha/chachatest.c
474
out = calloc(1, tv->len);
regress/lib/libcrypto/chacha/chachatest.c
478
chacha_test_functions[j].func(tv, out, in);
regress/lib/libcrypto/chacha/chachatest.c
480
if (memcmp(out, tv->out, tv->len) != 0) {
regress/lib/libcrypto/chacha/chachatest.c
482
chacha_test_functions[j].name, tv->desc);
regress/lib/libcrypto/chacha/chachatest.c
485
for (k = 0; k < tv->len; k++)
regress/lib/libcrypto/chacha/chachatest.c
490
for (k = 0; k < tv->len; k++)
regress/lib/libcrypto/chacha/chachatest.c
491
printf("%2.2x", tv->out[k]);
regress/lib/libcrypto/gcm128/gcm128test.c
852
do_gcm128_test(int test_no, struct gcm128_test *tv)
regress/lib/libcrypto/gcm128/gcm128test.c
860
out_len = tv->P_len;
regress/lib/libcrypto/gcm128/gcm128test.c
867
AES_set_encrypt_key(tv->K, tv->K_len * 8, &key);
regress/lib/libcrypto/gcm128/gcm128test.c
875
CRYPTO_gcm128_setiv(ctx, tv->IV, tv->IV_len);
regress/lib/libcrypto/gcm128/gcm128test.c
876
if (tv->A_len > 0)
regress/lib/libcrypto/gcm128/gcm128test.c
877
CRYPTO_gcm128_aad(ctx, tv->A, tv->A_len);
regress/lib/libcrypto/gcm128/gcm128test.c
878
if (tv->P_len > 0)
regress/lib/libcrypto/gcm128/gcm128test.c
879
CRYPTO_gcm128_encrypt(ctx, tv->P, out, out_len);
regress/lib/libcrypto/gcm128/gcm128test.c
880
if (CRYPTO_gcm128_finish(ctx, tv->T, 16)) {
regress/lib/libcrypto/gcm128/gcm128test.c
885
if (tv->C_len > 0 && memcmp(out, tv->C, out_len)) {
regress/lib/libcrypto/gcm128/gcm128test.c
892
CRYPTO_gcm128_setiv(ctx, tv->IV, tv->IV_len);
regress/lib/libcrypto/gcm128/gcm128test.c
893
if (tv->A_len > 0)
regress/lib/libcrypto/gcm128/gcm128test.c
894
CRYPTO_gcm128_aad(ctx, tv->A, tv->A_len);
regress/lib/libcrypto/gcm128/gcm128test.c
895
if (tv->C_len > 0)
regress/lib/libcrypto/gcm128/gcm128test.c
896
CRYPTO_gcm128_decrypt(ctx, tv->C, out, out_len);
regress/lib/libcrypto/gcm128/gcm128test.c
897
if (CRYPTO_gcm128_finish(ctx, tv->T, 16)) {
regress/lib/libcrypto/gcm128/gcm128test.c
902
if (tv->P_len > 0 && memcmp(out, tv->P, out_len)) {
regress/lib/libevent/event_regress.c
1411
struct timeval tv;
regress/lib/libevent/event_regress.c
1420
evutil_timerclear(&tv);
regress/lib/libevent/event_regress.c
1421
event_add(&pri->ev, &tv);
regress/lib/libevent/event_regress.c
1429
struct timeval tv;
regress/lib/libevent/event_regress.c
1451
evutil_timerclear(&tv);
regress/lib/libevent/event_regress.c
1453
if (event_add(&one.ev, &tv) == -1)
regress/lib/libevent/event_regress.c
1455
if (event_add(&two.ev, &tv) == -1)
regress/lib/libevent/event_regress.c
1533
struct timeval tv;
regress/lib/libevent/event_regress.c
1541
evutil_timerclear(&tv);
regress/lib/libevent/event_regress.c
1542
tv.tv_sec = 1;
regress/lib/libevent/event_regress.c
1543
event_loopexit(&tv);
regress/lib/libevent/event_regress.c
189
struct timeval tv;
regress/lib/libevent/event_regress.c
194
evutil_timersub(&tcalled, &tset, &tv);
regress/lib/libevent/event_regress.c
196
evutil_timersub(&tset, &tcalled, &tv);
regress/lib/libevent/event_regress.c
198
diff = tv.tv_sec*1000 + tv.tv_usec/1000 - SECONDS * 1000;
regress/lib/libevent/event_regress.c
497
struct timeval tv;
regress/lib/libevent/event_regress.c
502
tv.tv_usec = 0;
regress/lib/libevent/event_regress.c
503
tv.tv_sec = SECONDS;
regress/lib/libevent/event_regress.c
505
evtimer_add(&ev, &tv);
regress/lib/libevent/event_regress.c
519
struct timeval tv;
regress/lib/libevent/event_regress.c
524
tv.tv_usec = 500000;
regress/lib/libevent/event_regress.c
525
tv.tv_sec = 0;
regress/lib/libevent/event_regress.c
526
event_loopexit(&tv);
regress/lib/libevent/event_regress.c
841
struct timeval tv = {5, 0};
regress/lib/libevent/event_regress.c
844
evtimer_add((struct event *)arg, &tv);
regress/lib/libevent/event_regress.c
857
struct timeval tv = {0, 0};
regress/lib/libevent/event_regress.c
866
evtimer_add(&ev_timer, &tv);
regress/lib/libevent/event_regress.c
916
struct timeval tv, tv_start, tv_end;
regress/lib/libevent/event_regress.c
921
tv.tv_usec = 0;
regress/lib/libevent/event_regress.c
922
tv.tv_sec = 60*60*24;
regress/lib/libevent/event_regress.c
924
evtimer_add(&ev, &tv);
regress/lib/libevent/event_regress.c
926
tv.tv_usec = 0;
regress/lib/libevent/event_regress.c
927
tv.tv_sec = 1;
regress/lib/libevent/event_regress.c
928
event_loopexit(&tv);
regress/lib/libevent/event_regress.c
937
if (tv.tv_sec < 2)
regress/lib/libevent/event_regress.c
946
struct timeval tv;
regress/lib/libevent/event_regress.c
953
tv.tv_usec = 0;
regress/lib/libevent/event_regress.c
954
tv.tv_sec = 1;
regress/lib/libevent/event_regress.c
955
event_base_loopexit(base, &tv);
regress/lib/libevent/event_regress.c
957
tv.tv_usec = 0;
regress/lib/libevent/event_regress.c
958
tv.tv_sec = 2;
regress/lib/libevent/event_regress.c
959
event_base_loopexit(base, &tv);
regress/lib/libevent/event_regress.c
987
struct timeval tv;
regress/lib/libevent/event_regress.c
991
tv.tv_sec = 0;
regress/lib/libevent/event_regress.c
992
tv.tv_usec = 0;
regress/lib/libevent/event_regress.c
994
evtimer_add(&ev1, &tv);
regress/lib/libevent/event_regress.c
996
evtimer_add(&ev2, &tv);
regress/lib/libevent/test-time.c
48
struct timeval tv;
regress/lib/libevent/test-time.c
56
tv.tv_sec = 0;
regress/lib/libevent/test-time.c
57
tv.tv_usec = rand_int(50000);
regress/lib/libevent/test-time.c
58
if (tv.tv_usec % 2)
regress/lib/libevent/test-time.c
59
evtimer_add(ev[j], &tv);
regress/lib/libevent/test-time.c
69
struct timeval tv;
regress/lib/libevent/test-time.c
80
tv.tv_sec = 0;
regress/lib/libevent/test-time.c
81
tv.tv_usec = rand_int(50000);
regress/lib/libevent/test-time.c
82
evtimer_add(ev[i], &tv);
regress/lib/libtls/tls/tlstest.c
517
struct test_versions *tv;
regress/lib/libtls/tls/tlstest.c
524
tv = &tls_test_versions[i];
regress/lib/libtls/tls/tlstest.c
526
"and server versions '%s'\n", i, tv->client, tv->server);
regress/lib/libtls/tls/tlstest.c
527
failure |= test_tls(tv->client, tv->server, "legacy");
regress/sys/crypto/aes/aestest.c
171
FILE *tv;
regress/sys/crypto/aes/aestest.c
179
if ((tv = fopen(filename, "r")) == NULL)
regress/sys/crypto/aes/aestest.c
185
while ((fgets(buf, sizeof(buf), tv)) != NULL) {
regress/sys/crypto/aes/aestest.c
267
fclose(tv);
regress/sys/crypto/aesxts/aes_xts.c
1778
struct aes_xts_tv *tv;
regress/sys/crypto/aesxts/aes_xts.c
1784
tv = &aes_xts_test_vectors[i];
regress/sys/crypto/aesxts/aes_xts.c
1787
if (do_aes_xts(tv->key, tv->key_len, tv->seqno, tv->plaintext,
regress/sys/crypto/aesxts/aes_xts.c
1788
result, tv->text_len, 1) < 0) {
regress/sys/crypto/aesxts/aes_xts.c
1793
if (!match(result, tv->ciphertext, tv->text_len)) {
regress/sys/crypto/aesxts/aes_xts.c
1800
if (do_aes_xts(tv->key, tv->key_len, tv->seqno, tv->ciphertext,
regress/sys/crypto/aesxts/aes_xts.c
1801
result, tv->text_len, 0) < 0) {
regress/sys/crypto/aesxts/aes_xts.c
1806
if (!match(result, tv->plaintext, tv->text_len)) {
regress/sys/fifofs/fifotest.c
318
struct timeval tv, *tvp;
regress/sys/fifofs/fifotest.c
325
tv.tv_sec = timeout / 1000;
regress/sys/fifofs/fifotest.c
326
tv.tv_usec = (timeout % 1000) * 1000;
regress/sys/fifofs/fifotest.c
327
tvp = &tv;
regress/sys/kern/fork-exit/fork-exit.c
217
struct timeval tv;
regress/sys/kern/fork-exit/fork-exit.c
347
tv.tv_sec = timeout;
regress/sys/kern/fork-exit/fork-exit.c
348
tv.tv_usec = 0;
regress/sys/kern/fork-exit/fork-exit.c
350
if (select(fdmax + 1, fdset, NULL, NULL, &tv) <= 0)
regress/sys/kern/itimer/itimer.c
25
struct timeval stv, tv;
regress/sys/kern/itimer/itimer.c
66
gettimeofday(&tv, NULL);
regress/sys/kern/itimer/itimer.c
67
timersub(&tv, &stv, &tv);
regress/sys/kern/itimer/itimer.c
73
tv = ru.ru_utime;
regress/sys/kern/itimer/itimer.c
79
if (timercmp(&stv, &tv, <))
regress/sys/kern/itimer/itimer.c
80
timersub(&tv, &stv, &tv);
regress/sys/kern/itimer/itimer.c
82
timersub(&stv, &tv, &tv);
regress/sys/kern/itimer/itimer.c
84
if (tv.tv_sec != 0 || tv.tv_usec > 100000)
regress/sys/kern/itimer/itimer.c
86
(long long)tv.tv_sec, tv.tv_usec);
regress/sys/kern/kqueue/kqueue-regress.c
252
struct timeval tv;
regress/sys/kern/kqueue/kqueue-regress.c
269
tv.tv_sec = 0;
regress/sys/kern/kqueue/kqueue-regress.c
270
tv.tv_usec = 0;
regress/sys/kern/kqueue/kqueue-regress.c
271
ret = select(kq + 1, &fdset, NULL, NULL, &tv);
regress/sys/kern/kqueue/kqueue-regress.c
291
tv.tv_sec = 5;
regress/sys/kern/kqueue/kqueue-regress.c
292
tv.tv_usec = 0;
regress/sys/kern/kqueue/kqueue-regress.c
293
ret = select(kq + 1, &fdset, NULL, NULL, &tv);
regress/sys/kern/rcvtimeo/rcvtimeo.c
31
struct timeval tv;
regress/sys/kern/rcvtimeo/rcvtimeo.c
51
tv.tv_sec = 1;
regress/sys/kern/rcvtimeo/rcvtimeo.c
52
tv.tv_usec = 0;
regress/sys/kern/rcvtimeo/rcvtimeo.c
53
if (setsockopt(s, SOL_SOCKET, SO_RCVTIMEO, &tv, sizeof(tv)) < 0)
regress/sys/kern/rcvtimeo/rcvtimeo.c
63
tv.tv_sec = 0;
regress/sys/kern/rcvtimeo/rcvtimeo.c
64
tv.tv_usec = 1;
regress/sys/kern/rcvtimeo/rcvtimeo.c
65
if (setsockopt(s, SOL_SOCKET, SO_RCVTIMEO, &tv, sizeof(tv)) < 0)
regress/sys/kern/select/select_iocond.c
326
struct timeval tv = { 0, 1 };
regress/sys/kern/select/select_iocond.c
335
ret = select(fd + 1, &rfd, &wfd, &efd, &tv);
regress/sys/kern/select/select_iocond.c
349
ret = select(fd + 1, &rfd, &wfd, &efd, &tv);
regress/sys/kern/select/select_iocond.c
455
ret = select(fd + 1, &rfd, &wfd, &efd, &tv);
regress/sys/kern/select/select_iocond.c
487
struct timeval tv = { 0, 1 };
regress/sys/kern/select/select_iocond.c
498
ret = select(fd + 1, &rfd, &wfd, &efd, &tv);
regress/sys/kern/select/select_iocond.c
529
ret = select(fd + 1, &rfd, &wfd, &efd, &tv);
regress/sys/kern/select/select_iocond.c
557
ret = select(fd + 1, &rfd, NULL, NULL, &tv);
regress/sys/kern/select/select_iocond.c
612
ret = select(fd + 1, &rfd, &wfd, &efd, &tv);
regress/sys/kern/select/select_iocond.c
623
ret = select(fd + 1, &rfd, &wfd, &efd, &tv);
regress/sys/kern/select/select_iocond.c
634
ret = select(fd + 1, &rfd, &wfd, &efd, &tv);
regress/sys/kern/select/select_iocond.c
661
ret = select(fd + 1, &rfd, &wfd, &efd, &tv);
regress/sys/kern/select/select_iocond.c
676
ret = select(fd + 1, &rfd, &wfd, &efd, &tv);
regress/sys/kern/select/select_iocond.c
691
ret = select(fd + 1, &rfd, &wfd, &efd, &tv);
regress/sys/kern/select/select_iocond.c
706
ret = select(fd + 1, &rfd, &wfd, &efd, &tv);
regress/sys/kern/select/select_iocond.c
733
ret = select(fd + 1, &rfd, NULL, NULL, &tv);
regress/sys/kern/select/select_iocond.c
741
ret = select(fd + 1, &rfd, NULL, NULL, &tv);
regress/sys/kern/select/select_iocond.c
754
ret = select(fd + 1, &rfd, &wfd, &efd, &tv);
regress/sys/kern/select/select_iocond.c
778
ret = select(fd + 1, &rfd, &wfd, &efd, &tv);
regress/usr.bin/ssh/timestamp.c
34
struct timeval tv;
regress/usr.bin/ssh/timestamp.c
38
if (gettimeofday(&tv, NULL) != 0)
regress/usr.bin/ssh/timestamp.c
40
if ((tm = localtime(&tv.tv_sec)) == NULL)
regress/usr.bin/ssh/timestamp.c
44
printf("%s.%06d\n", buf, (int)tv.tv_usec);
sbin/iked/ikev2.c
648
struct timeval tv;
sbin/iked/ikev2.c
649
gettimeofday(&tv, NULL);
sbin/iked/ikev2.c
650
return tv.tv_sec;
sbin/iked/ocsp.c
163
tv.tv_sec = OCSP_TIMEOUT;
sbin/iked/ocsp.c
164
tv.tv_usec = 0;
sbin/iked/ocsp.c
167
event_add(&oc->oc_sock.sock_ev, &tv);
sbin/iked/ocsp.c
365
struct timeval tv;
sbin/iked/ocsp.c
421
tv.tv_sec = OCSP_TIMEOUT;
sbin/iked/ocsp.c
422
tv.tv_usec = 0;
sbin/iked/ocsp.c
424
event_add(&sock->sock_ev, &tv);
sbin/iked/ocsp.c
481
struct timeval tv;
sbin/iked/ocsp.c
506
tv.tv_sec = OCSP_TIMEOUT;
sbin/iked/ocsp.c
507
tv.tv_usec = 0;
sbin/iked/ocsp.c
508
event_add(&sock->sock_ev, &tv);
sbin/iked/ocsp.c
84
struct timeval tv;
sbin/iked/timer.c
53
struct timeval tv = { timeout };
sbin/iked/timer.c
55
evtimer_add(&tmr->tmr_ev, &tv);
sbin/isakmpd/log.c
494
struct timeval tv;
sbin/isakmpd/log.c
578
gettimeofday(&tv, 0);
sbin/isakmpd/log.c
579
hdr.pcap.ts.tv_sec = tv.tv_sec;
sbin/isakmpd/log.c
580
hdr.pcap.ts.tv_usec = tv.tv_usec;
sbin/newfs_ext2fs/mke2fs.c
1029
init_resizeino(const struct timeval *tv)
sbin/newfs_ext2fs/mke2fs.c
1061
node.e2di_atime = (u_int32_t)tv->tv_sec;
sbin/newfs_ext2fs/mke2fs.c
1062
node.e2di_ctime = (u_int32_t)tv->tv_sec;
sbin/newfs_ext2fs/mke2fs.c
1063
node.e2di_mtime = (u_int32_t)tv->tv_sec;
sbin/newfs_ext2fs/mke2fs.c
184
struct timeval tv;
sbin/newfs_ext2fs/mke2fs.c
192
gettimeofday(&tv, NULL);
sbin/newfs_ext2fs/mke2fs.c
351
sblock.e2fs.e2fs_wtime = (u_int32_t)tv.tv_sec;
sbin/newfs_ext2fs/mke2fs.c
360
sblock.e2fs.e2fs_lastfsck = (u_int32_t)tv.tv_sec;
sbin/newfs_ext2fs/mke2fs.c
640
if (fsinit(&tv) == 0)
sbin/newfs_ext2fs/mke2fs.c
883
fsinit(const struct timeval *tv)
sbin/newfs_ext2fs/mke2fs.c
895
init_resizeino(tv);
sbin/newfs_ext2fs/mke2fs.c
922
node.e2di_atime = (u_int32_t)tv->tv_sec;
sbin/newfs_ext2fs/mke2fs.c
923
node.e2di_ctime = (u_int32_t)tv->tv_sec;
sbin/newfs_ext2fs/mke2fs.c
924
node.e2di_mtime = (u_int32_t)tv->tv_sec;
sbin/newfs_ext2fs/mke2fs.c
968
node.e2di_atime = (u_int32_t)tv->tv_sec;
sbin/newfs_ext2fs/mke2fs.c
969
node.e2di_ctime = (u_int32_t)tv->tv_sec;
sbin/newfs_ext2fs/mke2fs.c
970
node.e2di_mtime = (u_int32_t)tv->tv_sec;
sbin/newfs_msdos/newfs_msdos.c
238
struct timeval tv;
sbin/newfs_msdos/newfs_msdos.c
551
gettimeofday(&tv, NULL);
sbin/newfs_msdos/newfs_msdos.c
552
now = tv.tv_sec;
sbin/newfs_msdos/newfs_msdos.c
610
(u_int)(tv.tv_usec / 10))) << 16 |
sbin/route/route.c
1906
struct timeval tv;
sbin/route/route.c
1908
gettimeofday(&tv, NULL);
sbin/route/route.c
1942
printf(" uptime %s", bfd_calc_uptime(tv.tv_sec - sa_bfd->bs_uptime));
sbin/sysctl/sysctl.c
2856
if (s->tv.tv_sec) {
sbin/sysctl/sysctl.c
2857
time_t t = s->tv.tv_sec;
sbin/sysctl/sysctl.c
2862
printf(", %s.%03ld", ct, s->tv.tv_usec / 1000);
sbin/sysctl/sysctl.c
2864
printf(", %lld.%03ld", t, s->tv.tv_usec / 1000);
sbin/unwind/libunbound/services/authzone.c
7013
struct timeval tv;
sbin/unwind/libunbound/services/authzone.c
7071
tv.tv_sec = xfr->task_nextprobe->next_probe -
sbin/unwind/libunbound/services/authzone.c
7073
else tv.tv_sec = 0;
sbin/unwind/libunbound/services/authzone.c
7074
if(tv.tv_sec != 0 && lookup_only && xfr->task_probe->masters) {
sbin/unwind/libunbound/services/authzone.c
7077
tv.tv_sec = 0;
sbin/unwind/libunbound/services/authzone.c
7085
zname, (int)tv.tv_sec);
sbin/unwind/libunbound/services/authzone.c
7087
tv.tv_usec = 0;
sbin/unwind/libunbound/services/authzone.c
7088
comm_timer_set(xfr->task_nextprobe->timer, &tv);
sbin/unwind/libunbound/services/listen_dnsport.c
3502
struct doq_server_socket* worker_doq_socket, struct timeval* tv,
sbin/unwind/libunbound/services/listen_dnsport.c
3511
timeval_subtract(&rel, tv, worker_doq_socket->now_tv);
sbin/unwind/libunbound/services/listen_dnsport.c
3513
a, (int)tv->tv_sec, (int)tv->tv_usec,
sbin/unwind/libunbound/services/listen_dnsport.c
3521
timer->time_real.tv_sec = tv->tv_sec;
sbin/unwind/libunbound/services/listen_dnsport.c
3522
timer->time_real.tv_usec = tv->tv_usec;
sbin/unwind/libunbound/services/listen_dnsport.c
5202
struct timeval tv;
sbin/unwind/libunbound/services/listen_dnsport.c
5203
memset(&tv, 0, sizeof(tv));
sbin/unwind/libunbound/services/listen_dnsport.c
5204
if(gettimeofday(&tv, NULL) < 0) {
sbin/unwind/libunbound/services/listen_dnsport.c
5206
memset(&tv, 0, sizeof(tv));
sbin/unwind/libunbound/services/listen_dnsport.c
5208
return tv;
sbin/unwind/libunbound/services/listen_dnsport.c
5640
doq_conn_check_timer(struct doq_conn* conn, struct timeval* tv, ngtcp2_tstamp* ts)
sbin/unwind/libunbound/services/listen_dnsport.c
5655
memcpy(tv, &now, sizeof(*tv));
sbin/unwind/libunbound/services/listen_dnsport.c
5658
memset(tv, 0, sizeof(*tv));
sbin/unwind/libunbound/services/listen_dnsport.c
5659
tv->tv_sec = (doq_expiry - doq_now) / NGTCP2_SECONDS;
sbin/unwind/libunbound/services/listen_dnsport.c
5660
tv->tv_usec = ((doq_expiry - doq_now) / NGTCP2_MICROSECONDS)%1000000;
sbin/unwind/libunbound/services/listen_dnsport.c
5661
timeval_add(tv, &now);
sbin/unwind/libunbound/services/listen_dnsport.h
839
int doq_conn_check_timer(struct doq_conn* conn, struct timeval* tv,
sbin/unwind/libunbound/services/listen_dnsport.h
853
struct doq_server_socket* worker_doq_socket, struct timeval* tv,
sbin/unwind/libunbound/services/mesh.c
1745
struct timeval tv = {0, 0};
sbin/unwind/libunbound/services/mesh.c
1808
tv = r->start_time;
sbin/unwind/libunbound/services/mesh.c
1906
mesh_do_callback(mstate, mstate->s.return_rcode, rep, c, &tv);
sbin/unwind/libunbound/services/mesh.c
2484
struct timeval tv = {0, 0};
sbin/unwind/libunbound/services/mesh.c
2602
tv = r->start_time;
sbin/unwind/libunbound/services/mesh.c
2675
mesh_do_callback(mstate, LDNS_RCODE_NOERROR, msg->rep, c, &tv);
sbin/unwind/libunbound/services/outside_network.c
2270
struct timeval tv;
sbin/unwind/libunbound/services/outside_network.c
2301
tv.tv_sec = timeout/1000;
sbin/unwind/libunbound/services/outside_network.c
2302
tv.tv_usec = (timeout%1000)*1000;
sbin/unwind/libunbound/services/outside_network.c
2304
comm_timer_set(pend->timer, &tv);
sbin/unwind/libunbound/services/outside_network.c
637
struct timeval tv;
sbin/unwind/libunbound/services/outside_network.c
651
tv.tv_sec = w->timeout/1000;
sbin/unwind/libunbound/services/outside_network.c
652
tv.tv_usec = (w->timeout%1000)*1000;
sbin/unwind/libunbound/services/outside_network.c
657
comm_timer_set(w->timer, &tv);
sbin/unwind/libunbound/services/outside_network.c
944
struct timeval tv;
sbin/unwind/libunbound/services/outside_network.c
956
tv.tv_sec = w->timeout/1000;
sbin/unwind/libunbound/services/outside_network.c
957
tv.tv_usec = (w->timeout%1000)*1000;
sbin/unwind/libunbound/services/outside_network.c
959
comm_timer_set(w->timer, &tv);
sbin/unwind/libunbound/services/outside_network.c
968
struct timeval tv;
sbin/unwind/libunbound/services/outside_network.c
980
tv.tv_sec = w->timeout/1000;
sbin/unwind/libunbound/services/outside_network.c
981
tv.tv_usec = (w->timeout%1000)*1000;
sbin/unwind/libunbound/services/outside_network.c
983
comm_timer_set(w->timer, &tv);
sbin/unwind/libunbound/util/log.c
283
struct timeval tv;
sbin/unwind/libunbound/util/log.c
285
if(gettimeofday(&tv, NULL) < 0)
sbin/unwind/libunbound/util/log.c
286
memset(&tv, 0, sizeof(tv));
sbin/unwind/libunbound/util/log.c
287
now = (time_t)tv.tv_sec;
sbin/unwind/libunbound/util/log.c
298
tmbuf, (int)tv.tv_usec/1000, tzbuf,
sbin/unwind/libunbound/util/mini_event.c
253
struct timeval* ATTR_UNUSED(tv))
sbin/unwind/libunbound/util/mini_event.c
292
int event_add(struct event* ev, struct timeval* tv)
sbin/unwind/libunbound/util/mini_event.c
311
if(tv && (ev->ev_events&EV_TIMEOUT)) {
sbin/unwind/libunbound/util/mini_event.c
314
ev->ev_timeout.tv_sec = tv->tv_sec + now->tv_sec;
sbin/unwind/libunbound/util/mini_event.c
315
ev->ev_timeout.tv_usec = tv->tv_usec + now->tv_usec;
sbin/unwind/libunbound/util/mini_event.c
370
int signal_add(struct event* ev, struct timeval* ATTR_UNUSED(tv))
sbin/unwind/libunbound/util/mini_event.h
179
#define evtimer_add(ev, tv) event_add(ev, tv)
sbin/unwind/libunbound/util/netevent.c
2166
struct timeval tv;
sbin/unwind/libunbound/util/netevent.c
2169
memset(&tv, 0, sizeof(tv));
sbin/unwind/libunbound/util/netevent.c
2177
memcpy(&tv, &t->time_real, sizeof(tv));
sbin/unwind/libunbound/util/netevent.c
2187
timeval_subtract(&rel, &tv, c->doq_socket->now_tv);
sbin/unwind/libunbound/util/netevent.c
2190
(int)tv.tv_sec, (int)tv.tv_usec, (int)rel.tv_sec,
sbin/unwind/libunbound/util/netevent.c
280
comm_base_timept(struct comm_base* b, time_t** tt, struct timeval** tv)
sbin/unwind/libunbound/util/netevent.c
283
*tv = &b->eb->now;
sbin/unwind/libunbound/util/netevent.c
3002
struct timeval tv;
sbin/unwind/libunbound/util/netevent.c
3020
tv.tv_sec = NETEVENT_SLOW_ACCEPT_TIME/1000;
sbin/unwind/libunbound/util/netevent.c
3021
tv.tv_usec = (NETEVENT_SLOW_ACCEPT_TIME%1000)*1000;
sbin/unwind/libunbound/util/netevent.c
3030
else if(ub_event_add(b->eb->slow_accept, &tv)
sbin/unwind/libunbound/util/netevent.c
6945
comm_timer_set(struct comm_timer* timer, struct timeval* tv)
sbin/unwind/libunbound/util/netevent.c
6947
log_assert(tv);
sbin/unwind/libunbound/util/netevent.c
6951
comm_timer_callback, timer, tv) != 0)
sbin/unwind/libunbound/util/netevent.h
522
void comm_base_timept(struct comm_base* b, time_t** tt, struct timeval** tv);
sbin/unwind/libunbound/util/netevent.h
808
void comm_timer_set(struct comm_timer* timer, struct timeval* tv);
sbin/unwind/libunbound/util/timehist.c
118
void timehist_insert(struct timehist* hist, struct timeval* tv)
sbin/unwind/libunbound/util/timehist.c
122
if(timeval_smaller(tv, &hist->buckets[i].upper)) {
sbin/unwind/libunbound/util/timehist.h
97
void timehist_insert(struct timehist* hist, struct timeval* tv);
sbin/unwind/libunbound/util/timeval_func.h
45
#define timeval_isset(tv) ((tv)->tv_sec || (tv)->tv_usec)
sbin/unwind/libunbound/util/timeval_func.h
48
#define timeval_clear(tv) ((tv)->tv_sec = (tv)->tv_usec = 0)
sbin/unwind/libunbound/util/ub_event_pluggable.c
180
my_event_add(struct ub_event* ev, struct timeval* tv)
sbin/unwind/libunbound/util/ub_event_pluggable.c
182
return event_add(&AS_MY_EVENT(ev)->ev, tv);
sbin/unwind/libunbound/util/ub_event_pluggable.c
193
void (*cb)(int, short, void*), void* arg, struct timeval* tv)
sbin/unwind/libunbound/util/ub_event_pluggable.c
199
return evtimer_add(&AS_MY_EVENT(ev)->ev, tv);
sbin/unwind/libunbound/util/ub_event_pluggable.c
209
my_signal_add(struct ub_event* ev, struct timeval* tv)
sbin/unwind/libunbound/util/ub_event_pluggable.c
211
return signal_add(&AS_MY_EVENT(ev)->ev, tv);
sbin/unwind/libunbound/util/ub_event_pluggable.c
270
my_event_base_loopexit(struct ub_event_base* base, struct timeval* tv)
sbin/unwind/libunbound/util/ub_event_pluggable.c
272
return event_base_loopexit(AS_MY_EVENT_BASE(base)->base, tv);
sbin/unwind/libunbound/util/ub_event_pluggable.c
585
ub_event_add(struct ub_event* ev, struct timeval* tv)
sbin/unwind/libunbound/util/ub_event_pluggable.c
590
return (*ev->vmt->add)(ev, tv);
sbin/unwind/libunbound/util/ub_event_pluggable.c
608
void (*cb)(int, short, void*), void* arg, struct timeval* tv)
sbin/unwind/libunbound/util/ub_event_pluggable.c
613
return (*ev->vmt->add_timer)(ev, base, cb, arg, tv);
sbin/unwind/libunbound/util/ub_event_pluggable.c
630
ub_signal_add(struct ub_event* ev, struct timeval* tv)
sbin/unwind/libunbound/util/ub_event_pluggable.c
635
return (*ev->vmt->add_signal)(ev, tv);
sbin/unwind/libunbound/util/ub_event_pluggable.c
677
struct timeval *tv;
sbin/unwind/libunbound/util/ub_event_pluggable.c
687
comm_base_timept(cb, &tt, &tv);
sbin/unwind/libunbound/util/ub_event_pluggable.c
688
if(gettimeofday(tv, NULL) < 0) {
sbin/unwind/libunbound/util/ub_event_pluggable.c
692
*tt = tv->tv_sec;
sbin/unwind/libunbound/util/winsock_event.c
451
struct timeval * ATTR_UNUSED(tv))
sbin/unwind/libunbound/util/winsock_event.c
491
int event_add(struct event *ev, struct timeval *tv)
sbin/unwind/libunbound/util/winsock_event.c
495
(tv?(long long)tv->tv_sec*1000+(long long)tv->tv_usec/1000:-1),
sbin/unwind/libunbound/util/winsock_event.c
556
if(tv && (ev->ev_events&EV_TIMEOUT)) {
sbin/unwind/libunbound/util/winsock_event.c
559
ev->ev_timeout.tv_sec = tv->tv_sec + now->tv_sec;
sbin/unwind/libunbound/util/winsock_event.c
560
ev->ev_timeout.tv_usec = tv->tv_usec + now->tv_usec;
sbin/unwind/libunbound/util/winsock_event.c
624
int signal_add(struct event *ev, struct timeval * ATTR_UNUSED(tv))
sbin/unwind/libunbound/util/winsock_event.h
233
#define evtimer_add(ev, tv) event_add(ev, tv)
sbin/unwind/libunbound/validator/autotrust.c
2046
struct timeval tv;
sbin/unwind/libunbound/validator/autotrust.c
2052
tv.tv_sec = (time_t)(next - *env->now);
sbin/unwind/libunbound/validator/autotrust.c
2053
else tv.tv_sec = 0;
sbin/unwind/libunbound/validator/autotrust.c
2057
tv.tv_usec = 0;
sbin/unwind/libunbound/validator/autotrust.c
2058
comm_timer_set(env->probe_timer, &tv);
sbin/unwind/libunbound/validator/autotrust.c
2059
verbose(VERB_ALGO, "scheduled next probe in " ARG_LL "d sec", (long long)tv.tv_sec);
sbin/unwind/libunbound/validator/validator.c
888
struct timeval tv;
sbin/unwind/libunbound/validator/validator.c
934
tv.tv_usec = (usec % 1000000);
sbin/unwind/libunbound/validator/validator.c
935
tv.tv_sec = (usec / 1000000);
sbin/unwind/libunbound/validator/validator.c
937
comm_timer_set(vq->suspend_timer, &tv);
sbin/unwind/resolver.c
1581
struct timeval tv = {0, 1};
sbin/unwind/resolver.c
1622
evtimer_add(&trust_anchor_timer, &tv);
sbin/unwind/resolver.c
1696
struct timeval tv;
sbin/unwind/resolver.c
1699
tv.tv_sec = 0;
sbin/unwind/resolver.c
1704
tv.tv_usec = arc4random() % 1000000; /* modulo bias is ok */
sbin/unwind/resolver.c
1706
evtimer_add(&resolvers[i]->check_ev, &tv);
sbin/unwind/resolver.c
1746
struct timeval tv = { 0, 1};
sbin/unwind/resolver.c
1761
evtimer_add(&res->free_ev, &tv);
sbin/unwind/resolver.c
1918
struct timeval tv = {TRUST_ANCHOR_RETRY_INTERVAL, 0};
sbin/unwind/resolver.c
1934
evtimer_add(&trust_anchor_timer, &tv);
sbin/unwind/resolver.c
1950
struct timeval tv = {TRUST_ANCHOR_RETRY_INTERVAL, 0};
sbin/unwind/resolver.c
2021
tv.tv_sec = TRUST_ANCHOR_QUERY_INTERVAL;
sbin/unwind/resolver.c
2027
evtimer_add(&trust_anchor_timer, &tv);
sbin/unwind/resolver.c
2214
struct timeval tv = {DECAY_PERIOD, 0};
sbin/unwind/resolver.c
2226
evtimer_add(&decay_timer, &tv);
sbin/unwind/resolver.c
379
struct timeval tv = {DECAY_PERIOD, 0};
sbin/unwind/resolver.c
431
evtimer_add(&decay_timer, &tv);
sbin/unwind/resolver.c
806
struct timeval tv = {0, 0};
sbin/unwind/resolver.c
847
tv.tv_usec = 1000 * (PREF_RESOLVER_MEDIAN_SKEW + ms);
sbin/unwind/resolver.c
849
tv.tv_usec = 1000 * ms;
sbin/unwind/resolver.c
851
while (tv.tv_usec >= 1000000) {
sbin/unwind/resolver.c
852
tv.tv_sec++;
sbin/unwind/resolver.c
853
tv.tv_usec -= 1000000;
sbin/unwind/resolver.c
855
evtimer_add(&rq->timer_ev, &tv);
sys/arch/alpha/alpha/clock.c
104
rtc_settime(struct todr_chip_handle *handle, struct timeval *tv)
sys/arch/alpha/alpha/clock.c
109
clock_secs_to_ymdhms(tv->tv_sec, &dt);
sys/arch/alpha/alpha/clock.c
80
rtc_gettime(struct todr_chip_handle *handle, struct timeval *tv)
sys/arch/alpha/alpha/clock.c
86
(*clockfns->cf_get)(clockdev, tv->tv_sec, &ct);
sys/arch/alpha/alpha/clock.c
98
tv->tv_sec = clock_ymdhms_to_secs(&dt);
sys/arch/alpha/alpha/clock.c
99
tv->tv_usec = 0;
sys/arch/amd64/amd64/vmm_machdep.c
7053
struct timespec tv;
sys/arch/amd64/amd64/vmm_machdep.c
7068
nanouptime(&tv);
sys/arch/amd64/amd64/vmm_machdep.c
7070
tv.tv_sec * 1000000000L + tv.tv_nsec;
sys/arch/amd64/amd64/vmm_machdep.c
7086
struct timespec tv;
sys/arch/amd64/amd64/vmm_machdep.c
7101
nanoboottime(&tv);
sys/arch/amd64/amd64/vmm_machdep.c
7102
pvclock_wc->wc_sec = tv.tv_sec;
sys/arch/amd64/amd64/vmm_machdep.c
7103
pvclock_wc->wc_nsec = tv.tv_nsec;
sys/arch/amd64/include/cpu.h
451
int rtcalarm_suspend(struct timeval *tv);
sys/arch/amd64/isa/clock.c
435
rtcgettime(struct todr_chip_handle *handle, struct timeval *tv)
sys/arch/amd64/isa/clock.c
461
tv->tv_sec = clock_ymdhms_to_secs(&dt) - utc_offset;
sys/arch/amd64/isa/clock.c
462
tv->tv_usec = 0;
sys/arch/amd64/isa/clock.c
467
rtcsettime(struct todr_chip_handle *handle, struct timeval *tv)
sys/arch/amd64/isa/clock.c
478
clock_secs_to_ymdhms(tv->tv_sec + utc_offset, &dt);
sys/arch/amd64/isa/clock.c
519
struct timeval tv;
sys/arch/amd64/isa/clock.c
536
tv.tv_sec = clock_ymdhms_to_secs(&dt);
sys/arch/amd64/isa/clock.c
537
tv.tv_usec = 0;
sys/arch/amd64/isa/clock.c
539
timeradd(&tv, delta, &tv);
sys/arch/amd64/isa/clock.c
541
clock_secs_to_ymdhms(tv.tv_sec, &dt);
sys/arch/amd64/stand/rdboot/cmd.c
258
struct timeval tv;
sys/arch/amd64/stand/rdboot/cmd.c
276
tv.tv_sec = to;
sys/arch/amd64/stand/rdboot/cmd.c
277
tv.tv_usec = 0;
sys/arch/amd64/stand/rdboot/cmd.c
278
if (select(STDIN_FILENO + 1, &fdset, NULL, NULL, &tv) == 0)
sys/arch/arm64/dev/aplpmu.c
167
aplpmu_gettime(struct todr_chip_handle *handle, struct timeval *tv)
sys/arch/arm64/dev/aplpmu.c
180
tv->tv_sec = (time >> 16);
sys/arch/arm64/dev/aplpmu.c
181
tv->tv_usec = (((time & 0xffff) * 1000000) >> 16);
sys/arch/arm64/dev/aplpmu.c
186
aplpmu_settime(struct todr_chip_handle *handle, struct timeval *tv)
sys/arch/arm64/dev/aplpmu.c
198
time = ((uint64_t)tv->tv_sec << 16);
sys/arch/arm64/dev/aplpmu.c
199
time |= ((uint64_t)tv->tv_usec << 16) / 1000000;
sys/arch/arm64/dev/aplsmc.c
735
aplsmc_gettime(struct todr_chip_handle *handle, struct timeval *tv)
sys/arch/arm64/dev/aplsmc.c
753
tv->tv_sec = (time >> 15);
sys/arch/arm64/dev/aplsmc.c
754
tv->tv_usec = (((time & 0x7fff) * 1000000) >> 15);
sys/arch/arm64/dev/aplsmc.c
759
aplsmc_settime(struct todr_chip_handle *handle, struct timeval *tv)
sys/arch/arm64/dev/aplsmc.c
770
time = ((uint64_t)tv->tv_sec << 15);
sys/arch/arm64/dev/aplsmc.c
771
time |= ((uint64_t)tv->tv_usec << 15) / 1000000;
sys/arch/arm64/dev/efi_machdep.c
290
efi_gettime(struct todr_chip_handle *handle, struct timeval *tv)
sys/arch/arm64/dev/efi_machdep.c
317
tv->tv_sec = clock_ymdhms_to_secs(&dt);
sys/arch/arm64/dev/efi_machdep.c
318
tv->tv_usec = 0;
sys/arch/arm64/dev/efi_machdep.c
323
efi_settime(struct todr_chip_handle *handle, struct timeval *tv)
sys/arch/arm64/dev/efi_machdep.c
330
clock_secs_to_ymdhms(tv->tv_sec, &dt);
sys/arch/arm64/dev/rpirtc.c
102
tv->tv_sec = req.vbt_rtc.data;
sys/arch/arm64/dev/rpirtc.c
103
tv->tv_usec = 0;
sys/arch/arm64/dev/rpirtc.c
113
rpirtc_settime(struct todr_chip_handle *ch, struct timeval *tv) {
sys/arch/arm64/dev/rpirtc.c
133
.data = tv->tv_sec,
sys/arch/arm64/dev/rpirtc.c
73
rpirtc_gettime(struct todr_chip_handle *ch, struct timeval *tv) {
sys/arch/armv7/marvell/mvortc.c
173
mvortc_gettime(struct todr_chip_handle *handle, struct timeval *tv)
sys/arch/armv7/marvell/mvortc.c
177
tv->tv_sec = mvortc_read(sc, RTC_TIME);
sys/arch/armv7/marvell/mvortc.c
178
tv->tv_usec = 0;
sys/arch/armv7/marvell/mvortc.c
183
mvortc_settime(struct todr_chip_handle *handle, struct timeval *tv)
sys/arch/armv7/marvell/mvortc.c
196
mvortc_write(sc, RTC_TIME, tv->tv_sec);
sys/arch/hppa/dev/clock.c
75
pdc_gettime(struct todr_chip_handle *handle, struct timeval *tv)
sys/arch/hppa/dev/clock.c
86
tv->tv_sec = tod.sec;
sys/arch/hppa/dev/clock.c
87
tv->tv_usec = tod.usec;
sys/arch/hppa/dev/clock.c
92
pdc_settime(struct todr_chip_handle *handle, struct timeval *tv)
sys/arch/hppa/dev/clock.c
97
tv->tv_sec, tv->tv_usec))) {
sys/arch/i386/isa/clock.c
581
rtcgettime(struct todr_chip_handle *handle, struct timeval *tv)
sys/arch/i386/isa/clock.c
607
tv->tv_sec = clock_ymdhms_to_secs(&dt) - utc_offset;
sys/arch/i386/isa/clock.c
608
tv->tv_usec = 0;
sys/arch/i386/isa/clock.c
613
rtcsettime(struct todr_chip_handle *handle, struct timeval *tv)
sys/arch/i386/isa/clock.c
624
clock_secs_to_ymdhms(tv->tv_sec + utc_offset, &dt);
sys/arch/loongson/dev/mcclock.c
103
mcclock_settime(struct todr_chip_handle *handle, struct timeval *tv)
sys/arch/loongson/dev/mcclock.c
110
clock_secs_to_ymdhms(tv->tv_sec, &dt);
sys/arch/loongson/dev/mcclock.c
76
mcclock_gettime(struct todr_chip_handle *handle, struct timeval *tv)
sys/arch/loongson/dev/mcclock.c
94
tv->tv_sec = clock_ymdhms_to_secs(&dt);
sys/arch/loongson/dev/mcclock.c
95
tv->tv_usec = 0;
sys/arch/luna88k/luna88k/clock.c
71
rtc_gettime(struct todr_chip_handle *handle, struct timeval *tv)
sys/arch/luna88k/luna88k/clock.c
75
(*clockfns->cf_get)(clockdev, tv->tv_sec, &dt);
sys/arch/luna88k/luna88k/clock.c
76
tv->tv_sec = clock_ymdhms_to_secs(&dt);
sys/arch/luna88k/luna88k/clock.c
77
tv->tv_usec = 0;
sys/arch/luna88k/luna88k/clock.c
82
rtc_settime(struct todr_chip_handle *handle, struct timeval *tv)
sys/arch/luna88k/luna88k/clock.c
86
clock_secs_to_ymdhms(tv->tv_sec, &dt);
sys/arch/macppc/macppc/clock.c
103
tv->tv_sec = sec - utc_offset;
sys/arch/macppc/macppc/clock.c
104
tv->tv_usec = 0;
sys/arch/macppc/macppc/clock.c
109
rtc_settime(struct todr_chip_handle *handle, struct timeval *tv)
sys/arch/macppc/macppc/clock.c
114
(*time_write)(tv->tv_sec + utc_offset);
sys/arch/macppc/macppc/clock.c
95
rtc_gettime(struct todr_chip_handle *handle, struct timeval *tv)
sys/arch/octeon/dev/octrtc.c
123
octrtc_gettime(struct todr_chip_handle *handle, struct timeval *tv)
sys/arch/octeon/dev/octrtc.c
184
tv->tv_sec = clock_ymdhms_to_secs(&dt);
sys/arch/octeon/dev/octrtc.c
185
tv->tv_usec = 0;
sys/arch/octeon/dev/octrtc.c
238
octrtc_settime(struct todr_chip_handle *handle, struct timeval *tv)
sys/arch/octeon/dev/octrtc.c
246
clock_secs_to_ymdhms(tv->tv_sec, &dt);
sys/arch/octeon/stand/rdboot/cmd.c
254
struct timeval tv;
sys/arch/octeon/stand/rdboot/cmd.c
272
tv.tv_sec = to;
sys/arch/octeon/stand/rdboot/cmd.c
273
tv.tv_usec = 0;
sys/arch/octeon/stand/rdboot/cmd.c
274
if (select(STDIN_FILENO + 1, &fdset, NULL, NULL, &tv) == 0)
sys/arch/powerpc64/dev/opal.c
277
opal_gettime(struct todr_chip_handle *ch, struct timeval *tv)
sys/arch/powerpc64/dev/opal.c
301
tv->tv_sec = clock_ymdhms_to_secs(&dt);
sys/arch/powerpc64/dev/opal.c
302
tv->tv_usec = 0;
sys/arch/powerpc64/dev/opal.c
308
opal_settime(struct todr_chip_handle *ch, struct timeval *tv)
sys/arch/powerpc64/dev/opal.c
315
clock_secs_to_ymdhms(tv->tv_sec, &dt);
sys/arch/powerpc64/stand/rdboot/cmd.c
252
struct timeval tv;
sys/arch/powerpc64/stand/rdboot/cmd.c
270
tv.tv_sec = to;
sys/arch/powerpc64/stand/rdboot/cmd.c
271
tv.tv_usec = 0;
sys/arch/powerpc64/stand/rdboot/cmd.c
272
if (select(STDIN_FILENO + 1, &fdset, NULL, NULL, &tv) == 0)
sys/arch/riscv64/dev/smtpmic.c
250
smtpmic_gettime(struct todr_chip_handle *handle, struct timeval *tv)
sys/arch/riscv64/dev/smtpmic.c
266
tv->tv_sec = clock_ymdhms_to_secs(&dt);
sys/arch/riscv64/dev/smtpmic.c
267
tv->tv_usec = 0;
sys/arch/riscv64/dev/smtpmic.c
272
smtpmic_settime(struct todr_chip_handle *handle, struct timeval *tv)
sys/arch/riscv64/dev/smtpmic.c
277
clock_secs_to_ymdhms(tv->tv_sec, &dt);
sys/arch/sh/dev/scif.c
1203
struct timeval tv;
sys/arch/sh/dev/scif.c
1207
microtime(&tv);
sys/arch/sh/dev/scif.c
1208
TIMEVAL_TO_TIMESPEC(&tv,
sys/arch/sh/dev/scif.c
1214
TIMESPEC_TO_TIMEVAL(&tv, &sc->ppsinfo.assert_timestamp);
sys/arch/sh/dev/scif.c
1219
hardpps(&tv, tv.tv_usec);
sys/arch/sh/dev/scif.c
1228
microtime(&tv);
sys/arch/sh/dev/scif.c
1229
TIMEVAL_TO_TIMESPEC(&tv,
sys/arch/sh/dev/scif.c
1235
TIMESPEC_TO_TIMEVAL(&tv, &sc->ppsinfo.clear_timestamp);
sys/arch/sh/dev/scif.c
1240
hardpps(&tv, tv.tv_usec);
sys/arch/sh/sh/clock.c
227
rtc_gettime(struct todr_chip_handle *handle, struct timeval *tv)
sys/arch/sh/sh/clock.c
231
sh_clock.rtc.get(sh_clock.rtc._cookie, tv->tv_sec, &dt);
sys/arch/sh/sh/clock.c
232
tv->tv_sec = clock_ymdhms_to_secs(&dt);
sys/arch/sh/sh/clock.c
233
tv->tv_usec = 0;
sys/arch/sh/sh/clock.c
238
rtc_settime(struct todr_chip_handle *handle, struct timeval *tv)
sys/arch/sh/sh/clock.c
242
clock_secs_to_ymdhms(tv->tv_sec, &dt);
sys/arch/sparc64/dev/prtc.c
104
prtc_gettime(todr_chip_handle_t handle, struct timeval *tv)
sys/arch/sparc64/dev/prtc.c
112
tv->tv_sec = tod;
sys/arch/sparc64/dev/prtc.c
113
tv->tv_usec = 0;
sys/arch/sparc64/dev/prtc.c
118
prtc_settime(todr_chip_handle_t handle, struct timeval *tv)
sys/arch/sparc64/dev/prtc.c
124
prtc_opl_gettime(todr_chip_handle_t handle, struct timeval *tv)
sys/arch/sparc64/dev/prtc.c
141
tv->tv_sec = args.time;
sys/arch/sparc64/dev/prtc.c
142
tv->tv_usec = 0;
sys/arch/sparc64/dev/prtc.c
148
prtc_opl_settime(todr_chip_handle_t handle, struct timeval *tv)
sys/arch/sparc64/dev/prtc.c
165
args.diff = tv->tv_sec - otv.tv_sec;
sys/arch/sparc64/dev/rtc.c
246
rtc_gettime(todr_chip_handle_t handle, struct timeval *tv)
sys/arch/sparc64/dev/rtc.c
282
tv->tv_sec = clock_ymdhms_to_secs(&dt);
sys/arch/sparc64/dev/rtc.c
283
tv->tv_usec = 0;
sys/arch/sparc64/dev/rtc.c
292
rtc_settime(todr_chip_handle_t handle, struct timeval *tv)
sys/arch/sparc64/dev/rtc.c
300
clock_secs_to_ymdhms(tv->tv_sec, &dt);
sys/arch/sparc64/dev/rtc.c
329
rtc_bq4802_gettime(todr_chip_handle_t handle, struct timeval *tv)
sys/arch/sparc64/dev/rtc.c
362
tv->tv_sec = clock_ymdhms_to_secs(&dt);
sys/arch/sparc64/dev/rtc.c
363
tv->tv_usec = 0;
sys/arch/sparc64/dev/rtc.c
372
rtc_bq4802_settime(todr_chip_handle_t handle, struct timeval *tv)
sys/arch/sparc64/dev/rtc.c
381
clock_secs_to_ymdhms(tv->tv_sec, &dt);
sys/arch/sparc64/dev/sbbc.c
340
sbbc_tod_gettime(todr_chip_handle_t handle, struct timeval *tv)
sys/arch/sparc64/dev/sbbc.c
344
tv->tv_sec = tod->tod_time + tod->tod_skew;
sys/arch/sparc64/dev/sbbc.c
345
tv->tv_usec = 0;
sys/arch/sparc64/dev/sbbc.c
350
sbbc_tod_settime(todr_chip_handle_t handle, struct timeval *tv)
sys/arch/sparc64/dev/sbbc.c
354
tod->tod_skew = tv->tv_sec - tod->tod_time;
sys/arch/sparc64/dev/vrtc.c
78
vrtc_gettime(todr_chip_handle_t handle, struct timeval *tv)
sys/arch/sparc64/dev/vrtc.c
85
tv->tv_sec = tod;
sys/arch/sparc64/dev/vrtc.c
86
tv->tv_usec = 0;
sys/arch/sparc64/dev/vrtc.c
91
vrtc_settime(todr_chip_handle_t handle, struct timeval *tv)
sys/arch/sparc64/dev/vrtc.c
93
if (hv_tod_set(tv->tv_sec) != H_EOK)
sys/dev/fdt/acrtc.c
139
acrtc_gettime(struct todr_chip_handle *handle, struct timeval *tv)
sys/dev/fdt/acrtc.c
155
tv->tv_sec = clock_ymdhms_to_secs(&dt);
sys/dev/fdt/acrtc.c
156
tv->tv_usec = 0;
sys/dev/fdt/acrtc.c
161
acrtc_settime(struct todr_chip_handle *handle, struct timeval *tv)
sys/dev/fdt/acrtc.c
166
clock_secs_to_ymdhms(tv->tv_sec, &dt);
sys/dev/fdt/dapmic.c
265
dapmic_gettime(struct todr_chip_handle *handle, struct timeval *tv)
sys/dev/fdt/dapmic.c
281
tv->tv_sec = clock_ymdhms_to_secs(&dt);
sys/dev/fdt/dapmic.c
282
tv->tv_usec = 0;
sys/dev/fdt/dapmic.c
287
dapmic_settime(struct todr_chip_handle *handle, struct timeval *tv)
sys/dev/fdt/dapmic.c
292
clock_secs_to_ymdhms(tv->tv_sec, &dt);
sys/dev/fdt/exrtc.c
123
tv->tv_sec = clock_ymdhms_to_secs(&dt);
sys/dev/fdt/exrtc.c
124
tv->tv_usec = 0;
sys/dev/fdt/exrtc.c
129
exrtc_settime(todr_chip_handle_t handle, struct timeval *tv)
sys/dev/fdt/exrtc.c
135
clock_secs_to_ymdhms(tv->tv_sec, &dt);
sys/dev/fdt/exrtc.c
97
exrtc_gettime(todr_chip_handle_t handle, struct timeval *tv)
sys/dev/fdt/gfrtc.c
62
gfrtc_gettime(todr_chip_handle_t handle, struct timeval *tv)
sys/dev/fdt/gfrtc.c
70
NSEC_TO_TIMEVAL((th << 32) | tl, tv);
sys/dev/fdt/gfrtc.c
76
gfrtc_settime(todr_chip_handle_t handle, struct timeval *tv)
sys/dev/fdt/gfrtc.c
81
ns = TIMEVAL_TO_NSEC(tv);
sys/dev/fdt/imxrtc.c
130
tv->tv_sec = srtc / 32768;
sys/dev/fdt/imxrtc.c
131
tv->tv_usec = ((srtc % 32768) * 1000000U) / 32768U;
sys/dev/fdt/imxrtc.c
136
imxrtc_settime(struct todr_chip_handle *handle, struct timeval *tv)
sys/dev/fdt/imxrtc.c
152
srtc = tv->tv_sec * 32768 + (tv->tv_usec * 32768U / 1000000U);
sys/dev/fdt/imxrtc.c
97
imxrtc_gettime(struct todr_chip_handle *handle, struct timeval *tv)
sys/dev/fdt/mvrtc.c
129
mvrtc_gettime(struct todr_chip_handle *handle, struct timeval *tv)
sys/dev/fdt/mvrtc.c
133
tv->tv_sec = HREAD4(sc, RTC_TIME);
sys/dev/fdt/mvrtc.c
134
tv->tv_usec = 0;
sys/dev/fdt/mvrtc.c
139
mvrtc_settime(struct todr_chip_handle *handle, struct timeval *tv)
sys/dev/fdt/mvrtc.c
145
HWRITE4(sc, RTC_TIME, tv->tv_sec);
sys/dev/fdt/plrtc.c
63
plrtc_gettime(todr_chip_handle_t handle, struct timeval *tv)
sys/dev/fdt/plrtc.c
70
tv->tv_sec = tod;
sys/dev/fdt/plrtc.c
71
tv->tv_usec = 0;
sys/dev/fdt/plrtc.c
77
plrtc_settime(todr_chip_handle_t handle, struct timeval *tv)
sys/dev/fdt/plrtc.c
81
bus_space_write_4(sc->sc_iot, sc->sc_ioh, RTCLR, tv->tv_sec);
sys/dev/fdt/qcrtc.c
102
qcrtc_gettime(struct todr_chip_handle *handle, struct timeval *tv)
sys/dev/fdt/qcrtc.c
123
tv->tv_sec = off + reg;
sys/dev/fdt/qcrtc.c
124
tv->tv_usec = 0;
sys/dev/fdt/qcrtc.c
129
qcrtc_settime(struct todr_chip_handle *handle, struct timeval *tv)
sys/dev/fdt/qcrtc.c
143
off = tv->tv_sec - reg;
sys/dev/fdt/rkpmic.c
779
rkpmic_gettime(struct todr_chip_handle *handle, struct timeval *tv)
sys/dev/fdt/rkpmic.c
804
tv->tv_sec = secs;
sys/dev/fdt/rkpmic.c
805
tv->tv_usec = 0;
sys/dev/fdt/rkpmic.c
810
rkpmic_settime(struct todr_chip_handle *handle, struct timeval *tv)
sys/dev/fdt/rkpmic.c
823
secs = tv->tv_sec;
sys/dev/fdt/sxirtc.c
212
sxirtc_gettime(todr_chip_handle_t handle, struct timeval *tv)
sys/dev/fdt/sxirtc.c
247
tv->tv_sec = clock_ymdhms_to_secs(&dt);
sys/dev/fdt/sxirtc.c
248
tv->tv_usec = 0;
sys/dev/fdt/sxirtc.c
253
sxirtc_settime(todr_chip_handle_t handle, struct timeval *tv)
sys/dev/fdt/sxirtc.c
258
clock_secs_to_ymdhms(tv->tv_sec, &dt);
sys/dev/fdt/sxirtc.c
271
SXICMS4(sc, sc->sc_yymmdd, 0xffff, tv->tv_sec / SECDAY);
sys/dev/gpio/gpiodcf.c
275
microtime(&sc->sc_sensor.tv);
sys/dev/gpio/gpiodcf.c
424
getmicrotime(&sc->sc_skew.tv);
sys/dev/hid/hidkbd.c
212
struct timeval tv;
sys/dev/hid/hidkbd.c
228
(long long)p->tv.tv_sec, p->tv.tv_usec,
sys/dev/hid/hidkbd.c
484
microtime(&p->tv);
sys/dev/hid/hidkbd.c
490
struct timeval tv;
sys/dev/hid/hidkbd.c
491
microtime(&tv);
sys/dev/hid/hidkbd.c
494
(long long)tv.tv_sec, tv.tv_usec,
sys/dev/i2c/abx80x.c
137
abcrtc_gettime(struct todr_chip_handle *handle, struct timeval *tv)
sys/dev/i2c/abx80x.c
153
tv->tv_sec = clock_ymdhms_to_secs(&dt);
sys/dev/i2c/abx80x.c
154
tv->tv_usec = 0;
sys/dev/i2c/abx80x.c
159
abcrtc_settime(struct todr_chip_handle *handle, struct timeval *tv)
sys/dev/i2c/abx80x.c
164
clock_secs_to_ymdhms(tv->tv_sec, &dt);
sys/dev/i2c/ds1307.c
222
maxrtc_gettime(struct todr_chip_handle *ch, struct timeval *tv)
sys/dev/i2c/ds1307.c
244
tv->tv_sec = clock_ymdhms_to_secs(&dt);
sys/dev/i2c/ds1307.c
245
tv->tv_usec = 0;
sys/dev/i2c/ds1307.c
251
maxrtc_settime(struct todr_chip_handle *ch, struct timeval *tv)
sys/dev/i2c/ds1307.c
257
clock_secs_to_ymdhms(tv->tv_sec, &dt);
sys/dev/i2c/ds3231.c
115
tv->tv_sec = clock_ymdhms_to_secs(&dt);
sys/dev/i2c/ds3231.c
116
tv->tv_usec = 0;
sys/dev/i2c/ds3231.c
121
dsxrtc_settime(struct todr_chip_handle *handle, struct timeval *tv)
sys/dev/i2c/ds3231.c
126
clock_secs_to_ymdhms(tv->tv_sec, &dt);
sys/dev/i2c/ds3231.c
99
dsxrtc_gettime(struct todr_chip_handle *handle, struct timeval *tv)
sys/dev/i2c/isl1208.c
114
tv->tv_sec = clock_ymdhms_to_secs(&dt);
sys/dev/i2c/isl1208.c
115
tv->tv_usec = 0;
sys/dev/i2c/isl1208.c
120
islrtc_settime(struct todr_chip_handle *handle, struct timeval *tv)
sys/dev/i2c/isl1208.c
125
clock_secs_to_ymdhms(tv->tv_sec, &dt);
sys/dev/i2c/isl1208.c
98
islrtc_gettime(struct todr_chip_handle *handle, struct timeval *tv)
sys/dev/i2c/m41t8x.c
111
tv->tv_sec = clock_ymdhms_to_secs(&dt);
sys/dev/i2c/m41t8x.c
112
tv->tv_usec = 0;
sys/dev/i2c/m41t8x.c
117
m41t8xrtc_settime(struct todr_chip_handle *handle, struct timeval *tv)
sys/dev/i2c/m41t8x.c
124
clock_secs_to_ymdhms(tv->tv_sec, &dt);
sys/dev/i2c/m41t8x.c
85
m41t8xrtc_gettime(struct todr_chip_handle *handle, struct timeval *tv)
sys/dev/i2c/mcp794xx.c
103
mcprtc_gettime(struct todr_chip_handle *handle, struct timeval *tv)
sys/dev/i2c/mcp794xx.c
119
tv->tv_sec = clock_ymdhms_to_secs(&dt);
sys/dev/i2c/mcp794xx.c
120
tv->tv_usec = 0;
sys/dev/i2c/mcp794xx.c
125
mcprtc_settime(struct todr_chip_handle *handle, struct timeval *tv)
sys/dev/i2c/mcp794xx.c
130
clock_secs_to_ymdhms(tv->tv_sec, &dt);
sys/dev/i2c/pcf85063.c
132
pcyrtc_gettime(struct todr_chip_handle *ch, struct timeval *tv)
sys/dev/i2c/pcf85063.c
141
tv->tv_sec = clock_ymdhms_to_secs(&dt);
sys/dev/i2c/pcf85063.c
142
tv->tv_usec = 0;
sys/dev/i2c/pcf85063.c
147
pcyrtc_settime(struct todr_chip_handle *ch, struct timeval *tv)
sys/dev/i2c/pcf85063.c
153
clock_secs_to_ymdhms(tv->tv_sec, &dt);
sys/dev/i2c/pcf8523.c
155
pcfrtc_gettime(struct todr_chip_handle *ch, struct timeval *tv)
sys/dev/i2c/pcf8523.c
164
tv->tv_sec = clock_ymdhms_to_secs(&dt);
sys/dev/i2c/pcf8523.c
165
tv->tv_usec = 0;
sys/dev/i2c/pcf8523.c
170
pcfrtc_settime(struct todr_chip_handle *ch, struct timeval *tv)
sys/dev/i2c/pcf8523.c
176
clock_secs_to_ymdhms(tv->tv_sec, &dt);
sys/dev/i2c/pcf8563.c
135
pcxrtc_gettime(struct todr_chip_handle *ch, struct timeval *tv)
sys/dev/i2c/pcf8563.c
144
tv->tv_sec = clock_ymdhms_to_secs(&dt);
sys/dev/i2c/pcf8563.c
145
tv->tv_usec = 0;
sys/dev/i2c/pcf8563.c
150
pcxrtc_settime(struct todr_chip_handle *ch, struct timeval *tv)
sys/dev/i2c/pcf8563.c
155
clock_secs_to_ymdhms(tv->tv_sec, &dt);
sys/dev/i2c/rs5c372.c
198
ricohrtc_gettime(struct todr_chip_handle *ch, struct timeval *tv)
sys/dev/i2c/rs5c372.c
207
tv->tv_sec = clock_ymdhms_to_secs(&dt);
sys/dev/i2c/rs5c372.c
208
tv->tv_usec = 0;
sys/dev/i2c/rs5c372.c
213
ricohrtc_settime(struct todr_chip_handle *ch, struct timeval *tv)
sys/dev/i2c/rs5c372.c
218
clock_secs_to_ymdhms(tv->tv_sec, &dt);
sys/dev/ic/mk48txx.c
125
mk48txx_gettime(todr_chip_handle_t handle, struct timeval *tv)
sys/dev/ic/mk48txx.c
168
tv->tv_sec = clock_ymdhms_to_secs(&dt);
sys/dev/ic/mk48txx.c
169
tv->tv_usec = 0;
sys/dev/ic/mk48txx.c
178
mk48txx_settime(todr_chip_handle_t handle, struct timeval *tv)
sys/dev/ic/mk48txx.c
189
clock_secs_to_ymdhms(tv->tv_sec, &dt);
sys/dev/isa/gus.c
1053
microtime(&playstats[playcntr].tv);
sys/dev/isa/gus.c
1150
microtime(&playstats[playcntr].tv);
sys/dev/isa/gus.c
433
microtime(&dmarecords[dmarecord_index].tv);
sys/dev/isa/gus.c
522
microtime(&dmarecords[dmarecord_index].tv);
sys/dev/isa/gus.c
643
struct timeval tv;
sys/dev/isa/gus.c
816
microtime(&playstats[playcntr].tv);
sys/dev/isa/gusvar.h
290
struct timeval tv;
sys/dev/pci/bktr/bktr_os.c
482
struct TVTUNER *tv = &sc->tuner;
sys/dev/pci/bktr/bktr_os.c
507
tv->tuner_mode = BT848_TUNER_MODE_TV;
sys/dev/pci/bktr/bktr_os.c
509
ri->chan = tv->channel;
sys/dev/pci/bktr/bktr_os.c
520
tv->tuner_mode = BT848_TUNER_MODE_RADIO;
sys/dev/pci/bktr/bktr_os.c
522
ri->freq = tv->frequency;
sys/dev/pci/bktr/bktr_os.c
527
tv->chnlset = ri->chnlset;
sys/dev/pci/bktr/bktr_os.c
529
tv->chnlset = DEFAULT_CHNLSET;
sys/dev/pci/bktr/bktr_os.c
540
struct TVTUNER *tv = &sc->tuner;
sys/dev/pci/bktr/bktr_os.c
553
switch (tv->tuner_mode) {
sys/dev/pci/bktr/bktr_os.c
556
ri->freq = tv->frequency * 1000 / 16;
sys/dev/pci/bktr/bktr_os.c
560
ri->freq = tv->frequency * 10;
sys/dev/pci/bktr/bktr_os.c
571
ri->chan = tv->channel;
sys/dev/pci/bktr/bktr_os.c
572
ri->chnlset = tv->chnlset;
sys/dev/pci/drm/display/drm_hdmi_helper.c
160
frame->right_bar = conn_state->tv.margins.right;
sys/dev/pci/drm/display/drm_hdmi_helper.c
161
frame->left_bar = conn_state->tv.margins.left;
sys/dev/pci/drm/display/drm_hdmi_helper.c
162
frame->top_bar = conn_state->tv.margins.top;
sys/dev/pci/drm/display/drm_hdmi_helper.c
163
frame->bottom_bar = conn_state->tv.margins.bottom;
sys/dev/pci/drm/drm_atomic_state_helper.c
493
state->tv.margins.left = cmdline->tv_margins.left;
sys/dev/pci/drm/drm_atomic_state_helper.c
494
state->tv.margins.right = cmdline->tv_margins.right;
sys/dev/pci/drm/drm_atomic_state_helper.c
495
state->tv.margins.top = cmdline->tv_margins.top;
sys/dev/pci/drm/drm_atomic_state_helper.c
496
state->tv.margins.bottom = cmdline->tv_margins.bottom;
sys/dev/pci/drm/drm_atomic_state_helper.c
518
state->tv.mode = val;
sys/dev/pci/drm/drm_atomic_state_helper.c
521
state->tv.mode = cmdline->tv_mode;
sys/dev/pci/drm/drm_atomic_state_helper.c
527
state->tv.select_subconnector = val;
sys/dev/pci/drm/drm_atomic_state_helper.c
533
state->tv.subconnector = val;
sys/dev/pci/drm/drm_atomic_state_helper.c
539
state->tv.brightness = val;
sys/dev/pci/drm/drm_atomic_state_helper.c
545
state->tv.contrast = val;
sys/dev/pci/drm/drm_atomic_state_helper.c
551
state->tv.flicker_reduction = val;
sys/dev/pci/drm/drm_atomic_state_helper.c
557
state->tv.overscan = val;
sys/dev/pci/drm/drm_atomic_state_helper.c
563
state->tv.saturation = val;
sys/dev/pci/drm/drm_atomic_state_helper.c
569
state->tv.hue = val;
sys/dev/pci/drm/drm_atomic_state_helper.c
604
if (old_conn_state->tv.mode != new_conn_state->tv.mode)
sys/dev/pci/drm/drm_atomic_state_helper.c
607
if (old_conn_state->tv.margins.left != new_conn_state->tv.margins.left ||
sys/dev/pci/drm/drm_atomic_state_helper.c
608
old_conn_state->tv.margins.right != new_conn_state->tv.margins.right ||
sys/dev/pci/drm/drm_atomic_state_helper.c
609
old_conn_state->tv.margins.top != new_conn_state->tv.margins.top ||
sys/dev/pci/drm/drm_atomic_state_helper.c
610
old_conn_state->tv.margins.bottom != new_conn_state->tv.margins.bottom ||
sys/dev/pci/drm/drm_atomic_state_helper.c
611
old_conn_state->tv.mode != new_conn_state->tv.mode ||
sys/dev/pci/drm/drm_atomic_state_helper.c
612
old_conn_state->tv.brightness != new_conn_state->tv.brightness ||
sys/dev/pci/drm/drm_atomic_state_helper.c
613
old_conn_state->tv.contrast != new_conn_state->tv.contrast ||
sys/dev/pci/drm/drm_atomic_state_helper.c
614
old_conn_state->tv.flicker_reduction != new_conn_state->tv.flicker_reduction ||
sys/dev/pci/drm/drm_atomic_state_helper.c
615
old_conn_state->tv.overscan != new_conn_state->tv.overscan ||
sys/dev/pci/drm/drm_atomic_state_helper.c
616
old_conn_state->tv.saturation != new_conn_state->tv.saturation ||
sys/dev/pci/drm/drm_atomic_state_helper.c
617
old_conn_state->tv.hue != new_conn_state->tv.hue)
sys/dev/pci/drm/drm_atomic_uapi.c
700
state->tv.select_subconnector = val;
sys/dev/pci/drm/drm_atomic_uapi.c
702
state->tv.subconnector = val;
sys/dev/pci/drm/drm_atomic_uapi.c
704
state->tv.margins.left = val;
sys/dev/pci/drm/drm_atomic_uapi.c
706
state->tv.margins.right = val;
sys/dev/pci/drm/drm_atomic_uapi.c
708
state->tv.margins.top = val;
sys/dev/pci/drm/drm_atomic_uapi.c
710
state->tv.margins.bottom = val;
sys/dev/pci/drm/drm_atomic_uapi.c
712
state->tv.legacy_mode = val;
sys/dev/pci/drm/drm_atomic_uapi.c
714
state->tv.mode = val;
sys/dev/pci/drm/drm_atomic_uapi.c
716
state->tv.brightness = val;
sys/dev/pci/drm/drm_atomic_uapi.c
718
state->tv.contrast = val;
sys/dev/pci/drm/drm_atomic_uapi.c
720
state->tv.flicker_reduction = val;
sys/dev/pci/drm/drm_atomic_uapi.c
722
state->tv.overscan = val;
sys/dev/pci/drm/drm_atomic_uapi.c
724
state->tv.saturation = val;
sys/dev/pci/drm/drm_atomic_uapi.c
726
state->tv.hue = val;
sys/dev/pci/drm/drm_atomic_uapi.c
814
*val = state->tv.select_subconnector;
sys/dev/pci/drm/drm_atomic_uapi.c
816
*val = state->tv.subconnector;
sys/dev/pci/drm/drm_atomic_uapi.c
818
*val = state->tv.margins.left;
sys/dev/pci/drm/drm_atomic_uapi.c
820
*val = state->tv.margins.right;
sys/dev/pci/drm/drm_atomic_uapi.c
822
*val = state->tv.margins.top;
sys/dev/pci/drm/drm_atomic_uapi.c
824
*val = state->tv.margins.bottom;
sys/dev/pci/drm/drm_atomic_uapi.c
826
*val = state->tv.legacy_mode;
sys/dev/pci/drm/drm_atomic_uapi.c
828
*val = state->tv.mode;
sys/dev/pci/drm/drm_atomic_uapi.c
830
*val = state->tv.brightness;
sys/dev/pci/drm/drm_atomic_uapi.c
832
*val = state->tv.contrast;
sys/dev/pci/drm/drm_atomic_uapi.c
834
*val = state->tv.flicker_reduction;
sys/dev/pci/drm/drm_atomic_uapi.c
836
*val = state->tv.overscan;
sys/dev/pci/drm/drm_atomic_uapi.c
838
*val = state->tv.saturation;
sys/dev/pci/drm/drm_atomic_uapi.c
840
*val = state->tv.hue;
sys/dev/pci/drm/drm_vblank.c
1044
struct timespec64 tv;
sys/dev/pci/drm/drm_vblank.c
1049
tv = ktime_to_timespec64(now);
sys/dev/pci/drm/drm_vblank.c
1056
e->event.vbl.tv_sec = tv.tv_sec;
sys/dev/pci/drm/drm_vblank.c
1057
e->event.vbl.tv_usec = tv.tv_nsec / 1000;
sys/dev/pci/drm/i915/display/intel_sdvo.c
1223
format_map = 1 << conn_state->tv.legacy_mode;
sys/dev/pci/drm/i915/display/intel_sdvo.c
1475
UPDATE_PROPERTY(sdvo_state->tv.overscan_h, OVERSCAN_H);
sys/dev/pci/drm/i915/display/intel_sdvo.c
1478
UPDATE_PROPERTY(sdvo_state->tv.overscan_v, OVERSCAN_V);
sys/dev/pci/drm/i915/display/intel_sdvo.c
1481
UPDATE_PROPERTY(sdvo_state->tv.hpos, HPOS);
sys/dev/pci/drm/i915/display/intel_sdvo.c
1484
UPDATE_PROPERTY(sdvo_state->tv.vpos, VPOS);
sys/dev/pci/drm/i915/display/intel_sdvo.c
1487
UPDATE_PROPERTY(conn_state->tv.saturation, SATURATION);
sys/dev/pci/drm/i915/display/intel_sdvo.c
1490
UPDATE_PROPERTY(conn_state->tv.contrast, CONTRAST);
sys/dev/pci/drm/i915/display/intel_sdvo.c
1493
UPDATE_PROPERTY(conn_state->tv.hue, HUE);
sys/dev/pci/drm/i915/display/intel_sdvo.c
1496
UPDATE_PROPERTY(conn_state->tv.brightness, BRIGHTNESS);
sys/dev/pci/drm/i915/display/intel_sdvo.c
1499
UPDATE_PROPERTY(sdvo_state->tv.sharpness, SHARPNESS);
sys/dev/pci/drm/i915/display/intel_sdvo.c
1502
UPDATE_PROPERTY(sdvo_state->tv.flicker_filter, FLICKER_FILTER);
sys/dev/pci/drm/i915/display/intel_sdvo.c
1505
UPDATE_PROPERTY(sdvo_state->tv.flicker_filter_2d, FLICKER_FILTER_2D);
sys/dev/pci/drm/i915/display/intel_sdvo.c
1508
UPDATE_PROPERTY(sdvo_state->tv.flicker_filter_adaptive, FLICKER_FILTER_ADAPTIVE);
sys/dev/pci/drm/i915/display/intel_sdvo.c
1511
UPDATE_PROPERTY(sdvo_state->tv.chroma_filter, TV_CHROMA_FILTER);
sys/dev/pci/drm/i915/display/intel_sdvo.c
1514
UPDATE_PROPERTY(sdvo_state->tv.luma_filter, TV_LUMA_FILTER);
sys/dev/pci/drm/i915/display/intel_sdvo.c
1517
UPDATE_PROPERTY(sdvo_state->tv.dot_crawl, DOT_CRAWL);
sys/dev/pci/drm/i915/display/intel_sdvo.c
177
} tv;
sys/dev/pci/drm/i915/display/intel_sdvo.c
2320
format_map = 1 << conn_state->tv.legacy_mode;
sys/dev/pci/drm/i915/display/intel_sdvo.c
2385
if (state->tv.legacy_mode == intel_sdvo_connector->tv_format_supported[i]) {
sys/dev/pci/drm/i915/display/intel_sdvo.c
2395
*val = intel_sdvo_connector->max_vscan - sdvo_state->tv.overscan_v;
sys/dev/pci/drm/i915/display/intel_sdvo.c
2398
*val = intel_sdvo_connector->max_hscan - sdvo_state->tv.overscan_h;
sys/dev/pci/drm/i915/display/intel_sdvo.c
2400
*val = sdvo_state->tv.hpos;
sys/dev/pci/drm/i915/display/intel_sdvo.c
2402
*val = sdvo_state->tv.vpos;
sys/dev/pci/drm/i915/display/intel_sdvo.c
2404
*val = state->tv.saturation;
sys/dev/pci/drm/i915/display/intel_sdvo.c
2406
*val = state->tv.contrast;
sys/dev/pci/drm/i915/display/intel_sdvo.c
2408
*val = state->tv.hue;
sys/dev/pci/drm/i915/display/intel_sdvo.c
2410
*val = state->tv.brightness;
sys/dev/pci/drm/i915/display/intel_sdvo.c
2412
*val = sdvo_state->tv.sharpness;
sys/dev/pci/drm/i915/display/intel_sdvo.c
2414
*val = sdvo_state->tv.flicker_filter;
sys/dev/pci/drm/i915/display/intel_sdvo.c
2416
*val = sdvo_state->tv.flicker_filter_2d;
sys/dev/pci/drm/i915/display/intel_sdvo.c
2418
*val = sdvo_state->tv.flicker_filter_adaptive;
sys/dev/pci/drm/i915/display/intel_sdvo.c
2420
*val = sdvo_state->tv.chroma_filter;
sys/dev/pci/drm/i915/display/intel_sdvo.c
2422
*val = sdvo_state->tv.luma_filter;
sys/dev/pci/drm/i915/display/intel_sdvo.c
2424
*val = sdvo_state->tv.dot_crawl;
sys/dev/pci/drm/i915/display/intel_sdvo.c
2441
state->tv.legacy_mode = intel_sdvo_connector->tv_format_supported[val];
sys/dev/pci/drm/i915/display/intel_sdvo.c
2452
sdvo_state->tv.overscan_v = intel_sdvo_connector->max_vscan - val;
sys/dev/pci/drm/i915/display/intel_sdvo.c
2456
sdvo_state->tv.overscan_h = intel_sdvo_connector->max_hscan - val;
sys/dev/pci/drm/i915/display/intel_sdvo.c
2458
sdvo_state->tv.hpos = val;
sys/dev/pci/drm/i915/display/intel_sdvo.c
2460
sdvo_state->tv.vpos = val;
sys/dev/pci/drm/i915/display/intel_sdvo.c
2462
state->tv.saturation = val;
sys/dev/pci/drm/i915/display/intel_sdvo.c
2464
state->tv.contrast = val;
sys/dev/pci/drm/i915/display/intel_sdvo.c
2466
state->tv.hue = val;
sys/dev/pci/drm/i915/display/intel_sdvo.c
2468
state->tv.brightness = val;
sys/dev/pci/drm/i915/display/intel_sdvo.c
2470
sdvo_state->tv.sharpness = val;
sys/dev/pci/drm/i915/display/intel_sdvo.c
2472
sdvo_state->tv.flicker_filter = val;
sys/dev/pci/drm/i915/display/intel_sdvo.c
2474
sdvo_state->tv.flicker_filter_2d = val;
sys/dev/pci/drm/i915/display/intel_sdvo.c
2476
sdvo_state->tv.flicker_filter_adaptive = val;
sys/dev/pci/drm/i915/display/intel_sdvo.c
2478
sdvo_state->tv.chroma_filter = val;
sys/dev/pci/drm/i915/display/intel_sdvo.c
2480
sdvo_state->tv.luma_filter = val;
sys/dev/pci/drm/i915/display/intel_sdvo.c
2482
sdvo_state->tv.dot_crawl = val;
sys/dev/pci/drm/i915/display/intel_sdvo.c
2527
(memcmp(&old_state->tv, &new_state->tv, sizeof(old_state->tv)) ||
sys/dev/pci/drm/i915/display/intel_sdvo.c
2528
memcmp(&old_conn_state->tv, &new_conn_state->tv, sizeof(old_conn_state->tv)))) {
sys/dev/pci/drm/i915/display/intel_sdvo.c
3105
intel_sdvo_connector->base.base.state->tv.legacy_mode = intel_sdvo_connector->tv_format_supported[0];
sys/dev/pci/drm/i915/display/intel_sdvo.c
3154
sdvo_state->tv.overscan_h = response;
sys/dev/pci/drm/i915/display/intel_sdvo.c
3187
sdvo_state->tv.overscan_v = response;
sys/dev/pci/drm/i915/display/intel_sdvo.c
3211
ENHANCEMENT(&sdvo_state->tv, hpos, HPOS);
sys/dev/pci/drm/i915/display/intel_sdvo.c
3212
ENHANCEMENT(&sdvo_state->tv, vpos, VPOS);
sys/dev/pci/drm/i915/display/intel_sdvo.c
3213
ENHANCEMENT(&conn_state->tv, saturation, SATURATION);
sys/dev/pci/drm/i915/display/intel_sdvo.c
3214
ENHANCEMENT(&conn_state->tv, contrast, CONTRAST);
sys/dev/pci/drm/i915/display/intel_sdvo.c
3215
ENHANCEMENT(&conn_state->tv, hue, HUE);
sys/dev/pci/drm/i915/display/intel_sdvo.c
3216
ENHANCEMENT(&conn_state->tv, brightness, BRIGHTNESS);
sys/dev/pci/drm/i915/display/intel_sdvo.c
3217
ENHANCEMENT(&sdvo_state->tv, sharpness, SHARPNESS);
sys/dev/pci/drm/i915/display/intel_sdvo.c
3218
ENHANCEMENT(&sdvo_state->tv, flicker_filter, FLICKER_FILTER);
sys/dev/pci/drm/i915/display/intel_sdvo.c
3219
ENHANCEMENT(&sdvo_state->tv, flicker_filter_adaptive, FLICKER_FILTER_ADAPTIVE);
sys/dev/pci/drm/i915/display/intel_sdvo.c
3220
ENHANCEMENT(&sdvo_state->tv, flicker_filter_2d, FLICKER_FILTER_2D);
sys/dev/pci/drm/i915/display/intel_sdvo.c
3221
_ENHANCEMENT(sdvo_state->tv.chroma_filter, tv_chroma_filter, TV_CHROMA_FILTER);
sys/dev/pci/drm/i915/display/intel_sdvo.c
3222
_ENHANCEMENT(sdvo_state->tv.luma_filter, tv_luma_filter, TV_LUMA_FILTER);
sys/dev/pci/drm/i915/display/intel_sdvo.c
3228
sdvo_state->tv.dot_crawl = response & 0x1;
sys/dev/pci/drm/i915/display/intel_sdvo.c
3251
ENHANCEMENT(&connector->state->tv, brightness, BRIGHTNESS);
sys/dev/pci/drm/i915/display/intel_tv.c
1184
conn_state->tv.margins.top -
sys/dev/pci/drm/i915/display/intel_tv.c
1185
conn_state->tv.margins.bottom !=
sys/dev/pci/drm/i915/display/intel_tv.c
1245
top = conn_state->tv.margins.top;
sys/dev/pci/drm/i915/display/intel_tv.c
1246
bottom = conn_state->tv.margins.bottom;
sys/dev/pci/drm/i915/display/intel_tv.c
1265
tv_conn_state->margins.top = conn_state->tv.margins.top;
sys/dev/pci/drm/i915/display/intel_tv.c
1266
tv_conn_state->margins.bottom = conn_state->tv.margins.bottom;
sys/dev/pci/drm/i915/display/intel_tv.c
1340
conn_state->tv.margins.left,
sys/dev/pci/drm/i915/display/intel_tv.c
1341
conn_state->tv.margins.right);
sys/dev/pci/drm/i915/display/intel_tv.c
1555
xpos = conn_state->tv.margins.left;
sys/dev/pci/drm/i915/display/intel_tv.c
1557
xsize -= (conn_state->tv.margins.left +
sys/dev/pci/drm/i915/display/intel_tv.c
1558
conn_state->tv.margins.right);
sys/dev/pci/drm/i915/display/intel_tv.c
1704
connector->state->tv.legacy_mode = i;
sys/dev/pci/drm/i915/display/intel_tv.c
1863
if (old_state->tv.legacy_mode != new_state->tv.legacy_mode ||
sys/dev/pci/drm/i915/display/intel_tv.c
1864
old_state->tv.margins.left != new_state->tv.margins.left ||
sys/dev/pci/drm/i915/display/intel_tv.c
1865
old_state->tv.margins.right != new_state->tv.margins.right ||
sys/dev/pci/drm/i915/display/intel_tv.c
1866
old_state->tv.margins.top != new_state->tv.margins.top ||
sys/dev/pci/drm/i915/display/intel_tv.c
1867
old_state->tv.margins.bottom != new_state->tv.margins.bottom) {
sys/dev/pci/drm/i915/display/intel_tv.c
1895
conn_state->tv.margins.left = 54;
sys/dev/pci/drm/i915/display/intel_tv.c
1896
conn_state->tv.margins.top = 36;
sys/dev/pci/drm/i915/display/intel_tv.c
1897
conn_state->tv.margins.right = 46;
sys/dev/pci/drm/i915/display/intel_tv.c
1898
conn_state->tv.margins.bottom = 37;
sys/dev/pci/drm/i915/display/intel_tv.c
1900
conn_state->tv.legacy_mode = 0;
sys/dev/pci/drm/i915/display/intel_tv.c
1914
conn_state->tv.legacy_mode);
sys/dev/pci/drm/i915/display/intel_tv.c
1917
conn_state->tv.margins.left);
sys/dev/pci/drm/i915/display/intel_tv.c
1920
conn_state->tv.margins.top);
sys/dev/pci/drm/i915/display/intel_tv.c
1923
conn_state->tv.margins.right);
sys/dev/pci/drm/i915/display/intel_tv.c
1926
conn_state->tv.margins.bottom);
sys/dev/pci/drm/i915/display/intel_tv.c
953
int format = conn_state->tv.legacy_mode;
sys/dev/pci/drm/include/drm/drm_connector.h
1052
struct drm_tv_connector_state tv;
sys/dev/pci/drm/radeon/radeon_drv.c
181
MODULE_PARM_DESC(tv, "TV enable (0 = disable)");
sys/dev/pci/drm/radeon/radeon_drv.c
182
module_param_named(tv, radeon_tv, int, 0444);
sys/dev/pci/drm/radeon/radeon_legacy_tv.c
395
WREG32(RADEON_TV_UV_ADR, tv_dac->tv.tv_uv_adr);
sys/dev/pci/drm/radeon/radeon_legacy_tv.c
396
h_table = radeon_get_htiming_tables_addr(tv_dac->tv.tv_uv_adr);
sys/dev/pci/drm/radeon/radeon_legacy_tv.c
397
v_table = radeon_get_vtiming_tables_addr(tv_dac->tv.tv_uv_adr);
sys/dev/pci/drm/radeon/radeon_legacy_tv.c
400
tmp = ((uint32_t)tv_dac->tv.h_code_timing[i] << 14) | ((uint32_t)tv_dac->tv.h_code_timing[i+1]);
sys/dev/pci/drm/radeon/radeon_legacy_tv.c
402
if (tv_dac->tv.h_code_timing[i] == 0 || tv_dac->tv.h_code_timing[i + 1] == 0)
sys/dev/pci/drm/radeon/radeon_legacy_tv.c
406
tmp = ((uint32_t)tv_dac->tv.v_code_timing[i+1] << 14) | ((uint32_t)tv_dac->tv.v_code_timing[i]);
sys/dev/pci/drm/radeon/radeon_legacy_tv.c
408
if (tv_dac->tv.v_code_timing[i] == 0 || tv_dac->tv.v_code_timing[i + 1] == 0)
sys/dev/pci/drm/radeon/radeon_legacy_tv.c
418
WREG32(RADEON_TV_FRESTART, tv_dac->tv.frestart);
sys/dev/pci/drm/radeon/radeon_legacy_tv.c
419
WREG32(RADEON_TV_HRESTART, tv_dac->tv.hrestart);
sys/dev/pci/drm/radeon/radeon_legacy_tv.c
420
WREG32(RADEON_TV_VRESTART, tv_dac->tv.vrestart);
sys/dev/pci/drm/radeon/radeon_legacy_tv.c
466
h_changed = (p1 != tv_dac->tv.h_code_timing[H_TABLE_POS1] ||
sys/dev/pci/drm/radeon/radeon_legacy_tv.c
467
p2 != tv_dac->tv.h_code_timing[H_TABLE_POS2]);
sys/dev/pci/drm/radeon/radeon_legacy_tv.c
469
tv_dac->tv.h_code_timing[H_TABLE_POS1] = p1;
sys/dev/pci/drm/radeon/radeon_legacy_tv.c
470
tv_dac->tv.h_code_timing[H_TABLE_POS2] = p2;
sys/dev/pci/drm/radeon/radeon_legacy_tv.c
494
tv_dac->tv.hrestart = restart % h_total;
sys/dev/pci/drm/radeon/radeon_legacy_tv.c
496
tv_dac->tv.vrestart = restart % v_total;
sys/dev/pci/drm/radeon/radeon_legacy_tv.c
498
tv_dac->tv.frestart = restart % f_total;
sys/dev/pci/drm/radeon/radeon_legacy_tv.c
501
(unsigned)tv_dac->tv.frestart,
sys/dev/pci/drm/radeon/radeon_legacy_tv.c
502
(unsigned)tv_dac->tv.vrestart,
sys/dev/pci/drm/radeon/radeon_legacy_tv.c
503
(unsigned)tv_dac->tv.hrestart);
sys/dev/pci/drm/radeon/radeon_legacy_tv.c
515
tv_dac->tv.timing_cntl = (tv_dac->tv.timing_cntl & ~RADEON_H_INC_MASK) |
sys/dev/pci/drm/radeon/radeon_legacy_tv.c
664
tv_dac->tv.timing_cntl = tmp;
sys/dev/pci/drm/radeon/radeon_legacy_tv.c
711
tv_dac->tv.tv_uv_adr = 0xc8;
sys/dev/pci/drm/radeon/radeon_legacy_tv.c
727
tv_dac->tv.h_code_timing[i] = hor_timing[i];
sys/dev/pci/drm/radeon/radeon_legacy_tv.c
728
if (tv_dac->tv.h_code_timing[i] == 0)
sys/dev/pci/drm/radeon/radeon_legacy_tv.c
733
tv_dac->tv.v_code_timing[i] = vert_timing[i];
sys/dev/pci/drm/radeon/radeon_legacy_tv.c
734
if (tv_dac->tv.v_code_timing[i] == 0)
sys/dev/pci/drm/radeon/radeon_legacy_tv.c
804
WREG32(RADEON_TV_TIMING_CNTL, tv_dac->tv.timing_cntl);
sys/dev/pci/drm/radeon/radeon_mode.h
405
struct radeon_tv_regs tv;
sys/dev/pci/mbg.c
378
sc->sc_timedelta.tv.tv_sec = tstamp->tv_sec;
sys/dev/pci/mbg.c
379
sc->sc_timedelta.tv.tv_usec = tstamp->tv_nsec / 1000;
sys/dev/pci/mbg.c
390
sc->sc_signal.tv.tv_sec = sc->sc_timedelta.tv.tv_sec;
sys/dev/pci/mbg.c
391
sc->sc_signal.tv.tv_usec = sc->sc_timedelta.tv.tv_usec;
sys/dev/pv/hypervic.c
469
microtime(&sc->sc_sensor.tv);
sys/dev/pv/pvclock.c
382
TIMESPEC_TO_TIMEVAL(&sc->sc_sensor.tv, &ts);
sys/dev/pv/vmmci.c
200
struct timeval *guest = &sc->sc_sensor.tv;
sys/dev/pv/vmt.c
689
struct timeval *guest = &sc->sc_sensor.tv;
sys/dev/usb/uaudio.c
3267
struct timeval tv;
sys/dev/usb/uaudio.c
3269
getmicrotime(&tv);
sys/dev/usb/uaudio.c
3285
__func__, tv.tv_sec, tv.tv_usec,
sys/dev/usb/uaudio.c
3320
struct timeval tv;
sys/dev/usb/uaudio.c
3365
getmicrotime(&tv);
sys/dev/usb/uaudio.c
3380
struct timeval tv;
sys/dev/usb/uaudio.c
3390
getmicrotime(&tv);
sys/dev/usb/uaudio.c
3393
__func__, tv.tv_sec, tv.tv_usec,
sys/dev/usb/uaudio.c
3429
struct timeval tv;
sys/dev/usb/uaudio.c
3454
getmicrotime(&tv);
sys/dev/usb/uaudio.c
3456
__func__, tv.tv_sec, tv.tv_usec,
sys/dev/usb/uaudio.c
3502
struct timeval tv;
sys/dev/usb/uaudio.c
3535
getmicrotime(&tv);
sys/dev/usb/uaudio.c
3537
tv.tv_sec, tv.tv_usec, sc->sync_pktsz, xfer->nframes);
sys/dev/usb/uaudio.c
3549
struct timeval tv;
sys/dev/usb/uaudio.c
3582
getmicrotime(&tv);
sys/dev/usb/uaudio.c
3584
__func__, tv.tv_sec, tv.tv_usec, val);
sys/dev/usb/uaudio.c
3607
struct timeval tv;
sys/dev/usb/uaudio.c
3657
getmicrotime(&tv);
sys/dev/usb/uaudio.c
3660
__func__, tv.tv_sec, tv.tv_usec,
sys/dev/usb/uaudio.c
3694
struct timeval tv;
sys/dev/usb/uaudio.c
3774
getmicrotime(&tv);
sys/dev/usb/uaudio.c
3777
__func__, tv.tv_sec, tv.tv_usec,
sys/dev/usb/udcf.c
439
microtime(&sc->sc_sensor.tv);
sys/dev/usb/udcf.c
588
getmicrotime(&sc->sc_skew.tv);
sys/dev/usb/umass_scsi.c
185
microtime(&sc->tv);
sys/dev/usb/umass_scsi.c
190
sc->sc_dev.dv_xname, (long long)sc->tv.tv_sec, sc->tv.tv_usec,
sys/dev/usb/umass_scsi.c
268
struct timeval tv;
sys/dev/usb/umass_scsi.c
270
microtime(&tv);
sys/dev/usb/umass_scsi.c
271
delta = (tv.tv_sec - sc->tv.tv_sec) * 1000000 +
sys/dev/usb/umass_scsi.c
272
tv.tv_usec - sc->tv.tv_usec;
sys/dev/usb/umass_scsi.c
277
" status=%d\n", (long long)tv.tv_sec, tv.tv_usec, delta, xs, residue,
sys/dev/usb/umass_scsi.c
354
(long long)tv.tv_sec, tv.tv_usec,
sys/dev/usb/umassvar.h
256
struct timeval tv;
sys/dev/usb/umbg.c
358
sc->sc_timedelta.tv.tv_sec = tstamp.tv_sec;
sys/dev/usb/umbg.c
359
sc->sc_timedelta.tv.tv_usec = tstamp.tv_nsec / 1000;
sys/dev/usb/umbg.c
370
sc->sc_signal.tv.tv_sec = sc->sc_timedelta.tv.tv_sec;
sys/dev/usb/umbg.c
371
sc->sc_signal.tv.tv_usec = sc->sc_timedelta.tv.tv_usec;
sys/kern/kern_clock.c
158
tvtohz(const struct timeval *tv)
sys/kern/kern_clock.c
184
sec = tv->tv_sec;
sys/kern/kern_clock.c
185
usec = tv->tv_usec;
sys/kern/kern_clock.c
204
struct timeval tv;
sys/kern/kern_clock.c
205
TIMESPEC_TO_TIMEVAL(&tv, ts);
sys/kern/kern_clock.c
209
tv.tv_usec += 1;
sys/kern/kern_clock.c
210
if (tv.tv_usec >= 1000000) {
sys/kern/kern_clock.c
211
tv.tv_usec -= 1000000;
sys/kern/kern_clock.c
212
tv.tv_sec += 1;
sys/kern/kern_clock.c
216
return (tvtohz(&tv));
sys/kern/kern_resource.c
453
(long long)tv.tv_sec, tv.tv_nsec,
sys/kern/kern_sysctl.c
2864
us->tv = ks->tv;
sys/kern/kern_time.c
368
syscallarg(const struct timeval *) tv;
sys/kern/kern_time.c
373
const struct timeval *tv;
sys/kern/kern_time.c
377
tv = SCARG(uap, tv);
sys/kern/kern_time.c
383
if (tv && (error = copyin(tv, &atv, sizeof(atv))))
sys/kern/kern_time.c
387
if (tv) {
sys/kern/kern_time.c
833
struct timeval tv, delta;
sys/kern/kern_time.c
836
getmicrouptime(&tv);
sys/kern/kern_time.c
839
timersub(&tv, lasttime, &delta);
sys/kern/kern_time.c
847
*lasttime = tv;
sys/kern/kern_time.c
863
struct timeval tv, delta;
sys/kern/kern_time.c
866
microuptime(&tv);
sys/kern/kern_time.c
869
timersub(&tv, lasttime, &delta);
sys/kern/kern_time.c
883
*lasttime = tv;
sys/kern/sys_generic.c
536
syscallarg(struct timeval *) tv;
sys/kern/sys_generic.c
542
if (SCARG(uap, tv) != NULL) {
sys/kern/sys_generic.c
543
struct timeval tv;
sys/kern/sys_generic.c
544
if ((error = copyin(SCARG(uap, tv), &tv, sizeof tv)) != 0)
sys/kern/sys_generic.c
548
ktrreltimeval(p, &tv);
sys/kern/sys_generic.c
550
if (tv.tv_sec < 0 || !timerisvalid(&tv))
sys/kern/sys_generic.c
552
TIMEVAL_TO_TIMESPEC(&tv, &ts);
sys/kern/tty_endrun.c
324
np->time.tv.tv_sec = np->ts.tv_sec;
sys/kern/tty_endrun.c
325
np->time.tv.tv_usec = np->ts.tv_nsec / 1000L;
sys/kern/tty_msts.c
275
np->time.tv.tv_sec = np->ts.tv_sec;
sys/kern/tty_msts.c
276
np->time.tv.tv_usec = np->ts.tv_nsec / 1000L;
sys/kern/tty_nmea.c
376
np->time.tv.tv_sec = np->ts.tv_sec;
sys/kern/tty_nmea.c
377
np->time.tv.tv_usec = np->ts.tv_nsec / 1000L;
sys/kern/uipc_mbuf.c
1475
m_microtime(const struct mbuf *m, struct timeval *tv)
sys/kern/uipc_mbuf.c
1482
timeradd(&btv, &utv, tv);
sys/kern/uipc_mbuf.c
1484
microtime(tv);
sys/kern/uipc_socket.c
1309
sosplice(struct socket *so, int fd, off_t max, struct timeval *tv)
sys/kern/uipc_socket.c
1319
if (tv && (tv->tv_sec < 0 || !timerisvalid(tv)))
sys/kern/uipc_socket.c
1391
if (tv)
sys/kern/uipc_socket.c
1392
so->so_spliceidletv = *tv;
sys/kern/uipc_socket.c
2003
struct timeval tv;
sys/kern/uipc_socket.c
2006
if (m == NULL || m->m_len < sizeof (tv))
sys/kern/uipc_socket.c
2008
memcpy(&tv, mtod(m, struct timeval *), sizeof tv);
sys/kern/uipc_socket.c
2009
if (!timerisvalid(&tv))
sys/kern/uipc_socket.c
2011
nsecs = TIMEVAL_TO_NSEC(&tv);
sys/kern/uipc_socket.c
2153
struct timeval tv;
sys/kern/uipc_socket.c
2161
memset(&tv, 0, sizeof(tv));
sys/kern/uipc_socket.c
2163
NSEC_TO_TIMEVAL(nsecs, &tv);
sys/kern/uipc_socket.c
2164
memcpy(mtod(m, struct timeval *), &tv, sizeof tv);
sys/kern/vfs_syscalls.c
2570
struct timeval tv[2];
sys/kern/vfs_syscalls.c
2576
error = copyin(tvp, tv, sizeof(tv));
sys/kern/vfs_syscalls.c
2581
ktrabstimeval(p, &tv);
sys/kern/vfs_syscalls.c
2583
if (!timerisvalid(&tv[0]) || !timerisvalid(&tv[1]))
sys/kern/vfs_syscalls.c
2585
TIMEVAL_TO_TIMESPEC(&tv[0], &ts[0]);
sys/kern/vfs_syscalls.c
2586
TIMEVAL_TO_TIMESPEC(&tv[1], &ts[1]);
sys/kern/vfs_syscalls.c
2709
struct timeval tv[2];
sys/kern/vfs_syscalls.c
2716
error = copyin(tvp, tv, sizeof(tv));
sys/kern/vfs_syscalls.c
2721
ktrabstimeval(p, &tv[0]);
sys/kern/vfs_syscalls.c
2722
ktrabstimeval(p, &tv[1]);
sys/kern/vfs_syscalls.c
2725
if (!timerisvalid(&tv[0]) || !timerisvalid(&tv[1]))
sys/kern/vfs_syscalls.c
2727
TIMEVAL_TO_TIMESPEC(&tv[0], &ts[0]);
sys/kern/vfs_syscalls.c
2728
TIMEVAL_TO_TIMESPEC(&tv[1], &ts[1]);
sys/msdosfs/msdosfs_fat.c
745
struct timeval tv;
sys/msdosfs/msdosfs_fat.c
747
microtime(&tv);
sys/msdosfs/msdosfs_fat.c
748
start = (tv.tv_usec >> 10) | tv.tv_usec;
sys/net/bfd.c
1009
struct timeval tv;
sys/net/bfd.c
1039
getmicrotime(&tv);
sys/net/bfd.c
1040
printf("uptime %llds ", tv.tv_sec - bfd->bc_time->tv_sec);
sys/net/bfd.c
949
struct timeval tv;
sys/net/bfd.c
951
getmicrotime(&tv);
sys/net/bfd.c
952
bfd->bc_lastuptime = tv.tv_sec - bfd->bc_time->tv_sec;
sys/net/bfd.c
953
memcpy(bfd->bc_time, &tv, sizeof(tv));
sys/net/bpf.c
1377
struct timeval tv;
sys/net/bpf.c
1390
m_microtime(mp, &tv);
sys/net/bpf.c
1392
microtime(&tv);
sys/net/bpf.c
1394
tbh.bh_tstamp.tv_sec = tv.tv_sec;
sys/net/bpf.c
1395
tbh.bh_tstamp.tv_usec = tv.tv_usec;
sys/net/bpf.c
717
bpf_set_wtimeout(struct bpf_d *d, const struct timeval *tv)
sys/net/bpf.c
721
if (tv->tv_sec < 0 || !timerisvalid(tv))
sys/net/bpf.c
724
nsec = TIMEVAL_TO_NSEC(tv);
sys/net/bpf.c
734
bpf_get_wtimeout(struct bpf_d *d, struct timeval *tv)
sys/net/bpf.c
745
memset(tv, 0, sizeof(*tv));
sys/net/bpf.c
746
NSEC_TO_TIMEVAL(nsec, tv);
sys/net/bpf.c
955
struct timeval *tv = (struct timeval *)addr;
sys/net/bpf.c
958
if (tv->tv_sec < 0 || !timerisvalid(tv)) {
sys/net/bpf.c
962
rtout = TIMEVAL_TO_NSEC(tv);
sys/net/bpf.c
978
struct timeval *tv = (struct timeval *)addr;
sys/net/bpf.c
980
memset(tv, 0, sizeof(*tv));
sys/net/bpf.c
982
NSEC_TO_TIMEVAL(d->bd_rtout, tv);
sys/net/if_ethersubr.c
2180
struct timeval tv;
sys/net/if_ethersubr.c
2181
m_microtime(m0, &tv);
sys/net/if_ethersubr.c
2182
cmsgs = ether_frm_cmsg(cmsgs, &tv, sizeof(tv),
sys/net/if_pflow.c
1315
struct timespec tv;
sys/net/if_pflow.c
1337
getnanotime(&tv);
sys/net/if_pflow.c
1338
h->time_sec = htonl(tv.tv_sec); /* XXX 2038 */
sys/net/if_pflow.c
1339
h->time_nanosec = htonl(tv.tv_nsec);
sys/net/if_spppsubr.c
1678
struct timeval tv;
sys/net/if_spppsubr.c
1691
getmicrouptime(&tv);
sys/net/if_spppsubr.c
1692
sp->pp_last_receive = sp->pp_last_activity = tv.tv_sec;
sys/net/if_spppsubr.c
4141
struct timeval tv;
sys/net/if_spppsubr.c
4145
getmicrouptime(&tv);
sys/net/if_spppsubr.c
4159
if ((tv.tv_sec - sp->pp_last_receive) < NORECV_TIME) {
sys/net/if_spppsubr.c
451
struct timeval tv;
sys/net/if_spppsubr.c
454
getmicrouptime(&tv);
sys/net/if_spppsubr.c
460
sp->pp_last_receive = tv.tv_sec;
sys/net/if_spppsubr.c
535
sp->pp_last_activity = tv.tv_sec;
sys/net/if_spppsubr.c
550
sp->pp_last_activity = tv.tv_sec;
sys/net/if_spppsubr.c
596
struct timeval tv;
sys/net/if_spppsubr.c
612
getmicrouptime(&tv);
sys/net/if_spppsubr.c
613
sp->pp_last_activity = tv.tv_sec;
sys/netinet/ip_input.c
1864
struct timeval tv;
sys/netinet/ip_input.c
1866
m_microtime(m, &tv);
sys/netinet/ip_input.c
1867
*mp = sbcreatecontrol((caddr_t) &tv, sizeof(tv),
sys/netinet/tcp_timer.h
143
#define TCPT_RANGESET(tv, value, tvmin, tvmax) \
sys/netinet/tcp_timer.h
145
(tv) = (value); \
sys/netinet/tcp_timer.h
146
if ((tv) < (tvmin)) \
sys/netinet/tcp_timer.h
147
(tv) = (tvmin); \
sys/netinet/tcp_timer.h
148
else if ((tv) > (tvmax)) \
sys/netinet/tcp_timer.h
149
(tv) = (tvmax); \
sys/netinet6/ip6_input.c
1023
struct timeval tv;
sys/netinet6/ip6_input.c
1025
m_microtime(m, &tv);
sys/netinet6/ip6_input.c
1026
*mp = sbcreatecontrol((caddr_t) &tv, sizeof(tv),
sys/nfs/krpc_subr.c
214
struct timeval tv;
sys/nfs/krpc_subr.c
234
tv.tv_sec = 1;
sys/nfs/krpc_subr.c
235
tv.tv_usec = 0;
sys/nfs/krpc_subr.c
236
memcpy(mtod(m, struct timeval *), &tv, sizeof tv);
sys/nfs/krpc_subr.c
237
m->m_len = sizeof(tv);
sys/sys/sensors.h
114
struct timeval tv; /* sensor value last change time */
sys/sys/sensors.h
140
struct timeval tv; /* sensor value last change time */
sys/sys/syscallargs.h
316
syscallarg(const struct timeval *) tv;
sys/sys/syscallargs.h
336
syscallarg(struct timeval *) tv;
sys/sys/time.h
258
BINTIME_TO_TIMEVAL(const struct bintime *bt, struct timeval *tv)
sys/sys/time.h
260
tv->tv_sec = bt->sec;
sys/sys/time.h
261
tv->tv_usec = (long)(((uint64_t)1000000 * (uint32_t)(bt->frac >> 32)) >> 32);
sys/sys/time.h
265
TIMEVAL_TO_BINTIME(const struct timeval *tv, struct bintime *bt)
sys/sys/time.h
267
bt->sec = (time_t)tv->tv_sec;
sys/sys/time.h
269
bt->frac = (uint64_t)tv->tv_usec * (uint64_t)18446744073709ULL;
sys/sys/time.h
372
USEC_TO_TIMEVAL(uint64_t us, struct timeval *tv)
sys/sys/time.h
374
tv->tv_sec = us / 1000000;
sys/sys/time.h
375
tv->tv_usec = us % 1000000;
sys/sys/time.h
379
NSEC_TO_TIMEVAL(uint64_t ns, struct timeval *tv)
sys/sys/time.h
381
tv->tv_sec = ns / 1000000000L;
sys/sys/time.h
382
tv->tv_usec = (ns % 1000000000L) / 1000;
sys/sys/time.h
386
TIMEVAL_TO_NSEC(const struct timeval *tv)
sys/sys/time.h
390
if (tv->tv_sec > UINT64_MAX / 1000000000ULL)
sys/sys/time.h
392
nsecs = tv->tv_sec * 1000000000ULL;
sys/sys/time.h
393
if (tv->tv_usec * 1000ULL > UINT64_MAX - nsecs)
sys/sys/time.h
395
return nsecs + tv->tv_usec * 1000ULL;
sys/sys/time.h
63
#define TIMEVAL_TO_TIMESPEC(tv, ts) do { \
sys/sys/time.h
64
(ts)->tv_sec = (tv)->tv_sec; \
sys/sys/time.h
65
(ts)->tv_nsec = (tv)->tv_usec * 1000; \
sys/sys/time.h
67
#define TIMESPEC_TO_TIMEVAL(tv, ts) do { \
sys/sys/time.h
68
(tv)->tv_sec = (ts)->tv_sec; \
sys/sys/time.h
69
(tv)->tv_usec = (ts)->tv_nsec / 1000; \
sys/sys/videoio.h
4790
static inline u_int64_t v4l2_timeval_to_ns(const struct timeval *tv)
sys/sys/videoio.h
4792
return (u_int64_t)tv->tv_sec * 1000000000ULL + tv->tv_usec * 1000;
sys/tmpfs/tmpfs_vnops.c
479
#define GOODTIME(tv) ((tv)->tv_nsec != VNOVAL)
sys/ufs/ext2fs/ext2fs_subr.c
121
struct timeval tv;
sys/ufs/ext2fs/ext2fs_subr.c
171
getmicrouptime(&tv);
sys/ufs/ext2fs/ext2fs_subr.c
172
ip->i_modrev = (u_quad_t)tv.tv_sec << 32;
sys/ufs/ext2fs/ext2fs_subr.c
173
ip->i_modrev |= (u_quad_t)tv.tv_usec * 4294;
usr.bin/awk/run.c
2063
time_t tv;
usr.bin/awk/run.c
2249
tv = (time_t) getfval(y);
usr.bin/awk/run.c
2252
tv = time((time_t *) 0);
usr.bin/awk/run.c
2253
tm = localtime(&tv);
usr.bin/awk/run.c
2255
FATAL("bad time %ld", (long)tv);
usr.bin/cvs/buf.c
243
buf_write_stmp(BUF *b, char *template, struct timeval *tv)
usr.bin/cvs/buf.c
255
if (tv != NULL) {
usr.bin/cvs/buf.c
256
if (futimes(fd, tv) == -1)
usr.bin/cvs/checkout.c
490
struct timeval tv[2];
usr.bin/cvs/checkout.c
547
tv[0].tv_sec = rcstime;
usr.bin/cvs/checkout.c
548
tv[0].tv_usec = 0;
usr.bin/cvs/checkout.c
549
tv[1] = tv[0];
usr.bin/cvs/checkout.c
550
if (futimes(cf->fd, tv) == -1)
usr.bin/cvs/client.c
700
struct timeval tv[2];
usr.bin/cvs/client.c
777
tv[0].tv_sec = now;
usr.bin/cvs/client.c
778
tv[0].tv_usec = 0;
usr.bin/cvs/client.c
779
tv[1] = tv[0];
usr.bin/cvs/client.c
781
if (futimes(fd, tv) == -1)
usr.bin/cvs/client.c
801
struct timeval tv[2];
usr.bin/cvs/client.c
856
tv[0].tv_sec = now;
usr.bin/cvs/client.c
857
tv[0].tv_usec = 0;
usr.bin/cvs/client.c
858
tv[1] = tv[0];
usr.bin/cvs/client.c
860
if (futimes(fd, tv) == -1)
usr.bin/cvs/diff.c
306
struct timeval tv[2], tv2[2];
usr.bin/cvs/diff.c
485
tv[0].tv_sec = rcs_rev_getdate(cf->file_rcs, diff_rev1);
usr.bin/cvs/diff.c
486
tv[0].tv_usec = 0;
usr.bin/cvs/diff.c
487
tv[1] = tv[0];
usr.bin/cvs/diff.c
491
if (futimes(fd1, tv) == -1)
usr.bin/dig/dighost.c
3883
struct timeval tv;
usr.bin/dig/dighost.c
3890
TIMESPEC_TO_TIMEVAL(&tv, &diff);
usr.bin/dig/dighost.c
3892
return (tv.tv_sec * 1000000 + tv.tv_usec);
usr.bin/dig/lib/isc/unix/app.c
147
struct timeval tv, *tvp;
usr.bin/dig/lib/isc/unix/app.c
154
tv.tv_sec = 0;
usr.bin/dig/lib/isc/unix/app.c
155
tv.tv_usec = 0;
usr.bin/dig/lib/isc/unix/app.c
156
tvp = &tv;
usr.bin/dig/lib/isc/unix/app.c
167
memset(&tv, 0, sizeof(tv));
usr.bin/dig/lib/isc/unix/app.c
169
TIMESPEC_TO_TIMEVAL(&tv, &diff);
usr.bin/dig/lib/isc/unix/app.c
170
tvp = &tv;
usr.bin/dig/lib/isc/unix/socket.c
453
struct timeval tv;
usr.bin/dig/lib/isc/unix/socket.c
455
memmove(&tv, timevalp, sizeof(tv));
usr.bin/dig/lib/isc/unix/socket.c
456
TIMEVAL_TO_TIMESPEC(&tv, &dev->timestamp);
usr.bin/kdump/ktrstruct.c
624
struct timeval tv;
usr.bin/kdump/ktrstruct.c
626
if (datalen != sizeof(tv))
usr.bin/kdump/ktrstruct.c
628
memcpy(&tv, data, datalen);
usr.bin/kdump/ktrstruct.c
629
ktrtimeval(&tv, name[0] == 'r');
usr.bin/quota/quota.c
568
struct timeval tv;
usr.bin/quota/quota.c
611
gettimeofday(&tv, NULL);
usr.bin/quota/quota.c
631
tv.tv_sec + gq_rslt.getquota_rslt_u.gqr_rquota.rq_btimeleft;
usr.bin/quota/quota.c
633
tv.tv_sec + gq_rslt.getquota_rslt_u.gqr_rquota.rq_ftimeleft;
usr.bin/rcs/co.c
486
struct timeval tv[2];
usr.bin/rcs/co.c
487
memset(&tv, 0, sizeof(tv));
usr.bin/rcs/co.c
488
tv[0].tv_sec = rcs_rev_getdate(file, rev);
usr.bin/rcs/co.c
489
tv[1].tv_sec = tv[0].tv_sec;
usr.bin/rcs/co.c
490
if (futimes(fd, (const struct timeval *)&tv) == -1)
usr.bin/rcs/rcsdiff.c
281
struct timeval tv[2], tv2[2];
usr.bin/rcs/rcsdiff.c
283
memset(&tv, 0, sizeof(tv));
usr.bin/rcs/rcsdiff.c
310
tv[0].tv_sec = rcs_rev_getdate(file, rev);
usr.bin/rcs/rcsdiff.c
311
tv[1].tv_sec = tv[0].tv_sec;
usr.bin/rcs/rcsdiff.c
334
if (utimes(path1, (const struct timeval *)&tv) == -1)
usr.bin/rcs/rcsdiff.c
362
struct timeval tv[2], tv2[2];
usr.bin/rcs/rcsdiff.c
369
memset(&tv, 0, sizeof(tv));
usr.bin/rcs/rcsdiff.c
386
tv[0].tv_sec = rcs_rev_getdate(file, rev1);
usr.bin/rcs/rcsdiff.c
387
tv[1].tv_sec = tv[0].tv_sec;
usr.bin/rcs/rcsdiff.c
411
if (utimes(path1, (const struct timeval *)&tv) == -1)
usr.bin/rdist/common.c
637
struct timeval tv[2];
usr.bin/rdist/common.c
640
tv[0].tv_sec = atime;
usr.bin/rdist/common.c
641
tv[1].tv_sec = mtime;
usr.bin/rdist/common.c
642
tv[0].tv_usec = tv[1].tv_usec = 0;
usr.bin/rdist/common.c
643
return (utimes(file, tv));
usr.bin/rsync/uploader.c
581
struct timespec tv[2];
usr.bin/rsync/uploader.c
615
tv[0].tv_sec = time(NULL);
usr.bin/rsync/uploader.c
616
tv[0].tv_nsec = 0;
usr.bin/rsync/uploader.c
617
tv[1].tv_sec = f->st.mtime;
usr.bin/rsync/uploader.c
618
tv[1].tv_nsec = 0;
usr.bin/rsync/uploader.c
619
rc = utimensat(u->rootfd, f->path, tv, 0);
usr.bin/rusers/rusers.c
352
struct timeval tv = { 25, 0 };
usr.bin/rusers/rusers.c
370
xdr_utmp_array, &up3, tv);
usr.bin/rusers/rusers.c
395
xdr_utmpidlearr, &up, tv);
usr.bin/ssh/misc.c
1744
monotime_tv(struct timeval *tv)
usr.bin/ssh/misc.c
1749
tv->tv_sec = ts.tv_sec;
usr.bin/ssh/misc.c
1750
tv->tv_usec = ts.tv_nsec / 1000;
usr.bin/ssh/scp.c
1629
struct timeval tv[2];
usr.bin/ssh/scp.c
1631
#define atime tv[0]
usr.bin/ssh/scp.c
1632
#define mtime tv[1]
usr.bin/ssh/scp.c
1823
(void) utimes(vect[0], tv);
usr.bin/ssh/scp.c
1914
if (utimes(np, tv) == -1) {
usr.bin/ssh/sftp-client.c
1843
struct timeval tv[2];
usr.bin/ssh/sftp-client.c
1844
tv[0].tv_sec = a->atime;
usr.bin/ssh/sftp-client.c
1845
tv[1].tv_sec = a->mtime;
usr.bin/ssh/sftp-client.c
1846
tv[0].tv_usec = tv[1].tv_usec = 0;
usr.bin/ssh/sftp-client.c
1847
if (utimes(local_path, tv) == -1)
usr.bin/ssh/sftp-client.c
1967
struct timeval tv[2];
usr.bin/ssh/sftp-client.c
1968
tv[0].tv_sec = dirattrib->atime;
usr.bin/ssh/sftp-client.c
1969
tv[1].tv_sec = dirattrib->mtime;
usr.bin/ssh/sftp-client.c
1970
tv[0].tv_usec = tv[1].tv_usec = 0;
usr.bin/ssh/sftp-client.c
1971
if (utimes(dst, tv) == -1)
usr.bin/ssh/sftp-server.c
955
static struct timeval tv[2];
usr.bin/ssh/sftp-server.c
957
tv[0].tv_sec = a->atime;
usr.bin/ssh/sftp-server.c
958
tv[0].tv_usec = 0;
usr.bin/ssh/sftp-server.c
959
tv[1].tv_sec = a->mtime;
usr.bin/ssh/sftp-server.c
960
tv[1].tv_usec = 0;
usr.bin/ssh/sftp-server.c
961
return tv;
usr.bin/tcpbench/tcpbench.c
1093
struct timeval tv;
usr.bin/tcpbench/tcpbench.c
1397
timerclear(&tv);
usr.bin/tcpbench/tcpbench.c
1398
tv.tv_sec = secs + 1;
usr.bin/tcpbench/tcpbench.c
1400
evtimer_add(&ev_progtimer, &tv);
usr.bin/tcpbench/tcpbench.c
256
struct timeval tv;
usr.bin/tcpbench/tcpbench.c
265
tv.tv_sec = ptb->rflag / 1000;
usr.bin/tcpbench/tcpbench.c
266
tv.tv_usec = (ptb->rflag % 1000) * 1000;
usr.bin/tcpbench/tcpbench.c
268
evtimer_add(&mainstats.timer, &tv);
usr.bin/tcpbench/tcpbench.c
274
clock_gettime_tv(clockid_t clock_id, struct timeval *tv)
usr.bin/tcpbench/tcpbench.c
281
TIMESPEC_TO_TIMEVAL(tv, &ts);
usr.bin/tmux/alerts.c
142
struct timeval tv;
usr.bin/tmux/alerts.c
150
timerclear(&tv);
usr.bin/tmux/alerts.c
151
tv.tv_sec = options_get_number(w->options, "monitor-silence");
usr.bin/tmux/alerts.c
153
log_debug("@%u alerts timer reset %u", w->id, (u_int)tv.tv_sec);
usr.bin/tmux/alerts.c
154
if (tv.tv_sec != 0)
usr.bin/tmux/alerts.c
155
event_add(&w->alerts_timer, &tv);
usr.bin/tmux/cmd-run-shell.c
121
struct timeval tv;
usr.bin/tmux/cmd-run-shell.c
180
timerclear(&tv);
usr.bin/tmux/cmd-run-shell.c
181
tv.tv_sec = (time_t)d;
usr.bin/tmux/cmd-run-shell.c
182
tv.tv_usec = (d - (double)tv.tv_sec) * 1000000U;
usr.bin/tmux/cmd-run-shell.c
183
evtimer_add(&cdata->timer, &tv);
usr.bin/tmux/cmd-show-options.c
194
struct timeval tv = { 0 };
usr.bin/tmux/cmd-show-options.c
245
tv.tv_sec = fire_time;
usr.bin/tmux/cmd-show-options.c
246
format_add_tv(ft, "hook_fire_time", &tv);
usr.bin/tmux/cmd-show-options.c
273
struct timeval tv = { 0 };
usr.bin/tmux/cmd-show-options.c
327
tv.tv_sec = fire_time;
usr.bin/tmux/cmd-show-options.c
328
format_add_tv(ft, "hook_fire_time", &tv);
usr.bin/tmux/format.c
2201
static struct timeval tv;
usr.bin/tmux/format.c
2204
tv.tv_sec = wp->last_output_time;
usr.bin/tmux/format.c
2205
tv.tv_usec = 0;
usr.bin/tmux/format.c
2206
return (&tv);
usr.bin/tmux/format.c
2216
static struct timeval tv;
usr.bin/tmux/format.c
2219
tv.tv_sec = wp->last_prompt_time;
usr.bin/tmux/format.c
2220
tv.tv_usec = 0;
usr.bin/tmux/format.c
2221
return (&tv);
usr.bin/tmux/format.c
2231
static struct timeval tv;
usr.bin/tmux/format.c
2234
tv.tv_sec = wp->cmd_start_time;
usr.bin/tmux/format.c
2235
tv.tv_usec = 0;
usr.bin/tmux/format.c
2236
return (&tv);
usr.bin/tmux/format.c
2246
static struct timeval tv;
usr.bin/tmux/format.c
2249
tv.tv_sec = wp->cmd_end_time;
usr.bin/tmux/format.c
2250
tv.tv_usec = 0;
usr.bin/tmux/format.c
2251
return (&tv);
usr.bin/tmux/format.c
3321
static struct timeval tv;
usr.bin/tmux/format.c
3324
timerclear(&tv);
usr.bin/tmux/format.c
3325
tv.tv_sec = paste_buffer_created(ft->pb);
usr.bin/tmux/format.c
3326
return (&tv);
usr.bin/tmux/format.c
4198
struct timeval *tv;
usr.bin/tmux/format.c
4207
tv = value;
usr.bin/tmux/format.c
4208
xsnprintf(s, sizeof s, "%lld", (long long)tv->tv_sec);
usr.bin/tmux/format.c
4259
format_add_tv(struct format_tree *ft, const char *key, struct timeval *tv)
usr.bin/tmux/format.c
4275
fe->time = tv->tv_sec;
usr.bin/tmux/format.c
5805
struct timeval tv;
usr.bin/tmux/format.c
5807
tv.tv_sec = FORMAT_CYCLE_PERIOD / 1000;
usr.bin/tmux/format.c
5808
tv.tv_usec = (FORMAT_CYCLE_PERIOD % 1000) * 1000L;
usr.bin/tmux/format.c
5813
evtimer_add(&c->cycle_timer, &tv);
usr.bin/tmux/input.c
3504
struct timeval tv = { .tv_sec = 0, .tv_usec = 100000 };
usr.bin/tmux/input.c
3507
event_add(&ictx->request_timer, &tv);
usr.bin/tmux/input.c
828
struct timeval tv = { .tv_sec = 5, .tv_usec = 0 };
usr.bin/tmux/input.c
831
event_add(&ictx->ground_timer, &tv);
usr.bin/tmux/log.c
105
struct timeval tv;
usr.bin/tmux/log.c
118
gettimeofday(&tv, NULL);
usr.bin/tmux/log.c
119
if (fprintf(log_file, "%lld.%06d %s%s\n", (long long)tv.tv_sec,
usr.bin/tmux/log.c
120
(int)tv.tv_usec, prefix, out) != -1)
usr.bin/tmux/monitor.c
499
struct timeval tv = { .tv_sec = 1 };
usr.bin/tmux/monitor.c
504
evtimer_add(&ms->timer, &tv);
usr.bin/tmux/monitor.c
636
struct timeval tv = { .tv_sec = 1 };
usr.bin/tmux/monitor.c
654
evtimer_add(&ms->timer, &tv);
usr.bin/tmux/names.c
43
name_time_expired(struct window *w, struct timeval *tv)
usr.bin/tmux/names.c
47
timersub(tv, &w->name_time, &offset);
usr.bin/tmux/names.c
56
struct timeval tv, next;
usr.bin/tmux/names.c
72
gettimeofday(&tv, NULL);
usr.bin/tmux/names.c
73
left = name_time_expired(w, &tv);
usr.bin/tmux/names.c
89
memcpy(&w->name_time, &tv, sizeof w->name_time);
usr.bin/tmux/screen-write.c
1033
struct timeval tv = { .tv_sec = 1, .tv_usec = 0 };
usr.bin/tmux/screen-write.c
1041
evtimer_add(&wp->sync_timer, &tv);
usr.bin/tmux/screen-write.c
120
evtimer_add(&w->offset_timer, &tv);
usr.bin/tmux/screen-write.c
97
struct timeval tv = { .tv_usec = 10000 };
usr.bin/tmux/server-client.c
1138
tv.tv_sec = KEYC_CLICK_TIMEOUT / 1000;
usr.bin/tmux/server-client.c
1139
tv.tv_usec = (KEYC_CLICK_TIMEOUT % 1000) * 1000L;
usr.bin/tmux/server-client.c
1141
evtimer_add(&c->click_timer, &tv);
usr.bin/tmux/server-client.c
1327
struct timeval tv;
usr.bin/tmux/server-client.c
1337
timersub(&c->activity_time, &c->last_activity_time, &tv);
usr.bin/tmux/server-client.c
1338
if (tv.tv_sec == 0 && tv.tv_usec < t * 1000) {
usr.bin/tmux/server-client.c
1408
struct timeval tv;
usr.bin/tmux/server-client.c
1578
tv.tv_sec = repeat / 1000;
usr.bin/tmux/server-client.c
1579
tv.tv_usec = (repeat % 1000) * 1000L;
usr.bin/tmux/server-client.c
1581
evtimer_add(&c->repeat_timer, &tv);
usr.bin/tmux/server-client.c
1923
struct timeval tv = { .tv_usec = 250000 };
usr.bin/tmux/server-client.c
1974
tv.tv_usec = 10000;
usr.bin/tmux/server-client.c
1976
evtimer_add(&wp->resize_timer, &tv);
usr.bin/tmux/server-client.c
2399
struct timeval tv = { .tv_usec = 1000 };
usr.bin/tmux/server-client.c
2440
evtimer_add(&ev, &tv);
usr.bin/tmux/server-client.c
866
struct timeval tv;
usr.bin/tmux/server-client.c
87
struct timeval tv;
usr.bin/tmux/server-client.c
92
tv.tv_sec = delay / 1000;
usr.bin/tmux/server-client.c
93
tv.tv_usec = (delay % 1000) * 1000L;
usr.bin/tmux/server-client.c
99
evtimer_add(&c->overlay_timer, &tv);
usr.bin/tmux/server.c
162
struct timeval tv = { .tv_sec = 3600 };
usr.bin/tmux/server.c
169
evtimer_add(&server_ev_tidy, &tv);
usr.bin/tmux/server.c
181
struct timeval tv = { .tv_sec = 3600 };
usr.bin/tmux/server.c
245
evtimer_add(&server_ev_tidy, &tv);
usr.bin/tmux/server.c
406
struct timeval tv = { timeout, 0 };
usr.bin/tmux/server.c
421
event_add(&server_ev_accept, &tv);
usr.bin/tmux/session.c
253
struct timeval tv;
usr.bin/tmux/session.c
270
timerclear(&tv);
usr.bin/tmux/session.c
271
tv.tv_sec = options_get_number(s->options, "lock-after-time");
usr.bin/tmux/session.c
272
if (tv.tv_sec != 0)
usr.bin/tmux/session.c
273
evtimer_add(&s->lock_timer, &tv);
usr.bin/tmux/status.c
343
struct timeval tv;
usr.bin/tmux/status.c
371
tv.tv_sec = delay / 1000;
usr.bin/tmux/status.c
372
tv.tv_usec = (delay % 1000) * 1000L;
usr.bin/tmux/status.c
378
evtimer_add(&c->message_timer, &tv);
usr.bin/tmux/status.c
42
struct timeval tv;
usr.bin/tmux/status.c
52
timerclear(&tv);
usr.bin/tmux/status.c
53
tv.tv_sec = options_get_number(s->options, "status-interval");
usr.bin/tmux/status.c
55
if (tv.tv_sec != 0)
usr.bin/tmux/status.c
56
evtimer_add(&c->status.timer, &tv);
usr.bin/tmux/status.c
57
log_debug("client %p, status interval %d", c, (int)tv.tv_sec);
usr.bin/tmux/tty-keys.c
747
struct timeval tv;
usr.bin/tmux/tty-keys.c
988
tv.tv_sec = delay / 1000;
usr.bin/tmux/tty-keys.c
989
tv.tv_usec = (delay % 1000) * 1000L;
usr.bin/tmux/tty-keys.c
995
evtimer_add(&tty->key_timer, &tv);
usr.bin/tmux/tty.c
197
struct timeval tv = { .tv_usec = TTY_BLOCK_INTERVAL };
usr.bin/tmux/tty.c
210
evtimer_add(&tty->timer, &tv);
usr.bin/tmux/tty.c
218
struct timeval tv = { .tv_usec = TTY_BLOCK_INTERVAL };
usr.bin/tmux/tty.c
238
evtimer_add(&tty->timer, &tv);
usr.bin/tmux/tty.c
3065
struct timeval tv = { .tv_sec = TTY_QUERY_TIMEOUT };
usr.bin/tmux/tty.c
3070
evtimer_add(&tty->clipboard_timer, &tv);
usr.bin/tmux/tty.c
324
struct timeval tv = { .tv_sec = TTY_QUERY_TIMEOUT };
usr.bin/tmux/tty.c
328
evtimer_add(&tty->start_timer, &tv);
usr.bin/tmux/window-clock.c
131
struct timeval tv;
usr.bin/tmux/window-clock.c
138
tv.tv_sec = delay / 1000000;
usr.bin/tmux/window-clock.c
139
tv.tv_usec = delay % 1000000;
usr.bin/tmux/window-clock.c
140
if (tv.tv_sec < 0 || (tv.tv_sec == 0 && tv.tv_usec <= 0)) {
usr.bin/tmux/window-clock.c
141
tv.tv_sec = 1;
usr.bin/tmux/window-clock.c
142
tv.tv_usec = 0;
usr.bin/tmux/window-clock.c
144
evtimer_add(&data->timer, &tv);
usr.bin/tmux/window-copy.c
3030
struct timeval tv = {
usr.bin/tmux/window-copy.c
3036
evtimer_add(&data->refresh_timer, &tv);
usr.bin/tmux/window-copy.c
372
struct timeval tv = {
usr.bin/tmux/window-copy.c
382
evtimer_add(&data->dragtimer, &tv);
usr.bin/tmux/window-copy.c
385
evtimer_add(&data->dragtimer, &tv);
usr.bin/tmux/window-copy.c
7059
struct timeval tv = {
usr.bin/tmux/window-copy.c
7089
evtimer_add(&data->dragtimer, &tv);
usr.bin/tmux/window-copy.c
7092
evtimer_add(&data->dragtimer, &tv);
usr.bin/tmux/window-panes.c
894
struct timeval tv;
usr.bin/tmux/window-panes.c
953
tv.tv_sec = data->delay / 1000;
usr.bin/tmux/window-panes.c
954
tv.tv_usec = (data->delay % 1000) * 1000;
usr.bin/tmux/window-panes.c
955
evtimer_add(&data->timer, &tv);
usr.bin/tmux/window.c
2501
struct timeval tv;
usr.bin/tmux/window.c
2509
tv.tv_sec = delay / 1000;
usr.bin/tmux/window.c
2510
tv.tv_usec = (delay % 1000) * 1000L;
usr.bin/tmux/window.c
2512
evtimer_add(&wp->sb_auto_timer, &tv);
usr.bin/watch/watch.c
141
opt_interval.tv.tv_sec = (int)intvl;
usr.bin/watch/watch.c
142
opt_interval.tv.tv_usec = (u_long)(intvl * 1000000UL) % 1000000UL;
usr.bin/watch/watch.c
516
evtimer_add(&ev_timer, &opt_interval.tv);
usr.bin/watch/watch.c
66
struct timeval tv;
usr.bin/watch/watch.c
69
.tv = { DEFAULT_INTERVAL, 0 },
usr.bin/watch/watch.c
690
evtimer_add(&ev_timer, &opt_interval.tv);
usr.bin/watch/watch.c
726
evtimer_add(&ev_timer, &opt_interval.tv);
usr.bin/ypwhich/ypwhich.c
100
tv.tv_sec = 5;
usr.bin/ypwhich/ypwhich.c
101
tv.tv_usec = 0;
usr.bin/ypwhich/ypwhich.c
104
xdr_domainname, &dom, xdr_ypbind_resp, &ypbr, tv);
usr.bin/ypwhich/ypwhich.c
86
struct timeval tv;
usr.bin/ypwhich/ypwhich.c
91
tv.tv_sec = 15;
usr.bin/ypwhich/ypwhich.c
92
tv.tv_usec = 0;
usr.bin/ypwhich/ypwhich.c
93
client = clntudp_create(sin, YPBINDPROG, YPBINDVERS, tv, &sock);
usr.sbin/amd/amd/host_ops.c
159
struct timeval tv;
usr.sbin/amd/amd/host_ops.c
165
tv.tv_sec = 20;
usr.sbin/amd/amd/host_ops.c
166
tv.tv_usec = 0;
usr.sbin/amd/amd/host_ops.c
176
clnt_stat = clnt_call(client, MOUNTPROC_MNT, xdr_dirpath, &dir, xdr_fhstatus, fhp, tv);
usr.sbin/amd/amd/host_ops.c
231
struct timeval tv;
usr.sbin/amd/amd/host_ops.c
232
tv.tv_sec = 10; tv.tv_usec = 0;
usr.sbin/amd/amd/host_ops.c
253
(client = clntudp_create(&sin, MOUNTPROG, MOUNTVERS, tv, &sock)) == NULL) {
usr.sbin/dvmrpd/group.c
244
struct timeval tv;
usr.sbin/dvmrpd/group.c
249
timerclear(&tv);
usr.sbin/dvmrpd/group.c
250
tv.tv_sec = group->iface->robustness * group->iface->query_interval +
usr.sbin/dvmrpd/group.c
253
return (evtimer_add(&group->dead_timer, &tv));
usr.sbin/dvmrpd/group.c
259
struct timeval tv;
usr.sbin/dvmrpd/group.c
263
timerclear(&tv);
usr.sbin/dvmrpd/group.c
266
tv.tv_sec = group->iface->last_member_query_interval *
usr.sbin/dvmrpd/group.c
271
tv.tv_sec = group->iface->recv_query_resp_interval *
usr.sbin/dvmrpd/group.c
275
return (evtimer_add(&group->dead_timer, &tv));
usr.sbin/dvmrpd/group.c
299
struct timeval tv;
usr.sbin/dvmrpd/group.c
304
timerclear(&tv);
usr.sbin/dvmrpd/group.c
305
tv.tv_sec = group->iface->robustness * group->iface->query_interval +
usr.sbin/dvmrpd/group.c
308
return (evtimer_add(&group->v1_host_timer, &tv));
usr.sbin/dvmrpd/group.c
323
struct timeval tv;
usr.sbin/dvmrpd/group.c
331
timerclear(&tv);
usr.sbin/dvmrpd/group.c
332
tv.tv_sec = group->iface->last_member_query_interval;
usr.sbin/dvmrpd/group.c
333
evtimer_add(&group->retrans_timer, &tv);
usr.sbin/dvmrpd/group.c
340
struct timeval tv;
usr.sbin/dvmrpd/group.c
344
timerclear(&tv);
usr.sbin/dvmrpd/group.c
345
tv.tv_sec = group->iface->last_member_query_interval;
usr.sbin/dvmrpd/group.c
347
return (evtimer_add(&group->retrans_timer, &tv));
usr.sbin/dvmrpd/group.c
477
struct timeval tv, now, res;
usr.sbin/dvmrpd/group.c
484
if (evtimer_pending(&group->dead_timer, &tv)) {
usr.sbin/dvmrpd/group.c
485
timersub(&tv, &now, &res);
usr.sbin/dvmrpd/interface.c
270
struct timeval tv;
usr.sbin/dvmrpd/interface.c
276
timerclear(&tv);
usr.sbin/dvmrpd/interface.c
277
tv.tv_sec = iface->probe_interval;
usr.sbin/dvmrpd/interface.c
278
evtimer_add(&iface->probe_timer, &tv);
usr.sbin/dvmrpd/interface.c
285
struct timeval tv;
usr.sbin/dvmrpd/interface.c
287
timerclear(&tv);
usr.sbin/dvmrpd/interface.c
288
return (evtimer_add(&iface->probe_timer, &tv));
usr.sbin/dvmrpd/interface.c
301
struct timeval tv;
usr.sbin/dvmrpd/interface.c
308
timerclear(&tv);
usr.sbin/dvmrpd/interface.c
310
tv.tv_sec = iface->startup_query_interval;
usr.sbin/dvmrpd/interface.c
313
tv.tv_sec = iface->query_interval;
usr.sbin/dvmrpd/interface.c
315
evtimer_add(&iface->query_timer, &tv);
usr.sbin/dvmrpd/interface.c
322
struct timeval tv;
usr.sbin/dvmrpd/interface.c
324
timerclear(&tv);
usr.sbin/dvmrpd/interface.c
325
return (evtimer_add(&iface->query_timer, &tv));
usr.sbin/dvmrpd/interface.c
345
struct timeval tv;
usr.sbin/dvmrpd/interface.c
348
timerclear(&tv);
usr.sbin/dvmrpd/interface.c
349
tv.tv_sec = iface->robustness * iface->query_interval +
usr.sbin/dvmrpd/interface.c
352
return (evtimer_add(&iface->querier_present_timer, &tv));
usr.sbin/dvmrpd/interface.c
364
struct timeval tv;
usr.sbin/dvmrpd/interface.c
367
timerclear(&tv);
usr.sbin/dvmrpd/interface.c
368
tv.tv_sec = iface->robustness * iface->query_interval +
usr.sbin/dvmrpd/interface.c
371
return (evtimer_add(&iface->querier_present_timer, &tv));
usr.sbin/dvmrpd/interface.c
637
struct timeval tv, now, res;
usr.sbin/dvmrpd/interface.c
678
if (evtimer_pending(&iface->probe_timer, &tv)) {
usr.sbin/dvmrpd/interface.c
679
timersub(&tv, &now, &res);
usr.sbin/dvmrpd/interface.c
684
if (evtimer_pending(&iface->query_timer, &tv)) {
usr.sbin/dvmrpd/interface.c
685
timersub(&tv, &now, &res);
usr.sbin/dvmrpd/interface.c
690
if (evtimer_pending(&iface->querier_present_timer, &tv)) {
usr.sbin/dvmrpd/interface.c
691
timersub(&tv, &now, &res);
usr.sbin/dvmrpd/neighbor.c
278
struct timeval tv;
usr.sbin/dvmrpd/neighbor.c
282
timerclear(&tv);
usr.sbin/dvmrpd/neighbor.c
283
tv.tv_sec = nbr->iface->dead_interval;
usr.sbin/dvmrpd/neighbor.c
285
return (evtimer_add(&nbr->inactivity_timer, &tv));
usr.sbin/dvmrpd/neighbor.c
297
struct timeval tv;
usr.sbin/dvmrpd/neighbor.c
299
timerclear(&tv);
usr.sbin/dvmrpd/neighbor.c
300
tv.tv_sec = nbr->iface->dead_interval;
usr.sbin/dvmrpd/neighbor.c
302
return (evtimer_add(&nbr->inactivity_timer, &tv));
usr.sbin/dvmrpd/neighbor.c
396
struct timeval tv, now, res;
usr.sbin/dvmrpd/neighbor.c
405
if (evtimer_pending(&nbr->inactivity_timer, &tv)) {
usr.sbin/dvmrpd/neighbor.c
406
timersub(&tv, &now, &res);
usr.sbin/dvmrpd/rde_mfc.c
100
tv.tv_sec = ROUTE_EXPIRATION_TIME;
usr.sbin/dvmrpd/rde_mfc.c
101
return (evtimer_add(&mn->expiration_timer, &tv));
usr.sbin/dvmrpd/rde_mfc.c
117
struct timeval tv;
usr.sbin/dvmrpd/rde_mfc.c
121
timerclear(&tv);
usr.sbin/dvmrpd/rde_mfc.c
122
tv.tv_sec = MAX_PRUNE_LIFETIME;
usr.sbin/dvmrpd/rde_mfc.c
123
return (evtimer_add(&mn->prune_timer, &tv));
usr.sbin/dvmrpd/rde_mfc.c
129
struct timeval tv;
usr.sbin/dvmrpd/rde_mfc.c
131
timerclear(&tv);
usr.sbin/dvmrpd/rde_mfc.c
132
tv.tv_sec = MAX_PRUNE_LIFETIME;
usr.sbin/dvmrpd/rde_mfc.c
133
return (evtimer_add(&mn->prune_timer, &tv));
usr.sbin/dvmrpd/rde_mfc.c
208
struct timeval tv, now2, res;
usr.sbin/dvmrpd/rde_mfc.c
225
if (evtimer_pending(&mn->expiration_timer, &tv)) {
usr.sbin/dvmrpd/rde_mfc.c
226
timersub(&tv, &now2, &res);
usr.sbin/dvmrpd/rde_mfc.c
437
struct timeval tv;
usr.sbin/dvmrpd/rde_mfc.c
443
timerclear(&tv);
usr.sbin/dvmrpd/rde_mfc.c
444
tv.tv_sec = MAX_PRUNE_LIFETIME;
usr.sbin/dvmrpd/rde_mfc.c
451
evtimer_add(&pn->lifetime_timer, &tv);
usr.sbin/dvmrpd/rde_mfc.c
497
struct timeval tv;
usr.sbin/dvmrpd/rde_mfc.c
499
timerclear(&tv);
usr.sbin/dvmrpd/rde_mfc.c
500
tv.tv_sec = MAX_PRUNE_LIFETIME;
usr.sbin/dvmrpd/rde_mfc.c
502
return (evtimer_add(&pn->lifetime_timer, &tv));
usr.sbin/dvmrpd/rde_mfc.c
85
struct timeval tv;
usr.sbin/dvmrpd/rde_mfc.c
87
timerclear(&tv);
usr.sbin/dvmrpd/rde_mfc.c
88
tv.tv_sec = ROUTE_EXPIRATION_TIME;
usr.sbin/dvmrpd/rde_mfc.c
89
return (evtimer_add(&mn->expiration_timer, &tv));
usr.sbin/dvmrpd/rde_mfc.c
95
struct timeval tv;
usr.sbin/dvmrpd/rde_mfc.c
99
timerclear(&tv);
usr.sbin/dvmrpd/rde_srt.c
100
return (evtimer_add(&rn->expiration_timer, &tv));
usr.sbin/dvmrpd/rde_srt.c
117
struct timeval tv;
usr.sbin/dvmrpd/rde_srt.c
119
timerclear(&tv);
usr.sbin/dvmrpd/rde_srt.c
120
tv.tv_sec = ROUTE_HOLD_DOWN;
usr.sbin/dvmrpd/rde_srt.c
124
evtimer_add(&rn->holddown_timer, &tv);
usr.sbin/dvmrpd/rde_srt.c
284
struct timeval tv, now2, res;
usr.sbin/dvmrpd/rde_srt.c
301
if (evtimer_pending(&r->expiration_timer, &tv)) {
usr.sbin/dvmrpd/rde_srt.c
302
timersub(&tv, &now2, &res);
usr.sbin/dvmrpd/rde_srt.c
73
struct timeval tv;
usr.sbin/dvmrpd/rde_srt.c
78
timerclear(&tv);
usr.sbin/dvmrpd/rde_srt.c
81
tv.tv_sec = ROUTE_HOLD_DOWN;
usr.sbin/dvmrpd/rde_srt.c
83
if (evtimer_add(&rn->holddown_timer, &tv) == -1)
usr.sbin/dvmrpd/rde_srt.c
90
struct timeval tv;
usr.sbin/dvmrpd/rde_srt.c
98
timerclear(&tv);
usr.sbin/dvmrpd/rde_srt.c
99
tv.tv_sec = ROUTE_EXPIRATION_TIME;
usr.sbin/dvmrpd/report.c
155
struct timeval tv;
usr.sbin/dvmrpd/report.c
161
timerclear(&tv);
usr.sbin/dvmrpd/report.c
162
tv.tv_sec = ROUTE_REPORT_INTERVAL;
usr.sbin/dvmrpd/report.c
163
evtimer_add(&deconf->report_timer, &tv);
usr.sbin/dvmrpd/report.c
169
struct timeval tv;
usr.sbin/dvmrpd/report.c
171
timerclear(&tv);
usr.sbin/dvmrpd/report.c
172
tv.tv_sec = MIN_FLASH_UPDATE_INTERVAL; /* XXX safe?? */
usr.sbin/dvmrpd/report.c
173
return (evtimer_add(&deconf->report_timer, &tv));
usr.sbin/eigrpd/interface.c
442
struct timeval tv;
usr.sbin/eigrpd/interface.c
447
timerclear(&tv);
usr.sbin/eigrpd/interface.c
448
tv.tv_sec = ei->hello_interval;
usr.sbin/eigrpd/interface.c
449
if (evtimer_add(&ei->hello_timer, &tv) == -1)
usr.sbin/eigrpd/interface.c
456
struct timeval tv;
usr.sbin/eigrpd/interface.c
458
timerclear(&tv);
usr.sbin/eigrpd/interface.c
459
tv.tv_sec = ei->hello_interval;
usr.sbin/eigrpd/interface.c
460
if (evtimer_add(&ei->hello_timer, &tv) == -1)
usr.sbin/eigrpd/neighbor.c
249
struct timeval tv;
usr.sbin/eigrpd/neighbor.c
251
timerclear(&tv);
usr.sbin/eigrpd/neighbor.c
252
tv.tv_sec = nbr->hello_holdtime;
usr.sbin/eigrpd/neighbor.c
254
if (evtimer_add(&nbr->ev_hello_timeout, &tv) == -1)
usr.sbin/eigrpd/packet.c
331
struct tlv_sw_version *tv = NULL;
usr.sbin/eigrpd/packet.c
376
if ((tv = tlv_decode_sw_version(&tlv, buf)) == NULL)
usr.sbin/eigrpd/rde_dual.c
502
struct timeval tv;
usr.sbin/eigrpd/rde_dual.c
504
timerclear(&tv);
usr.sbin/eigrpd/rde_dual.c
505
tv.tv_sec = eigrp->active_timeout * 60;
usr.sbin/eigrpd/rde_dual.c
506
if (evtimer_add(&reply->ev_active_timeout, &tv) == -1)
usr.sbin/eigrpd/rde_dual.c
562
struct timeval tv;
usr.sbin/eigrpd/rde_dual.c
569
timerclear(&tv);
usr.sbin/eigrpd/rde_dual.c
570
tv.tv_sec = (eigrp->active_timeout * 60) / 2;
usr.sbin/eigrpd/rde_dual.c
571
if (evtimer_add(&reply->ev_sia_timeout, &tv) == -1)
usr.sbin/eigrpd/rtp.c
272
struct timeval tv;
usr.sbin/eigrpd/rtp.c
274
timerclear(&tv);
usr.sbin/eigrpd/rtp.c
275
tv.tv_sec = RTP_RTRNS_INTERVAL;
usr.sbin/eigrpd/rtp.c
276
if (evtimer_add(&pkt->ev_timeout, &tv) == -1)
usr.sbin/eigrpd/rtp.c
299
struct timeval tv;
usr.sbin/eigrpd/rtp.c
301
timerclear(&tv);
usr.sbin/eigrpd/rtp.c
302
tv.tv_usec = RTP_ACK_TIMEOUT;
usr.sbin/eigrpd/rtp.c
303
if (evtimer_add(&nbr->ev_ack, &tv) == -1)
usr.sbin/eigrpd/tlv.c
334
struct tlv_sw_version *tv;
usr.sbin/eigrpd/tlv.c
340
tv = (struct tlv_sw_version *)buf;
usr.sbin/eigrpd/tlv.c
341
return (tv);
usr.sbin/hostapd/apme.c
148
struct timeval tv;
usr.sbin/hostapd/apme.c
150
bzero(&tv, sizeof(tv));
usr.sbin/hostapd/apme.c
152
bcopy(&cfg->c_apme_hopdelay, &tv, sizeof(tv));
usr.sbin/hostapd/apme.c
156
if (evtimer_add(&apme->a_chanev, &tv) == -1)
usr.sbin/httpd/httpd.c
1232
getmonotime(struct timeval *tv)
usr.sbin/httpd/httpd.c
1239
TIMESPEC_TO_TIMEVAL(tv, &ts);
usr.sbin/httpd/httpd.c
462
struct timeval tv;
usr.sbin/httpd/httpd.c
467
timerclear(&tv);
usr.sbin/httpd/httpd.c
468
tv.tv_sec = srv->srv_conf.tls_ticket_lifetime / 4;
usr.sbin/httpd/httpd.c
469
evtimer_add(&srv->srv_evt, &tv);
usr.sbin/httpd/httpd.c
476
struct timeval tv;
usr.sbin/httpd/httpd.c
486
timerclear(&tv);
usr.sbin/httpd/httpd.c
487
tv.tv_sec = srv->srv_conf.tls_ticket_lifetime / 4;
usr.sbin/httpd/httpd.c
488
evtimer_add(&srv->srv_evt, &tv);
usr.sbin/httpd/httpd.c
500
struct timeval tv_next, tv_now, tv;
usr.sbin/httpd/httpd.c
507
memset(&tv, 0, sizeof(tv));
usr.sbin/httpd/httpd.c
508
if (timercmp(&tv_next, &tv, >))
usr.sbin/httpd/httpd.c
509
memcpy(&tv, &tv_next, sizeof(tv));
usr.sbin/httpd/httpd.c
513
event_add(ev, &tv);
usr.sbin/httpd/parse.y
132
struct timeval tv;
usr.sbin/httpd/parse.y
166
%type <v.tv> timeout
usr.sbin/httpd/server.c
1436
struct timeval tv, *ptv = NULL;
usr.sbin/httpd/server.c
1439
timerclear(&tv);
usr.sbin/httpd/server.c
1440
tv.tv_sec = timeout;
usr.sbin/httpd/server.c
1441
ptv = &tv;
usr.sbin/httpd/server.c
404
memcpy(&tv, &ps->ps_env->sc_statinterval, sizeof(tv));
usr.sbin/httpd/server.c
405
evtimer_add(&ps->ps_env->sc_statev, &tv);
usr.sbin/ifstated/ifstated.c
175
timerclear(&tv);
usr.sbin/ifstated/ifstated.c
177
evtimer_add(&startup_ev, &tv);
usr.sbin/ifstated/ifstated.c
301
struct timeval tv;
usr.sbin/ifstated/ifstated.c
304
timerclear(&tv);
usr.sbin/ifstated/ifstated.c
305
tv.tv_sec = external->frequency;
usr.sbin/ifstated/ifstated.c
307
evtimer_add(&external->ev, &tv);
usr.sbin/ifstated/ifstated.c
430
struct timeval tv;
usr.sbin/ifstated/ifstated.c
436
timerclear(&tv);
usr.sbin/ifstated/ifstated.c
437
tv.tv_sec = external->frequency;
usr.sbin/ifstated/ifstated.c
440
evtimer_add(&external->ev, &tv);
usr.sbin/ifstated/ifstated.c
92
struct timeval tv;
usr.sbin/inetd/inetd.c
1583
struct timeval tv;
usr.sbin/inetd/inetd.c
1585
if (gettimeofday(&tv, NULL) == -1)
usr.sbin/inetd/inetd.c
1588
return (htonl((u_int32_t)tv.tv_sec + 2208988800UL));
usr.sbin/iscsid/iscsid.c
164
struct timeval tv;
usr.sbin/iscsid/iscsid.c
169
timerclear(&tv);
usr.sbin/iscsid/iscsid.c
170
tv.tv_sec = 1;
usr.sbin/iscsid/iscsid.c
172
if (evtimer_add(&exit_ev, &tv) == -1)
usr.sbin/iscsid/iscsid.c
179
struct timeval tv;
usr.sbin/iscsid/iscsid.c
188
timerclear(&tv);
usr.sbin/iscsid/iscsid.c
189
if (evtimer_add(&exit_ev, &tv) == -1)
usr.sbin/iscsid/session.c
169
struct timeval tv;
usr.sbin/iscsid/session.c
177
timerclear(&tv);
usr.sbin/iscsid/session.c
178
tv.tv_sec = timeout;
usr.sbin/iscsid/session.c
179
if (evtimer_add(&sev->ev, &tv) == -1)
usr.sbin/ldapd/evbuffer_tls.c
56
struct timeval tv, *ptv = NULL;
usr.sbin/ldapd/evbuffer_tls.c
59
timerclear(&tv);
usr.sbin/ldapd/evbuffer_tls.c
60
tv.tv_sec = timeout;
usr.sbin/ldapd/evbuffer_tls.c
61
ptv = &tv;
usr.sbin/ldapd/namespace.c
516
struct timeval tv;
usr.sbin/ldapd/namespace.c
518
tv.tv_sec = 0;
usr.sbin/ldapd/namespace.c
519
tv.tv_usec = usec;
usr.sbin/ldapd/namespace.c
520
evtimer_add(&ns->ev_queue, &tv);
usr.sbin/ldapd/uuid.c
148
struct timeval tv;
usr.sbin/ldapd/uuid.c
159
gettimeofday(&tv, NULL);
usr.sbin/ldapd/uuid.c
164
ret = time_cmp(&tv, &last_time);
usr.sbin/ldapd/uuid.c
175
last_time = tv;
usr.sbin/ldapd/uuid.c
178
last_time = tv;
usr.sbin/ldapd/uuid.c
194
dce_time = tv.tv_usec * MULTIPLIER_100_NANO_SEC + counter;
usr.sbin/ldapd/uuid.c
195
dce_time += ((uint64_t)tv.tv_sec) * 10000000;
usr.sbin/ldpd/adjacency.c
182
struct timeval tv;
usr.sbin/ldpd/adjacency.c
184
timerclear(&tv);
usr.sbin/ldpd/adjacency.c
185
tv.tv_sec = adj->holdtime;
usr.sbin/ldpd/adjacency.c
186
if (evtimer_add(&adj->inactivity_timer, &tv) == -1)
usr.sbin/ldpd/adjacency.c
310
struct timeval tv;
usr.sbin/ldpd/adjacency.c
312
timerclear(&tv);
usr.sbin/ldpd/adjacency.c
313
tv.tv_sec = tnbr->hello_interval;
usr.sbin/ldpd/adjacency.c
314
if (evtimer_add(&tnbr->hello_timer, &tv) == -1)
usr.sbin/ldpd/interface.c
389
struct timeval tv;
usr.sbin/ldpd/interface.c
391
timerclear(&tv);
usr.sbin/ldpd/interface.c
392
tv.tv_sec = ia->hello_interval;
usr.sbin/ldpd/interface.c
393
if (evtimer_add(&ia->hello_timer, &tv) == -1)
usr.sbin/ldpd/lde_lib.c
917
struct timeval tv;
usr.sbin/ldpd/lde_lib.c
919
timerclear(&tv);
usr.sbin/ldpd/lde_lib.c
920
tv.tv_sec = LDE_GC_INTERVAL;
usr.sbin/ldpd/lde_lib.c
921
if (evtimer_add(&gc_timer, &tv) == -1)
usr.sbin/ldpd/neighbor.c
395
struct timeval tv;
usr.sbin/ldpd/neighbor.c
398
timerclear(&tv);
usr.sbin/ldpd/neighbor.c
399
tv.tv_sec = (time_t)(nbr->keepalive / KEEPALIVE_PER_PERIOD);
usr.sbin/ldpd/neighbor.c
400
if (evtimer_add(&nbr->keepalive_timer, &tv) == -1)
usr.sbin/ldpd/neighbor.c
427
struct timeval tv;
usr.sbin/ldpd/neighbor.c
429
timerclear(&tv);
usr.sbin/ldpd/neighbor.c
430
tv.tv_sec = nbr->keepalive;
usr.sbin/ldpd/neighbor.c
432
if (evtimer_add(&nbr->keepalive_timeout, &tv) == -1)
usr.sbin/ldpd/neighbor.c
459
struct timeval tv;
usr.sbin/ldpd/neighbor.c
461
timerclear(&tv);
usr.sbin/ldpd/neighbor.c
462
tv.tv_sec = INIT_FSM_TIMEOUT;
usr.sbin/ldpd/neighbor.c
463
if (evtimer_add(&nbr->init_timeout, &tv) == -1)
usr.sbin/ldpd/neighbor.c
490
struct timeval tv;
usr.sbin/ldpd/neighbor.c
492
timerclear(&tv);
usr.sbin/ldpd/neighbor.c
494
tv.tv_sec = INIT_DELAY_TMR;
usr.sbin/ldpd/neighbor.c
498
tv.tv_sec = MAX_DELAY_TMR;
usr.sbin/ldpd/neighbor.c
501
tv.tv_sec *= 2;
usr.sbin/ldpd/neighbor.c
504
tv.tv_sec *= 2;
usr.sbin/ldpd/neighbor.c
511
if (evtimer_add(&nbr->initdelay_timer, &tv) == -1)
usr.sbin/ldpd/packet.c
728
struct timeval tv;
usr.sbin/ldpd/packet.c
739
timerclear(&tv);
usr.sbin/ldpd/packet.c
740
tv.tv_sec = PENDING_CONN_TIMEOUT;
usr.sbin/ldpd/packet.c
741
if (evtimer_add(&pconn->ev_timeout, &tv) == -1)
usr.sbin/lpd/control.c
146
struct timeval tv;
usr.sbin/lpd/control.c
150
tv.tv_sec = 1;
usr.sbin/lpd/control.c
151
tv.tv_usec = 0;
usr.sbin/lpd/control.c
154
evtimer_add(&ctl.evt, &tv);
usr.sbin/lpd/frontend.c
168
struct timeval tv;
usr.sbin/lpd/frontend.c
172
tv.tv_sec = 2;
usr.sbin/lpd/frontend.c
173
tv.tv_usec = 0;
usr.sbin/lpd/frontend.c
176
evtimer_add(&l->ev, &tv);
usr.sbin/lpd/io.c
644
struct timeval tv, *ptv;
usr.sbin/lpd/io.c
667
tv.tv_sec = io->timeout / 1000;
usr.sbin/lpd/io.c
668
tv.tv_usec = (io->timeout % 1000) * 1000;
usr.sbin/lpd/io.c
669
ptv = &tv;
usr.sbin/makefs/ffs/buf.h
88
#define microtime(tv) gettimeofday((tv), NULL)
usr.sbin/makefs/msdos/mkfs_msdos.c
230
struct timeval tv;
usr.sbin/makefs/msdos/mkfs_msdos.c
594
gettimeofday(&tv, NULL);
usr.sbin/makefs/msdos/mkfs_msdos.c
595
now = tv.tv_sec;
usr.sbin/makefs/msdos/mkfs_msdos.c
663
(u_int)(tv.tv_usec / 10))) << 16 |
usr.sbin/makefs/msdos/msdosfs_fat.c
783
struct timeval tv;
usr.sbin/makefs/msdos/msdosfs_fat.c
785
microtime(&tv);
usr.sbin/makefs/msdos/msdosfs_fat.c
786
start = (tv.tv_usec >> 10) | tv.tv_usec;
usr.sbin/mrinfo/mrinfo.c
402
struct timeval tv, now;
usr.sbin/mrinfo/mrinfo.c
412
tv.tv_sec = et.tv_sec - now.tv_sec;
usr.sbin/mrinfo/mrinfo.c
413
tv.tv_usec = et.tv_usec - now.tv_usec;
usr.sbin/mrinfo/mrinfo.c
415
if (tv.tv_usec < 0) {
usr.sbin/mrinfo/mrinfo.c
416
tv.tv_usec += 1000000L;
usr.sbin/mrinfo/mrinfo.c
417
--tv.tv_sec;
usr.sbin/mrinfo/mrinfo.c
419
if (tv.tv_sec < 0)
usr.sbin/mrinfo/mrinfo.c
420
timerclear(&tv);
usr.sbin/mrinfo/mrinfo.c
422
count = poll(pfd, 1, tv.tv_sec * 1000);
usr.sbin/mrouted/main.c
596
struct timeval tv;
usr.sbin/mrouted/main.c
605
gettimeofday(&tv, NULL);
usr.sbin/mrouted/main.c
606
buf[0] = tv.tv_sec;
usr.sbin/mtrace/mtrace.c
1112
struct timeval tv;
usr.sbin/mtrace/mtrace.c
1556
gettimeofday(&tv, 0);
usr.sbin/mtrace/mtrace.c
1557
waittime = statint - (((tv.tv_sec + JAN_1970) & 0xFFFF) - (base.qtime >> 16));
usr.sbin/mtrace/mtrace.c
371
struct timeval tq, tr, tv;
usr.sbin/mtrace/mtrace.c
439
gettimeofday(&tv, 0);
usr.sbin/mtrace/mtrace.c
440
tv.tv_sec = tq.tv_sec + timeout - tv.tv_sec;
usr.sbin/mtrace/mtrace.c
441
tv.tv_usec = tq.tv_usec - tv.tv_usec;
usr.sbin/mtrace/mtrace.c
442
if (tv.tv_usec < 0) tv.tv_usec += 1000000L, --tv.tv_sec;
usr.sbin/mtrace/mtrace.c
443
if (tv.tv_sec < 0) tv.tv_sec = tv.tv_usec = 0;
usr.sbin/mtrace/mtrace.c
445
count = poll(pfd, 1, tv.tv_sec * 1000);
usr.sbin/npppd/npppd/npppd.c
533
struct timeval tv;
usr.sbin/npppd/npppd/npppd.c
537
tv.tv_usec = 500000;
usr.sbin/npppd/npppd/npppd.c
538
tv.tv_sec = 0;
usr.sbin/npppd/npppd/npppd.c
539
evtimer_add(&_this->ev_timer, &tv);
usr.sbin/npppd/npppd/npppd.c
541
tv.tv_usec = 0;
usr.sbin/npppd/npppd/npppd.c
542
tv.tv_sec = NPPPD_TIMER_TICK_IVAL;
usr.sbin/npppd/npppd/npppd.c
543
evtimer_add(&_this->ev_timer, &tv);
usr.sbin/npppd/npppd/ppp.c
639
struct timeval tv;
usr.sbin/npppd/npppd/ppp.c
643
tv.tv_usec = 0;
usr.sbin/npppd/npppd/ppp.c
644
tv.tv_sec = _this->timeout_sec;
usr.sbin/npppd/npppd/ppp.c
646
evtimer_add(&_this->idle_event, &tv);
usr.sbin/npppd/pppoe/pppoe_session.c
109
struct timeval tv;
usr.sbin/npppd/pppoe/pppoe_session.c
115
timerclear(&tv);
usr.sbin/npppd/pppoe/pppoe_session.c
116
evtimer_add(&_this->ev_disposing, &tv);
usr.sbin/npppd/pptp/pptp_ctrl.c
275
struct timeval tv;
usr.sbin/npppd/pptp/pptp_ctrl.c
280
timerclear(&tv);
usr.sbin/npppd/pptp/pptp_ctrl.c
283
tv.tv_sec = PPTP_CTRL_TIMEOUT_IVAL_SEC;
usr.sbin/npppd/pptp/pptp_ctrl.c
284
tv.tv_usec = 0;
usr.sbin/npppd/pptp/pptp_ctrl.c
287
evtimer_add(&_this->ev_timer, &tv);
usr.sbin/npppd/pptp/pptpd.c
523
struct timeval tv;
usr.sbin/npppd/pptp/pptpd.c
545
tv.tv_sec = PPTPD_SHUTDOWN_TIMEOUT;
usr.sbin/npppd/pptp/pptpd.c
546
tv.tv_usec = 0;
usr.sbin/npppd/pptp/pptpd.c
549
evtimer_add(&_this->ev_timer, &tv);
usr.sbin/nsd/difffile.c
111
struct timeval tv;
usr.sbin/nsd/difffile.c
114
if (gettimeofday(&tv, NULL) != 0) {
usr.sbin/nsd/difffile.c
133
!write_64(df, (uint64_t) tv.tv_sec) ||
usr.sbin/nsd/difffile.c
134
!write_32(df, (uint32_t) tv.tv_usec) ||
usr.sbin/nsd/difffile.c
72
struct timeval tv;
usr.sbin/nsd/difffile.c
73
if (gettimeofday(&tv, NULL) != 0) {
usr.sbin/nsd/difffile.c
80
!write_64(df, (uint64_t) tv.tv_sec) ||
usr.sbin/nsd/difffile.c
81
!write_32(df, (uint32_t) tv.tv_usec) ||
usr.sbin/nsd/difffile.c
84
!write_64(df, (uint64_t) tv.tv_sec) ||
usr.sbin/nsd/difffile.c
85
!write_32(df, (uint32_t) tv.tv_usec) ||
usr.sbin/nsd/dnstap/dnstap.c
711
dt_fill_timeval(const struct timeval *tv,
usr.sbin/nsd/dnstap/dnstap.c
716
*time_sec = tv->tv_sec;
usr.sbin/nsd/dnstap/dnstap.c
717
*time_nsec = tv->tv_usec * 1000;
usr.sbin/nsd/mini_event.c
295
struct timeval* ATTR_UNUSED(tv))
usr.sbin/nsd/mini_event.c
345
event_add(struct event* ev, struct timeval* tv)
usr.sbin/nsd/mini_event.c
364
if(tv && (ev->ev_flags&EV_TIMEOUT)) {
usr.sbin/nsd/mini_event.c
367
ev->ev_timeout.tv_sec = tv->tv_sec + now->tv_sec;
usr.sbin/nsd/mini_event.c
368
ev->ev_timeout.tv_usec = tv->tv_usec + now->tv_usec;
usr.sbin/nsd/mini_event.c
417
signal_add(struct event* ev, struct timeval* ATTR_UNUSED(tv))
usr.sbin/nsd/mini_event.h
171
#define evtimer_add(ev, tv) event_add(ev, tv)
usr.sbin/nsd/nsd-control.c
332
struct timeval tv;
usr.sbin/nsd/nsd-control.c
339
tv.tv_sec = NSD_CONTROL_CONNECT_TIMEOUT/1000;
usr.sbin/nsd/nsd-control.c
340
tv.tv_usec= (NSD_CONTROL_CONNECT_TIMEOUT%1000)*1000;
usr.sbin/nsd/nsd-control.c
341
if(select(fd+1, &rset, &wset, &eset, &tv) == -1) {
usr.sbin/nsd/server.c
3916
struct timeval tv;
usr.sbin/nsd/server.c
3925
tv.tv_sec = 3;
usr.sbin/nsd/server.c
3926
tv.tv_usec = 0;
usr.sbin/nsd/server.c
3932
if(event_add(&timeout, &tv) != 0)
usr.sbin/nsd/server.c
5582
struct timeval tv;
usr.sbin/nsd/server.c
5584
tv.tv_sec = SLOW_ACCEPT_TIMEOUT;
usr.sbin/nsd/server.c
5585
tv.tv_usec = 0L;
usr.sbin/nsd/server.c
5592
(void)event_add(&slowaccept_event, &tv);
usr.sbin/nsd/util.c
164
struct timeval tv;
usr.sbin/nsd/util.c
167
tv.tv_usec = 0;
usr.sbin/nsd/util.c
172
if(gettimeofday(&tv, NULL) == 0) {
usr.sbin/nsd/util.c
174
time_t now = (time_t)tv.tv_sec;
usr.sbin/nsd/util.c
187
tmbuf, (int)tv.tv_usec/1000, tzbuf,
usr.sbin/nsd/util.c
191
if(gettimeofday(&tv, NULL) == 0) {
usr.sbin/nsd/util.c
193
time_t now = (time_t)tv.tv_sec;
usr.sbin/nsd/util.c
198
tmbuf, (int)tv.tv_usec/1000,
usr.sbin/nsd/util.c
469
struct timeval tv;
usr.sbin/nsd/util.c
478
if(gettimeofday(&tv, NULL)>=0) {
usr.sbin/nsd/util.c
479
t->tv_sec = tv.tv_sec;
usr.sbin/nsd/util.c
480
t->tv_nsec = tv.tv_usec*1000;
usr.sbin/nsd/xfrd-tcp.c
1089
tv.tv_sec = set->tcp_timeout;
usr.sbin/nsd/xfrd-tcp.c
1090
tv.tv_usec = 0;
usr.sbin/nsd/xfrd-tcp.c
1091
if(event_add(&tp->handler, &tv) != 0)
usr.sbin/nsd/xfrd-tcp.c
745
struct timeval tv;
usr.sbin/nsd/xfrd-tcp.c
746
tv.tv_sec = xfrd->tcp_set->tcp_timeout;
usr.sbin/nsd/xfrd-tcp.c
747
tv.tv_usec = 0;
usr.sbin/nsd/xfrd-tcp.c
763
if(event_add(&tp->handler, &tv) != 0)
usr.sbin/nsd/xfrd-tcp.c
911
struct timeval tv;
usr.sbin/nsd/xfrd.c
2736
struct timeval tv;
usr.sbin/nsd/xfrd.c
2737
tv.tv_sec = xfrd->reload_timeout.tv_sec - xfrd_time();
usr.sbin/nsd/xfrd.c
2738
tv.tv_usec = 0;
usr.sbin/nsd/xfrd.c
2739
if(tv.tv_sec > xfrd->nsd->options->xfrd_reload_timeout)
usr.sbin/nsd/xfrd.c
2740
tv.tv_sec = xfrd->nsd->options->xfrd_reload_timeout;
usr.sbin/nsd/xfrd.c
2746
if(event_add(&xfrd->reload_handler, &tv) != 0)
usr.sbin/nsd/xfrd.c
3109
struct timeval tv;
usr.sbin/nsd/xfrd.c
3112
tv.tv_sec = xfrd->nsd->options->zonefiles_write;
usr.sbin/nsd/xfrd.c
3113
tv.tv_usec = 0;
usr.sbin/nsd/xfrd.c
3119
if(event_add(&xfrd->write_timer, &tv) != 0)
usr.sbin/nsd/xfrd.c
325
struct timeval tv;
usr.sbin/nsd/xfrd.c
326
tv.tv_sec = XFRD_CHILD_REAP_TIMEOUT;
usr.sbin/nsd/xfrd.c
327
tv.tv_usec = 0;
usr.sbin/nsd/xfrd.c
333
if(event_add(&xfrd->child_timer, &tv) != 0)
usr.sbin/ntpd/client.c
279
struct timeval tv;
usr.sbin/ntpd/client.c
283
char buf[CMSG_SPACE(sizeof(tv))];
usr.sbin/ntpd/client.c
326
memcpy(&tv, CMSG_DATA(cmsg), sizeof(tv));
usr.sbin/ntpd/client.c
327
T4 = gettime_from_timeval(&tv);
usr.sbin/ntpd/constraint.c
632
struct timeval tv[2];
usr.sbin/ntpd/constraint.c
658
if (imsg.hdr.len != IMSG_HEADER_SIZE + sizeof(tv))
usr.sbin/ntpd/constraint.c
666
cstr->id, 0, -1, imsg.data, sizeof(tv));
usr.sbin/ntpd/constraint.c
681
struct timeval tv[2];
usr.sbin/ntpd/constraint.c
689
if (len != sizeof(tv)) {
usr.sbin/ntpd/constraint.c
694
memcpy(tv, data, len);
usr.sbin/ntpd/constraint.c
696
offset = gettime_from_timeval(&tv[0]) -
usr.sbin/ntpd/constraint.c
697
gettime_from_timeval(&tv[1]);
usr.sbin/ntpd/constraint.c
705
cstr->constraint = tv[0].tv_sec;
usr.sbin/ntpd/constraint.c
888
struct timeval tv;
usr.sbin/ntpd/constraint.c
897
tv.tv_sec = conf->constraint_median + (now - conf->constraint_last);
usr.sbin/ntpd/constraint.c
898
tv.tv_usec = 0;
usr.sbin/ntpd/constraint.c
899
diff = fabs(val - gettime_from_timeval(&tv));
usr.sbin/ntpd/ntpd.c
459
struct timeval tv;
usr.sbin/ntpd/ntpd.c
461
timerclear(&tv);
usr.sbin/ntpd/ntpd.c
462
if (adjtime(&tv, NULL) == -1)
usr.sbin/ntpd/ntpd.c
469
struct timeval tv, olddelta;
usr.sbin/ntpd/ntpd.c
479
if (d_to_tv(d, &tv) == -1)
usr.sbin/ntpd/ntpd.c
481
if (adjtime(&tv, &olddelta) == -1)
usr.sbin/ntpd/ntpd.c
527
struct timeval tv, curtime;
usr.sbin/ntpd/ntpd.c
538
if (d_to_tv(d, &tv) == -1) {
usr.sbin/ntpd/ntpd.c
542
curtime.tv_usec += tv.tv_usec + 1000000;
usr.sbin/ntpd/ntpd.c
543
curtime.tv_sec += tv.tv_sec - 1 + (curtime.tv_usec / 1000000);
usr.sbin/ntpd/ntpd.c
792
struct timeval tv;
usr.sbin/ntpd/ntpd.c
808
tv.tv_sec = cstatus->constraint_median +
usr.sbin/ntpd/ntpd.c
810
tv.tv_usec = 0;
usr.sbin/ntpd/ntpd.c
811
d_to_tv(gettime_from_timeval(&tv) - gettime(), &tv);
usr.sbin/ntpd/ntpd.c
812
printf("constraint offset %llds", (long long)tv.tv_sec);
usr.sbin/ntpd/sensors.c
194
if (sensor.tv.tv_sec == s->last) /* already seen */
usr.sbin/ntpd/sensors.c
197
s->last = sensor.tv.tv_sec;
usr.sbin/ntpd/sensors.c
218
s->offsets[s->shift].rcvd = sensor.tv.tv_sec;
usr.sbin/ntpd/sensors.c
226
s->offsets[s->shift].status.reftime = sensor.tv.tv_sec;
usr.sbin/ntpd/util.c
39
struct timeval tv;
usr.sbin/ntpd/util.c
40
if (adjtime(NULL, &tv) == -1)
usr.sbin/ntpd/util.c
42
return (tv.tv_sec + 1.0e-6 * tv.tv_usec);
usr.sbin/ntpd/util.c
48
struct timeval tv;
usr.sbin/ntpd/util.c
50
if (gettimeofday(&tv, NULL) == -1)
usr.sbin/ntpd/util.c
53
return (gettime_from_timeval(&tv));
usr.sbin/ntpd/util.c
57
gettime_from_timeval(struct timeval *tv)
usr.sbin/ntpd/util.c
62
return ((uint64_t)tv->tv_sec + JAN_1970 + 1.0e-6 * tv->tv_usec);
usr.sbin/ntpd/util.c
78
d_to_tv(double d, struct timeval *tv)
usr.sbin/ntpd/util.c
84
tv->tv_sec = d;
usr.sbin/ntpd/util.c
85
tv->tv_usec = (d - tv->tv_sec) * 1000000;
usr.sbin/ntpd/util.c
86
while (tv->tv_usec < 0) {
usr.sbin/ntpd/util.c
87
tv->tv_usec += 1000000;
usr.sbin/ntpd/util.c
88
tv->tv_sec -= 1;
usr.sbin/ospf6d/database.c
376
struct timeval tv;
usr.sbin/ospf6d/database.c
400
timerclear(&tv);
usr.sbin/ospf6d/database.c
401
tv.tv_sec = nbr->iface->rxmt_interval;
usr.sbin/ospf6d/database.c
402
if (evtimer_add(&nbr->db_tx_timer, &tv) == -1)
usr.sbin/ospf6d/database.c
410
struct timeval tv;
usr.sbin/ospf6d/database.c
415
timerclear(&tv);
usr.sbin/ospf6d/database.c
416
if (evtimer_add(&nbr->db_tx_timer, &tv) == -1)
usr.sbin/ospf6d/interface.c
312
struct timeval tv;
usr.sbin/ospf6d/interface.c
317
timerclear(&tv);
usr.sbin/ospf6d/interface.c
318
tv.tv_sec = iface->hello_interval;
usr.sbin/ospf6d/interface.c
319
if (evtimer_add(&iface->hello_timer, &tv) == -1)
usr.sbin/ospf6d/interface.c
326
struct timeval tv;
usr.sbin/ospf6d/interface.c
328
timerclear(&tv);
usr.sbin/ospf6d/interface.c
329
if (evtimer_add(&iface->hello_timer, &tv) == -1)
usr.sbin/ospf6d/interface.c
351
struct timeval tv;
usr.sbin/ospf6d/interface.c
353
timerclear(&tv);
usr.sbin/ospf6d/interface.c
354
tv.tv_sec = iface->dead_interval;
usr.sbin/ospf6d/interface.c
355
if (evtimer_add(&iface->wait_timer, &tv) == -1)
usr.sbin/ospf6d/interface.c
646
struct timeval tv, now, res;
usr.sbin/ospf6d/interface.c
687
if (evtimer_pending(&iface->hello_timer, &tv)) {
usr.sbin/ospf6d/interface.c
688
timersub(&tv, &now, &res);
usr.sbin/ospf6d/kroute.c
403
struct timeval tv;
usr.sbin/ospf6d/kroute.c
405
timerclear(&tv);
usr.sbin/ospf6d/kroute.c
406
tv.tv_sec = delay / 1000;
usr.sbin/ospf6d/kroute.c
407
tv.tv_usec = (delay % 1000) * 1000;
usr.sbin/ospf6d/kroute.c
409
if (evtimer_add(&kr_state.reload, &tv) == -1)
usr.sbin/ospf6d/lsack.c
299
struct timeval tv;
usr.sbin/ospf6d/lsack.c
301
timerclear(&tv);
usr.sbin/ospf6d/lsack.c
302
tv.tv_sec = iface->rxmt_interval / 2;
usr.sbin/ospf6d/lsack.c
304
if (evtimer_add(&iface->lsack_tx_timer, &tv) == -1)
usr.sbin/ospf6d/lsack.c
311
struct timeval tv;
usr.sbin/ospf6d/lsack.c
313
timerclear(&tv);
usr.sbin/ospf6d/lsack.c
314
if (evtimer_add(&iface->lsack_tx_timer, &tv) == -1)
usr.sbin/ospf6d/lsreq.c
194
struct timeval tv;
usr.sbin/ospf6d/lsreq.c
219
timerclear(&tv);
usr.sbin/ospf6d/lsreq.c
220
tv.tv_sec = nbr->iface->rxmt_interval;
usr.sbin/ospf6d/lsreq.c
221
if (evtimer_add(&nbr->lsreq_tx_timer, &tv) == -1)
usr.sbin/ospf6d/lsreq.c
229
struct timeval tv;
usr.sbin/ospf6d/lsreq.c
234
timerclear(&tv);
usr.sbin/ospf6d/lsreq.c
235
if (evtimer_add(&nbr->lsreq_tx_timer, &tv) == -1)
usr.sbin/ospf6d/lsupdate.c
308
struct timeval tv;
usr.sbin/ospf6d/lsupdate.c
325
timerclear(&tv);
usr.sbin/ospf6d/lsupdate.c
326
tv.tv_sec = TAILQ_FIRST(&nbr->ls_retrans_list)->le_when;
usr.sbin/ospf6d/lsupdate.c
328
if (evtimer_add(&nbr->ls_retrans_timer, &tv) == -1)
usr.sbin/ospf6d/lsupdate.c
393
struct timeval tv;
usr.sbin/ospf6d/lsupdate.c
412
timerclear(&tv);
usr.sbin/ospf6d/lsupdate.c
413
tv.tv_sec = TAILQ_FIRST(&nbr->ls_retrans_list)->le_when;
usr.sbin/ospf6d/lsupdate.c
415
if (evtimer_add(&nbr->ls_retrans_timer, &tv) == -1)
usr.sbin/ospf6d/lsupdate.c
443
struct timeval tv;
usr.sbin/ospf6d/lsupdate.c
534
timerclear(&tv);
usr.sbin/ospf6d/lsupdate.c
535
tv.tv_sec = le->le_when;
usr.sbin/ospf6d/lsupdate.c
537
if (evtimer_add(&nbr->ls_retrans_timer, &tv) == -1)
usr.sbin/ospf6d/neighbor.c
404
struct timeval tv;
usr.sbin/ospf6d/neighbor.c
406
timerclear(&tv);
usr.sbin/ospf6d/neighbor.c
407
tv.tv_sec = nbr->iface->dead_interval;
usr.sbin/ospf6d/neighbor.c
409
if (evtimer_add(&nbr->inactivity_timer, &tv) == -1)
usr.sbin/ospf6d/neighbor.c
423
struct timeval tv;
usr.sbin/ospf6d/neighbor.c
425
timerclear(&tv);
usr.sbin/ospf6d/neighbor.c
426
tv.tv_sec = nbr->iface->dead_interval;
usr.sbin/ospf6d/neighbor.c
428
if (evtimer_add(&nbr->inactivity_timer, &tv) == -1)
usr.sbin/ospf6d/neighbor.c
451
struct timeval tv;
usr.sbin/ospf6d/neighbor.c
453
timerclear(&tv);
usr.sbin/ospf6d/neighbor.c
454
tv.tv_sec = DEFAULT_ADJ_TMOUT;
usr.sbin/ospf6d/neighbor.c
456
if (evtimer_add(&nbr->adj_timer, &tv) == -1)
usr.sbin/ospf6d/neighbor.c
604
struct timeval tv;
usr.sbin/ospf6d/neighbor.c
617
timerclear(&tv);
usr.sbin/ospf6d/neighbor.c
618
tv.tv_sec = DEFAULT_NBR_TMOUT;
usr.sbin/ospf6d/neighbor.c
620
if (evtimer_add(&nbr->inactivity_timer, &tv)) {
usr.sbin/ospf6d/neighbor.c
657
struct timeval tv, now, res;
usr.sbin/ospf6d/neighbor.c
697
if (evtimer_pending(&nbr->inactivity_timer, &tv)) {
usr.sbin/ospf6d/neighbor.c
698
timersub(&tv, &now, &res);
usr.sbin/ospf6d/rde_lsdb.c
469
struct timeval tv, now, res;
usr.sbin/ospf6d/rde_lsdb.c
485
if (old->deleted && evtimer_pending(&old->ev, &tv)) {
usr.sbin/ospf6d/rde_lsdb.c
488
timersub(&tv, &now, &res);
usr.sbin/ospf6d/rde_lsdb.c
514
timerclear(&tv);
usr.sbin/ospf6d/rde_lsdb.c
517
tv.tv_sec = LS_REFRESH_TIME;
usr.sbin/ospf6d/rde_lsdb.c
519
tv.tv_sec = MAX_AGE - ntohs(new->lsa->hdr.age);
usr.sbin/ospf6d/rde_lsdb.c
521
if (evtimer_add(&new->ev, &tv) != 0)
usr.sbin/ospf6d/rde_lsdb.c
530
struct timeval tv;
usr.sbin/ospf6d/rde_lsdb.c
538
timerclear(&tv);
usr.sbin/ospf6d/rde_lsdb.c
539
tv.tv_sec = MIN_LS_INTERVAL;
usr.sbin/ospf6d/rde_lsdb.c
540
if (evtimer_add(&v->ev, &tv) == -1)
usr.sbin/ospf6d/rde_lsdb.c
810
struct timeval tv;
usr.sbin/ospf6d/rde_lsdb.c
831
timerclear(&tv);
usr.sbin/ospf6d/rde_lsdb.c
833
tv.tv_sec = LS_REFRESH_TIME;
usr.sbin/ospf6d/rde_lsdb.c
835
tv.tv_sec = MAX_AGE - ntohs(v->lsa->hdr.age);
usr.sbin/ospf6d/rde_lsdb.c
837
if (evtimer_add(&v->ev, &tv) != 0)
usr.sbin/ospf6d/rde_lsdb.c
853
struct timeval tv;
usr.sbin/ospf6d/rde_lsdb.c
878
timerclear(&tv);
usr.sbin/ospf6d/rde_lsdb.c
879
tv.tv_sec = LS_REFRESH_TIME;
usr.sbin/ospf6d/rde_lsdb.c
880
if (evtimer_add(&v->ev, &tv) == -1)
usr.sbin/ospf6d/rde_lsdb.c
887
struct timeval tv;
usr.sbin/ospf6d/rde_lsdb.c
926
timerclear(&tv);
usr.sbin/ospf6d/rde_lsdb.c
928
tv.tv_sec = MIN_LS_INTERVAL;
usr.sbin/ospf6d/rde_lsdb.c
929
if (evtimer_add(&v->ev, &tv) == -1)
usr.sbin/ospf6d/rde_spf.c
699
struct timeval tv;
usr.sbin/ospf6d/rde_spf.c
703
timerclear(&tv);
usr.sbin/ospf6d/rde_spf.c
704
tv.tv_sec = rdeconf->spf_delay;
usr.sbin/ospf6d/rde_spf.c
706
if (evtimer_add(&rdeconf->ev, &tv) == -1)
usr.sbin/ospf6d/rde_spf.c
733
struct timeval tv;
usr.sbin/ospf6d/rde_spf.c
737
timerclear(&tv);
usr.sbin/ospf6d/rde_spf.c
738
tv.tv_sec = conf->spf_hold_time;
usr.sbin/ospf6d/rde_spf.c
740
if (evtimer_add(&conf->ev, &tv) == -1)
usr.sbin/ospfd/database.c
389
struct timeval tv;
usr.sbin/ospfd/database.c
413
timerclear(&tv);
usr.sbin/ospfd/database.c
414
tv.tv_sec = nbr->iface->rxmt_interval;
usr.sbin/ospfd/database.c
415
if (evtimer_add(&nbr->db_tx_timer, &tv) == -1)
usr.sbin/ospfd/database.c
423
struct timeval tv;
usr.sbin/ospfd/database.c
428
timerclear(&tv);
usr.sbin/ospfd/database.c
429
if (evtimer_add(&nbr->db_tx_timer, &tv) == -1)
usr.sbin/ospfd/interface.c
263
struct timeval tv;
usr.sbin/ospfd/interface.c
268
timerclear(&tv);
usr.sbin/ospfd/interface.c
270
tv.tv_usec = iface->fast_hello_interval * 1000;
usr.sbin/ospfd/interface.c
272
tv.tv_sec = iface->hello_interval;
usr.sbin/ospfd/interface.c
273
if (evtimer_add(&iface->hello_timer, &tv) == -1)
usr.sbin/ospfd/interface.c
280
struct timeval tv;
usr.sbin/ospfd/interface.c
282
timerclear(&tv);
usr.sbin/ospfd/interface.c
283
if (evtimer_add(&iface->hello_timer, &tv) == -1)
usr.sbin/ospfd/interface.c
305
struct timeval tv;
usr.sbin/ospfd/interface.c
307
timerclear(&tv);
usr.sbin/ospfd/interface.c
308
tv.tv_sec = iface->dead_interval;
usr.sbin/ospfd/interface.c
309
if (evtimer_add(&iface->wait_timer, &tv) == -1)
usr.sbin/ospfd/interface.c
590
struct timeval tv, now, res;
usr.sbin/ospfd/interface.c
638
if (evtimer_pending(&iface->hello_timer, &tv)) {
usr.sbin/ospfd/interface.c
639
timersub(&tv, &now, &res);
usr.sbin/ospfd/kroute.c
401
struct timeval tv;
usr.sbin/ospfd/kroute.c
403
timerclear(&tv);
usr.sbin/ospfd/kroute.c
404
tv.tv_sec = delay / 1000;
usr.sbin/ospfd/kroute.c
405
tv.tv_usec = (delay % 1000) * 1000;
usr.sbin/ospfd/kroute.c
407
if (evtimer_add(&kr_state.reload, &tv) == -1)
usr.sbin/ospfd/lsack.c
302
struct timeval tv;
usr.sbin/ospfd/lsack.c
304
timerclear(&tv);
usr.sbin/ospfd/lsack.c
305
tv.tv_sec = iface->rxmt_interval / 2;
usr.sbin/ospfd/lsack.c
307
if (evtimer_add(&iface->lsack_tx_timer, &tv) == -1)
usr.sbin/ospfd/lsack.c
314
struct timeval tv;
usr.sbin/ospfd/lsack.c
316
timerclear(&tv);
usr.sbin/ospfd/lsack.c
317
if (evtimer_add(&iface->lsack_tx_timer, &tv) == -1)
usr.sbin/ospfd/lsreq.c
196
struct timeval tv;
usr.sbin/ospfd/lsreq.c
221
timerclear(&tv);
usr.sbin/ospfd/lsreq.c
222
tv.tv_sec = nbr->iface->rxmt_interval;
usr.sbin/ospfd/lsreq.c
223
if (evtimer_add(&nbr->lsreq_tx_timer, &tv) == -1)
usr.sbin/ospfd/lsreq.c
231
struct timeval tv;
usr.sbin/ospfd/lsreq.c
236
timerclear(&tv);
usr.sbin/ospfd/lsreq.c
237
if (evtimer_add(&nbr->lsreq_tx_timer, &tv) == -1)
usr.sbin/ospfd/lsupdate.c
301
struct timeval tv;
usr.sbin/ospfd/lsupdate.c
318
timerclear(&tv);
usr.sbin/ospfd/lsupdate.c
319
tv.tv_sec = TAILQ_FIRST(&nbr->ls_retrans_list)->le_when;
usr.sbin/ospfd/lsupdate.c
321
if (evtimer_add(&nbr->ls_retrans_timer, &tv) == -1)
usr.sbin/ospfd/lsupdate.c
386
struct timeval tv;
usr.sbin/ospfd/lsupdate.c
405
timerclear(&tv);
usr.sbin/ospfd/lsupdate.c
406
tv.tv_sec = TAILQ_FIRST(&nbr->ls_retrans_list)->le_when;
usr.sbin/ospfd/lsupdate.c
408
if (evtimer_add(&nbr->ls_retrans_timer, &tv) == -1)
usr.sbin/ospfd/lsupdate.c
436
struct timeval tv;
usr.sbin/ospfd/lsupdate.c
523
timerclear(&tv);
usr.sbin/ospfd/lsupdate.c
524
tv.tv_sec = le->le_when;
usr.sbin/ospfd/lsupdate.c
526
if (evtimer_add(&nbr->ls_retrans_timer, &tv) == -1)
usr.sbin/ospfd/neighbor.c
400
struct timeval tv;
usr.sbin/ospfd/neighbor.c
402
timerclear(&tv);
usr.sbin/ospfd/neighbor.c
403
tv.tv_sec = nbr->iface->dead_interval;
usr.sbin/ospfd/neighbor.c
405
if (evtimer_add(&nbr->inactivity_timer, &tv) == -1)
usr.sbin/ospfd/neighbor.c
419
struct timeval tv;
usr.sbin/ospfd/neighbor.c
421
timerclear(&tv);
usr.sbin/ospfd/neighbor.c
422
tv.tv_sec = nbr->iface->dead_interval;
usr.sbin/ospfd/neighbor.c
424
if (evtimer_add(&nbr->inactivity_timer, &tv) == -1)
usr.sbin/ospfd/neighbor.c
446
struct timeval tv;
usr.sbin/ospfd/neighbor.c
448
timerclear(&tv);
usr.sbin/ospfd/neighbor.c
449
tv.tv_sec = DEFAULT_ADJ_TMOUT;
usr.sbin/ospfd/neighbor.c
451
if (evtimer_add(&nbr->adj_timer, &tv) == -1)
usr.sbin/ospfd/neighbor.c
601
struct timeval tv;
usr.sbin/ospfd/neighbor.c
623
timerclear(&tv);
usr.sbin/ospfd/neighbor.c
624
tv.tv_sec = DEFAULT_NBR_TMOUT;
usr.sbin/ospfd/neighbor.c
626
if (evtimer_add(&nbr->inactivity_timer, &tv)) {
usr.sbin/ospfd/neighbor.c
663
struct timeval tv, now, res;
usr.sbin/ospfd/neighbor.c
703
if (evtimer_pending(&nbr->inactivity_timer, &tv)) {
usr.sbin/ospfd/neighbor.c
704
timersub(&tv, &now, &res);
usr.sbin/ospfd/rde_lsdb.c
385
struct timeval tv, now, res;
usr.sbin/ospfd/rde_lsdb.c
400
if (old->deleted && evtimer_pending(&old->ev, &tv)) {
usr.sbin/ospfd/rde_lsdb.c
403
timersub(&tv, &now, &res);
usr.sbin/ospfd/rde_lsdb.c
428
timerclear(&tv);
usr.sbin/ospfd/rde_lsdb.c
431
tv.tv_sec = LS_REFRESH_TIME;
usr.sbin/ospfd/rde_lsdb.c
433
tv.tv_sec = MAX_AGE - ntohs(new->lsa->hdr.age);
usr.sbin/ospfd/rde_lsdb.c
435
if (evtimer_add(&new->ev, &tv) != 0)
usr.sbin/ospfd/rde_lsdb.c
444
struct timeval tv;
usr.sbin/ospfd/rde_lsdb.c
452
timerclear(&tv);
usr.sbin/ospfd/rde_lsdb.c
453
tv.tv_sec = MIN_LS_INTERVAL;
usr.sbin/ospfd/rde_lsdb.c
454
if (evtimer_add(&v->ev, &tv) == -1)
usr.sbin/ospfd/rde_lsdb.c
661
struct timeval tv;
usr.sbin/ospfd/rde_lsdb.c
681
timerclear(&tv);
usr.sbin/ospfd/rde_lsdb.c
683
tv.tv_sec = LS_REFRESH_TIME;
usr.sbin/ospfd/rde_lsdb.c
685
tv.tv_sec = MAX_AGE - ntohs(v->lsa->hdr.age);
usr.sbin/ospfd/rde_lsdb.c
687
if (evtimer_add(&v->ev, &tv) != 0)
usr.sbin/ospfd/rde_lsdb.c
703
struct timeval tv;
usr.sbin/ospfd/rde_lsdb.c
728
timerclear(&tv);
usr.sbin/ospfd/rde_lsdb.c
729
tv.tv_sec = LS_REFRESH_TIME;
usr.sbin/ospfd/rde_lsdb.c
730
if (evtimer_add(&v->ev, &tv) == -1)
usr.sbin/ospfd/rde_lsdb.c
737
struct timeval tv;
usr.sbin/ospfd/rde_lsdb.c
775
timerclear(&tv);
usr.sbin/ospfd/rde_lsdb.c
777
tv.tv_sec = MIN_LS_INTERVAL;
usr.sbin/ospfd/rde_lsdb.c
778
if (evtimer_add(&v->ev, &tv) == -1)
usr.sbin/ospfd/rde_spf.c
581
struct timeval tv;
usr.sbin/ospfd/rde_spf.c
585
timerclear(&tv);
usr.sbin/ospfd/rde_spf.c
586
tv.tv_sec = rdeconf->spf_delay / 1000;
usr.sbin/ospfd/rde_spf.c
587
tv.tv_usec = (rdeconf->spf_delay % 1000) * 1000;
usr.sbin/ospfd/rde_spf.c
589
if (evtimer_add(&rdeconf->ev, &tv) == -1)
usr.sbin/ospfd/rde_spf.c
616
struct timeval tv;
usr.sbin/ospfd/rde_spf.c
620
timerclear(&tv);
usr.sbin/ospfd/rde_spf.c
621
tv.tv_sec = rdeconf->spf_hold_time / 1000;
usr.sbin/ospfd/rde_spf.c
622
tv.tv_usec = (rdeconf->spf_hold_time % 1000) * 1000;
usr.sbin/ospfd/rde_spf.c
624
if (evtimer_add(&conf->ev, &tv) == -1)
usr.sbin/rad/engine.c
576
struct timeval tv = {0, 0};
usr.sbin/rad/engine.c
588
TIMESPEC_TO_TIMEVAL(&tv, &ra_delay);
usr.sbin/rad/engine.c
591
tv.tv_usec = arc4random_uniform(MAX_RA_DELAY_TIME * 1000);
usr.sbin/rad/engine.c
592
evtimer_add(&engine_iface->timer, &tv);
usr.sbin/rad/engine.c
612
struct timeval tv;
usr.sbin/rad/engine.c
621
tv.tv_sec = 0;
usr.sbin/rad/engine.c
622
tv.tv_usec = arc4random_uniform(1000000);
usr.sbin/rad/engine.c
623
evtimer_add(&engine_iface->timer, &tv);
usr.sbin/rad/engine.c
659
struct timeval tv;
usr.sbin/rad/engine.c
661
tv.tv_sec = MIN_RTR_ADV_INTERVAL +
usr.sbin/rad/engine.c
663
tv.tv_usec = arc4random_uniform(1000000);
usr.sbin/rad/engine.c
665
log_debug("%s new timeout in %lld", __func__, tv.tv_sec);
usr.sbin/rad/engine.c
667
evtimer_add(&engine_iface->timer, &tv);
usr.sbin/radiusd/radiusd.c
1245
struct timeval tv = { 0, 0 };
usr.sbin/radiusd/radiusd.c
1276
event_add(&module->ev, &tv);
usr.sbin/radiusd/radiusd.c
1352
struct timeval *tvp = NULL, tv = { 0, 0 };
usr.sbin/radiusd/radiusd.c
1362
tvp = &tv; /* fire immediately */
usr.sbin/radiusd/radiusd_eap2mschap.c
244
struct timeval tv = { 4, 0 };
usr.sbin/radiusd/radiusd_eap2mschap.c
248
evtimer_add(&self->ev_eapt, &tv);
usr.sbin/radiusd/radiusd_ipcp.c
1627
struct timeval tv;
usr.sbin/radiusd/radiusd_ipcp.c
1648
TIMESPEC_TO_TIMEVAL(&tv, &tsd);
usr.sbin/radiusd/radiusd_ipcp.c
1650
evtimer_add(&self->ev_timer, &tv);
usr.sbin/radiusd/radiusd_ipcp.c
1663
struct timeval tv;
usr.sbin/radiusd/radiusd_ipcp.c
1711
tv.tv_sec = dae_request_timeouts[assign->dae_ntry];
usr.sbin/radiusd/radiusd_ipcp.c
1712
tv.tv_usec = 0;
usr.sbin/radiusd/radiusd_ipcp.c
1714
evtimer_add(&assign->dae_evtimer, &tv);
usr.sbin/radiusd/radiusd_module.c
662
struct timeval *tvp = NULL, tv = { 0, 0 };
usr.sbin/radiusd/radiusd_module.c
675
tvp = &tv; /* fire immediately */
usr.sbin/radiusd/radiusd_radius.c
529
struct timeval tv;
usr.sbin/radiusd/radiusd_radius.c
532
tv.tv_usec = 0;
usr.sbin/radiusd/radiusd_radius.c
534
tv.tv_sec = req->module->req_timeout;
usr.sbin/radiusd/radiusd_radius.c
537
tv.tv_sec = timeouts[req->ntry];
usr.sbin/radiusd/radiusd_radius.c
539
tv.tv_sec = timeouts[nitems(timeouts) - 1];
usr.sbin/radiusd/radiusd_radius.c
541
if (evtimer_add(&req->ev, &tv) != 0) {
usr.sbin/relayd/agentx_control.c
465
struct timeval tv = AGENTX_RECONNECT_TIMEOUT;
usr.sbin/relayd/agentx_control.c
481
evtimer_add(&env->sc_agentxev, &tv);
usr.sbin/relayd/agentx_control.c
887
struct timeval tv, now;
usr.sbin/relayd/agentx_control.c
931
timersub(&now, &session->se_tv_start, &tv);
usr.sbin/relayd/agentx_control.c
933
tv.tv_sec * 100 + tv.tv_usec / 10000);
usr.sbin/relayd/agentx_control.c
936
timersub(&now, &session->se_tv_last, &tv);
usr.sbin/relayd/agentx_control.c
938
tv.tv_sec * 100 + tv.tv_usec / 10000);
usr.sbin/relayd/check_icmp.c
103
check_icmp(struct relayd *env, struct timeval *tv)
usr.sbin/relayd/check_icmp.c
106
check_icmp_add(&env->sc_icmp_recv, EV_READ, tv, recv_icmp);
usr.sbin/relayd/check_icmp.c
107
check_icmp_add(&env->sc_icmp_send, EV_WRITE, tv, send_icmp);
usr.sbin/relayd/check_icmp.c
110
check_icmp_add(&env->sc_icmp6_recv, EV_READ, tv, recv_icmp);
usr.sbin/relayd/check_icmp.c
111
check_icmp_add(&env->sc_icmp6_send, EV_WRITE, tv, send_icmp);
usr.sbin/relayd/check_icmp.c
91
struct timeval tv;
usr.sbin/relayd/check_icmp.c
95
bcopy(&cie->env->sc_conf.timeout, &tv, sizeof(tv));
usr.sbin/relayd/check_icmp.c
99
event_add(&cie->ev, &tv);
usr.sbin/relayd/check_script.c
100
struct timeval *tv;
usr.sbin/relayd/check_script.c
114
tv = &scr->timeout;
usr.sbin/relayd/check_script.c
152
bcopy(tv, &it.it_value, sizeof(it.it_value));
usr.sbin/relayd/check_tcp.c
100
bcopy(&cte->table->conf.timeout, &tv, sizeof(tv));
usr.sbin/relayd/check_tcp.c
112
event_add(&cte->ev, &tv);
usr.sbin/relayd/check_tcp.c
54
struct timeval tv;
usr.sbin/relayd/hce.c
134
struct timeval tv;
usr.sbin/relayd/hce.c
152
getmonotime(&tv);
usr.sbin/relayd/hce.c
169
bcopy(&tv, &host->cte.tv_start,
usr.sbin/relayd/hce.c
188
check_icmp(env, &tv);
usr.sbin/relayd/hce.c
190
bcopy(&env->sc_conf.interval, &tv, sizeof(tv));
usr.sbin/relayd/hce.c
191
evtimer_add(&env->sc_ev, &tv);
usr.sbin/relayd/hce.c
80
struct timeval tv;
usr.sbin/relayd/hce.c
85
bzero(&tv, sizeof(tv));
usr.sbin/relayd/hce.c
86
evtimer_add(&env->sc_ev, &tv);
usr.sbin/relayd/parse.y
152
struct timeval tv;
usr.sbin/relayd/parse.y
198
%type <v.tv> timeout
usr.sbin/relayd/pfe.c
104
struct timeval tv;
usr.sbin/relayd/pfe.c
109
bcopy(&env->sc_conf.statinterval, &tv, sizeof(tv));
usr.sbin/relayd/pfe.c
110
evtimer_add(&env->sc_statev, &tv);
usr.sbin/relayd/pfe.c
813
struct timeval tv, tv_now;
usr.sbin/relayd/pfe.c
817
timerclear(&tv);
usr.sbin/relayd/pfe.c
855
bcopy(&env->sc_conf.statinterval, &tv, sizeof(tv));
usr.sbin/relayd/pfe.c
856
evtimer_add(&env->sc_statev, &tv);
usr.sbin/relayd/relay.c
1115
struct timeval tv;
usr.sbin/relayd/relay.c
1241
bcopy(&rlay->rl_conf.timeout, &tv, sizeof(tv));
usr.sbin/relayd/relay.c
1242
evtimer_add(&con->se_ev, &tv);
usr.sbin/relayd/relay.c
1487
struct timeval tv;
usr.sbin/relayd/relay.c
1500
bcopy(&rlay->rl_conf.timeout, &tv, sizeof(tv));
usr.sbin/relayd/relay.c
1501
evtimer_add(&con->se_ev, &tv);
usr.sbin/relayd/relay.c
1864
struct timeval tv;
usr.sbin/relayd/relay.c
1957
bzero(&tv, sizeof(tv));
usr.sbin/relayd/relay.c
1958
evtimer_add(&con->se_ev, &tv);
usr.sbin/relayd/relay.c
2004
struct timeval tv;
usr.sbin/relayd/relay.c
2022
bzero(&tv, sizeof(tv));
usr.sbin/relayd/relay.c
2023
evtimer_add(&con->se_ev, &tv);
usr.sbin/relayd/relay.c
2631
struct timeval tv, *ptv = NULL;
usr.sbin/relayd/relay.c
2634
timerclear(&tv);
usr.sbin/relayd/relay.c
2635
tv.tv_sec = timeout;
usr.sbin/relayd/relay.c
2636
ptv = &tv;
usr.sbin/relayd/relay.c
339
struct timeval tv;
usr.sbin/relayd/relay.c
355
bcopy(&env->sc_conf.statinterval, &tv, sizeof(tv));
usr.sbin/relayd/relay.c
356
evtimer_add(&env->sc_statev, &tv);
usr.sbin/relayd/relay.c
378
struct timeval tv, tv_now;
usr.sbin/relayd/relay.c
387
timerclear(&tv);
usr.sbin/relayd/relay.c
427
timersub(&tv_now, &con->se_tv_last, &tv);
usr.sbin/relayd/relay.c
428
if (timercmp(&tv, &rlay->rl_conf.timeout, >=))
usr.sbin/relayd/relay.c
435
bcopy(&env->sc_conf.statinterval, &tv, sizeof(tv));
usr.sbin/relayd/relay.c
436
evtimer_add(&env->sc_statev, &tv);
usr.sbin/relayd/relay_udp.c
220
struct timeval tv;
usr.sbin/relayd/relay_udp.c
324
bcopy(&rlay->rl_conf.timeout, &tv, sizeof(tv));
usr.sbin/relayd/relay_udp.c
325
evtimer_add(&con->se_ev, &tv);
usr.sbin/relayd/relayd.c
1496
struct timeval tv_next, tv_now, tv;
usr.sbin/relayd/relayd.c
1503
bzero(&tv, sizeof(tv));
usr.sbin/relayd/relayd.c
1504
if (timercmp(&tv_next, &tv, >))
usr.sbin/relayd/relayd.c
1505
bcopy(&tv_next, &tv, sizeof(tv));
usr.sbin/relayd/relayd.c
1509
event_add(ev, &tv);
usr.sbin/relayd/relayd.c
1926
struct timeval tv;
usr.sbin/relayd/relayd.c
1938
timerclear(&tv);
usr.sbin/relayd/relayd.c
1939
tv.tv_sec = TLS_SESSION_LIFETIME / 4;
usr.sbin/relayd/relayd.c
1940
evtimer_add(&rekeyev, &tv);
usr.sbin/relayd/util.c
231
struct timeval tv;
usr.sbin/relayd/util.c
234
timerclear(&tv);
usr.sbin/relayd/util.c
235
timersub(a, b, &tv);
usr.sbin/relayd/util.c
236
sec = tv.tv_sec % 60;
usr.sbin/relayd/util.c
237
min = tv.tv_sec / 60 % 60;
usr.sbin/relayd/util.c
238
h = tv.tv_sec / 60 / 60;
usr.sbin/relayd/util.c
280
getmonotime(struct timeval *tv)
usr.sbin/relayd/util.c
287
TIMESPEC_TO_TIMEVAL(tv, &ts);
usr.sbin/ripd/message.c
42
struct timeval tv;
usr.sbin/ripd/message.c
47
timerclear(&tv);
usr.sbin/ripd/message.c
48
tv.tv_sec = KEEPALIVE + arc4random_uniform(OFFSET);
usr.sbin/ripd/message.c
49
evtimer_add(&oeconf->report_timer, &tv);
usr.sbin/ripd/message.c
55
struct timeval tv;
usr.sbin/ripd/message.c
57
timerclear(&tv);
usr.sbin/ripd/message.c
58
tv.tv_sec = KEEPALIVE + arc4random_uniform(OFFSET);
usr.sbin/ripd/message.c
59
return (evtimer_add(&oeconf->report_timer, &tv));
usr.sbin/ripd/neighbor.c
274
struct timeval tv;
usr.sbin/ripd/neighbor.c
285
timerclear(&tv);
usr.sbin/ripd/neighbor.c
286
tv.tv_sec = FAILED_NBR_TIMEOUT;
usr.sbin/ripd/neighbor.c
291
if (evtimer_add(&nbr_failed->timeout_timer, &tv) == -1)
usr.sbin/ripd/neighbor.c
349
struct timeval tv;
usr.sbin/ripd/neighbor.c
351
timerclear(&tv);
usr.sbin/ripd/neighbor.c
352
tv.tv_sec = NBR_TIMEOUT;
usr.sbin/ripd/neighbor.c
354
if (evtimer_add(&nbr->timeout_timer, &tv) == -1)
usr.sbin/ripd/neighbor.c
382
struct timeval tv, now, res;
usr.sbin/ripd/neighbor.c
392
if (evtimer_pending(&nbr->timeout_timer, &tv)) {
usr.sbin/ripd/neighbor.c
393
timersub(&tv, &now, &res);
usr.sbin/ripd/rde.c
401
struct timeval tv, now;
usr.sbin/ripd/rde.c
452
timerclear(&tv);
usr.sbin/ripd/rde.c
454
evtimer_pending(&rn->timeout_timer, &tv);
usr.sbin/ripd/rde.c
455
if (tv.tv_sec - now.tv_sec < ROUTE_TIMEOUT / 2) {
usr.sbin/ripd/rde_rib.c
103
struct timeval tv;
usr.sbin/ripd/rde_rib.c
105
timerclear(&tv);
usr.sbin/ripd/rde_rib.c
106
tv.tv_sec = ROUTE_TIMEOUT;
usr.sbin/ripd/rde_rib.c
110
evtimer_add(&r->timeout_timer, &tv);
usr.sbin/ripd/rde_rib.c
52
struct timeval tv;
usr.sbin/ripd/rde_rib.c
54
timerclear(&tv);
usr.sbin/ripd/rde_rib.c
55
tv.tv_sec = ROUTE_TIMEOUT;
usr.sbin/ripd/rde_rib.c
57
return (evtimer_add(&rn->timeout_timer, &tv));
usr.sbin/ripd/rde_rib.c
63
struct timeval tv;
usr.sbin/ripd/rde_rib.c
65
timerclear(&tv);
usr.sbin/ripd/rde_rib.c
66
tv.tv_sec = ROUTE_GARBAGE;
usr.sbin/ripd/rde_rib.c
71
evtimer_add(&rn->garbage_timer, &tv);
usr.sbin/ripd/rde_rib.c
79
struct timeval tv;
usr.sbin/ripd/rde_rib.c
81
timerclear(&tv);
usr.sbin/ripd/rde_rib.c
83
tv.tv_sec = ROUTE_GARBAGE;
usr.sbin/ripd/rde_rib.c
85
if (evtimer_add(&r->garbage_timer, &tv) == -1)
usr.sbin/rpki-client/output.c
116
RB_FOREACH_SAFE(v, vrp_tree, vrps, tv) {
usr.sbin/rpki-client/output.c
95
struct vrp *v, *tv;
usr.sbin/sasyncd/monitor.c
158
struct timeval *tvp, tv;
usr.sbin/sasyncd/monitor.c
225
tv.tv_sec = MONITOR_RETRY_TIMEOUT;
usr.sbin/sasyncd/monitor.c
226
tv.tv_usec = 0;
usr.sbin/sasyncd/monitor.c
227
tvp = &tv;
usr.sbin/smtpd/bounce.c
243
struct timeval tv;
usr.sbin/smtpd/bounce.c
275
tv.tv_sec = msg->timeout - t;
usr.sbin/smtpd/bounce.c
276
tv.tv_usec = 0;
usr.sbin/smtpd/bounce.c
277
evtimer_add(&ev_timer, &tv);
usr.sbin/smtpd/ioev.c
550
struct timeval tv, *ptv;
usr.sbin/smtpd/ioev.c
573
tv.tv_sec = io->timeout / 1000;
usr.sbin/smtpd/ioev.c
574
tv.tv_usec = (io->timeout % 1000) * 1000;
usr.sbin/smtpd/ioev.c
575
ptv = &tv;
usr.sbin/smtpd/lka.c
306
tv.tv_sec = 0;
usr.sbin/smtpd/lka.c
307
tv.tv_usec = 10;
usr.sbin/smtpd/lka.c
308
evtimer_add(&ev_proc_ready, &tv);
usr.sbin/smtpd/lka.c
375
m_get_timeval(&m, &tv);
usr.sbin/smtpd/lka.c
383
lka_report_smtp_link_connect(direction, &tv, reqid, rdns, fcrdns, &ss_src, &ss_dest);
usr.sbin/smtpd/lka.c
389
m_get_timeval(&m, &tv);
usr.sbin/smtpd/lka.c
394
lka_report_smtp_link_greeting(direction, reqid, &tv, domain);
usr.sbin/smtpd/lka.c
400
m_get_timeval(&m, &tv);
usr.sbin/smtpd/lka.c
404
lka_report_smtp_link_disconnect(direction, &tv, reqid);
usr.sbin/smtpd/lka.c
410
m_get_timeval(&m, &tv);
usr.sbin/smtpd/lka.c
416
lka_report_smtp_link_identify(direction, &tv, reqid, helomethod, heloname);
usr.sbin/smtpd/lka.c
422
m_get_timeval(&m, &tv);
usr.sbin/smtpd/lka.c
427
lka_report_smtp_link_tls(direction, &tv, reqid, ciphers);
usr.sbin/smtpd/lka.c
433
m_get_timeval(&m, &tv);
usr.sbin/smtpd/lka.c
439
lka_report_smtp_link_auth(direction, &tv, reqid, username, result);
usr.sbin/smtpd/lka.c
445
m_get_timeval(&m, &tv);
usr.sbin/smtpd/lka.c
450
lka_report_smtp_tx_reset(direction, &tv, reqid, msgid);
usr.sbin/smtpd/lka.c
456
m_get_timeval(&m, &tv);
usr.sbin/smtpd/lka.c
461
lka_report_smtp_tx_begin(direction, &tv, reqid, msgid);
usr.sbin/smtpd/lka.c
467
m_get_timeval(&m, &tv);
usr.sbin/smtpd/lka.c
474
lka_report_smtp_tx_mail(direction, &tv, reqid, msgid, address, ok);
usr.sbin/smtpd/lka.c
480
m_get_timeval(&m, &tv);
usr.sbin/smtpd/lka.c
487
lka_report_smtp_tx_rcpt(direction, &tv, reqid, msgid, address, ok);
usr.sbin/smtpd/lka.c
493
m_get_timeval(&m, &tv);
usr.sbin/smtpd/lka.c
499
lka_report_smtp_tx_envelope(direction, &tv, reqid, msgid, evpid);
usr.sbin/smtpd/lka.c
505
m_get_timeval(&m, &tv);
usr.sbin/smtpd/lka.c
511
lka_report_smtp_tx_data(direction, &tv, reqid, msgid, ok);
usr.sbin/smtpd/lka.c
517
m_get_timeval(&m, &tv);
usr.sbin/smtpd/lka.c
523
lka_report_smtp_tx_commit(direction, &tv, reqid, msgid, msgsz);
usr.sbin/smtpd/lka.c
529
m_get_timeval(&m, &tv);
usr.sbin/smtpd/lka.c
534
lka_report_smtp_tx_rollback(direction, &tv, reqid, msgid);
usr.sbin/smtpd/lka.c
540
m_get_timeval(&m, &tv);
usr.sbin/smtpd/lka.c
545
lka_report_smtp_protocol_client(direction, &tv, reqid, command);
usr.sbin/smtpd/lka.c
551
m_get_timeval(&m, &tv);
usr.sbin/smtpd/lka.c
556
lka_report_smtp_protocol_server(direction, &tv, reqid, response);
usr.sbin/smtpd/lka.c
562
m_get_timeval(&m, &tv);
usr.sbin/smtpd/lka.c
569
lka_report_smtp_filter_response(direction, &tv, reqid,
usr.sbin/smtpd/lka.c
576
m_get_timeval(&m, &tv);
usr.sbin/smtpd/lka.c
580
lka_report_smtp_timeout(direction, &tv, reqid);
usr.sbin/smtpd/lka.c
64
struct timeval tv;
usr.sbin/smtpd/lka.c
708
struct timeval tv;
usr.sbin/smtpd/lka.c
718
tv.tv_sec = 0;
usr.sbin/smtpd/lka.c
719
tv.tv_usec = 10;
usr.sbin/smtpd/lka.c
720
evtimer_add(ev, &tv);
usr.sbin/smtpd/lka_filter.c
1376
report_smtp_broadcast(uint64_t reqid, const char *direction, struct timeval *tv, const char *event,
usr.sbin/smtpd/lka_filter.c
1401
PROTOCOL_VERSION, (long long)tv->tv_sec, (long)tv->tv_usec,
usr.sbin/smtpd/lka_filter.c
1411
lka_report_smtp_link_connect(const char *direction, struct timeval *tv, uint64_t reqid, const char *rdns,
usr.sbin/smtpd/lka_filter.c
1459
report_smtp_broadcast(reqid, direction, tv, "link-connect",
usr.sbin/smtpd/lka_filter.c
1464
lka_report_smtp_link_disconnect(const char *direction, struct timeval *tv, uint64_t reqid)
usr.sbin/smtpd/lka_filter.c
1466
report_smtp_broadcast(reqid, direction, tv, "link-disconnect", "\n");
usr.sbin/smtpd/lka_filter.c
1471
struct timeval *tv, const char *domain)
usr.sbin/smtpd/lka_filter.c
1473
report_smtp_broadcast(reqid, direction, tv, "link-greeting", "%s\n",
usr.sbin/smtpd/lka_filter.c
1478
lka_report_smtp_link_auth(const char *direction, struct timeval *tv, uint64_t reqid,
usr.sbin/smtpd/lka_filter.c
1487
report_smtp_broadcast(reqid, direction, tv, "link-auth", "%s|%s\n",
usr.sbin/smtpd/lka_filter.c
1492
lka_report_smtp_link_identify(const char *direction, struct timeval *tv,
usr.sbin/smtpd/lka_filter.c
1495
report_smtp_broadcast(reqid, direction, tv, "link-identify", "%s|%s\n",
usr.sbin/smtpd/lka_filter.c
1500
lka_report_smtp_link_tls(const char *direction, struct timeval *tv, uint64_t reqid, const char *ciphers)
usr.sbin/smtpd/lka_filter.c
1502
report_smtp_broadcast(reqid, direction, tv, "link-tls", "%s\n",
usr.sbin/smtpd/lka_filter.c
1507
lka_report_smtp_tx_reset(const char *direction, struct timeval *tv, uint64_t reqid, uint32_t msgid)
usr.sbin/smtpd/lka_filter.c
1509
report_smtp_broadcast(reqid, direction, tv, "tx-reset", "%08x\n",
usr.sbin/smtpd/lka_filter.c
1514
lka_report_smtp_tx_begin(const char *direction, struct timeval *tv, uint64_t reqid, uint32_t msgid)
usr.sbin/smtpd/lka_filter.c
1516
report_smtp_broadcast(reqid, direction, tv, "tx-begin", "%08x\n",
usr.sbin/smtpd/lka_filter.c
1521
lka_report_smtp_tx_mail(const char *direction, struct timeval *tv, uint64_t reqid, uint32_t msgid, const char *address, int ok)
usr.sbin/smtpd/lka_filter.c
1536
report_smtp_broadcast(reqid, direction, tv, "tx-mail", "%08x|%s|%s\n",
usr.sbin/smtpd/lka_filter.c
1541
lka_report_smtp_tx_rcpt(const char *direction, struct timeval *tv, uint64_t reqid, uint32_t msgid, const char *address, int ok)
usr.sbin/smtpd/lka_filter.c
1556
report_smtp_broadcast(reqid, direction, tv, "tx-rcpt", "%08x|%s|%s\n",
usr.sbin/smtpd/lka_filter.c
1561
lka_report_smtp_tx_envelope(const char *direction, struct timeval *tv, uint64_t reqid, uint32_t msgid, uint64_t evpid)
usr.sbin/smtpd/lka_filter.c
1563
report_smtp_broadcast(reqid, direction, tv, "tx-envelope",
usr.sbin/smtpd/lka_filter.c
1568
lka_report_smtp_tx_data(const char *direction, struct timeval *tv, uint64_t reqid, uint32_t msgid, int ok)
usr.sbin/smtpd/lka_filter.c
1583
report_smtp_broadcast(reqid, direction, tv, "tx-data", "%08x|%s\n",
usr.sbin/smtpd/lka_filter.c
1588
lka_report_smtp_tx_commit(const char *direction, struct timeval *tv, uint64_t reqid, uint32_t msgid, size_t msgsz)
usr.sbin/smtpd/lka_filter.c
1590
report_smtp_broadcast(reqid, direction, tv, "tx-commit", "%08x|%zd\n",
usr.sbin/smtpd/lka_filter.c
1595
lka_report_smtp_tx_rollback(const char *direction, struct timeval *tv, uint64_t reqid, uint32_t msgid)
usr.sbin/smtpd/lka_filter.c
1597
report_smtp_broadcast(reqid, direction, tv, "tx-rollback", "%08x\n",
usr.sbin/smtpd/lka_filter.c
1602
lka_report_smtp_protocol_client(const char *direction, struct timeval *tv, uint64_t reqid, const char *command)
usr.sbin/smtpd/lka_filter.c
1604
report_smtp_broadcast(reqid, direction, tv, "protocol-client", "%s\n",
usr.sbin/smtpd/lka_filter.c
1609
lka_report_smtp_protocol_server(const char *direction, struct timeval *tv, uint64_t reqid, const char *response)
usr.sbin/smtpd/lka_filter.c
1611
report_smtp_broadcast(reqid, direction, tv, "protocol-server", "%s\n",
usr.sbin/smtpd/lka_filter.c
1616
lka_report_smtp_filter_response(const char *direction, struct timeval *tv, uint64_t reqid,
usr.sbin/smtpd/lka_filter.c
1692
report_smtp_broadcast(reqid, direction, tv, "filter-response",
usr.sbin/smtpd/lka_filter.c
1698
lka_report_smtp_timeout(const char *direction, struct timeval *tv, uint64_t reqid)
usr.sbin/smtpd/lka_filter.c
1700
report_smtp_broadcast(reqid, direction, tv, "timeout", "\n");
usr.sbin/smtpd/lka_filter.c
1705
const char *direction, struct timeval *tv, const char *message)
usr.sbin/smtpd/lka_filter.c
1707
report_smtp_broadcast(reqid, direction, tv, "filter-report",
usr.sbin/smtpd/lka_filter.c
1716
struct timeval tv;
usr.sbin/smtpd/lka_filter.c
1724
tv.tv_sec = strtoll(buffer, &ep, 10);
usr.sbin/smtpd/lka_filter.c
1728
tv.tv_usec = strtol(sp, &ep, 10);
usr.sbin/smtpd/lka_filter.c
1751
lka_report_filter_report(reqid, name, 0, direction, &tv, sp);
usr.sbin/smtpd/lka_filter.c
707
struct timeval tv;
usr.sbin/smtpd/lka_filter.c
791
gettimeofday(&tv, NULL);
usr.sbin/smtpd/lka_filter.c
793
"smtp-in", &tv, filter->config->report);
usr.sbin/smtpd/lka_filter.c
941
struct timeval tv;
usr.sbin/smtpd/lka_filter.c
943
gettimeofday(&tv, NULL);
usr.sbin/smtpd/lka_filter.c
950
(long long)tv.tv_sec, (long)tv.tv_usec,
usr.sbin/smtpd/lka_filter.c
956
(long long)tv.tv_sec, (long)tv.tv_usec,
usr.sbin/smtpd/lka_filter.c
966
struct timeval tv;
usr.sbin/smtpd/lka_filter.c
968
gettimeofday(&tv, NULL);
usr.sbin/smtpd/lka_filter.c
974
(long long)tv.tv_sec, (long)tv.tv_usec,
usr.sbin/smtpd/mproc.c
412
m_add_timeval(struct mproc *m, struct timeval *tv)
usr.sbin/smtpd/mproc.c
414
m_add(m, tv, sizeof(*tv));
usr.sbin/smtpd/mproc.c
521
m_get_timeval(struct msg *m, struct timeval *tv)
usr.sbin/smtpd/mproc.c
523
m_get(m, tv, sizeof(*tv));
usr.sbin/smtpd/mta.c
833
struct timeval tv;
usr.sbin/smtpd/mta.c
875
tv.tv_sec = 0;
usr.sbin/smtpd/mta.c
876
tv.tv_usec = 0;
usr.sbin/smtpd/mta.c
877
evtimer_add(&ev_flush_evp, &tv);
usr.sbin/smtpd/mta.c
907
struct timeval tv;
usr.sbin/smtpd/mta.c
911
tv.tv_sec = 0;
usr.sbin/smtpd/mta.c
912
tv.tv_usec = 0;
usr.sbin/smtpd/mta.c
913
evtimer_add(&ev_flush_evp, &tv);
usr.sbin/smtpd/mta_session.c
214
struct timeval tv;
usr.sbin/smtpd/mta_session.c
255
tv.tv_sec = 0;
usr.sbin/smtpd/mta_session.c
256
tv.tv_usec = 0;
usr.sbin/smtpd/mta_session.c
258
evtimer_add(&s->ev, &tv);
usr.sbin/smtpd/queue.c
45
struct timeval tv;
usr.sbin/smtpd/queue.c
511
tv.tv_sec = 0;
usr.sbin/smtpd/queue.c
512
tv.tv_usec = 10;
usr.sbin/smtpd/queue.c
513
evtimer_add(&wi->ev, &tv);
usr.sbin/smtpd/queue.c
524
struct timeval tv;
usr.sbin/smtpd/queue.c
551
tv.tv_sec = 0;
usr.sbin/smtpd/queue.c
552
tv.tv_usec = 10;
usr.sbin/smtpd/queue.c
554
evtimer_add(&wi->ev, &tv);
usr.sbin/smtpd/queue.c
612
struct timeval tv;
usr.sbin/smtpd/queue.c
661
tv.tv_sec = 0;
usr.sbin/smtpd/queue.c
662
tv.tv_usec = 10;
usr.sbin/smtpd/queue.c
663
evtimer_add(&ev_qload, &tv);
usr.sbin/smtpd/queue.c
680
struct timeval tv;
usr.sbin/smtpd/queue.c
708
tv.tv_sec = 0;
usr.sbin/smtpd/queue.c
709
tv.tv_usec = 10;
usr.sbin/smtpd/queue.c
710
evtimer_add(ev, &tv);
usr.sbin/smtpd/report_smtp.c
105
struct timeval tv;
usr.sbin/smtpd/report_smtp.c
107
gettimeofday(&tv, NULL);
usr.sbin/smtpd/report_smtp.c
111
m_add_timeval(p_lka, &tv);
usr.sbin/smtpd/report_smtp.c
121
struct timeval tv;
usr.sbin/smtpd/report_smtp.c
123
gettimeofday(&tv, NULL);
usr.sbin/smtpd/report_smtp.c
127
m_add_timeval(p_lka, &tv);
usr.sbin/smtpd/report_smtp.c
136
struct timeval tv;
usr.sbin/smtpd/report_smtp.c
138
gettimeofday(&tv, NULL);
usr.sbin/smtpd/report_smtp.c
142
m_add_timeval(p_lka, &tv);
usr.sbin/smtpd/report_smtp.c
151
struct timeval tv;
usr.sbin/smtpd/report_smtp.c
153
gettimeofday(&tv, NULL);
usr.sbin/smtpd/report_smtp.c
157
m_add_timeval(p_lka, &tv);
usr.sbin/smtpd/report_smtp.c
168
struct timeval tv;
usr.sbin/smtpd/report_smtp.c
170
gettimeofday(&tv, NULL);
usr.sbin/smtpd/report_smtp.c
174
m_add_timeval(p_lka, &tv);
usr.sbin/smtpd/report_smtp.c
185
struct timeval tv;
usr.sbin/smtpd/report_smtp.c
187
gettimeofday(&tv, NULL);
usr.sbin/smtpd/report_smtp.c
191
m_add_timeval(p_lka, &tv);
usr.sbin/smtpd/report_smtp.c
201
struct timeval tv;
usr.sbin/smtpd/report_smtp.c
203
gettimeofday(&tv, NULL);
usr.sbin/smtpd/report_smtp.c
207
m_add_timeval(p_lka, &tv);
usr.sbin/smtpd/report_smtp.c
217
struct timeval tv;
usr.sbin/smtpd/report_smtp.c
219
gettimeofday(&tv, NULL);
usr.sbin/smtpd/report_smtp.c
223
m_add_timeval(p_lka, &tv);
usr.sbin/smtpd/report_smtp.c
233
struct timeval tv;
usr.sbin/smtpd/report_smtp.c
235
gettimeofday(&tv, NULL);
usr.sbin/smtpd/report_smtp.c
239
m_add_timeval(p_lka, &tv);
usr.sbin/smtpd/report_smtp.c
248
struct timeval tv;
usr.sbin/smtpd/report_smtp.c
250
gettimeofday(&tv, NULL);
usr.sbin/smtpd/report_smtp.c
254
m_add_timeval(p_lka, &tv);
usr.sbin/smtpd/report_smtp.c
26
struct timeval tv;
usr.sbin/smtpd/report_smtp.c
263
struct timeval tv;
usr.sbin/smtpd/report_smtp.c
265
gettimeofday(&tv, NULL);
usr.sbin/smtpd/report_smtp.c
269
m_add_timeval(p_lka, &tv);
usr.sbin/smtpd/report_smtp.c
278
struct timeval tv;
usr.sbin/smtpd/report_smtp.c
28
gettimeofday(&tv, NULL);
usr.sbin/smtpd/report_smtp.c
280
gettimeofday(&tv, NULL);
usr.sbin/smtpd/report_smtp.c
284
m_add_timeval(p_lka, &tv);
usr.sbin/smtpd/report_smtp.c
295
struct timeval tv;
usr.sbin/smtpd/report_smtp.c
297
gettimeofday(&tv, NULL);
usr.sbin/smtpd/report_smtp.c
301
m_add_timeval(p_lka, &tv);
usr.sbin/smtpd/report_smtp.c
32
m_add_timeval(p_lka, &tv);
usr.sbin/smtpd/report_smtp.c
45
struct timeval tv;
usr.sbin/smtpd/report_smtp.c
47
gettimeofday(&tv, NULL);
usr.sbin/smtpd/report_smtp.c
51
m_add_timeval(p_lka, &tv);
usr.sbin/smtpd/report_smtp.c
60
struct timeval tv;
usr.sbin/smtpd/report_smtp.c
62
gettimeofday(&tv, NULL);
usr.sbin/smtpd/report_smtp.c
66
m_add_timeval(p_lka, &tv);
usr.sbin/smtpd/report_smtp.c
76
struct timeval tv;
usr.sbin/smtpd/report_smtp.c
78
gettimeofday(&tv, NULL);
usr.sbin/smtpd/report_smtp.c
82
m_add_timeval(p_lka, &tv);
usr.sbin/smtpd/report_smtp.c
91
struct timeval tv;
usr.sbin/smtpd/report_smtp.c
93
gettimeofday(&tv, NULL);
usr.sbin/smtpd/report_smtp.c
97
m_add_timeval(p_lka, &tv);
usr.sbin/smtpd/runq.c
43
struct timeval tv;
usr.sbin/smtpd/runq.c
53
tv.tv_sec = 0;
usr.sbin/smtpd/runq.c
55
tv.tv_sec = job->when - now;
usr.sbin/smtpd/runq.c
56
tv.tv_usec = 0;
usr.sbin/smtpd/runq.c
57
evtimer_add(&runq->ev, &tv);
usr.sbin/smtpd/scheduler.c
400
struct timeval tv;
usr.sbin/smtpd/scheduler.c
403
tv.tv_sec = 0;
usr.sbin/smtpd/scheduler.c
404
tv.tv_usec = 0;
usr.sbin/smtpd/scheduler.c
405
evtimer_add(&ev, &tv);
usr.sbin/smtpd/scheduler.c
468
struct timeval tv;
usr.sbin/smtpd/scheduler.c
478
tv.tv_sec = 0;
usr.sbin/smtpd/scheduler.c
479
tv.tv_usec = 0;
usr.sbin/smtpd/scheduler.c
512
tv.tv_sec = delay;
usr.sbin/smtpd/scheduler.c
513
tv.tv_usec = 0;
usr.sbin/smtpd/scheduler.c
515
"scheduler: waiting for %s", duration_to_text(tv.tv_sec));
usr.sbin/smtpd/scheduler.c
516
evtimer_add(&ev, &tv);
usr.sbin/smtpd/scheduler.c
593
tv.tv_sec = 0;
usr.sbin/smtpd/scheduler.c
594
tv.tv_usec = 0;
usr.sbin/smtpd/scheduler.c
595
evtimer_add(&ev, &tv);
usr.sbin/smtpd/smtp_session.c
2288
struct timeval tv;
usr.sbin/smtpd/smtp_session.c
2290
tv.tv_sec = 0;
usr.sbin/smtpd/smtp_session.c
2291
tv.tv_usec = arc4random_uniform(1000000);
usr.sbin/smtpd/smtp_session.c
2293
"will defer answer for %lu microseconds", (long)tv.tv_usec);
usr.sbin/smtpd/smtp_session.c
2295
evtimer_add(&s->pause, &tv);
usr.sbin/smtpd/smtpctl.c
853
kv.key, (long long)kv.val.u.tv.tv_sec,
usr.sbin/smtpd/smtpctl.c
854
(long long)kv.val.u.tv.tv_usec);
usr.sbin/smtpd/smtpd.c
1041
struct timeval tv;
usr.sbin/smtpd/smtpd.c
1073
memset(&tv, 0, sizeof(tv));
usr.sbin/smtpd/smtpd.c
1074
evtimer_add(&config_ev, &tv);
usr.sbin/smtpd/smtpd.h
1460
void m_add_timeval(struct mproc *, struct timeval *tv);
usr.sbin/smtpd/smtpd.h
932
struct timeval tv;
usr.sbin/smtpd/stat_backend.c
93
stat_timeval(struct timeval *tv)
usr.sbin/smtpd/stat_backend.c
98
value.u.tv = *tv;
usr.sbin/smtpd/table_proc.c
63
struct timeval tv;
usr.sbin/smtpd/table_proc.c
65
gettimeofday(&tv, NULL);
usr.sbin/smtpd/table_proc.c
67
PROTOCOL_VERSION, (long long)tv.tv_sec, (long)tv.tv_usec,
usr.sbin/snmpd/application.c
1028
struct timeval tv;
usr.sbin/snmpd/application.c
1158
tv.tv_sec = timeout / 100;
usr.sbin/snmpd/application.c
1159
tv.tv_usec = (timeout % 100) * 10000;
usr.sbin/snmpd/application.c
1161
evtimer_add(&(dreq->ard_timer), &tv);
usr.sbin/snmpd/parse.y
156
struct timeval tv;
usr.sbin/syslogd/evbuffer_tls.c
56
struct timeval tv, *ptv = NULL;
usr.sbin/syslogd/evbuffer_tls.c
59
timerclear(&tv);
usr.sbin/syslogd/evbuffer_tls.c
60
tv.tv_sec = timeout;
usr.sbin/syslogd/evbuffer_tls.c
61
ptv = &tv;
usr.sbin/tftpd/tftpd.c
1189
event_add(&client->sev, &client->tv);
usr.sbin/tftpd/tftpd.c
1214
event_add(&client->sev, &client->tv);
usr.sbin/tftpd/tftpd.c
131
struct timeval tv;
usr.sbin/tftpd/tftpd.c
1316
event_add(&client->sev, &client->tv);
usr.sbin/tftpd/tftpd.c
1391
event_add(&client->sev, &client->tv);
usr.sbin/tftpd/tftpd.c
1399
event_add(&client->sev, &client->tv);
usr.sbin/tftpd/tftpd.c
1557
event_add(&client->sev, &client->tv);
usr.sbin/tftpd/tftpd.c
1598
event_add(&client->sev, &client->tv);
usr.sbin/tftpd/tftpd.c
644
client->tv.tv_sec = TIMEOUT;
usr.sbin/tftpd/tftpd.c
645
client->tv.tv_usec = 0;
usr.sbin/tftpd/tftpd.c
893
options[OPT_TIMEOUT].o_reply = client->tv.tv_sec = to;
usr.sbin/traceroute/traceroute.c
311
struct timeval tv = {0, 0};
usr.sbin/traceroute/traceroute.c
889
evtimer_add(&timer_ev, &tv);
usr.sbin/traceroute/traceroute.c
917
struct timeval t2, tv = {0, 0};
usr.sbin/traceroute/traceroute.c
926
evtimer_add(&timer_ev, &tv);
usr.sbin/traceroute/traceroute.c
995
struct timeval tv = {0, 30000}, t1;
usr.sbin/traceroute/traceroute.c
999
evtimer_add(ev, &tv);
usr.sbin/traceroute/worker.c
1016
gettime(struct timeval *tv)
usr.sbin/traceroute/worker.c
1023
TIMESPEC_TO_TIMEVAL(tv, &ts);
usr.sbin/traceroute/worker.c
314
struct timeval tv;
usr.sbin/traceroute/worker.c
342
gettime(&tv);
usr.sbin/traceroute/worker.c
356
gettime(&tv);
usr.sbin/traceroute/worker.c
357
op->sec = htonl(tv.tv_sec + sec_perturb);
usr.sbin/traceroute/worker.c
358
op->usec = htonl((tv.tv_usec + usec_perturb) % 1000000);
usr.sbin/traceroute/worker.c
373
struct timeval tv;
usr.sbin/traceroute/worker.c
385
gettime(&tv);
usr.sbin/traceroute/worker.c
401
op->sec = htonl(tv.tv_sec);
usr.sbin/traceroute/worker.c
402
op->usec = htonl(tv.tv_usec);
usr.sbin/unbound/cachedb/redis.c
230
struct timeval tv;
usr.sbin/unbound/cachedb/redis.c
238
tv = now_val;
usr.sbin/unbound/cachedb/redis.c
239
timeval_add(&tv, reconnect_interval);
usr.sbin/unbound/cachedb/redis.c
241
*reconnect_wait = tv;
usr.sbin/unbound/cachedb/redis.c
244
infostr, (int)tv.tv_sec, (int)tv.tv_usec);
usr.sbin/unbound/daemon/worker.c
2102
struct timeval tv;
usr.sbin/unbound/daemon/worker.c
2103
memset(&tv, 0, sizeof(tv));
usr.sbin/unbound/daemon/worker.c
2111
tv, 1, c->buffer,
usr.sbin/unbound/daemon/worker.c
2117
tv, 1, c->buffer,
usr.sbin/unbound/daemon/worker.c
2170
struct timeval tv;
usr.sbin/unbound/daemon/worker.c
2195
timeval_subtract(&tv, &dest, &now);
usr.sbin/unbound/daemon/worker.c
2198
tv.tv_sec = worker->env.cfg->stat_interval;
usr.sbin/unbound/daemon/worker.c
2199
tv.tv_usec = 0;
usr.sbin/unbound/daemon/worker.c
2202
comm_timer_set(worker->stat_timer, &tv);
usr.sbin/unbound/daemon/worker.c
2226
struct timeval tv;
usr.sbin/unbound/daemon/worker.c
2228
tv.tv_sec = (time_t)autr_probe_timer(&worker->env);
usr.sbin/unbound/daemon/worker.c
2229
tv.tv_usec = 0;
usr.sbin/unbound/daemon/worker.c
2231
if(tv.tv_sec != 0)
usr.sbin/unbound/daemon/worker.c
2232
comm_timer_set(worker->env.probe_timer, &tv);
usr.sbin/unbound/daemon/worker.c
2437
struct timeval tv;
usr.sbin/unbound/daemon/worker.c
2438
tv.tv_sec = 0;
usr.sbin/unbound/daemon/worker.c
2439
tv.tv_usec = 0;
usr.sbin/unbound/daemon/worker.c
2446
comm_timer_set(worker->env.probe_timer, &tv);
usr.sbin/unbound/dnscrypt/dnscrypt.c
423
struct timeval tv;
usr.sbin/unbound/dnscrypt/dnscrypt.c
427
ret = gettimeofday(&tv, NULL);
usr.sbin/unbound/dnscrypt/dnscrypt.c
429
ts = (uint64_t)tv.tv_sec * 1000000U + (uint64_t)tv.tv_usec;
usr.sbin/unbound/dnstap/dnstap.c
327
dt_fill_timeval(const struct timeval *tv,
usr.sbin/unbound/dnstap/dnstap.c
332
*time_sec = tv->tv_sec;
usr.sbin/unbound/dnstap/dnstap.c
333
*time_nsec = tv->tv_usec * 1000;
usr.sbin/unbound/dnstap/dtstream.c
1812
struct timeval tv;
usr.sbin/unbound/dnstap/dtstream.c
1840
memset(&tv, 0, sizeof(tv));
usr.sbin/unbound/dnstap/dtstream.c
1841
tv.tv_sec = 2;
usr.sbin/unbound/dnstap/dtstream.c
1843
&tv) != 0) {
usr.sbin/unbound/dnstap/dtstream.c
190
struct timeval tv = {0};
usr.sbin/unbound/dnstap/dtstream.c
210
tv.tv_sec = 0;
usr.sbin/unbound/dnstap/dtstream.c
211
tv.tv_usec = 0;
usr.sbin/unbound/dnstap/dtstream.c
212
comm_timer_set(mq->wakeup_timer, &tv);
usr.sbin/unbound/dnstap/dtstream.c
221
tv.tv_sec = 1;
usr.sbin/unbound/dnstap/dtstream.c
222
tv.tv_usec = 0;
usr.sbin/unbound/dnstap/dtstream.c
225
comm_timer_set(mq->wakeup_timer, &tv);
usr.sbin/unbound/dnstap/dtstream.c
227
tv.tv_sec = 0;
usr.sbin/unbound/dnstap/dtstream.c
228
tv.tv_usec = 0;
usr.sbin/unbound/dnstap/dtstream.c
229
comm_timer_set(mq->wakeup_timer, &tv);
usr.sbin/unbound/dnstap/dtstream.c
587
struct timeval tv;
usr.sbin/unbound/dnstap/dtstream.c
606
memset(&tv, 0, sizeof(tv));
usr.sbin/unbound/dnstap/dtstream.c
607
tv.tv_sec = msec/1000;
usr.sbin/unbound/dnstap/dtstream.c
608
tv.tv_usec = (msec%1000)*1000;
usr.sbin/unbound/dnstap/dtstream.c
610
&dtio_reconnect_timeout_cb, dtio, &tv) != 0) {
usr.sbin/unbound/dnstap/unbound-dnstap-socket.c
599
struct timeval tv;
usr.sbin/unbound/dnstap/unbound-dnstap-socket.c
601
memset(&tv, 0, sizeof(tv));
usr.sbin/unbound/dnstap/unbound-dnstap-socket.c
602
if(has_time_sec) tv.tv_sec = time_sec;
usr.sbin/unbound/dnstap/unbound-dnstap-socket.c
603
if(has_time_nsec) tv.tv_usec = time_nsec/1000;
usr.sbin/unbound/dnstap/unbound-dnstap-socket.c
606
time_t_sec = tv.tv_sec;
usr.sbin/unbound/services/authzone.c
7013
struct timeval tv;
usr.sbin/unbound/services/authzone.c
7071
tv.tv_sec = xfr->task_nextprobe->next_probe -
usr.sbin/unbound/services/authzone.c
7073
else tv.tv_sec = 0;
usr.sbin/unbound/services/authzone.c
7074
if(tv.tv_sec != 0 && lookup_only && xfr->task_probe->masters) {
usr.sbin/unbound/services/authzone.c
7077
tv.tv_sec = 0;
usr.sbin/unbound/services/authzone.c
7085
zname, (int)tv.tv_sec);
usr.sbin/unbound/services/authzone.c
7087
tv.tv_usec = 0;
usr.sbin/unbound/services/authzone.c
7088
comm_timer_set(xfr->task_nextprobe->timer, &tv);
usr.sbin/unbound/services/listen_dnsport.c
3502
struct doq_server_socket* worker_doq_socket, struct timeval* tv,
usr.sbin/unbound/services/listen_dnsport.c
3511
timeval_subtract(&rel, tv, worker_doq_socket->now_tv);
usr.sbin/unbound/services/listen_dnsport.c
3513
a, (int)tv->tv_sec, (int)tv->tv_usec,
usr.sbin/unbound/services/listen_dnsport.c
3521
timer->time_real.tv_sec = tv->tv_sec;
usr.sbin/unbound/services/listen_dnsport.c
3522
timer->time_real.tv_usec = tv->tv_usec;
usr.sbin/unbound/services/listen_dnsport.c
5202
struct timeval tv;
usr.sbin/unbound/services/listen_dnsport.c
5203
memset(&tv, 0, sizeof(tv));
usr.sbin/unbound/services/listen_dnsport.c
5204
if(gettimeofday(&tv, NULL) < 0) {
usr.sbin/unbound/services/listen_dnsport.c
5206
memset(&tv, 0, sizeof(tv));
usr.sbin/unbound/services/listen_dnsport.c
5208
return tv;
usr.sbin/unbound/services/listen_dnsport.c
5640
doq_conn_check_timer(struct doq_conn* conn, struct timeval* tv, ngtcp2_tstamp* ts)
usr.sbin/unbound/services/listen_dnsport.c
5655
memcpy(tv, &now, sizeof(*tv));
usr.sbin/unbound/services/listen_dnsport.c
5658
memset(tv, 0, sizeof(*tv));
usr.sbin/unbound/services/listen_dnsport.c
5659
tv->tv_sec = (doq_expiry - doq_now) / NGTCP2_SECONDS;
usr.sbin/unbound/services/listen_dnsport.c
5660
tv->tv_usec = ((doq_expiry - doq_now) / NGTCP2_MICROSECONDS)%1000000;
usr.sbin/unbound/services/listen_dnsport.c
5661
timeval_add(tv, &now);
usr.sbin/unbound/services/listen_dnsport.h
839
int doq_conn_check_timer(struct doq_conn* conn, struct timeval* tv,
usr.sbin/unbound/services/listen_dnsport.h
853
struct doq_server_socket* worker_doq_socket, struct timeval* tv,
usr.sbin/unbound/services/mesh.c
1745
struct timeval tv = {0, 0};
usr.sbin/unbound/services/mesh.c
1808
tv = r->start_time;
usr.sbin/unbound/services/mesh.c
1906
mesh_do_callback(mstate, mstate->s.return_rcode, rep, c, &tv);
usr.sbin/unbound/services/mesh.c
2484
struct timeval tv = {0, 0};
usr.sbin/unbound/services/mesh.c
2602
tv = r->start_time;
usr.sbin/unbound/services/mesh.c
2675
mesh_do_callback(mstate, LDNS_RCODE_NOERROR, msg->rep, c, &tv);
usr.sbin/unbound/services/outside_network.c
2270
struct timeval tv;
usr.sbin/unbound/services/outside_network.c
2301
tv.tv_sec = timeout/1000;
usr.sbin/unbound/services/outside_network.c
2302
tv.tv_usec = (timeout%1000)*1000;
usr.sbin/unbound/services/outside_network.c
2304
comm_timer_set(pend->timer, &tv);
usr.sbin/unbound/services/outside_network.c
637
struct timeval tv;
usr.sbin/unbound/services/outside_network.c
651
tv.tv_sec = w->timeout/1000;
usr.sbin/unbound/services/outside_network.c
652
tv.tv_usec = (w->timeout%1000)*1000;
usr.sbin/unbound/services/outside_network.c
657
comm_timer_set(w->timer, &tv);
usr.sbin/unbound/services/outside_network.c
944
struct timeval tv;
usr.sbin/unbound/services/outside_network.c
956
tv.tv_sec = w->timeout/1000;
usr.sbin/unbound/services/outside_network.c
957
tv.tv_usec = (w->timeout%1000)*1000;
usr.sbin/unbound/services/outside_network.c
959
comm_timer_set(w->timer, &tv);
usr.sbin/unbound/services/outside_network.c
968
struct timeval tv;
usr.sbin/unbound/services/outside_network.c
980
tv.tv_sec = w->timeout/1000;
usr.sbin/unbound/services/outside_network.c
981
tv.tv_usec = (w->timeout%1000)*1000;
usr.sbin/unbound/services/outside_network.c
983
comm_timer_set(w->timer, &tv);
usr.sbin/unbound/smallapp/unbound-control.c
709
struct timeval tv;
usr.sbin/unbound/smallapp/unbound-control.c
716
tv.tv_sec = UNBOUND_CONTROL_CONNECT_TIMEOUT/1000;
usr.sbin/unbound/smallapp/unbound-control.c
717
tv.tv_usec= (UNBOUND_CONTROL_CONNECT_TIMEOUT%1000)*1000;
usr.sbin/unbound/smallapp/unbound-control.c
718
if(select(fd+1, &rset, &wset, &eset, &tv) == -1) {
usr.sbin/unbound/testcode/delayer.c
303
ring_pop(struct ringbuf* r, sldns_buffer* pkt, struct timeval* tv,
usr.sbin/unbound/testcode/delayer.c
313
memmove(tv, where, sizeof(*tv));
usr.sbin/unbound/testcode/delayer.c
314
memmove(p, where+sizeof(*tv), sizeof(*p));
usr.sbin/unbound/testcode/delayer.c
315
memmove(&len, where+sizeof(*tv)+sizeof(*p), sizeof(len));
usr.sbin/unbound/testcode/delayer.c
317
where+sizeof(*tv)+sizeof(*p)+sizeof(len), len);
usr.sbin/unbound/testcode/delayer.c
319
done = sizeof(*tv)+sizeof(*p)+sizeof(len)+len;
usr.sbin/unbound/testcode/delayer.c
329
if(r->size - r->low > sizeof(*tv)+sizeof(*p)) {
usr.sbin/unbound/testcode/delayer.c
332
memmove(&pz, r->buf+r->low+sizeof(*tv), sizeof(pz));
usr.sbin/unbound/testcode/delayer.c
364
struct timeval tv;
usr.sbin/unbound/testcode/delayer.c
369
if(!ring_pop(ring, pkt, &tv, &p))
usr.sbin/unbound/testcode/delayer.c
372
(unsigned)tv.tv_sec, (unsigned)tv.tv_usec);
usr.sbin/unbound/testcode/dohclient.c
261
struct timeval tv, *waittv;
usr.sbin/unbound/testcode/dohclient.c
265
memset(&tv, 0, sizeof(tv));
usr.sbin/unbound/testcode/dohclient.c
273
waittv = &tv;
usr.sbin/unbound/testcode/doqclient.c
1061
struct timeval tv;
usr.sbin/unbound/testcode/doqclient.c
1062
if(gettimeofday(&tv, NULL) < 0) {
usr.sbin/unbound/testcode/doqclient.c
1065
return ((uint64_t)tv.tv_sec)*((uint64_t)1000000000) +
usr.sbin/unbound/testcode/doqclient.c
1066
((uint64_t)tv.tv_usec)*((uint64_t)1000);
usr.sbin/unbound/testcode/doqclient.c
1650
struct timeval tv;
usr.sbin/unbound/testcode/doqclient.c
1664
memset(&tv, 0, sizeof(tv));
usr.sbin/unbound/testcode/doqclient.c
1665
tv.tv_sec = t / NGTCP2_SECONDS;
usr.sbin/unbound/testcode/doqclient.c
1666
tv.tv_usec = (t / NGTCP2_MICROSECONDS)%1000000;
usr.sbin/unbound/testcode/doqclient.c
1667
verbose(1, "update_timer in %d.%6.6d secs", (int)tv.tv_sec,
usr.sbin/unbound/testcode/doqclient.c
1668
(int)tv.tv_usec);
usr.sbin/unbound/testcode/doqclient.c
1670
&doq_client_timer_cb, data, &tv) != 0) {
usr.sbin/unbound/testcode/fake_event.c
1037
comm_base_timept(struct comm_base* b, time_t** tt, struct timeval** tv)
usr.sbin/unbound/testcode/fake_event.c
1041
*tv = &runtime->now_tv;
usr.sbin/unbound/testcode/fake_event.c
1681
void comm_timer_set(struct comm_timer* timer, struct timeval* tv)
usr.sbin/unbound/testcode/fake_event.c
1685
t->tv = *tv;
usr.sbin/unbound/testcode/fake_event.c
1687
(int)t->tv.tv_sec, (int)t->tv.tv_usec);
usr.sbin/unbound/testcode/fake_event.c
1688
timeval_add(&t->tv, &t->runtime->now_tv);
usr.sbin/unbound/testcode/fake_event.c
558
struct timeval tv = mom->elapse;
usr.sbin/unbound/testcode/fake_event.c
567
tv.tv_sec = sec;
usr.sbin/unbound/testcode/fake_event.c
568
tv.tv_usec = (int)((sec - (double)tv.tv_sec) *1000000. + 0.5);
usr.sbin/unbound/testcode/fake_event.c
571
timeval_add(&runtime->now_tv, &tv);
usr.sbin/unbound/testcode/fake_event.c
575
(int)tv.tv_sec, (int)tv.tv_usec,
usr.sbin/unbound/testcode/replay.c
537
else if(timeval_smaller(&p->tv, &res->tv))
usr.sbin/unbound/testcode/replay.c
547
if(t && timeval_smaller(&t->tv, &runtime->now_tv))
usr.sbin/unbound/testcode/replay.c
818
if(t && (time_t)t->tv.tv_sec >= runtime->now_secs)
usr.sbin/unbound/testcode/replay.c
819
res = (time_t)t->tv.tv_sec - runtime->now_secs;
usr.sbin/unbound/testcode/replay.h
404
struct timeval tv;
usr.sbin/unbound/testcode/streamtcp.c
382
struct timeval tv, *waittv;
usr.sbin/unbound/testcode/streamtcp.c
386
memset(&tv, 0, sizeof(tv));
usr.sbin/unbound/testcode/streamtcp.c
390
else waittv = &tv;
usr.sbin/unbound/util/log.c
283
struct timeval tv;
usr.sbin/unbound/util/log.c
285
if(gettimeofday(&tv, NULL) < 0)
usr.sbin/unbound/util/log.c
286
memset(&tv, 0, sizeof(tv));
usr.sbin/unbound/util/log.c
287
now = (time_t)tv.tv_sec;
usr.sbin/unbound/util/log.c
298
tmbuf, (int)tv.tv_usec/1000, tzbuf,
usr.sbin/unbound/util/mini_event.c
253
struct timeval* ATTR_UNUSED(tv))
usr.sbin/unbound/util/mini_event.c
292
int event_add(struct event* ev, struct timeval* tv)
usr.sbin/unbound/util/mini_event.c
311
if(tv && (ev->ev_events&EV_TIMEOUT)) {
usr.sbin/unbound/util/mini_event.c
314
ev->ev_timeout.tv_sec = tv->tv_sec + now->tv_sec;
usr.sbin/unbound/util/mini_event.c
315
ev->ev_timeout.tv_usec = tv->tv_usec + now->tv_usec;
usr.sbin/unbound/util/mini_event.c
370
int signal_add(struct event* ev, struct timeval* ATTR_UNUSED(tv))
usr.sbin/unbound/util/mini_event.h
179
#define evtimer_add(ev, tv) event_add(ev, tv)
usr.sbin/unbound/util/netevent.c
2166
struct timeval tv;
usr.sbin/unbound/util/netevent.c
2169
memset(&tv, 0, sizeof(tv));
usr.sbin/unbound/util/netevent.c
2177
memcpy(&tv, &t->time_real, sizeof(tv));
usr.sbin/unbound/util/netevent.c
2187
timeval_subtract(&rel, &tv, c->doq_socket->now_tv);
usr.sbin/unbound/util/netevent.c
2190
(int)tv.tv_sec, (int)tv.tv_usec, (int)rel.tv_sec,
usr.sbin/unbound/util/netevent.c
280
comm_base_timept(struct comm_base* b, time_t** tt, struct timeval** tv)
usr.sbin/unbound/util/netevent.c
283
*tv = &b->eb->now;
usr.sbin/unbound/util/netevent.c
3002
struct timeval tv;
usr.sbin/unbound/util/netevent.c
3020
tv.tv_sec = NETEVENT_SLOW_ACCEPT_TIME/1000;
usr.sbin/unbound/util/netevent.c
3021
tv.tv_usec = (NETEVENT_SLOW_ACCEPT_TIME%1000)*1000;
usr.sbin/unbound/util/netevent.c
3030
else if(ub_event_add(b->eb->slow_accept, &tv)
usr.sbin/unbound/util/netevent.c
6945
comm_timer_set(struct comm_timer* timer, struct timeval* tv)
usr.sbin/unbound/util/netevent.c
6947
log_assert(tv);
usr.sbin/unbound/util/netevent.c
6951
comm_timer_callback, timer, tv) != 0)
usr.sbin/unbound/util/netevent.h
522
void comm_base_timept(struct comm_base* b, time_t** tt, struct timeval** tv);
usr.sbin/unbound/util/netevent.h
808
void comm_timer_set(struct comm_timer* timer, struct timeval* tv);
usr.sbin/unbound/util/timehist.c
118
void timehist_insert(struct timehist* hist, struct timeval* tv)
usr.sbin/unbound/util/timehist.c
122
if(timeval_smaller(tv, &hist->buckets[i].upper)) {
usr.sbin/unbound/util/timehist.h
97
void timehist_insert(struct timehist* hist, struct timeval* tv);
usr.sbin/unbound/util/timeval_func.h
45
#define timeval_isset(tv) ((tv)->tv_sec || (tv)->tv_usec)
usr.sbin/unbound/util/timeval_func.h
48
#define timeval_clear(tv) ((tv)->tv_sec = (tv)->tv_usec = 0)
usr.sbin/unbound/util/ub_event.c
446
ub_event_add(struct ub_event* ev, struct timeval* tv)
usr.sbin/unbound/util/ub_event.c
448
return event_add(AS_EVENT(ev), tv);
usr.sbin/unbound/util/ub_event.c
459
void (*cb)(int, short, void*), void* arg, struct timeval* tv)
usr.sbin/unbound/util/ub_event.c
464
return evtimer_add(AS_EVENT(ev), tv);
usr.sbin/unbound/util/ub_event.c
474
ub_signal_add(struct ub_event* ev, struct timeval* tv)
usr.sbin/unbound/util/ub_event.c
476
return signal_add(AS_EVENT(ev), tv);
usr.sbin/unbound/util/ub_event.c
515
struct timeval *tv;
usr.sbin/unbound/util/ub_event.c
516
comm_base_timept(cb, &tt, &tv);
usr.sbin/unbound/util/ub_event.c
517
if(gettimeofday(tv, NULL) < 0) {
usr.sbin/unbound/util/ub_event.c
521
*tt = tv->tv_sec;
usr.sbin/unbound/util/ub_event_pluggable.c
180
my_event_add(struct ub_event* ev, struct timeval* tv)
usr.sbin/unbound/util/ub_event_pluggable.c
182
return event_add(&AS_MY_EVENT(ev)->ev, tv);
usr.sbin/unbound/util/ub_event_pluggable.c
193
void (*cb)(int, short, void*), void* arg, struct timeval* tv)
usr.sbin/unbound/util/ub_event_pluggable.c
199
return evtimer_add(&AS_MY_EVENT(ev)->ev, tv);
usr.sbin/unbound/util/ub_event_pluggable.c
209
my_signal_add(struct ub_event* ev, struct timeval* tv)
usr.sbin/unbound/util/ub_event_pluggable.c
211
return signal_add(&AS_MY_EVENT(ev)->ev, tv);
usr.sbin/unbound/util/ub_event_pluggable.c
270
my_event_base_loopexit(struct ub_event_base* base, struct timeval* tv)
usr.sbin/unbound/util/ub_event_pluggable.c
272
return event_base_loopexit(AS_MY_EVENT_BASE(base)->base, tv);
usr.sbin/unbound/util/ub_event_pluggable.c
585
ub_event_add(struct ub_event* ev, struct timeval* tv)
usr.sbin/unbound/util/ub_event_pluggable.c
590
return (*ev->vmt->add)(ev, tv);
usr.sbin/unbound/util/ub_event_pluggable.c
608
void (*cb)(int, short, void*), void* arg, struct timeval* tv)
usr.sbin/unbound/util/ub_event_pluggable.c
613
return (*ev->vmt->add_timer)(ev, base, cb, arg, tv);
usr.sbin/unbound/util/ub_event_pluggable.c
630
ub_signal_add(struct ub_event* ev, struct timeval* tv)
usr.sbin/unbound/util/ub_event_pluggable.c
635
return (*ev->vmt->add_signal)(ev, tv);
usr.sbin/unbound/util/ub_event_pluggable.c
677
struct timeval *tv;
usr.sbin/unbound/util/ub_event_pluggable.c
687
comm_base_timept(cb, &tt, &tv);
usr.sbin/unbound/util/ub_event_pluggable.c
688
if(gettimeofday(tv, NULL) < 0) {
usr.sbin/unbound/util/ub_event_pluggable.c
692
*tt = tv->tv_sec;
usr.sbin/unbound/util/winsock_event.c
451
struct timeval * ATTR_UNUSED(tv))
usr.sbin/unbound/util/winsock_event.c
491
int event_add(struct event *ev, struct timeval *tv)
usr.sbin/unbound/util/winsock_event.c
495
(tv?(long long)tv->tv_sec*1000+(long long)tv->tv_usec/1000:-1),
usr.sbin/unbound/util/winsock_event.c
556
if(tv && (ev->ev_events&EV_TIMEOUT)) {
usr.sbin/unbound/util/winsock_event.c
559
ev->ev_timeout.tv_sec = tv->tv_sec + now->tv_sec;
usr.sbin/unbound/util/winsock_event.c
560
ev->ev_timeout.tv_usec = tv->tv_usec + now->tv_usec;
usr.sbin/unbound/util/winsock_event.c
624
int signal_add(struct event *ev, struct timeval * ATTR_UNUSED(tv))
usr.sbin/unbound/util/winsock_event.h
233
#define evtimer_add(ev, tv) event_add(ev, tv)
usr.sbin/unbound/validator/autotrust.c
2042
struct timeval tv;
usr.sbin/unbound/validator/autotrust.c
2048
tv.tv_sec = (time_t)(next - *env->now);
usr.sbin/unbound/validator/autotrust.c
2049
else tv.tv_sec = 0;
usr.sbin/unbound/validator/autotrust.c
2053
tv.tv_usec = 0;
usr.sbin/unbound/validator/autotrust.c
2054
comm_timer_set(env->probe_timer, &tv);
usr.sbin/unbound/validator/autotrust.c
2055
verbose(VERB_ALGO, "scheduled next probe in " ARG_LL "d sec", (long long)tv.tv_sec);
usr.sbin/unbound/validator/validator.c
888
struct timeval tv;
usr.sbin/unbound/validator/validator.c
934
tv.tv_usec = (usec % 1000000);
usr.sbin/unbound/validator/validator.c
935
tv.tv_sec = (usec / 1000000);
usr.sbin/unbound/validator/validator.c
937
comm_timer_set(vq->suspend_timer, &tv);
usr.sbin/vmd/config.c
203
struct timeval tv, rate, since_last;
usr.sbin/vmd/config.c
218
getmonotime(&tv);
usr.sbin/vmd/config.c
220
timersub(&tv, &vm->vm_start_tv, &since_last);
usr.sbin/vmd/config.c
242
vm->vm_start_tv = tv;
usr.sbin/vmd/i8253.c
344
struct timeval tv;
usr.sbin/vmd/i8253.c
347
timerclear(&tv);
usr.sbin/vmd/i8253.c
351
tv.tv_usec = (i8253_channel[chn].start * NS_PER_TICK) / 1000;
usr.sbin/vmd/i8253.c
353
evtimer_add(&i8253_channel[chn].timer, &tv);
usr.sbin/vmd/i8253.c
370
struct timeval tv;
usr.sbin/vmd/i8253.c
376
timerclear(&tv);
usr.sbin/vmd/i8253.c
377
tv.tv_usec = (ctr->start * NS_PER_TICK) / 1000;
usr.sbin/vmd/i8253.c
378
evtimer_add(&ctr->timer, &tv);
usr.sbin/vmd/virtio.c
1011
struct timeval tv = { 0, 0 };
usr.sbin/vmd/virtio.c
1017
tv.tv_sec = VMMCI_TIMEOUT_SHORT;
usr.sbin/vmd/virtio.c
1018
evtimer_add(&v->timeout, &tv);
usr.sbin/vmd/virtio.c
1021
tv.tv_sec = VMMCI_TIMEOUT_LONG;
usr.sbin/vmd/virtio.c
1022
evtimer_add(&v->timeout, &tv);
usr.sbin/vmd/virtio.c
764
struct timeval tv = { 0, 0 };
usr.sbin/vmd/virtio.c
801
tv.tv_sec = VMMCI_TIMEOUT_SHORT;
usr.sbin/vmd/virtio.c
802
evtimer_add(&v->timeout, &tv);
usr.sbin/vmd/vmd.c
1773
getmonotime(struct timeval *tv)
usr.sbin/vmd/vmd.c
1780
TIMESPEC_TO_TIMEVAL(tv, &ts);
usr.sbin/wsmoused/wsmoused.c
238
struct timeval tv; /* timestamp on the last `up' event */
usr.sbin/wsmoused/wsmoused.c
261
if (timercmp(&max_date, &buttonstate[i].tv, >)) {
usr.sbin/wsmoused/wsmoused.c
262
timerclear(&buttonstate[i].tv);
usr.sbin/wsmoused/wsmoused.c
269
buttonstate[i].tv.tv_sec = now.tv_sec;
usr.sbin/wsmoused/wsmoused.c
270
buttonstate[i].tv.tv_usec = now.tv_usec;
usr.sbin/ypldap/ldapclient.c
732
struct timeval tv;
usr.sbin/ypldap/ldapclient.c
747
tv.tv_sec = env->sc_conf_tv.tv_sec;
usr.sbin/ypldap/ldapclient.c
748
tv.tv_usec = env->sc_conf_tv.tv_usec;
usr.sbin/ypldap/ldapclient.c
750
evtimer_add(&env->sc_conf_ev, &tv);
usr.sbin/ypldap/ypldap.c
513
struct timeval tv;
usr.sbin/ypldap/ypldap.c
623
memset(&tv, 0, sizeof(tv));
usr.sbin/ypldap/ypldap.c
625
evtimer_add(&ev_timer, &tv);
usr.sbin/yppoll/yppoll.c
102
xdr_ypresp_order, &ypro, tv);
usr.sbin/yppoll/yppoll.c
114
&yprnk, xdr_ypresp_master, &yprm, tv);
usr.sbin/yppoll/yppoll.c
64
struct timeval tv;
usr.sbin/yppoll/yppoll.c
86
tv.tv_sec = 10;
usr.sbin/yppoll/yppoll.c
87
tv.tv_usec = 0;
usr.sbin/yppoll/yppoll.c
89
client = clntudp_create(&rsrv_sin, YPPROG, YPVERS, tv, &rsrv_sock);
usr.sbin/ypserv/common/yplib_host.c
101
struct timeval tv;
usr.sbin/ypserv/common/yplib_host.c
110
tv.tv_sec = 10;
usr.sbin/ypserv/common/yplib_host.c
111
tv.tv_usec = 0;
usr.sbin/ypserv/common/yplib_host.c
113
client = clntudp_create(&rsrv_sin, program, version, tv, &rsrv_sock);
usr.sbin/ypserv/common/yplib_host.c
127
struct timeval tv;
usr.sbin/ypserv/common/yplib_host.c
133
tv.tv_sec = _yplib_host_timeout;
usr.sbin/ypserv/common/yplib_host.c
134
tv.tv_usec = 0;
usr.sbin/ypserv/common/yplib_host.c
144
xdr_ypreq_key, &yprk, xdr_ypresp_val, &yprv, tv);
usr.sbin/ypserv/common/yplib_host.c
163
struct timeval tv;
usr.sbin/ypserv/common/yplib_host.c
169
tv.tv_sec = _yplib_host_timeout;
usr.sbin/ypserv/common/yplib_host.c
170
tv.tv_usec = 0;
usr.sbin/ypserv/common/yplib_host.c
177
xdr_ypreq_nokey, &yprnk, xdr_ypresp_key_val, &yprkv, tv);
usr.sbin/ypserv/common/yplib_host.c
200
struct timeval tv;
usr.sbin/ypserv/common/yplib_host.c
206
tv.tv_sec = _yplib_host_timeout;
usr.sbin/ypserv/common/yplib_host.c
207
tv.tv_usec = 0;
usr.sbin/ypserv/common/yplib_host.c
216
xdr_ypreq_key, &yprk, xdr_ypresp_key_val, &yprkv, tv);
usr.sbin/ypserv/common/yplib_host.c
297
struct timeval tv;
usr.sbin/ypserv/common/yplib_host.c
300
tv.tv_sec = _yplib_host_timeout;
usr.sbin/ypserv/common/yplib_host.c
301
tv.tv_usec = 0;
usr.sbin/ypserv/common/yplib_host.c
309
xdr_ypreq_nokey, &yprnk, ypserv_xdr_ypresp_all_seq, &status, tv);
usr.sbin/ypserv/common/yplib_host.c
320
struct timeval tv;
usr.sbin/ypserv/common/yplib_host.c
323
tv.tv_sec = _yplib_host_timeout;
usr.sbin/ypserv/common/yplib_host.c
324
tv.tv_usec = 0;
usr.sbin/ypserv/common/yplib_host.c
332
xdr_ypreq_nokey, &yprnk, xdr_ypresp_order, &ypro, tv);
usr.sbin/ypserv/common/yplib_host.c
345
struct timeval tv;
usr.sbin/ypserv/common/yplib_host.c
348
tv.tv_sec = _yplib_host_timeout;
usr.sbin/ypserv/common/yplib_host.c
349
tv.tv_usec = 0;
usr.sbin/ypserv/common/yplib_host.c
356
xdr_ypreq_nokey, &yprnk, xdr_ypresp_master, &yprm, tv);
usr.sbin/ypserv/common/yplib_host.c
369
struct timeval tv;
usr.sbin/ypserv/common/yplib_host.c
372
tv.tv_sec = _yplib_host_timeout;
usr.sbin/ypserv/common/yplib_host.c
373
tv.tv_usec = 0;
usr.sbin/ypserv/common/yplib_host.c
378
xdr_domainname, &indomain, xdr_ypresp_maplist, &ypml, tv);
usr.sbin/ypserv/common/yplib_host.c
52
struct timeval tv;
usr.sbin/ypserv/common/yplib_host.c
78
tv.tv_sec = 10;
usr.sbin/ypserv/common/yplib_host.c
79
tv.tv_usec = 0;
usr.sbin/ypserv/common/yplib_host.c
85
client = clntudp_create(&rsrv_sin, program, version, tv,
usr.sbin/ypserv/yppush/yppush.c
110
struct timeval tv;
usr.sbin/ypserv/yppush/yppush.c
112
tv.tv_sec = 0;
usr.sbin/ypserv/yppush/yppush.c
113
tv.tv_usec = 0;
usr.sbin/ypserv/yppush/yppush.c
129
xdr_void, NULL, tv)) {
usr.sbin/ypserv/ypxfr/ypxfr.c
295
struct timeval tv;
usr.sbin/ypserv/ypxfr/ypxfr.c
300
tv.tv_sec = 10;
usr.sbin/ypserv/ypxfr/ypxfr.c
301
tv.tv_usec = 0;
usr.sbin/ypserv/ypxfr/ypxfr.c
304
r = clnt_call(client, YPPROC_CLEAR, xdr_void, 0, xdr_void, 0, tv);
usr.sbin/ypserv/ypxfr/ypxfr.c
315
struct timeval tv;
usr.sbin/ypserv/ypxfr/ypxfr.c
318
tv.tv_sec = 10;
usr.sbin/ypserv/ypxfr/ypxfr.c
319
tv.tv_usec = 0;
usr.sbin/ypserv/ypxfr/ypxfr.c
325
r = clnt_call(client, 1, xdr_ypresp_xfr, &resp, xdr_void, 0, tv);
usr.sbin/ypset/ypset.c
58
struct timeval tv;
usr.sbin/ypset/ypset.c
84
tv.tv_sec = 15;
usr.sbin/ypset/ypset.c
85
tv.tv_usec = 0;
usr.sbin/ypset/ypset.c
87
client = clntudp_create(sin, YPBINDPROG, YPBINDVERS, tv, &sock);
usr.sbin/ypset/ypset.c
95
xdr_ypbind_setdom, &ypsd, xdr_void, NULL, tv);