Symbol: ts
bin/cp/utils.c
277
struct timespec ts[2];
bin/cp/utils.c
283
ts[0] = fs->st_atim;
bin/cp/utils.c
284
ts[1] = fs->st_mtim;
bin/cp/utils.c
285
if (fd >= 0 ? futimens(fd, ts) :
bin/cp/utils.c
286
utimensat(AT_FDCWD, to.p_path, ts, AT_SYMLINK_NOFOLLOW)) {
bin/ed/ed.h
111
char *ts; \
bin/ed/ed.h
113
if ((ts = realloc((b), ti += max((i), MINBUFSZ))) == NULL) { \
bin/ed/ed.h
120
(b) = ts; \
bin/ed/glbl.c
149
line_t **ts;
bin/ed/glbl.c
151
if ((ts = reallocarray(active_list,
bin/ed/glbl.c
159
active_list = ts;
bin/ksh/c_ksh.c
1025
struct tstate ts;
bin/ksh/c_ksh.c
1027
for (ktwalk(&ts, t); (ap = ktnext(&ts)); ) {
bin/ksh/c_sh.c
683
struct timespec ts;
bin/ksh/c_sh.c
685
TIMEVAL_TO_TIMESPEC(tv, &ts);
bin/ksh/c_sh.c
686
p_ts(shf, posix, &ts, width, prefix, suffix);
bin/ksh/c_sh.c
690
p_ts(struct shf *shf, int posix, struct timespec *ts, int width, char *prefix,
bin/ksh/c_sh.c
695
width, (long long)ts->tv_sec, ts->tv_nsec / 10000000,
bin/ksh/c_sh.c
699
width, (long long)ts->tv_sec / 60,
bin/ksh/c_sh.c
700
(long long)ts->tv_sec % 60,
bin/ksh/c_sh.c
701
ts->tv_nsec / 10000000, suffix);
bin/ksh/edit.c
864
struct tstate ts;
bin/ksh/edit.c
867
for (ktwalk(&ts, tp); (te = ktnext(&ts)); ) {
bin/ksh/eval.c
1182
XString ts;
bin/ksh/eval.c
1186
Xinit(ts, tp, 16, ATEMP);
bin/ksh/eval.c
1190
Xcheck(ts, tp);
bin/ksh/eval.c
1196
tilde(Xstring(ts, tp)) : NULL;
bin/ksh/eval.c
1197
Xfree(ts, tp);
bin/ksh/exec.c
941
struct tstate ts;
bin/ksh/exec.c
943
for (ktwalk(&ts, &taliases); (tp = ktnext(&ts)) != NULL; )
bin/ksh/table.c
159
ktwalk(struct tstate *ts, struct table *tp)
bin/ksh/table.c
161
ts->left = tp->size;
bin/ksh/table.c
162
ts->next = tp->tbls;
bin/ksh/table.c
166
ktnext(struct tstate *ts)
bin/ksh/table.c
168
while (--ts->left >= 0) {
bin/ksh/table.c
169
struct tbl *p = *ts->next++;
bin/ksh/table.c
217
struct tstate ts;
bin/ksh/table.c
221
ktwalk(&ts, tp);
bin/ksh/table.c
222
while ((te = ktnext(&ts))) {
bin/mv/cp.c
580
struct timespec ts[2];
bin/mv/cp.c
586
ts[0] = fs->st_atim;
bin/mv/cp.c
587
ts[1] = fs->st_mtim;
bin/mv/cp.c
588
if (fd >= 0 ? futimens(fd, ts) :
bin/mv/cp.c
589
utimensat(AT_FDCWD, to.p_path, ts, AT_SYMLINK_NOFOLLOW)) {
bin/mv/mv.c
264
struct timespec ts[2];
bin/mv/mv.c
334
ts[0] = sbp->st_atim;
bin/mv/mv.c
335
ts[1] = sbp->st_mtim;
bin/mv/mv.c
336
if (futimens(to_fd, ts))
bin/pax/ar_subs.c
194
struct timespec ts = arcn->sb.st_mtim;
bin/pax/ar_subs.c
195
ts.tv_nsec = (ts.tv_nsec / res) * res;
bin/pax/ar_subs.c
196
return timespeccmp(&ts, &sb.st_mtim, <=);
bin/pax/tar.c
1575
rd_time(struct timespec *ts, const char *keyword, char *p)
bin/pax/tar.c
1584
ts->tv_sec = strtonum(p, 0, MAX_TIME_T, &errstr);
bin/pax/tar.c
1590
ts->tv_nsec = 0;
bin/pax/tar.c
1601
ts->tv_nsec += (*q - '0') * multiplier;
games/bs/bs.c
1037
static ship_t ts;
games/bs/bs.c
1050
ts.x = x; ts.y = y;
games/bs/bs.c
1051
ts.hits = 1;
games/bs/bs.c
1057
used[E/2] = used[W/2] = (!(cpushipcanfit(ts.x,ts.y,cpushortest,E)));
games/bs/bs.c
1058
used[S/2] = used[N/2] = (!(cpushipcanfit(ts.x,ts.y,cpushortest,S)));
games/bs/bs.c
1064
x = ts.x + xincr[d*2]; y = ts.y + yincr[d*2];
games/bs/bs.c
1079
x = ts.x + xincr[d*2];
games/bs/bs.c
1080
y = ts.y + yincr[d*2];
games/bs/bs.c
1086
ts.x = x; ts.y = y; ts.dir = d*2; ts.hits++;
games/bs/bs.c
1093
x = ts.x + xincr[ts.dir];
games/bs/bs.c
1094
y = ts.y + yincr[ts.dir];
games/bs/bs.c
1099
ts.x = x; ts.y = y; ts.hits++;
games/bs/bs.c
1111
ts.dir = (ts.dir + 4) % 8;
games/bs/bs.c
1112
ts.x += (ts.hits-1) * xincr[ts.dir];
games/bs/bs.c
1113
ts.y += (ts.hits-1) * yincr[ts.dir];
games/bs/bs.c
1117
x = ts.x + xincr[ts.dir];
games/bs/bs.c
1118
y = ts.y + yincr[ts.dir];
games/bs/bs.c
1123
ts.x = x; ts.y = y; ts.hits++;
games/bs/bs.c
1178
ts.hits = 0;
games/bs/bs.c
1188
ts.x = x; ts.y = y; ts.hits = 1;
games/bs/bs.c
1191
while ((ONBOARD(ts.x, ts.y)) &&
games/bs/bs.c
1192
(hits[COMPUTER][(int)ts.x][(int)ts.y] == MARK_HIT))
games/bs/bs.c
1194
ts.x += xincr[d]; ts.y += yincr[d]; ts.hits++;
games/bs/bs.c
1196
if ((--ts.hits > 1) && (ONBOARD(ts.x, ts.y)) &&
games/bs/bs.c
1197
(hits[COMPUTER][(int)ts.x][(int)ts.y] == 0))
games/bs/bs.c
1199
ts.dir = d;
games/bs/bs.c
1200
ts.x -= xincr[d]; ts.y -= yincr[d];
games/bs/bs.c
1204
ts.x = x; ts.y = y; ts.hits = 1;
games/bs/bs.c
1209
if (ts.hits)
games/tetris/input.c
105
struct timespec ts;
games/tetris/input.c
108
ts.tv_sec = 0;
games/tetris/input.c
109
ts.tv_nsec = fallrate;
games/tetris/input.c
110
while (TS_POS(&ts))
games/tetris/input.c
111
if (rwait(&ts) && read(STDIN_FILENO, &c, 1) != 1)
games/tetris/input.c
53
#define TS_POS(ts) \
games/tetris/input.c
54
((ts)->tv_sec > 0 || ((ts)->tv_sec == 0 && (ts)->tv_nsec > 0))
lib/libc/asr/asr.c
430
struct timespec ts;
lib/libc/asr/asr.c
440
if (WRAP(clock_gettime)(CLOCK_MONOTONIC, &ts) == -1)
lib/libc/asr/asr.c
443
if ((ts.tv_sec - asr->a_rtime) < RELOAD_DELAY && asr->a_rtime != 0)
lib/libc/asr/asr.c
445
asr->a_rtime = ts.tv_sec;
lib/libc/gen/times.c
45
struct timespec ts;
lib/libc/gen/times.c
55
if (WRAP(clock_gettime)(CLOCK_MONOTONIC, &ts) == -1)
lib/libc/gen/times.c
57
return (ts.tv_sec * CLK_TCK + ts.tv_nsec / (1000000000 / CLK_TCK));
lib/libc/gen/timespec_get.c
36
timespec_get(struct timespec *ts, int base)
lib/libc/gen/timespec_get.c
40
if (WRAP(clock_gettime)(CLOCK_REALTIME, ts) == -1)
lib/libc/net/res_random.c
178
struct timespec ts;
lib/libc/net/res_random.c
222
WRAP(clock_gettime)(CLOCK_MONOTONIC, &ts);
lib/libc/net/res_random.c
223
ru_reseed = ts.tv_sec + RU_OUT;
lib/libc/net/res_random.c
230
struct timespec ts;
lib/libc/net/res_random.c
235
WRAP(clock_gettime)(CLOCK_MONOTONIC, &ts);
lib/libc/net/res_random.c
240
if (ru_counter >= RU_MAX || ts.tv_sec > ru_reseed || pid != ru_pid) {
lib/libc/sys/microtime.c
119
_nanoruntime(struct timespec *ts, struct timekeep *tk)
lib/libc/sys/microtime.c
125
BINTIME_TO_TIMESPEC(&bt, ts);
lib/libc/sys/w_recvmmsg.c
23
struct timespec *ts)
lib/libc/sys/w_recvmmsg.c
28
ret = HIDDEN(recvmmsg)(fd, mmsg, vlen, flags, ts);
lib/libc/time/localtime.c
521
struct state ts;
lib/libc/time/localtime.c
525
result = tzparse(&up->buf[1], &ts, FALSE);
lib/libc/time/localtime.c
526
if (result == 0 && ts.typecnt == 2 &&
lib/libc/time/localtime.c
527
sp->charcnt + ts.charcnt <= TZ_MAX_CHARS) {
lib/libc/time/localtime.c
529
ts.ttis[i].tt_abbrind +=
lib/libc/time/localtime.c
531
for (i = 0; i < ts.charcnt; ++i)
lib/libc/time/localtime.c
533
ts.chars[i];
lib/libc/time/localtime.c
535
while (i < ts.timecnt &&
lib/libc/time/localtime.c
536
ts.ats[i] <=
lib/libc/time/localtime.c
539
while (i < ts.timecnt &&
lib/libc/time/localtime.c
542
ts.ats[i];
lib/libc/time/localtime.c
545
ts.types[i];
lib/libc/time/localtime.c
549
sp->ttis[sp->typecnt++] = ts.ttis[0];
lib/libc/time/localtime.c
550
sp->ttis[sp->typecnt++] = ts.ttis[1];
lib/libcrypto/arc4random/getentropy_aix.c
203
struct timespec ts;
lib/libcrypto/arc4random/getentropy_aix.c
258
HX(clock_gettime(cl[ii], &ts) == -1, ts);
lib/libcrypto/arc4random/getentropy_aix.c
267
ts.tv_sec = 0;
lib/libcrypto/arc4random/getentropy_aix.c
268
ts.tv_nsec = 1;
lib/libcrypto/arc4random/getentropy_aix.c
269
(void) nanosleep(&ts, NULL);
lib/libcrypto/arc4random/getentropy_aix.c
328
&ts)) == -1, ts);
lib/libcrypto/arc4random/getentropy_aix.c
330
cnt += (int)ts.tv_nsec;
lib/libcrypto/arc4random/getentropy_hpux.c
207
struct timespec ts;
lib/libcrypto/arc4random/getentropy_hpux.c
244
HX(clock_gettime(cl[ii], &ts) == -1, ts);
lib/libcrypto/arc4random/getentropy_hpux.c
261
ts.tv_sec = 0;
lib/libcrypto/arc4random/getentropy_hpux.c
262
ts.tv_nsec = 1;
lib/libcrypto/arc4random/getentropy_hpux.c
263
(void) nanosleep(&ts, NULL);
lib/libcrypto/arc4random/getentropy_hpux.c
322
&ts)) == -1, ts);
lib/libcrypto/arc4random/getentropy_hpux.c
324
cnt += (int)ts.tv_nsec;
lib/libcrypto/arc4random/getentropy_linux.c
324
struct timespec ts;
lib/libcrypto/arc4random/getentropy_linux.c
357
HX(clock_gettime(cl[ii], &ts) == -1, ts);
lib/libcrypto/arc4random/getentropy_linux.c
366
ts.tv_sec = 0;
lib/libcrypto/arc4random/getentropy_linux.c
367
ts.tv_nsec = 1;
lib/libcrypto/arc4random/getentropy_linux.c
368
(void) nanosleep(&ts, NULL);
lib/libcrypto/arc4random/getentropy_linux.c
428
&ts)) == -1, ts);
lib/libcrypto/arc4random/getentropy_linux.c
430
cnt += (int)ts.tv_nsec;
lib/libcrypto/arc4random/getentropy_osx.c
210
struct timespec ts;
lib/libcrypto/arc4random/getentropy_osx.c
280
ts.tv_sec = 0;
lib/libcrypto/arc4random/getentropy_osx.c
281
ts.tv_nsec = 1;
lib/libcrypto/arc4random/getentropy_osx.c
282
(void) nanosleep(&ts, NULL);
lib/libcrypto/arc4random/getentropy_solaris.c
243
struct timespec ts;
lib/libcrypto/arc4random/getentropy_solaris.c
277
HX(clock_gettime(cl[ii], &ts) == -1, ts);
lib/libcrypto/arc4random/getentropy_solaris.c
287
ts.tv_sec = 0;
lib/libcrypto/arc4random/getentropy_solaris.c
288
ts.tv_nsec = 1;
lib/libcrypto/arc4random/getentropy_solaris.c
289
(void) nanosleep(&ts, NULL);
lib/libcrypto/arc4random/getentropy_solaris.c
348
&ts)) == -1, ts);
lib/libcrypto/arc4random/getentropy_solaris.c
350
cnt += (int)ts.tv_nsec;
lib/libcrypto/conf/conf_api.c
102
(void)sk_CONF_VALUE_delete_ptr(ts, v);
lib/libcrypto/conf/conf_api.c
91
STACK_OF(CONF_VALUE) *ts;
lib/libcrypto/conf/conf_api.c
93
ts = (STACK_OF(CONF_VALUE) *)section->value;
lib/libcrypto/conf/conf_api.c
96
if (!sk_CONF_VALUE_push(ts, value)) {
lib/libcrypto/ocsp/ocsp_prn.c
101
for (p = ts; p < ts + len; p++)
lib/libcrypto/ocsp/ocsp_prn.c
97
table2string(long s, const OCSP_TBLSTR *ts, int len)
lib/libcurses/base/lib_box.c
68
chtype ts, chtype bs,
lib/libcurses/base/lib_box.c
80
_tracechtype2(3, ts),
lib/libcurses/base/lib_box.c
92
RENDER_WITH_DEFAULT(ts, ACS_HLINE);
lib/libcurses/curses.h
1243
#define border(ls, rs, ts, bs, tl, tr, bl, br) wborder(stdscr, ls, rs, ts, bs, tl, tr, bl, br)
lib/libcurses/widechar/lib_box_set.c
50
const ARG_CH_T ts, const ARG_CH_T bs,
lib/libcurses/widechar/lib_box_set.c
62
_tracech_t2(3, ts),
lib/libcurses/widechar/lib_box_set.c
76
RENDER_WITH_DEFAULT(ts, WACS_HLINE);
lib/libedit/terminal.c
1275
char **ts;
lib/libedit/terminal.c
1291
for (t = tstr, ts = el->el_terminal.t_str; t->name != NULL; t++, ts++) {
lib/libedit/terminal.c
1293
if (*ts && **ts) {
lib/libedit/terminal.c
1295
ct_decode_string(*ts, &el->el_scratch)),
lib/libedit/terminal.c
1315
const struct termcapstr *ts;
lib/libedit/terminal.c
1330
for (ts = tstr; ts->name != NULL; ts++)
lib/libedit/terminal.c
1331
if (strcmp(ts->name, what) == 0)
lib/libedit/terminal.c
1334
if (ts->name != NULL) {
lib/libedit/terminal.c
1335
terminal_alloc(el, ts, how);
lib/libedit/terminal.c
1392
const struct termcapstr *ts;
lib/libedit/terminal.c
1406
for (ts = tstr; ts->name != NULL; ts++)
lib/libedit/terminal.c
1407
if (strcmp(ts->name, what) == 0)
lib/libedit/terminal.c
1410
if (ts->name != NULL) {
lib/libedit/terminal.c
1411
*(char **)how = el->el_terminal.t_str[ts - tstr];
lib/libedit/terminal.c
959
struct ttysize ts;
lib/libedit/terminal.c
960
if (ioctl(el->el_infd, TIOCGSIZE, &ts) != -1) {
lib/libedit/terminal.c
961
if (ts.ts_cols)
lib/libedit/terminal.c
962
*cols = ts.ts_cols;
lib/libedit/terminal.c
963
if (ts.ts_lines)
lib/libedit/terminal.c
964
*lins = ts.ts_lines;
lib/libevent/event.c
83
struct timespec ts;
lib/libevent/event.c
90
if (clock_gettime(CLOCK_MONOTONIC, &ts) == -1)
lib/libevent/event.c
93
TIMESPEC_TO_TIMEVAL(tp, &ts);
lib/libevent/kqueue.c
190
struct timespec ts, *ts_p = NULL;
lib/libevent/kqueue.c
194
TIMEVAL_TO_TIMESPEC(tv, &ts);
lib/libevent/kqueue.c
195
ts_p = &ts;
lib/libfido2/src/hid_unix.c
52
struct timespec ts;
lib/libfido2/src/hid_unix.c
64
ts.tv_sec = ms / 1000;
lib/libfido2/src/hid_unix.c
65
ts.tv_nsec = (ms % 1000) * 1000000;
lib/libfido2/src/hid_unix.c
68
if ((r = ppoll(&pfd, 1, ms > -1 ? &ts : NULL, sigmask)) < 1) {
lib/libfido2/src/io.c
149
struct timespec ts;
lib/libfido2/src/io.c
152
if (fido_time_now(&ts) != 0)
lib/libfido2/src/io.c
157
if (fido_time_delta(&ts, ms) != 0)
lib/libfido2/src/io.c
182
struct timespec ts;
lib/libfido2/src/io.c
187
if (fido_time_now(&ts) != 0)
lib/libfido2/src/io.c
194
return (fido_time_delta(&ts, ms));
lib/libfido2/src/io.c
297
struct timespec ts;
lib/libfido2/src/io.c
300
if (fido_time_now(&ts) != 0)
lib/libfido2/src/io.c
305
if (fido_time_delta(&ts, ms) != 0)
lib/libfido2/src/io.c
35
struct timespec ts;
lib/libfido2/src/io.c
38
if (fido_time_now(&ts) != 0)
lib/libfido2/src/io.c
43
if (fido_time_delta(&ts, ms) != 0)
lib/libfido2/src/nfc.c
206
struct timespec ts;
lib/libfido2/src/nfc.c
209
if (fido_time_now(&ts) != 0)
lib/libfido2/src/nfc.c
217
if (fido_time_delta(&ts, ms) != 0)
lib/libfido2/src/time.c
11
timespec_to_ms(const struct timespec *ts)
lib/libfido2/src/time.c
15
if (ts->tv_sec < 0 || ts->tv_nsec < 0 ||
lib/libfido2/src/time.c
16
ts->tv_nsec >= 1000000000LL)
lib/libfido2/src/time.c
19
if ((uint64_t)ts->tv_sec >= INT64_MAX / 1000LL)
lib/libfido2/src/time.c
22
x = ts->tv_sec * 1000LL;
lib/libfido2/src/time.c
23
y = ts->tv_nsec / 1000000LL;
lib/libfuse/fuse_ops.c
758
struct timespec ts[2];
lib/libfuse/fuse_ops.c
790
ts[0] = attr->st_atim;
lib/libfuse/fuse_ops.c
791
ts[1] = attr->st_mtim;
lib/libfuse/fuse_ops.c
792
err = f->op.utimens(realname, ts);
lib/libkeynote/parse_assertion.c
371
char *ks, *ke, *ts, *te = NULL;
lib/libkeynote/parse_assertion.c
442
ts = as->as_buf + i + 1; /* Skip ':' */
lib/libkeynote/parse_assertion.c
502
keynote_get_envlist(ts, te, 1);
lib/libkeynote/parse_assertion.c
520
as->as_env = keynote_get_envlist(ts, te, 0);
lib/libkeynote/parse_assertion.c
536
as->as_authorizer_string_s = ts;
lib/libkeynote/parse_assertion.c
548
as->as_keypred_s = ts;
lib/libkeynote/parse_assertion.c
560
as->as_conditions_s = ts;
lib/libkeynote/parse_assertion.c
574
as->as_signature_string_s = ts;
lib/libkeynote/parse_assertion.c
586
as->as_comment_s = ts;
lib/libpcap/pcap-int.h
128
struct bpf_timeval ts; /* time stamp */
lib/libpcap/pcap.h
93
struct bpf_timeval ts; /* time stamp */
lib/libpcap/savefile.c
284
hdr->ts.tv_sec = SWAPLONG(hdr->ts.tv_sec);
lib/libpcap/savefile.c
285
hdr->ts.tv_usec = SWAPLONG(hdr->ts.tv_usec);
lib/libsndio/amsg.h
104
} ts;
lib/libsndio/mio_aucat.c
71
delta = ntohl(hdl->aucat.rmsg.u.ts.delta);
lib/libsndio/sio.c
102
struct timespec ts;
lib/libsndio/sio.c
121
clock_gettime(CLOCK_MONOTONIC, &ts);
lib/libsndio/sio.c
122
hdl->start_nsec = 1000000000LL * ts.tv_sec + ts.tv_nsec;
lib/libsndio/sio.c
462
struct timespec ts;
lib/libsndio/sio.c
468
clock_gettime(CLOCK_MONOTONIC, &ts);
lib/libsndio/sio.c
499
1000000000LL * ts.tv_sec + ts.tv_nsec - hdl->start_nsec,
lib/libsndio/sio_aucat.c
102
delta = ntohl(hdl->aucat.rmsg.u.ts.delta);
lib/libsndio/sio_aucat.c
108
delta = ntohl(hdl->aucat.rmsg.u.ts.delta);
libexec/ftpd/ftpd.c
1000
struct stat ts;
libexec/ftpd/ftpd.c
1005
if (stat(rootdir, &ts) == -1) {
libexec/getty/subr.c
409
struct timespec ts;
libexec/getty/subr.c
420
ts.tv_sec = 0;
libexec/getty/subr.c
421
ts.tv_nsec = 20 * 1000;
libexec/getty/subr.c
422
nanosleep(&ts, NULL);
libexec/snmpd/snmpd_metrics/mib.c
1638
struct pfr_tstats ts;
libexec/snmpd/snmpd_metrics/mib.c
1658
if (pft_get_table(&ts, idx)) {
libexec/snmpd/snmpd_metrics/mib.c
1667
agentx_varbind_string(vb, ts.pfrts_name);
libexec/snmpd/snmpd_metrics/mib.c
1669
agentx_varbind_integer(vb, ts.pfrts_cnt);
libexec/snmpd/snmpd_metrics/mib.c
1671
agentx_varbind_integer(vb, ts.pfrts_refcnt[PFR_REFCNT_ANCHOR]);
libexec/snmpd/snmpd_metrics/mib.c
1673
agentx_varbind_integer(vb, ts.pfrts_refcnt[PFR_REFCNT_RULE]);
libexec/snmpd/snmpd_metrics/mib.c
1675
agentx_varbind_counter64(vb, ts.pfrts_match);
libexec/snmpd/snmpd_metrics/mib.c
1677
agentx_varbind_counter64(vb, ts.pfrts_nomatch);
libexec/snmpd/snmpd_metrics/mib.c
1679
agentx_varbind_counter64(vb, ts.pfrts_packets[IN][PFR_OP_PASS]);
libexec/snmpd/snmpd_metrics/mib.c
1681
agentx_varbind_counter64(vb, ts.pfrts_bytes[IN][PFR_OP_PASS]);
libexec/snmpd/snmpd_metrics/mib.c
1683
agentx_varbind_counter64(vb, ts.pfrts_packets[IN][PFR_OP_BLOCK]);
libexec/snmpd/snmpd_metrics/mib.c
1685
agentx_varbind_counter64(vb, ts.pfrts_bytes[IN][PFR_OP_BLOCK]);
libexec/snmpd/snmpd_metrics/mib.c
1687
agentx_varbind_counter64(vb, ts.pfrts_packets[IN][PFR_OP_XPASS]);
libexec/snmpd/snmpd_metrics/mib.c
1689
agentx_varbind_counter64(vb, ts.pfrts_bytes[IN][PFR_OP_XPASS]);
libexec/snmpd/snmpd_metrics/mib.c
1691
agentx_varbind_counter64(vb, ts.pfrts_packets[OUT][PFR_OP_PASS]);
libexec/snmpd/snmpd_metrics/mib.c
1693
agentx_varbind_counter64(vb, ts.pfrts_bytes[OUT][PFR_OP_PASS]);
libexec/snmpd/snmpd_metrics/mib.c
1695
agentx_varbind_counter64(vb, ts.pfrts_packets[OUT][PFR_OP_BLOCK]);
libexec/snmpd/snmpd_metrics/mib.c
1697
agentx_varbind_counter64(vb, ts.pfrts_bytes[OUT][PFR_OP_BLOCK]);
libexec/snmpd/snmpd_metrics/mib.c
1699
agentx_varbind_counter64(vb, ts.pfrts_packets[OUT][PFR_OP_XPASS]);
libexec/snmpd/snmpd_metrics/mib.c
1701
agentx_varbind_counter64(vb, ts.pfrts_bytes[OUT][PFR_OP_XPASS]);
libexec/snmpd/snmpd_metrics/mib.c
1703
tzero = (time(NULL) - ts.pfrts_tzero) * 100;
libexec/snmpd/snmpd_metrics/mib.c
1706
agentx_varbind_counter64(vb, ts.pfrts_packets[IN][PFR_OP_MATCH]);
libexec/snmpd/snmpd_metrics/mib.c
1708
agentx_varbind_counter64(vb, ts.pfrts_bytes[IN][PFR_OP_MATCH]);
libexec/snmpd/snmpd_metrics/mib.c
1710
agentx_varbind_counter64(vb, ts.pfrts_packets[OUT][PFR_OP_MATCH]);
libexec/snmpd/snmpd_metrics/mib.c
1712
agentx_varbind_counter64(vb, ts.pfrts_bytes[OUT][PFR_OP_MATCH]);
libexec/snmpd/snmpd_metrics/pf.c
294
const struct pfr_tstats *ts;
libexec/snmpd/snmpd_metrics/pf.c
302
PFRB_FOREACH(ts, &b) {
libexec/snmpd/snmpd_metrics/pf.c
303
if (!(ts->pfrts_flags & PFR_TFLAG_ACTIVE))
libexec/snmpd/snmpd_metrics/pf.c
310
if (ts == NULL) {
libexec/snmpd/snmpd_metrics/pf.c
315
bcopy(ts, rts, sizeof(struct pfr_tstats));
libexec/snmpd/snmpd_metrics/pf.c
325
const struct pfr_tstats *ts;
libexec/snmpd/snmpd_metrics/pf.c
333
PFRB_FOREACH(ts, &b) {
libexec/snmpd/snmpd_metrics/pf.c
334
if (!(ts->pfrts_flags & PFR_TFLAG_ACTIVE))
libexec/snmpd/snmpd_metrics/pf.c
366
struct pfr_tstats ts;
libexec/snmpd/snmpd_metrics/pf.c
370
if (pft_get_table(&ts, tblidx))
libexec/snmpd/snmpd_metrics/pf.c
374
if (strlcpy(filter.pfrt_name, ts.pfrts_name,
libexec/snmpd/snmpd_metrics/pf.c
408
struct pfr_tstats ts;
libexec/snmpd/snmpd_metrics/pf.c
415
for (i = *tblidx; !pft_get_table(&ts, i); i++) {
libexec/snmpd/snmpd_metrics/pf.c
417
if (strlcpy(filter.pfrt_name, ts.pfrts_name,
libexec/snmpd/snmpd_metrics/pf.c
466
struct pfr_tstats ts;
libexec/snmpd/snmpd_metrics/pf.c
470
if (pft_get_table(&ts, 1))
libexec/snmpd/snmpd_metrics/pf.c
474
if (strlcpy(filter.pfrt_name, ts.pfrts_name,
regress/lib/libc/fread/fread.c
62
char *ts = test_string;
regress/lib/libc/fread/fread.c
66
nwritten = write(fd, ts, left);
regress/lib/libc/fread/fread.c
70
ts += nwritten;
regress/lib/libc/fread/fread.c
79
char *ts = test_string;
regress/lib/libc/printf/string.c
296
ts("<%s>", "text", "<text>");
regress/lib/libc/printf/string.c
297
ts("<%-s>", "text", "<text>");
regress/lib/libc/printf/string.c
298
ts("<%6s>", "text", "< text>");
regress/lib/libc/printf/string.c
299
ts("<%-6s>", "text", "<text >");
regress/lib/libc/printf/string.c
300
ts("<%.2s>", "text", "<te>");
regress/lib/libc/printf/string.c
301
ts("<%4.2s>", "text", "< te>");
regress/lib/libc/printf/string.c
302
ts("<%-4.2s>", "text", "<te >");
regress/lib/libc/printf/string.c
320
ts("<%#s>", "text", "<text>");
regress/lib/libc/printf/string.c
321
ts("<% -6s>", "text", "<text >");
regress/lib/libc/printf/string.c
322
ts("<%+-6s>", "text", "<text >");
regress/lib/libc/printf/string.c
323
ts("<%06s>", "text", "<00text>");
regress/lib/libc/printf/string.c
324
ts("<%-06s>", "text", "<text >");
regress/lib/libc/printf/string.c
325
ts("<%hs>", "text", "<text>");
regress/lib/libc/printf/string.c
33
void ts(const char *, const char *, const char *);
regress/lib/libc/printf/string.c
368
ts("<%lls>", "text", "<text>");
regress/lib/libc/printf/string.c
422
ts("<%lls>", "text", "<text>");
regress/lib/libc/sys/t_clock_gettime.c
181
struct timespec ts;
regress/lib/libc/sys/t_clock_gettime.c
194
ts.tv_sec = 0;
regress/lib/libc/sys/t_clock_gettime.c
195
ts.tv_nsec = 100000000;
regress/lib/libc/sys/t_clock_gettime.c
196
(void)nanosleep(&ts, NULL);
regress/lib/libc/sys/t_recvmmsg.c
130
struct timespec ts = { 1, 0 };
regress/lib/libc/sys/t_recvmmsg.c
132
MSG_WAITALL, &ts);
regress/lib/libc/sys/t_select.c
124
if (pselect(1, &rset, NULL, NULL, ts, &set) == -1) {
regress/lib/libc/sys/t_select.c
130
if (ts)
regress/lib/libc/sys/t_select.c
96
child(const struct timespec *ts)
regress/lib/libpthread/dlopen/dlopen.c
273
struct timespec ts;
regress/lib/libpthread/dlopen/dlopen.c
276
ts.tv_sec = 2;
regress/lib/libpthread/dlopen/dlopen.c
277
ts.tv_nsec = 0;
regress/lib/libpthread/dlopen/dlopen.c
278
retval[0] = nanosleep(&ts, &ts);
regress/lib/libpthread/pthread_mutex/pthread_mutex.c
235
struct timespec ts;
regress/lib/libpthread/pthread_mutex/pthread_mutex.c
249
CHECKe(clock_gettime(CLOCK_REALTIME, &ts));
regress/lib/libpthread/pthread_mutex/pthread_mutex.c
250
ts.tv_sec += 2;
regress/lib/libpthread/pthread_mutex/pthread_mutex.c
251
ASSERTe(pthread_mutex_timedlock(&mutex_normal, &ts), == ETIMEDOUT);
regress/lib/libpthread/restart/kevent/kevent.c
25
struct timespec ts = { 10, 0 };
regress/lib/libpthread/restart/kevent/kevent.c
29
ASSERT(kevent(kq, NULL, 0, &ev, 1, &ts) == -1);
regress/lib/libpthread/semaphore/sem_timedwait/sem_timedwait.c
100
timespecadd(&ts, &delay, &ts);
regress/lib/libpthread/semaphore/sem_timedwait/sem_timedwait.c
102
ts2.tv_sec, ts2.tv_nsec, ts.tv_sec, ts.tv_nsec);
regress/lib/libpthread/semaphore/sem_timedwait/sem_timedwait.c
103
ASSERT(timespeccmp(&ts2, &ts, <=));
regress/lib/libpthread/semaphore/sem_timedwait/sem_timedwait.c
114
struct timespec ts;
regress/lib/libpthread/semaphore/sem_timedwait/sem_timedwait.c
118
CHECKr(clock_gettime(CLOCK_REALTIME, &ts));
regress/lib/libpthread/semaphore/sem_timedwait/sem_timedwait.c
119
ts.tv_sec += 3;
regress/lib/libpthread/semaphore/sem_timedwait/sem_timedwait.c
120
r = sem_timedwait(semp, &ts);
regress/lib/libpthread/semaphore/sem_timedwait/sem_timedwait.c
37
struct timespec delay, ts, ts2;
regress/lib/libpthread/semaphore/sem_timedwait/sem_timedwait.c
41
CHECKr(clock_gettime(CLOCK_REALTIME, &ts));
regress/lib/libpthread/semaphore/sem_timedwait/sem_timedwait.c
42
ts.tv_sec += 3;
regress/lib/libpthread/semaphore/sem_timedwait/sem_timedwait.c
43
CHECKn(sem_timedwait(&sem, &ts));
regress/lib/libpthread/semaphore/sem_timedwait/sem_timedwait.c
80
CHECKr(clock_gettime(CLOCK_REALTIME, &ts));
regress/lib/libpthread/semaphore/sem_timedwait/sem_timedwait.c
81
ts.tv_sec += 2;
regress/lib/libpthread/semaphore/sem_timedwait/sem_timedwait.c
82
CHECKn(sem_timedwait(&sem, &ts));
regress/lib/libpthread/semaphore/sem_timedwait/sem_timedwait.c
87
ts.tv_sec, ts.tv_nsec, ts2.tv_sec, ts2.tv_nsec);
regress/lib/libpthread/semaphore/sem_timedwait/sem_timedwait.c
90
ASSERT(timespeccmp(&ts, &ts2, <=));
regress/lib/libpthread/setsockopt/1/setsockopt1.c
55
struct timespec ts;
regress/lib/libpthread/setsockopt/1/setsockopt1.c
72
TIMEVAL_TO_TIMESPEC(&to, &ts);
regress/lib/libpthread/setsockopt/1/setsockopt1.c
74
check_timeout(s, 3, &ts);
regress/lib/libpthread/setsockopt/1/setsockopt1.c
75
check_timeout(s2, 3, &ts);
regress/lib/libpthread/setsockopt/1/setsockopt1.c
76
check_timeout(s3, 3, &ts);
regress/lib/libpthread/setsockopt/1/setsockopt1.c
80
TIMEVAL_TO_TIMESPEC(&to, &ts);
regress/lib/libpthread/setsockopt/1/setsockopt1.c
82
check_timeout(s, 2, &ts);
regress/lib/libpthread/setsockopt/1/setsockopt1.c
83
check_timeout(s2, 2, &ts);
regress/lib/libpthread/setsockopt/1/setsockopt1.c
84
check_timeout(s3, 2, &ts);
regress/lib/libpthread/setsockopt/2/setsockopt2.c
58
struct timespec ts;
regress/lib/libpthread/setsockopt/2/setsockopt2.c
75
TIMEVAL_TO_TIMESPEC(&to, &ts);
regress/lib/libpthread/setsockopt/2/setsockopt2.c
81
TIMEVAL_TO_TIMESPEC(&to, &ts);
regress/lib/libpthread/setsockopt/2/setsockopt2.c
83
check_timeout(s, 2, &ts);
regress/lib/libpthread/setsockopt/2/setsockopt2.c
84
check_timeout(s2, 2, &ts);
regress/lib/libpthread/setsockopt/2/setsockopt2.c
85
check_timeout(s3, 2, &ts);
regress/lib/libpthread/setsockopt/2/setsockopt2.c
89
ts.tv_sec = 1; /* the fd timeout was changed in the child */
regress/lib/libpthread/setsockopt/2/setsockopt2.c
90
check_timeout(s, 2, &ts);
regress/lib/libpthread/setsockopt/2/setsockopt2.c
91
check_timeout(s2, 2, &ts);
regress/lib/libpthread/setsockopt/2/setsockopt2.c
92
check_timeout(s3, 2, &ts);
regress/lib/libpthread/setsockopt/2/setsockopt2.c
95
check_timeout(s2, 2, &ts);
regress/lib/libpthread/setsockopt/2/setsockopt2.c
96
check_timeout(s3, 2, &ts);
regress/lib/libpthread/setsockopt/3a/setsockopt3a.c
57
struct timespec ts;
regress/lib/libpthread/setsockopt/3a/setsockopt3a.c
70
TIMEVAL_TO_TIMESPEC(&to, &ts);
regress/lib/libpthread/setsockopt/3a/setsockopt3a.c
71
check_timeout(s, 3, &ts);
regress/lib/libpthread/setsockopt/3a/setsockopt3a.c
74
check_timeout(s2, 3, &ts);
regress/lib/libpthread/setsockopt/3a/setsockopt3a.c
75
check_timeout(s3, 3, &ts);
regress/sys/kern/kqueue/kqueue-pipe.c
51
struct timespec ts;
regress/sys/kern/kqueue/kqueue-pipe.c
73
ts.tv_sec = 0;
regress/sys/kern/kqueue/kqueue-pipe.c
74
ts.tv_nsec = 0;
regress/sys/kern/kqueue/kqueue-pipe.c
75
n = kevent(kq, NULL, 0, &ev, 1, &ts);
regress/sys/kern/kqueue/kqueue-pipe.c
80
ts.tv_sec = 0;
regress/sys/kern/kqueue/kqueue-pipe.c
81
ts.tv_nsec = 0;
regress/sys/kern/kqueue/kqueue-pipe.c
82
n = kevent(kq, NULL, 0, &ev, 1, &ts);
regress/sys/kern/kqueue/kqueue-process.c
121
ASS(kevent(kq, NULL, 0, &ke, 1, &ts) == 1,
regress/sys/kern/kqueue/kqueue-process.c
28
struct timespec ts;
regress/sys/kern/kqueue/kqueue-process.c
38
ts.tv_sec = 10;
regress/sys/kern/kqueue/kqueue-process.c
39
ts.tv_nsec = 0;
regress/sys/kern/kqueue/kqueue-process.c
77
ASS(kevent(kq, NULL, 0, &ke, 1, &ts) == 1,
regress/sys/kern/kqueue/kqueue-pty.c
123
struct timespec ts;
regress/sys/kern/kqueue/kqueue-pty.c
139
ts.tv_sec = 5;
regress/sys/kern/kqueue/kqueue-pty.c
140
ts.tv_nsec = 0;
regress/sys/kern/kqueue/kqueue-pty.c
141
n = kevent(kq, NULL, 0, ev, 1, &ts);
regress/sys/kern/kqueue/kqueue-pty.c
22
struct timespec ts;
regress/sys/kern/kqueue/kqueue-pty.c
25
ts.tv_sec = 0;
regress/sys/kern/kqueue/kqueue-pty.c
26
ts.tv_nsec = 0;
regress/sys/kern/kqueue/kqueue-pty.c
27
if ((n = kevent(kq, NULL, 0, ev, n, &ts)) < 0)
regress/sys/kern/kqueue/kqueue-random.c
23
struct timespec ts;
regress/sys/kern/kqueue/kqueue-random.c
42
ts.tv_sec = 0;
regress/sys/kern/kqueue/kqueue-random.c
43
ts.tv_nsec = 0;
regress/sys/kern/kqueue/kqueue-random.c
44
n = kevent(kq, NULL, 0, &ev, 1, &ts);
regress/sys/kern/kqueue/kqueue-regress.c
197
struct timespec ts;
regress/sys/kern/kqueue/kqueue-regress.c
236
ts.tv_sec = 5;
regress/sys/kern/kqueue/kqueue-regress.c
237
ts.tv_nsec = 0;
regress/sys/kern/kqueue/kqueue-signal.c
30
struct timespec ts;
regress/sys/kern/kqueue/kqueue-signal.c
32
ts.tv_sec = 10;
regress/sys/kern/kqueue/kqueue-signal.c
33
ts.tv_nsec = 0;
regress/sys/kern/kqueue/kqueue-signal.c
35
ASS(kevent(kq, NULL, 0, &ke, 1, &ts) == 1,
regress/sys/kern/kqueue/kqueue-timer.c
134
ts.tv_sec = 2; /* wait 2s for kqueue timeout */
regress/sys/kern/kqueue/kqueue-timer.c
135
ts.tv_nsec = 0;
regress/sys/kern/kqueue/kqueue-timer.c
137
n = kevent(kq, NULL, 0, &ev, 1, &ts);
regress/sys/kern/kqueue/kqueue-timer.c
141
timespecsub(&end, &start, &ts);
regress/sys/kern/kqueue/kqueue-timer.c
142
usecs = ts.tv_sec * 1000000 + ts.tv_nsec / 1000;
regress/sys/kern/kqueue/kqueue-timer.c
177
n = kevent(kq, NULL, 0, &ev, 1, &ts);
regress/sys/kern/kqueue/kqueue-timer.c
181
timespecsub(&end, &start, &ts);
regress/sys/kern/kqueue/kqueue-timer.c
182
usecs = ts.tv_sec * 1000000 + ts.tv_nsec / 1000;
regress/sys/kern/kqueue/kqueue-timer.c
188
ts.tv_sec = 2; /* wait 2s for kqueue timeout */
regress/sys/kern/kqueue/kqueue-timer.c
189
ts.tv_nsec = 0;
regress/sys/kern/kqueue/kqueue-timer.c
191
n = kevent(kq, NULL, 0, &ev, 1, &ts);
regress/sys/kern/kqueue/kqueue-timer.c
262
struct timespec ts, start, end;
regress/sys/kern/kqueue/kqueue-timer.c
286
ts.tv_sec = 0;
regress/sys/kern/kqueue/kqueue-timer.c
287
ts.tv_nsec = 0;
regress/sys/kern/kqueue/kqueue-timer.c
288
n = kevent(kq, NULL, 0, &ev, 1, &ts);
regress/sys/kern/kqueue/kqueue-timer.c
304
timespecsub(&end, &start, &ts);
regress/sys/kern/kqueue/kqueue-timer.c
305
msecs = ts.tv_sec * 1000 + ts.tv_nsec / 1000000;
regress/sys/kern/kqueue/kqueue-timer.c
39
struct timespec ts, start, end, now;
regress/sys/kern/kqueue/kqueue-timer.c
54
ts.tv_sec = 2; /* wait 2s for kqueue timeout */
regress/sys/kern/kqueue/kqueue-timer.c
55
ts.tv_nsec = 0;
regress/sys/kern/kqueue/kqueue-timer.c
57
n = kevent(kq, NULL, 0, &ev, 1, &ts);
regress/sys/kern/kqueue/kqueue-timer.c
70
ts.tv_sec = 2; /* wait 2s for kqueue timeout */
regress/sys/kern/kqueue/kqueue-timer.c
71
ts.tv_nsec = 0;
regress/sys/kern/kqueue/kqueue-timer.c
73
n = kevent(kq, NULL, 0, &ev, 1, &ts);
regress/sys/kern/kqueue/kqueue-timer.c
88
ts.tv_sec = 2; /* wait 2s for kqueue timeout */
regress/sys/kern/kqueue/kqueue-timer.c
89
ts.tv_nsec = 0;
regress/sys/kern/kqueue/kqueue-timer.c
91
n = kevent(kq, NULL, 0, &ev, 1, &ts);
regress/sys/kern/kqueue/kqueue-user.c
100
n = kevent(kq, kev, 1, kev, 2, &ts);
regress/sys/kern/kqueue/kqueue-user.c
104
n = kevent(kq, kev, 1, kev, 2, &ts);
regress/sys/kern/kqueue/kqueue-user.c
111
n = kevent(kq, NULL, 0, kev, 2, &ts);
regress/sys/kern/kqueue/kqueue-user.c
115
n = kevent(kq, kev, 1, kev, 2, &ts);
regress/sys/kern/kqueue/kqueue-user.c
123
n = kevent(kq, kev, 1, kev, 2, &ts);
regress/sys/kern/kqueue/kqueue-user.c
128
n = kevent(kq, kev, 1, kev, 2, &ts);
regress/sys/kern/kqueue/kqueue-user.c
131
n = kevent(kq, kev, 1, kev, 2, &ts);
regress/sys/kern/kqueue/kqueue-user.c
135
n = kevent(kq, kev, 1, kev, 2, &ts);
regress/sys/kern/kqueue/kqueue-user.c
32
const struct timespec ts = { 0, 10000 };
regress/sys/kern/kqueue/kqueue-user.c
44
n = kevent(kq, NULL, 0, kev, 2, &ts);
regress/sys/kern/kqueue/kqueue-user.c
54
n = kevent(kq, NULL, 0, kev, 2, &ts);
regress/sys/kern/kqueue/kqueue-user.c
67
n = kevent(kq, NULL, 0, kev, 2, &ts);
regress/sys/kern/kqueue/kqueue-user.c
83
n = kevent(kq, NULL, 0, kev, 2, &ts);
regress/sys/kern/kqueue/kqueue-user.c
95
n = kevent(kq, NULL, 0, kev, 2, &ts);
regress/sys/kern/pledge/generic/test_tty.c
34
struct termios ts; /* sys/termios.h */
regress/sys/kern/pledge/generic/test_tty.c
57
if (ioctl(fd, TIOCGETA, &ts) == -1)
regress/sys/kern/pledge/generic/test_tty.c
75
if (tcsetattr(fd, TCSANOW, &ts) == -1)
regress/sys/kern/pledge/generic/test_tty.c
79
if (tcsetattr(fd, TCSADRAIN, &ts) == -1)
regress/sys/kern/pledge/generic/test_tty.c
83
if (tcsetattr(fd, TCSAFLUSH, &ts) == -1)
regress/sys/kern/signal/sig-stop/sig-stop.c
19
struct timespec ts;
regress/sys/kern/signal/sig-stop/sig-stop.c
29
ts.tv_sec = 0;
regress/sys/kern/signal/sig-stop/sig-stop.c
30
ts.tv_nsec = 1000;
regress/sys/kern/signal/sig-stop/sig-stop.c
32
nanosleep(&ts, NULL);
regress/sys/kern/signal/sig-stop/sig-stop.c
39
ts.tv_sec = 1;
regress/sys/kern/signal/sig-stop/sig-stop.c
40
ts.tv_nsec = 0;
regress/sys/kern/signal/sig-stop/sig-stop.c
41
nanosleep(&ts, NULL);
regress/sys/kern/signal/sig-stop2/sig-stop2.c
111
nanosleep(&ts, NULL);
regress/sys/kern/signal/sig-stop2/sig-stop2.c
119
nanosleep(&ts, NULL);
regress/sys/kern/signal/sig-stop2/sig-stop2.c
127
nanosleep(&ts, NULL);
regress/sys/kern/signal/sig-stop2/sig-stop2.c
50
struct timespec ts = { .tv_sec = 2 };
regress/sys/kern/signal/sig-stop2/sig-stop2.c
52
while (nanosleep(&ts, &ts) != 0)
regress/sys/kern/signal/sig-stop2/sig-stop2.c
96
struct timespec ts = { .tv_nsec = 200 * 1000 * 1000 };
regress/sys/kern/signal/sig-stop3/sig-stop3.c
35
struct timespec ts = { .tv_sec = 2 };
regress/sys/kern/signal/sig-stop3/sig-stop3.c
37
while (nanosleep(&ts, &ts) != 0)
regress/sys/kern/signal/sig-stop3/sig-stop3.c
64
struct timespec ts = { .tv_nsec = 200 * 1000 * 1000 };
regress/sys/kern/signal/sig-stop3/sig-stop3.c
79
nanosleep(&ts, NULL);
regress/sys/kern/signal/sig-stop3/sig-stop3.c
93
nanosleep(&ts, NULL);
regress/sys/kern/unixsockets/ungc.c
155
if (cmsgh->cmsg_len != CMSG_LEN(sizeof(ts)))
regress/sys/kern/unixsockets/ungc.c
158
ts = *((int *)CMSG_DATA(cmsgh));
regress/sys/kern/unixsockets/ungc.c
160
if (recvmsg(ts, &msgh, 0) < 0) {
regress/sys/kern/unixsockets/ungc.c
166
close(ts);
regress/sys/kern/unixsockets/ungc.c
174
if (cmsgh->cmsg_len != CMSG_LEN(sizeof(ts)))
regress/sys/kern/unixsockets/ungc.c
177
ts = *((int *)CMSG_DATA(cmsgh));
regress/sys/kern/unixsockets/ungc.c
178
close(ts);
regress/sys/kern/unixsockets/ungc.c
44
int sp[2], sl[2], ts;
regress/usr.bin/ssh/unittests/misc/test_ptimeout.c
26
struct timespec pt, *ts;
regress/usr.bin/ssh/unittests/misc/test_ptimeout.c
38
ts = ptimeout_get_tsp(&pt);
regress/usr.bin/ssh/unittests/misc/test_ptimeout.c
39
ASSERT_PTR_NE(ts, NULL);
regress/usr.bin/ssh/unittests/misc/test_ptimeout.c
40
ASSERT_LONG_EQ(ts->tv_nsec, 0);
regress/usr.bin/ssh/unittests/misc/test_ptimeout.c
41
ASSERT_LONG_EQ(ts->tv_sec, 100);
regress/usr.bin/ssh/unittests/misc/test_ptimeout.c
48
ts = ptimeout_get_tsp(&pt);
regress/usr.bin/ssh/unittests/misc/test_ptimeout.c
49
ASSERT_PTR_NE(ts, NULL);
regress/usr.bin/ssh/unittests/misc/test_ptimeout.c
50
ASSERT_LONG_EQ(ts->tv_nsec, 123 * 1000000);
regress/usr.bin/ssh/unittests/misc/test_ptimeout.c
51
ASSERT_LONG_EQ(ts->tv_sec, 50);
regress/usr.bin/ssh/unittests/misc/test_ptimeout.c
58
ts = ptimeout_get_tsp(&pt);
regress/usr.bin/ssh/unittests/misc/test_ptimeout.c
59
ASSERT_PTR_NE(ts, NULL);
regress/usr.bin/ssh/unittests/misc/test_ptimeout.c
60
ASSERT_LONG_EQ(ts->tv_nsec, 0);
regress/usr.bin/ssh/unittests/misc/test_ptimeout.c
61
ASSERT_LONG_EQ(ts->tv_sec, 0);
regress/usr.bin/ssh/unittests/misc/test_ptimeout.c
69
ts = ptimeout_get_tsp(&pt);
regress/usr.bin/ssh/unittests/misc/test_ptimeout.c
70
ASSERT_PTR_NE(ts, NULL);
regress/usr.bin/ssh/unittests/misc/test_ptimeout.c
71
ASSERT_LONG_GT(ts->tv_sec, 50);
regress/usr.bin/ssh/unittests/misc/test_ptimeout.c
72
ASSERT_LONG_LT(ts->tv_sec, 200);
regress/usr.bin/ssh/unittests/misc/test_ptimeout.c
80
ts = ptimeout_get_tsp(&pt);
regress/usr.bin/ssh/unittests/misc/test_ptimeout.c
81
ASSERT_PTR_NE(ts, NULL);
regress/usr.bin/ssh/unittests/misc/test_ptimeout.c
82
ASSERT_LONG_EQ(ts->tv_nsec, 0);
regress/usr.bin/ssh/unittests/misc/test_ptimeout.c
83
ASSERT_LONG_EQ(ts->tv_sec, 0);
regress/usr.bin/ssh/unittests/test_helper/test_helper.c
624
tstod(const struct timespec *ts)
regress/usr.bin/ssh/unittests/test_helper/test_helper.c
626
return (double)ts->tv_sec + ((double)ts->tv_nsec / 1000000000.0);
regress/usr.bin/ssh/unittests/test_helper/test_helper.c
672
struct timespec ts;
regress/usr.bin/ssh/unittests/test_helper/test_helper.c
675
timespecsub(&bench_finish_time, &bench_start_time, &ts);
regress/usr.bin/ssh/unittests/test_helper/test_helper.c
686
bench_samples[bench_nruns++] = ts;
regress/usr.bin/ssh/unittests/test_helper/test_helper.c
687
bench_accum_secs += tstod(&ts);
regress/usr.sbin/rpki-client/test-http.c
33
struct timespec ts;
regress/usr.sbin/rpki-client/test-http.c
35
if (clock_gettime(CLOCK_MONOTONIC, &ts) != 0)
regress/usr.sbin/rpki-client/test-http.c
37
return (ts.tv_sec);
sbin/iked/ikev2.c
1965
struct ikev2_ts *ts;
sbin/iked/ikev2.c
2002
if ((ts = ibuf_reserve(buf, sizeof(*ts))) == NULL)
sbin/iked/ikev2.c
2014
ts->ts_protoid = tsi->ts_ipproto;
sbin/iked/ikev2.c
2017
ts->ts_startport = addr->addr_port;
sbin/iked/ikev2.c
2018
ts->ts_endport = addr->addr_port;
sbin/iked/ikev2.c
2020
ts->ts_startport = 0;
sbin/iked/ikev2.c
2021
ts->ts_endport = 0xffff;
sbin/iked/ikev2.c
2026
ts->ts_type = IKEV2_TS_IPV4_ADDR_RANGE;
sbin/iked/ikev2.c
2027
ts->ts_length = htobe16(sizeof(*ts) + 8);
sbin/iked/ikev2.c
2045
ts->ts_type = IKEV2_TS_IPV6_ADDR_RANGE;
sbin/iked/ikev2.c
2046
ts->ts_length = htobe16(sizeof(*ts) + 32);
sbin/iked/ikev2.c
2073
len += betoh16(ts->ts_length);
sbin/iked/ikev2_pld.c
1477
struct ikev2_ts ts;
sbin/iked/ikev2_pld.c
1490
if (ikev2_validate_ts(msg, offset, left, &ts))
sbin/iked/ikev2_pld.c
1495
print_map(ts.ts_type, ikev2_ts_map),
sbin/iked/ikev2_pld.c
1496
ts.ts_protoid, betoh16(ts.ts_length),
sbin/iked/ikev2_pld.c
1497
betoh16(ts.ts_startport),
sbin/iked/ikev2_pld.c
1498
betoh16(ts.ts_endport));
sbin/iked/ikev2_pld.c
1500
offset += sizeof(ts);
sbin/iked/ikev2_pld.c
1501
left -= sizeof(ts);
sbin/iked/ikev2_pld.c
1503
ts_len = betoh16(ts.ts_length) - sizeof(ts);
sbin/iked/ikev2_pld.c
1504
if (ikev2_pld_ts(env, pld, msg, offset, ts_len, ts.ts_type))
sbin/iked/ikev2_pld.c
1516
struct ikev2_ts *ts)
sbin/iked/ikev2_pld.c
1521
if (left < sizeof(*ts)) {
sbin/iked/ikev2_pld.c
1523
"(%zu < %zu)", __func__, left, sizeof(*ts));
sbin/iked/ikev2_pld.c
1526
memcpy(ts, msgbuf + offset, sizeof(*ts));
sbin/iked/ikev2_pld.c
1528
ts_length = betoh16(ts->ts_length);
sbin/iked/ikev2_pld.c
1529
if (ts_length < sizeof(*ts)) {
sbin/iked/ikev2_pld.c
1531
"size (%zu < %zu)", __func__, ts_length, sizeof(*ts));
sbin/iked/policy.c
583
struct iked_ts *ts;
sbin/iked/policy.c
586
TAILQ_FOREACH(ts, tss, ts_entry) {
sbin/iked/policy.c
587
if (addr_cmp(addr, &ts->ts_addr, 1) == 0)
sbin/iked/policy.c
591
if ((ts = calloc(1, sizeof(*ts))) == NULL)
sbin/iked/policy.c
594
ts->ts_ipproto = ipproto;
sbin/iked/policy.c
595
ts->ts_addr = *addr;
sbin/iked/policy.c
597
TAILQ_INSERT_TAIL(tss, ts, ts_entry);
sbin/isakmpd/dpd.c
219
struct timespec ts;
sbin/isakmpd/dpd.c
224
clock_gettime(CLOCK_MONOTONIC, &ts);
sbin/isakmpd/dpd.c
228
ts.tv_sec += dpd_timer_interval(time_passed);
sbin/isakmpd/dpd.c
230
&ts);
sbin/isakmpd/dpd.c
233
ts.tv_sec += DPD_RETRANS_WAIT;
sbin/isakmpd/dpd.c
235
dpd_check_event, sa, &ts);
sbin/isakmpd/dpd.c
270
struct timespec ts;
sbin/isakmpd/dpd.c
281
clock_gettime(CLOCK_MONOTONIC, &ts);
sbin/isakmpd/dpd.c
290
(u_int32_t)(ts.tv_sec - ksa->last_used)));
sbin/isakmpd/dpd.c
292
if ((u_int32_t)(ts.tv_sec - ksa->last_used) < args->interval) {
sbin/isakmpd/dpd.c
293
args->interval = (u_int32_t)(ts.tv_sec - ksa->last_used);
sbin/isakmpd/isakmpd.c
391
struct timespec ts, *timeout;
sbin/isakmpd/isakmpd.c
505
timeout = &ts;
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/isakmpd/pf_key_v2.c
206
struct timespec ts;
sbin/isakmpd/pf_key_v2.c
300
clock_gettime(CLOCK_MONOTONIC, &ts);
sbin/isakmpd/pf_key_v2.c
302
(void (*) (void *)) pf_key_v2_notify, ret, &ts);
sbin/isakmpd/ui.c
200
struct timespec ts;
sbin/isakmpd/ui.c
205
clock_gettime(CLOCK_MONOTONIC, &ts);
sbin/isakmpd/ui.c
206
ts.tv_sec += 5;
sbin/isakmpd/ui.c
209
0, &ts);
sbin/pfctl/pfctl_table.c
403
print_tstats(struct pfr_tstats *ts, int debug)
sbin/pfctl/pfctl_table.c
405
time_t time = ts->pfrts_tzero;
sbin/pfctl/pfctl_table.c
409
if (!debug && !(ts->pfrts_flags & PFR_TFLAG_ACTIVE))
sbin/pfctl/pfctl_table.c
412
print_table(&ts->pfrts_t, 1, debug);
sbin/pfctl/pfctl_table.c
413
printf("\tAddresses: %d\n", ts->pfrts_cnt);
sbin/pfctl/pfctl_table.c
419
ts->pfrts_refcnt[PFR_REFCNT_ANCHOR],
sbin/pfctl/pfctl_table.c
420
ts->pfrts_refcnt[PFR_REFCNT_RULE]);
sbin/pfctl/pfctl_table.c
422
(unsigned long long)ts->pfrts_nomatch,
sbin/pfctl/pfctl_table.c
423
(unsigned long long)ts->pfrts_match);
sbin/pfctl/pfctl_table.c
428
(unsigned long long)ts->pfrts_packets[dir][op],
sbin/pfctl/pfctl_table.c
429
(unsigned long long)ts->pfrts_bytes[dir][op]);
sbin/ping/ping.c
1143
struct timespec ts;
sbin/ping/ping.c
1147
if (clock_gettime(CLOCK_MONOTONIC, &ts) == -1)
sbin/ping/ping.c
1149
tv64->tv64_sec = htobe64((u_int64_t)ts.tv_sec +
sbin/ping/ping.c
1151
tv64->tv64_nsec = htobe64((u_int64_t)ts.tv_nsec +
sbin/ping/ping.c
1207
struct timespec ts, tp;
sbin/ping/ping.c
1218
if (clock_gettime(CLOCK_MONOTONIC, &ts) == -1)
sbin/ping/ping.c
1318
timespecsub(&ts, &tp, &ts);
sbin/ping/ping.c
1319
triptime = ((double)ts.tv_sec) * 1000.0 +
sbin/ping/ping.c
1320
((double)ts.tv_nsec) / 1000000.0;
sbin/unwind/libunbound/services/cache/infra.c
1124
char ts[12], cs[12], ip[128];
sbin/unwind/libunbound/services/cache/infra.c
1127
sldns_wire2str_type_buf(qinfo->qtype, ts, sizeof(ts));
sbin/unwind/libunbound/services/cache/infra.c
1133
verbose(VERB_OPS, "ratelimit exceeded %s %d query %s %s %s from %s", buf, lim, qnm, cs, ts, ip);
sbin/unwind/libunbound/services/cache/infra.c
1135
verbose(VERB_OPS, "ratelimit exceeded %s %d query %s %s %s", buf, lim, qnm, cs, ts);
sbin/unwind/libunbound/services/listen_dnsport.c
4266
ngtcp2_tstamp ts = doq_get_timestamp_nanosec();
sbin/unwind/libunbound/services/listen_dnsport.c
4271
path->remote.addrlen, ts);
sbin/unwind/libunbound/services/listen_dnsport.c
5251
ngtcp2_tstamp ts;
sbin/unwind/libunbound/services/listen_dnsport.c
5258
ts = doq_get_timestamp_nanosec();
sbin/unwind/libunbound/services/listen_dnsport.c
5262
sldns_buffer_limit(c->doq_socket->pkt_buf), ts);
sbin/unwind/libunbound/services/listen_dnsport.c
5350
ngtcp2_tstamp ts = doq_get_timestamp_nanosec();
sbin/unwind/libunbound/services/listen_dnsport.c
5403
&ndatalen, flags, stream_id, datav, datav_count, ts);
sbin/unwind/libunbound/services/listen_dnsport.c
5475
ngtcp2_conn_update_pkt_tx_time(conn->conn, ts);
sbin/unwind/libunbound/services/listen_dnsport.c
5489
ngtcp2_conn_update_pkt_tx_time(conn->conn, ts);
sbin/unwind/libunbound/util/net_help.c
558
const char *ts, *cs;
sbin/unwind/libunbound/util/net_help.c
562
if(type == LDNS_RR_TYPE_TSIG) ts = "TSIG";
sbin/unwind/libunbound/util/net_help.c
563
else if(type == LDNS_RR_TYPE_IXFR) ts = "IXFR";
sbin/unwind/libunbound/util/net_help.c
564
else if(type == LDNS_RR_TYPE_AXFR) ts = "AXFR";
sbin/unwind/libunbound/util/net_help.c
565
else if(type == LDNS_RR_TYPE_MAILB) ts = "MAILB";
sbin/unwind/libunbound/util/net_help.c
566
else if(type == LDNS_RR_TYPE_MAILA) ts = "MAILA";
sbin/unwind/libunbound/util/net_help.c
567
else if(type == LDNS_RR_TYPE_ANY) ts = "ANY";
sbin/unwind/libunbound/util/net_help.c
569
ts = sldns_rr_descript(type)->_name;
sbin/unwind/libunbound/util/net_help.c
572
ts = t;
sbin/unwind/libunbound/util/net_help.c
581
log_info("%s %s %s %s", str, buf, ts, cs);
sbin/unwind/libunbound/util/net_help.c
589
const char *ts, *cs;
sbin/unwind/libunbound/util/net_help.c
591
if(type == LDNS_RR_TYPE_TSIG) ts = "TSIG";
sbin/unwind/libunbound/util/net_help.c
592
else if(type == LDNS_RR_TYPE_IXFR) ts = "IXFR";
sbin/unwind/libunbound/util/net_help.c
593
else if(type == LDNS_RR_TYPE_AXFR) ts = "AXFR";
sbin/unwind/libunbound/util/net_help.c
594
else if(type == LDNS_RR_TYPE_MAILB) ts = "MAILB";
sbin/unwind/libunbound/util/net_help.c
595
else if(type == LDNS_RR_TYPE_MAILA) ts = "MAILA";
sbin/unwind/libunbound/util/net_help.c
596
else if(type == LDNS_RR_TYPE_ANY) ts = "ANY";
sbin/unwind/libunbound/util/net_help.c
598
ts = sldns_rr_descript(type)->_name;
sbin/unwind/libunbound/util/net_help.c
601
ts = t;
sbin/unwind/libunbound/util/net_help.c
611
log_query("%s %s %s %s", str, buf, ts, cs);
sbin/unwind/libunbound/util/net_help.c
612
else log_info("%s %s %s %s", str, buf, ts, cs);
sbin/unwind/libunbound/util/netevent.c
1010
struct timespec *ts;
sbin/unwind/libunbound/util/netevent.c
1077
ts = (struct timespec *)CMSG_DATA(cmsg);
sbin/unwind/libunbound/util/netevent.c
1078
TIMESPEC_TO_TIMEVAL(&rep.c->recv_tv, ts);
sbin/unwind/libunbound/util/netevent.c
1081
ts = (struct timespec *)CMSG_DATA(cmsg);
sbin/unwind/libunbound/util/netevent.c
1082
TIMESPEC_TO_TIMEVAL(&rep.c->recv_tv, ts);
sbin/unwind/libunbound/util/netevent.c
1830
ngtcp2_tstamp ts;
sbin/unwind/libunbound/util/netevent.c
1844
ts = doq_get_timestamp_nanosec();
sbin/unwind/libunbound/util/netevent.c
1849
&hd->dcid, ts);
sbin/unwind/libunbound/util/netevent.c
1898
ngtcp2_tstamp ts;
sbin/unwind/libunbound/util/netevent.c
1904
ts = doq_get_timestamp_nanosec();
sbin/unwind/libunbound/util/netevent.c
1916
10*NGTCP2_SECONDS, ts) != 0) {
sbin/unwind/libunbound/util/netevent.c
1931
ngtcp2_tstamp ts;
sbin/unwind/libunbound/util/netevent.c
1937
ts = doq_get_timestamp_nanosec();
sbin/unwind/libunbound/util/netevent.c
1947
ts) != 0) {
sys/arch/armv7/armv7/armv7_machdep.c
1019
struct timespec ts;
sys/arch/armv7/armv7/armv7_machdep.c
1021
nanotime(&ts);
sys/arch/armv7/armv7/armv7_machdep.c
1022
return (ts.tv_nsec ^ (ts.tv_sec << 20));
sys/arch/i386/i386/machdep.c
4005
struct timespec ts;
sys/arch/i386/i386/machdep.c
4007
nanotime(&ts);
sys/arch/i386/i386/machdep.c
4008
return (ts.tv_nsec ^ (ts.tv_sec << 20));
sys/arch/landisk/landisk/machdep.c
516
struct timespec ts;
sys/arch/landisk/landisk/machdep.c
518
nanotime(&ts);
sys/arch/landisk/landisk/machdep.c
519
return (ts.tv_nsec ^ (ts.tv_sec << 20));
sys/arch/luna88k/luna88k/machdep.c
1301
struct timespec ts;
sys/arch/luna88k/luna88k/machdep.c
1303
nanotime(&ts);
sys/arch/luna88k/luna88k/machdep.c
1304
return (ts.tv_nsec ^ (ts.tv_sec << 20));
sys/arch/sparc64/sparc64/db_interface.c
253
struct trapstate *ts = &ddb_regs.ddb_ts[0];
sys/arch/sparc64/sparc64/db_interface.c
254
extern int savetstate(struct trapstate *ts);
sys/arch/sparc64/sparc64/db_interface.c
255
extern void restoretstate(int tl, struct trapstate *ts);
sys/arch/sparc64/sparc64/db_interface.c
300
tl = ddb_regs.ddb_tl = savetstate(ts);
sys/arch/sparc64/sparc64/db_interface.c
303
restoretstate(tl,ts);
sys/arch/sparc64/sparc64/db_trace.c
438
struct trapstate *ts;
sys/arch/sparc64/sparc64/db_trace.c
442
ts = &ddb_regs.ddb_ts[0];
sys/arch/sparc64/sparc64/db_trace.c
446
i+1, (long)ts[i].tt, (u_long)ts[i].tstate,
sys/arch/sparc64/sparc64/db_trace.c
447
(void *)(u_long)ts[i].tpc, (void *)(u_long)ts[i].tnpc);
sys/dev/acpi/dsdt.c
3925
struct timespec ts;
sys/dev/acpi/dsdt.c
4518
nanouptime(&ts);
sys/dev/acpi/dsdt.c
4519
ival = ts.tv_sec * 10000000 + ts.tv_nsec / 100;
sys/dev/ic/ciss.c
435
struct timespec end, now, ts;
sys/dev/ic/ciss.c
522
NSEC_TO_TIMESPEC(MSEC_TO_NSEC(i), &ts);
sys/dev/ic/ciss.c
524
timespecadd(&now, &ts, &end);
sys/dev/ic/ciss.c
528
nsecs = TIMESPEC_TO_NSEC(&ts);
sys/dev/ic/ciss.c
537
timespecsub(&end, &now, &ts);
sys/dev/ic/qwx.c
15871
struct hal_tx_status *ts)
sys/dev/ic/qwx.c
15873
ts->buf_rel_source = FIELD_GET(HAL_WBM_RELEASE_INFO0_REL_SRC_MODULE,
sys/dev/ic/qwx.c
15875
if (ts->buf_rel_source != HAL_WBM_REL_SRC_MODULE_FW &&
sys/dev/ic/qwx.c
15876
ts->buf_rel_source != HAL_WBM_REL_SRC_MODULE_TQM)
sys/dev/ic/qwx.c
15879
if (ts->buf_rel_source == HAL_WBM_REL_SRC_MODULE_FW)
sys/dev/ic/qwx.c
15882
ts->status = FIELD_GET(HAL_WBM_RELEASE_INFO0_TQM_RELEASE_REASON,
sys/dev/ic/qwx.c
15884
ts->ppdu_id = FIELD_GET(HAL_WBM_RELEASE_INFO1_TQM_STATUS_NUMBER,
sys/dev/ic/qwx.c
15886
ts->try_cnt = FIELD_GET(HAL_WBM_RELEASE_INFO1_TRANSMIT_COUNT,
sys/dev/ic/qwx.c
15888
ts->ack_rssi = FIELD_GET(HAL_WBM_RELEASE_INFO2_ACK_FRAME_RSSI,
sys/dev/ic/qwx.c
15891
ts->flags |= HAL_TX_STATUS_FLAGS_FIRST_MSDU;
sys/dev/ic/qwx.c
15892
ts->peer_id = FIELD_GET(HAL_WBM_RELEASE_INFO3_PEER_ID, desc->info3);
sys/dev/ic/qwx.c
15893
ts->tid = FIELD_GET(HAL_WBM_RELEASE_INFO3_TID, desc->info3);
sys/dev/ic/qwx.c
15895
ts->rate_stats = desc->rate_stats.info0;
sys/dev/ic/qwx.c
15897
ts->rate_stats = 0;
sys/dev/ic/qwx.c
15929
struct qwx_dp_htt_wbm_tx_status *ts)
sys/dev/ic/qwx.c
15932
qwx_dp_tx_free_txbuf(sc, ts->msdu_id, tx_ring);
sys/dev/ic/qwx.c
15940
struct qwx_dp_htt_wbm_tx_status ts = {0};
sys/dev/ic/qwx.c
15952
ts.acked = (wbm_status == HAL_WBM_REL_HTT_TX_COMP_STATUS_OK);
sys/dev/ic/qwx.c
15953
ts.msdu_id = msdu_id;
sys/dev/ic/qwx.c
15954
ts.ack_rssi = FIELD_GET(HTT_TX_WBM_COMP_INFO1_ACK_RSSI,
sys/dev/ic/qwx.c
15958
ts.peer_id = FIELD_GET(HTT_TX_WBM_COMP_INFO2_SW_PEER_ID,
sys/dev/ic/qwx.c
15961
ts.peer_id = HTT_INVALID_PEER_ID;
sys/dev/ic/qwx.c
15963
qwx_dp_tx_htt_tx_complete_buf(sc, tx_ring, &ts);
sys/dev/ic/qwx.c
16053
uint32_t msdu_id, struct hal_tx_status *ts)
sys/dev/ic/qwx.c
16060
if (ts->buf_rel_source != HAL_WBM_REL_SRC_MODULE_TQM) {
sys/dev/ic/qwx.c
16077
pkt_type = FIELD_GET(HAL_TX_RATE_STATS_INFO0_PKT_TYPE, ts->rate_stats);
sys/dev/ic/qwx.c
16078
mcs = FIELD_GET(HAL_TX_RATE_STATS_INFO0_MCS, ts->rate_stats);
sys/dev/ic/qwx.c
16093
if (ts->status == HAL_WBM_TQM_REL_REASON_FRAME_ACKED &&
sys/dev/ic/qwx.c
16094
ts->ack_rssi != 0) {
sys/dev/ic/qwx.c
16095
int8_t rssi_dbm = (int8_t)ts->ack_rssi;
sys/dev/ic/qwx.c
16116
struct hal_tx_status ts = { 0 };
sys/dev/ic/qwx.c
16154
qwx_dp_tx_status_parse(sc, tx_status, &ts);
sys/dev/ic/qwx.c
16165
if (ts.buf_rel_source == HAL_WBM_REL_SRC_MODULE_FW) {
sys/dev/ic/qwx.c
16186
qwx_dp_tx_complete_msdu(sc, tx_ring, msdu_id, &ts);
sys/dev/ic/qwx.c
24593
elem->ts = now;
sys/dev/ic/qwx.c
24610
now >= elem->ts + MSEC_TO_NSEC(DP_REO_DESC_FREE_TIMEOUT_MS)) {
sys/dev/ic/qwxvar.h
1044
uint64_t ts;
sys/dev/ic/qwz.c
13493
struct hal_tx_status *ts)
sys/dev/ic/qwz.c
13495
ts->buf_rel_source = FIELD_GET(HAL_WBM_RELEASE_INFO0_REL_SRC_MODULE,
sys/dev/ic/qwz.c
13497
if (ts->buf_rel_source != HAL_WBM_REL_SRC_MODULE_FW &&
sys/dev/ic/qwz.c
13498
ts->buf_rel_source != HAL_WBM_REL_SRC_MODULE_TQM)
sys/dev/ic/qwz.c
13501
if (ts->buf_rel_source == HAL_WBM_REL_SRC_MODULE_FW)
sys/dev/ic/qwz.c
13504
ts->status = FIELD_GET(HAL_WBM_RELEASE_INFO0_TQM_RELEASE_REASON,
sys/dev/ic/qwz.c
13506
ts->ppdu_id = FIELD_GET(HAL_WBM_RELEASE_INFO1_TQM_STATUS_NUMBER,
sys/dev/ic/qwz.c
13508
ts->try_cnt = FIELD_GET(HAL_WBM_RELEASE_INFO1_TRANSMIT_COUNT,
sys/dev/ic/qwz.c
13510
ts->ack_rssi = FIELD_GET(HAL_WBM_RELEASE_INFO2_ACK_FRAME_RSSI,
sys/dev/ic/qwz.c
13513
ts->flags |= HAL_TX_STATUS_FLAGS_FIRST_MSDU;
sys/dev/ic/qwz.c
13514
ts->peer_id = FIELD_GET(HAL_WBM_RELEASE_INFO3_PEER_ID, desc->info3);
sys/dev/ic/qwz.c
13515
ts->tid = FIELD_GET(HAL_WBM_RELEASE_INFO3_TID, desc->info3);
sys/dev/ic/qwz.c
13517
ts->rate_stats = desc->rate_stats.info0;
sys/dev/ic/qwz.c
13519
ts->rate_stats = 0;
sys/dev/ic/qwz.c
13543
struct qwz_dp_htt_wbm_tx_status *ts)
sys/dev/ic/qwz.c
13546
qwz_dp_tx_free_txbuf(sc, ts->msdu_id, tx_ring);
sys/dev/ic/qwz.c
13554
struct qwz_dp_htt_wbm_tx_status ts = {0};
sys/dev/ic/qwz.c
13566
ts.acked = (wbm_status == HAL_WBM_REL_HTT_TX_COMP_STATUS_OK);
sys/dev/ic/qwz.c
13567
ts.msdu_id = msdu_id;
sys/dev/ic/qwz.c
13568
ts.ack_rssi = FIELD_GET(HTT_TX_WBM_COMP_INFO1_ACK_RSSI,
sys/dev/ic/qwz.c
13572
ts.peer_id = FIELD_GET(HTT_TX_WBM_COMP_INFO2_SW_PEER_ID,
sys/dev/ic/qwz.c
13575
ts.peer_id = HTT_INVALID_PEER_ID;
sys/dev/ic/qwz.c
13577
qwz_dp_tx_htt_tx_complete_buf(sc, tx_ring, &ts);
sys/dev/ic/qwz.c
13667
uint32_t msdu_id, struct hal_tx_status *ts)
sys/dev/ic/qwz.c
13674
if (ts->buf_rel_source != HAL_WBM_REL_SRC_MODULE_TQM) {
sys/dev/ic/qwz.c
13683
pkt_type = FIELD_GET(HAL_TX_RATE_STATS_INFO0_PKT_TYPE, ts->rate_stats);
sys/dev/ic/qwz.c
13684
mcs = FIELD_GET(HAL_TX_RATE_STATS_INFO0_MCS, ts->rate_stats);
sys/dev/ic/qwz.c
13706
struct hal_tx_status ts = { 0 };
sys/dev/ic/qwz.c
13744
qwz_dp_tx_status_parse(sc, tx_status, &ts);
sys/dev/ic/qwz.c
13755
if (ts.buf_rel_source == HAL_WBM_REL_SRC_MODULE_FW) {
sys/dev/ic/qwz.c
13776
qwz_dp_tx_complete_msdu(sc, tx_ring, msdu_id, &ts);
sys/dev/ic/qwz.c
21757
elem->ts = now;
sys/dev/ic/qwz.c
21774
now >= elem->ts + MSEC_TO_NSEC(DP_REO_DESC_FREE_TIMEOUT_MS)) {
sys/dev/ic/qwzvar.h
1153
uint64_t ts;
sys/dev/ic/rtw.c
1309
struct rtw_txsoft *ts)
sys/dev/ic/rtw.c
1314
m = ts->ts_mbuf;
sys/dev/ic/rtw.c
1315
ni = ts->ts_ni;
sys/dev/ic/rtw.c
1318
ts->ts_mbuf = NULL;
sys/dev/ic/rtw.c
1319
ts->ts_ni = NULL;
sys/dev/ic/rtw.c
1321
bus_dmamap_sync(dmat, ts->ts_dmamap, 0, ts->ts_dmamap->dm_mapsize,
sys/dev/ic/rtw.c
1323
bus_dmamap_unload(dmat, ts->ts_dmamap);
sys/dev/ic/rtw.c
1332
struct rtw_txsoft *ts;
sys/dev/ic/rtw.c
1334
while ((ts = SIMPLEQ_FIRST(&tsb->tsb_dirtyq)) != NULL) {
sys/dev/ic/rtw.c
1335
rtw_txsoft_release(dmat, ic, ts);
sys/dev/ic/rtw.c
1337
SIMPLEQ_INSERT_TAIL(&tsb->tsb_freeq, ts, ts_q);
sys/dev/ic/rtw.c
1344
struct rtw_txsoft *ts, int ndesc)
sys/dev/ic/rtw.c
1351
rtw_txsoft_release(sc->sc_dmat, &sc->sc_ic, ts);
sys/dev/ic/rtw.c
1355
tdn = &tdb->tdb_desc[ts->ts_last];
sys/dev/ic/rtw.c
1372
sc->sc_dev.dv_xname, ts, ts->ts_first, ts->ts_last,
sys/dev/ic/rtw.c
1402
struct rtw_txsoft *ts;
sys/dev/ic/rtw.c
1404
while ((ts = SIMPLEQ_FIRST(&tsb->tsb_dirtyq)) != NULL) {
sys/dev/ic/rtw.c
1405
ndesc = 1 + ts->ts_last - ts->ts_first;
sys/dev/ic/rtw.c
1406
if (ts->ts_last < ts->ts_first)
sys/dev/ic/rtw.c
1411
rtw_txdescs_sync(tdb, ts->ts_first, ndesc,
sys/dev/ic/rtw.c
1416
for (i = ts->ts_first; ; i = RTW_NEXT_IDX(tdb, i)) {
sys/dev/ic/rtw.c
1419
if (i == ts->ts_last)
sys/dev/ic/rtw.c
1422
rtw_txdescs_sync(tdb, ts->ts_first, ndesc,
sys/dev/ic/rtw.c
1424
} else if ((tdb->tdb_desc[ts->ts_last].td_stat &
sys/dev/ic/rtw.c
1428
rtw_collect_txpkt(sc, tdb, ts, ndesc);
sys/dev/ic/rtw.c
1430
SIMPLEQ_INSERT_TAIL(&tsb->tsb_freeq, ts, ts_q);
sys/dev/ic/rtw.c
1433
if (ts == NULL)
sys/dev/ic/rtw.c
3046
struct rtw_txsoft *ts, struct rtw_txdesc_blk *tdb, int desc)
sys/dev/ic/rtw.c
3051
sc->sc_dev.dv_xname, ts, action, desc,
sys/dev/ic/rtw.c
3073
struct rtw_txsoft *ts;
sys/dev/ic/rtw.c
3096
ts = SIMPLEQ_FIRST(&tsb->tsb_freeq);
sys/dev/ic/rtw.c
3098
dmamap = ts->ts_dmamap;
sys/dev/ic/rtw.c
3159
rate, &ts->ts_d0, &ts->ts_dn, &npkt,
sys/dev/ic/rtw.c
3167
d0 = &ts->ts_d0;
sys/dev/ic/rtw.c
3179
ts->ts_first = tdb->tdb_next;
sys/dev/ic/rtw.c
3181
rtw_txdescs_sync(tdb, ts->ts_first, dmamap->dm_nsegs,
sys/dev/ic/rtw.c
3184
KASSERT(ts->ts_first < tdb->tdb_ndesc);
sys/dev/ic/rtw.c
3213
for (i = 0, lastdesc = desc = ts->ts_first;
sys/dev/ic/rtw.c
3230
rtw_print_txdesc(sc, "load", ts, tdb, desc);
sys/dev/ic/rtw.c
3236
ts->ts_ni = ni;
sys/dev/ic/rtw.c
3237
ts->ts_mbuf = m0;
sys/dev/ic/rtw.c
3238
ts->ts_last = lastdesc;
sys/dev/ic/rtw.c
3239
tdb->tdb_desc[ts->ts_last].td_ctl0 |= htole32(RTW_TXCTL0_LS);
sys/dev/ic/rtw.c
3240
tdb->tdb_desc[ts->ts_first].td_ctl0 |=
sys/dev/ic/rtw.c
3244
rtw_print_txdesc(sc, "FS on", ts, tdb, ts->ts_first);
sys/dev/ic/rtw.c
3245
rtw_print_txdesc(sc, "LS on", ts, tdb, ts->ts_last);
sys/dev/ic/rtw.c
3251
rtw_txdescs_sync(tdb, ts->ts_first, dmamap->dm_nsegs,
sys/dev/ic/rtw.c
3254
tdb->tdb_desc[ts->ts_first].td_ctl0 |=
sys/dev/ic/rtw.c
3258
rtw_print_txdesc(sc, "OWN on", ts, tdb, ts->ts_first);
sys/dev/ic/rtw.c
3261
rtw_txdescs_sync(tdb, ts->ts_first, 1,
sys/dev/ic/rtw.c
3265
SIMPLEQ_INSERT_TAIL(&tsb->tsb_dirtyq, ts, ts_q);
sys/dev/ic/rtw.c
857
struct rtw_txsoft *ts;
sys/dev/ic/rtw.c
862
ts = &tsb->tsb_desc[i];
sys/dev/ic/rtw.c
863
ts->ts_mbuf = NULL;
sys/dev/ic/rtw.c
864
SIMPLEQ_INSERT_TAIL(&tsb->tsb_freeq, ts, ts_q);
sys/dev/ofw/ofw_thermal.c
112
thermal_sensor_register(struct thermal_sensor *ts)
sys/dev/ofw/ofw_thermal.c
114
ts->ts_cells = OF_getpropint(ts->ts_node, "#thermal-sensor-cells", 0);
sys/dev/ofw/ofw_thermal.c
115
ts->ts_phandle = OF_getpropint(ts->ts_node, "phandle", 0);
sys/dev/ofw/ofw_thermal.c
116
if (ts->ts_phandle == 0)
sys/dev/ofw/ofw_thermal.c
119
LIST_INSERT_HEAD(&thermal_sensors, ts, ts_list);
sys/dev/ofw/ofw_thermal.c
123
thermal_sensor_update(struct thermal_sensor *ts, uint32_t *cells)
sys/dev/ofw/ofw_thermal.c
128
if (tz->tz_sensors[0] == ts->ts_phandle &&
sys/dev/ofw/ofw_thermal.c
130
ts->ts_cells * sizeof(uint32_t)) == 0)
sys/dev/ofw/ofw_thermal.c
149
struct thermal_sensor *ts;
sys/dev/ofw/ofw_thermal.c
152
LIST_FOREACH(ts, &thermal_sensors, ts_list) {
sys/dev/ofw/ofw_thermal.c
153
if (ts->ts_phandle == phandle)
sys/dev/ofw/ofw_thermal.c
157
if (ts && ts->ts_get_temperature)
sys/dev/ofw/ofw_thermal.c
158
return ts->ts_get_temperature(ts->ts_cookie, &cells[1]);
sys/dev/ofw/ofw_thermal.c
166
struct thermal_sensor *ts;
sys/dev/ofw/ofw_thermal.c
169
LIST_FOREACH(ts, &thermal_sensors, ts_list) {
sys/dev/ofw/ofw_thermal.c
170
if (ts->ts_phandle == phandle)
sys/dev/ofw/ofw_thermal.c
174
if (ts && ts->ts_set_limit)
sys/dev/ofw/ofw_thermal.c
175
return ts->ts_set_limit(ts->ts_cookie, &cells[1], temp);
sys/dev/pci/bktr/bktr_core.c
720
struct timeval *ts;
sys/dev/pci/bktr/bktr_core.c
724
ts =(struct timeval *)bktr->bigbuf +
sys/dev/pci/bktr/bktr_core.c
729
microtime(ts);
sys/dev/pci/drm/amd/amdgpu/amdgpu_ras.c
2667
if (!data->bps[i].ts)
sys/dev/pci/drm/amd/amdgpu/amdgpu_ras_eeprom.c
1225
record.ts,
sys/dev/pci/drm/amd/amdgpu/amdgpu_ras_eeprom.c
512
tmp = cpu_to_le64(record->ts);
sys/dev/pci/drm/amd/amdgpu/amdgpu_ras_eeprom.c
541
record->ts = le64_to_cpu(tmp);
sys/dev/pci/drm/amd/amdgpu/amdgpu_ras_eeprom.h
133
uint64_t ts;
sys/dev/pci/drm/amd/amdgpu/amdgpu_umc.c
381
err_rec->ts = (uint64_t)ktime_get_real_seconds();
sys/dev/pci/drm/amd/amdgpu/amdgpu_vm.c
3028
u32 vmid, u32 node_id, uint64_t addr, uint64_t ts,
sys/dev/pci/drm/amd/amdgpu/amdgpu_vm.c
3054
node_id, addr, ts, write_fault)) {
sys/dev/pci/drm/amd/amdgpu/amdgpu_vm.h
601
u32 vmid, u32 node_id, uint64_t addr, uint64_t ts,
sys/dev/pci/drm/amd/amdkfd/kfd_smi_events.c
265
ktime_t ts)
sys/dev/pci/drm/amd/amdkfd/kfd_smi_events.c
268
KFD_EVENT_FMT_PAGEFAULT_START(ktime_to_ns(ts), pid,
sys/dev/pci/drm/amd/amdkfd/kfd_smi_events.h
37
ktime_t ts);
sys/dev/pci/drm/amd/amdkfd/kfd_svm.c
2997
uint64_t addr, uint64_t ts, bool write_fault)
sys/dev/pci/drm/amd/amdkfd/kfd_svm.c
3069
if (amdgpu_ih_ts_after_or_equal(ts, svms->checkpoint_ts[gpuidx])) {
sys/dev/pci/drm/amd/amdkfd/kfd_svm.h
177
uint32_t vmid, uint32_t node_id, uint64_t addr, uint64_t ts,
sys/dev/pci/drm/amd/amdkfd/kfd_svm.h
228
uint64_t addr, uint64_t ts, bool write_fault)
sys/dev/pci/drm/amd/display/dc/link/protocols/link_dp_training_dpia.c
203
static enum dc_status convert_trng_ptn_to_trng_stg(enum dc_dp_training_pattern tps, enum dpia_set_config_ts *ts)
sys/dev/pci/drm/amd/display/dc/link/protocols/link_dp_training_dpia.c
209
*ts = DPIA_TS_TPS1;
sys/dev/pci/drm/amd/display/dc/link/protocols/link_dp_training_dpia.c
212
*ts = DPIA_TS_TPS2;
sys/dev/pci/drm/amd/display/dc/link/protocols/link_dp_training_dpia.c
215
*ts = DPIA_TS_TPS3;
sys/dev/pci/drm/amd/display/dc/link/protocols/link_dp_training_dpia.c
218
*ts = DPIA_TS_TPS4;
sys/dev/pci/drm/amd/display/dc/link/protocols/link_dp_training_dpia.c
221
*ts = DPIA_TS_DPRX_DONE;
sys/dev/pci/drm/amd/display/dc/link/protocols/link_dp_training_dpia.c
225
*ts = DPIA_TS_DPRX_DONE;
sys/dev/pci/drm/amd/display/dc/link/protocols/link_dp_training_dpia.c
304
enum dpia_set_config_ts ts;
sys/dev/pci/drm/amd/display/dc/link/protocols/link_dp_training_dpia.c
345
status = convert_trng_ptn_to_trng_stg(lt_settings->pattern_for_cr, &ts);
sys/dev/pci/drm/amd/display/dc/link/protocols/link_dp_training_dpia.c
353
ts);
sys/dev/pci/drm/amd/display/dc/link/protocols/link_dp_training_dpia.c
599
enum dpia_set_config_ts ts;
sys/dev/pci/drm/amd/display/dc/link/protocols/link_dp_training_dpia.c
621
status = convert_trng_ptn_to_trng_stg(tr_pattern, &ts);
sys/dev/pci/drm/amd/display/dc/link/protocols/link_dp_training_dpia.c
629
ts);
sys/dev/pci/drm/drm_linux.c
100
tasklet_unlock(ts);
sys/dev/pci/drm/drm_linux.c
2219
dma_fence_allocate_private_stub(ktime_t ts)
sys/dev/pci/drm/drm_linux.c
2226
dma_fence_signal_timestamp(f, ts);
sys/dev/pci/drm/drm_linux.c
73
tasklet_unlock_wait(struct tasklet_struct *ts)
sys/dev/pci/drm/drm_linux.c
75
while (test_bit(TASKLET_STATE_RUN, &ts->state))
sys/dev/pci/drm/drm_linux.c
81
tasklet_unlock_spin_wait(struct tasklet_struct *ts)
sys/dev/pci/drm/drm_linux.c
83
while (test_bit(TASKLET_STATE_RUN, &ts->state))
sys/dev/pci/drm/drm_linux.c
90
struct tasklet_struct *ts = arg;
sys/dev/pci/drm/drm_linux.c
92
clear_bit(TASKLET_STATE_SCHED, &ts->state);
sys/dev/pci/drm/drm_linux.c
93
if (tasklet_trylock(ts)) {
sys/dev/pci/drm/drm_linux.c
94
if (!atomic_read(&ts->count)) {
sys/dev/pci/drm/drm_linux.c
95
if (ts->use_callback)
sys/dev/pci/drm/drm_linux.c
96
ts->callback(ts);
sys/dev/pci/drm/drm_linux.c
98
ts->func(ts->data);
sys/dev/pci/drm/drm_vblank.c
1732
struct timespec64 ts;
sys/dev/pci/drm/drm_vblank.c
1740
ts = ktime_to_timespec64(now);
sys/dev/pci/drm/drm_vblank.c
1741
reply->tval_sec = (u32)ts.tv_sec;
sys/dev/pci/drm/drm_vblank.c
1742
reply->tval_usec = ts.tv_nsec / 1000;
sys/dev/pci/drm/i915/i915_gpu_error.c
934
struct timespec64 ts;
sys/dev/pci/drm/i915/i915_gpu_error.c
948
ts = ktime_to_timespec64(error->time);
sys/dev/pci/drm/i915/i915_gpu_error.c
950
(s64)ts.tv_sec, ts.tv_nsec / NSEC_PER_USEC);
sys/dev/pci/drm/i915/i915_gpu_error.c
951
ts = ktime_to_timespec64(error->boottime);
sys/dev/pci/drm/i915/i915_gpu_error.c
953
(s64)ts.tv_sec, ts.tv_nsec / NSEC_PER_USEC);
sys/dev/pci/drm/i915/i915_gpu_error.c
954
ts = ktime_to_timespec64(error->uptime);
sys/dev/pci/drm/i915/i915_gpu_error.c
956
(s64)ts.tv_sec, ts.tv_nsec / NSEC_PER_USEC);
sys/dev/pci/drm/include/linux/interrupt.h
103
tasklet_unlock(struct tasklet_struct *ts)
sys/dev/pci/drm/include/linux/interrupt.h
106
clear_bit(TASKLET_STATE_RUN, &ts->state);
sys/dev/pci/drm/include/linux/interrupt.h
110
tasklet_kill(struct tasklet_struct *ts)
sys/dev/pci/drm/include/linux/interrupt.h
112
clear_bit(TASKLET_STATE_SCHED, &ts->state);
sys/dev/pci/drm/include/linux/interrupt.h
113
task_del(taskletq, &ts->task);
sys/dev/pci/drm/include/linux/interrupt.h
114
tasklet_unlock_wait(ts);
sys/dev/pci/drm/include/linux/interrupt.h
118
tasklet_schedule(struct tasklet_struct *ts)
sys/dev/pci/drm/include/linux/interrupt.h
120
set_bit(TASKLET_STATE_SCHED, &ts->state);
sys/dev/pci/drm/include/linux/interrupt.h
121
task_add(taskletq, &ts->task);
sys/dev/pci/drm/include/linux/interrupt.h
125
tasklet_hi_schedule(struct tasklet_struct *ts)
sys/dev/pci/drm/include/linux/interrupt.h
127
set_bit(TASKLET_STATE_SCHED, &ts->state);
sys/dev/pci/drm/include/linux/interrupt.h
128
task_add(taskletq, &ts->task);
sys/dev/pci/drm/include/linux/interrupt.h
132
tasklet_disable_nosync(struct tasklet_struct *ts)
sys/dev/pci/drm/include/linux/interrupt.h
134
atomic_inc(&ts->count);
sys/dev/pci/drm/include/linux/interrupt.h
139
tasklet_disable(struct tasklet_struct *ts)
sys/dev/pci/drm/include/linux/interrupt.h
141
tasklet_disable_nosync(ts);
sys/dev/pci/drm/include/linux/interrupt.h
142
tasklet_unlock_wait(ts);
sys/dev/pci/drm/include/linux/interrupt.h
146
tasklet_enable(struct tasklet_struct *ts)
sys/dev/pci/drm/include/linux/interrupt.h
149
atomic_dec(&ts->count);
sys/dev/pci/drm/include/linux/interrupt.h
73
tasklet_init(struct tasklet_struct *ts, void (*func)(unsigned long),
sys/dev/pci/drm/include/linux/interrupt.h
76
ts->func = func;
sys/dev/pci/drm/include/linux/interrupt.h
77
ts->data = data;
sys/dev/pci/drm/include/linux/interrupt.h
78
ts->state = 0;
sys/dev/pci/drm/include/linux/interrupt.h
79
atomic_set(&ts->count, 0);
sys/dev/pci/drm/include/linux/interrupt.h
80
ts->use_callback = false;
sys/dev/pci/drm/include/linux/interrupt.h
81
task_set(&ts->task, tasklet_run, ts);
sys/dev/pci/drm/include/linux/interrupt.h
85
tasklet_setup(struct tasklet_struct *ts,
sys/dev/pci/drm/include/linux/interrupt.h
88
ts->callback = callback;
sys/dev/pci/drm/include/linux/interrupt.h
89
ts->data = 0;
sys/dev/pci/drm/include/linux/interrupt.h
90
ts->state = 0;
sys/dev/pci/drm/include/linux/interrupt.h
91
atomic_set(&ts->count, 0);
sys/dev/pci/drm/include/linux/interrupt.h
92
ts->use_callback = true;
sys/dev/pci/drm/include/linux/interrupt.h
93
task_set(&ts->task, tasklet_run, ts);
sys/dev/pci/drm/include/linux/interrupt.h
97
tasklet_trylock(struct tasklet_struct *ts)
sys/dev/pci/drm/include/linux/interrupt.h
99
return !test_and_set_bit(TASKLET_STATE_RUN, &ts->state);
sys/dev/pci/drm/include/linux/ktime.h
168
struct timespec ts;
sys/dev/pci/drm/include/linux/ktime.h
169
ts.tv_sec = s;
sys/dev/pci/drm/include/linux/ktime.h
170
ts.tv_nsec = ns;
sys/dev/pci/drm/include/linux/ktime.h
171
return TIMESPEC_TO_NSEC(&ts);
sys/dev/pci/drm/include/linux/ktime.h
31
struct timespec ts;
sys/dev/pci/drm/include/linux/ktime.h
32
nanouptime(&ts);
sys/dev/pci/drm/include/linux/ktime.h
33
return TIMESPEC_TO_NSEC(&ts);
sys/dev/pci/drm/include/linux/ktime.h
39
struct timespec ts;
sys/dev/pci/drm/include/linux/ktime.h
40
nanouptime(&ts);
sys/dev/pci/drm/include/linux/ktime.h
41
return TIMESPEC_TO_NSEC(&ts);
sys/dev/pci/drm/include/linux/ktime.h
77
struct timespec64 ts;
sys/dev/pci/drm/include/linux/ktime.h
78
ts.tv_sec = k / NSEC_PER_SEC;
sys/dev/pci/drm/include/linux/ktime.h
79
ts.tv_nsec = k % NSEC_PER_SEC;
sys/dev/pci/drm/include/linux/ktime.h
80
if (ts.tv_nsec < 0) {
sys/dev/pci/drm/include/linux/ktime.h
81
ts.tv_sec--;
sys/dev/pci/drm/include/linux/ktime.h
82
ts.tv_nsec += NSEC_PER_SEC;
sys/dev/pci/drm/include/linux/ktime.h
84
return ts;
sys/dev/pci/drm/include/linux/sched/clock.h
14
struct timespec ts;
sys/dev/pci/drm/include/linux/sched/clock.h
15
nanouptime(&ts);
sys/dev/pci/drm/include/linux/sched/clock.h
16
return (ts.tv_sec * NSEC_PER_SEC) + ts.tv_nsec;
sys/dev/pci/drm/include/linux/timekeeping.h
15
struct timespec ts;
sys/dev/pci/drm/include/linux/timekeeping.h
16
nanotime(&ts);
sys/dev/pci/drm/include/linux/timekeeping.h
17
return TIMESPEC_TO_NSEC(&ts);
sys/dev/pci/drm/include/uapi/linux/cec.h
490
__u64 ts;
sys/dev/pci/drm/scheduler/sched_internal.h
21
struct drm_sched_rq *rq, ktime_t ts);
sys/dev/pci/drm/scheduler/sched_main.c
158
ktime_t ts)
sys/dev/pci/drm/scheduler/sched_main.c
170
entity->oldest_job_waiting = ts;
sys/dev/pci/envy.c
1980
(long long)sc->intrs[i].ts.tv_sec,
sys/dev/pci/envy.c
1981
sc->intrs[i].ts.tv_nsec,
sys/dev/pci/envy.c
2026
nanouptime(&sc->intrs[sc->nintr].ts);
sys/dev/pci/envyvar.h
88
struct timespec ts;
sys/dev/pci/if_vmx.c
1015
struct vmxnet3_txq_shared *ts;
sys/dev/pci/if_vmx.c
1029
ts = sc->sc_q[0].tx.ts;
sys/dev/pci/if_vmx.c
1030
if (ts->stopped)
sys/dev/pci/if_vmx.c
1031
printf("%s: TX error 0x%x\n", ifp->if_xname, ts->error);
sys/dev/pci/if_vmx.c
125
struct vmxnet3_txq_shared *ts;
sys/dev/pci/if_vmx.c
1985
vmx_tx_kstat_tpl, nitems(vmx_tx_kstat_tpl), tq->ts->stats);
sys/dev/pci/if_vmx.c
488
struct vmxnet3_txq_shared *ts;
sys/dev/pci/if_vmx.c
494
qs_len = sc->sc_nqueues * (sizeof *ts + sizeof *rs);
sys/dev/pci/if_vmx.c
495
ts = vmxnet3_dma_allocmem(sc, qs_len, VMXNET3_DMADESC_ALIGN, &qs_pa);
sys/dev/pci/if_vmx.c
496
if (ts == NULL)
sys/dev/pci/if_vmx.c
499
sc->sc_q[queue].tx.ts = ts++;
sys/dev/pci/if_vmx.c
500
rs = (void *)ts;
sys/dev/pci/if_vmx.c
600
struct vmxnet3_txq_shared *ts;
sys/dev/pci/if_vmx.c
623
ts = tq->ts;
sys/dev/pci/if_vmx.c
624
bzero(ts, sizeof *ts);
sys/dev/pci/if_vmx.c
625
ts->npending = 0;
sys/dev/pci/if_vmx.c
626
ts->intr_threshold = 1;
sys/dev/pci/if_vmx.c
627
ts->cmd_ring = VMX_DMA_DVA(&ring->dmamem);
sys/dev/pci/if_vmx.c
628
ts->cmd_ring_len = NTXDESC;
sys/dev/pci/if_vmx.c
629
ts->comp_ring = VMX_DMA_DVA(&comp_ring->dmamem);
sys/dev/pci/if_vmx.c
630
ts->comp_ring_len = NTXCOMPDESC;
sys/dev/pci/if_vmx.c
631
ts->driver_data = ~0ULL;
sys/dev/pci/if_vmx.c
632
ts->driver_data_len = 0;
sys/dev/pci/if_vmx.c
633
ts->intr_idx = intr;
sys/dev/pci/if_vmx.c
634
ts->stopped = 1;
sys/dev/pci/if_vmx.c
635
ts->error = 0;
sys/dev/pv/pvclock.c
369
struct timespec ts;
sys/dev/pv/pvclock.c
377
nanotime(&ts);
sys/dev/pv/pvclock.c
378
value = TIMESPEC_TO_NSEC(&ts) -
sys/dev/pv/pvclock.c
382
TIMESPEC_TO_TIMEVAL(&sc->sc_sensor.tv, &ts);
sys/dev/rnd.c
336
struct timespec ts;
sys/dev/rnd.c
338
getnanotime(&ts);
sys/dev/rnd.c
339
enqueue_randomness(ts.tv_sec);
sys/dev/rnd.c
340
enqueue_randomness(ts.tv_nsec);
sys/dev/rnd.c
350
struct timespec ts;
sys/dev/rnd.c
354
getnanotime(&ts);
sys/dev/rnd.c
355
enqueue_randomness(ts.tv_sec);
sys/dev/rnd.c
356
enqueue_randomness(ts.tv_nsec);
sys/dev/rnd.c
387
struct timespec ts;
sys/dev/rnd.c
399
nanotime(&ts);
sys/dev/rnd.c
400
for (p = (u_int8_t *)&ts, i = 0; i < sizeof(ts); i++)
sys/dev/usb/if_athn_usb.c
1796
struct ar_wmi_evt_txstatus *ts = arg;
sys/dev/usb/if_athn_usb.c
1798
uint8_t rate_index = (ts->rate & AR_HTC_TXSTAT_RATE);
sys/dev/usb/if_athn_usb.c
1800
if (an->sta_index != ts->cookie) /* Tx report for a different node */
sys/dev/usb/if_athn_usb.c
1803
if (ts->flags & AR_HTC_TXSTAT_MCS) {
sys/dev/usb/if_athn_usb.c
1843
for (i = 0; i < tsl->count && i < nitems(tsl->ts); i++) {
sys/dev/usb/if_athn_usb.c
1846
struct ar_wmi_evt_txstatus *ts = &tsl->ts[i];
sys/dev/usb/if_athn_usb.c
1850
if (ts->cookie == 0)
sys/dev/usb/if_athn_usb.c
1854
qid = (ts->rate & AR_HTC_TXSTAT_EPID) >>
sys/dev/usb/if_athn_usb.c
1862
if (ts->cookie == an->sta_index)
sys/dev/usb/if_athn_usb.c
1863
athn_usb_tx_status(ts, ic->ic_bss);
sys/dev/usb/if_athn_usb.c
1866
ts);
sys/dev/usb/if_athn_usb.h
206
struct ar_wmi_evt_txstatus ts[AR_HTC_MAX_TX_STATUS];
sys/dev/wscons/wsmouse.c
1073
wsmouse_log_input(struct wsmouseinput *input, struct timespec *ts)
sys/dev/wscons/wsmouse.c
1083
printf("[%s-in][%04d]", DEVNAME(input), LOGTIME(ts));
sys/dev/wscons/wsmouse.c
1113
printf("[%s-ev][%04d]", DEVNAME(input), LOGTIME(&evq->ts));
sys/dev/wscons/wsmouse.c
1153
getnanotime(&evq.ts);
sys/dev/wscons/wsmouse.c
1168
wsmouse_log_input(input, &evq.ts);
sys/dev/wscons/wsmouse.c
968
memcpy(&ev->time, &evq->ts, sizeof(struct timespec));
sys/dev/wscons/wsmouseinput.h
125
struct timespec ts;
sys/dev/wscons/wsmouseinput.h
177
struct timespec ts;
sys/dev/wscons/wstpad.c
1273
memcpy(&tp->time, &evq->ts, sizeof(struct timespec));
sys/dev/wscons/wstpad.c
1331
struct timespec ts;
sys/dev/wscons/wstpad.c
1341
timespecsub(time, &input->intv.ts, &ts);
sys/dev/wscons/wstpad.c
1342
if (timespeccmp(&ts, &limit, <)) {
sys/dev/wscons/wstpad.c
1344
input->intv.sum += ts.tv_nsec >> 12;
sys/dev/wscons/wstpad.c
1362
memcpy(&input->intv.ts, time, sizeof(struct timespec));
sys/dev/wscons/wstpad.c
1458
wstpad_track_interval(input, &evq->ts);
sys/dev/wscons/wstpad.c
327
struct timespec ts;
sys/dev/wscons/wstpad.c
343
timespecsub(&tp->time, &t->match, &ts);
sys/dev/wscons/wstpad.c
344
if (timespeccmp(&ts, &stop_interval, >=)) {
sys/dev/wscons/wstpad.c
383
struct timespec ts;
sys/dev/wscons/wstpad.c
388
timespecsub(&t->match, &t->start, &ts);
sys/dev/wscons/wstpad.c
390
timespecsub(&input->tp->time, &t->start, &ts);
sys/dev/wscons/wstpad.c
393
return (timespeccmp(&ts, &match_interval, >=));
sys/dev/wscons/wstpad.c
694
struct timespec ts;
sys/dev/wscons/wstpad.c
696
timespecsub(&tp->time, &t->orig.time, &ts);
sys/dev/wscons/wstpad.c
697
return (timespeccmp(&ts, &tp->tap.maxtime, <));
sys/dev/wscons/wstpad.c
938
getnanotime(&evq.ts);
sys/isofs/udf/udf_vnops.c
330
struct timespec ts;
sys/isofs/udf/udf_vnops.c
332
ts.tv_sec = 0;
sys/kern/kern_clock.c
202
tstohz(const struct timespec *ts)
sys/kern/kern_clock.c
205
TIMESPEC_TO_TIMEVAL(&tv, ts);
sys/kern/kern_clock.c
208
if ((ts->tv_nsec % 1000) != 0) {
sys/kern/kern_clockintr.c
655
struct timespec ts;
sys/kern/kern_clockintr.c
660
NSEC_TO_TIMESPEC(cl->cl_expiration, &ts);
sys/kern/kern_clockintr.c
665
ts.tv_sec, ts.tv_nsec, state, cpu,
sys/kern/kern_event.c
1239
struct timespec ts;
sys/kern/kern_event.c
1254
error = copyin(SCARG(uap, timeout), &ts, sizeof(ts));
sys/kern/kern_event.c
1259
ktrreltimespec(p, &ts);
sys/kern/kern_event.c
1261
if (ts.tv_sec < 0 || !timespecisvalid(&ts)) {
sys/kern/kern_event.c
1265
tsp = &ts;
sys/kern/kern_event.c
594
filt_timervalidate(int sfflags, int64_t sdata, struct timespec *ts)
sys/kern/kern_event.c
601
ts->tv_sec = sdata;
sys/kern/kern_event.c
602
ts->tv_nsec = 0;
sys/kern/kern_event.c
605
ts->tv_sec = sdata / 1000;
sys/kern/kern_event.c
606
ts->tv_nsec = (sdata % 1000) * 1000000;
sys/kern/kern_event.c
609
ts->tv_sec = sdata / 1000000;
sys/kern/kern_event.c
610
ts->tv_nsec = (sdata % 1000000) * 1000;
sys/kern/kern_event.c
613
ts->tv_sec = sdata / 1000000000;
sys/kern/kern_event.c
614
ts->tv_nsec = sdata % 1000000000;
sys/kern/kern_event.c
630
filt_timeradd(struct knote *kn, struct timespec *ts)
sys/kern/kern_event.c
643
if (timespeccmp(ts, &now, >)) {
sys/kern/kern_event.c
644
timespecsub(ts, &now, &expiry);
sys/kern/kern_event.c
654
tticks = tstohz(ts);
sys/kern/kern_event.c
664
struct timespec ts;
sys/kern/kern_event.c
677
(void)filt_timervalidate(kn->kn_sfflags, kn->kn_sdata, &ts);
sys/kern/kern_event.c
678
filt_timeradd(kn, &ts);
sys/kern/kern_event.c
700
struct timespec ts;
sys/kern/kern_event.c
705
error = filt_timervalidate(kn->kn_sfflags, kn->kn_sdata, &ts);
sys/kern/kern_event.c
724
filt_timeradd(kn, &ts);
sys/kern/kern_event.c
748
struct timespec ts;
sys/kern/kern_event.c
753
error = filt_timervalidate(kev->fflags, kev->data, &ts);
sys/kern/kern_event.c
778
filt_timeradd(kn, &ts);
sys/kern/kern_resource.c
441
struct timespec ts, delta;
sys/kern/kern_resource.c
448
nanouptime(&ts);
sys/kern/kern_resource.c
449
if (timespeccmp(&ts, &spc->spc_runtime, <)) {
sys/kern/kern_resource.c
459
timespecsub(&ts, &spc->spc_runtime, &delta);
sys/kern/kern_resource.c
462
spc->spc_runtime = ts;
sys/kern/kern_sig.c
2105
struct timespec ts;
sys/kern/kern_sig.c
2106
if ((error = copyin(SCARG(uap, timeout), &ts, sizeof(ts))) != 0)
sys/kern/kern_sig.c
2110
ktrreltimespec(p, &ts);
sys/kern/kern_sig.c
2112
if (!timespecisvalid(&ts))
sys/kern/kern_sig.c
2115
nsecs = TIMESPEC_TO_NSEC(&ts);
sys/kern/kern_synch.c
809
struct timespec ts;
sys/kern/kern_synch.c
813
if ((error = copyin(SCARG(uap, tp), &ts, sizeof(ts)))) {
sys/kern/kern_synch.c
817
if (!timespecisvalid(&ts)) {
sys/kern/kern_synch.c
821
SCARG(uap, tp) = &ts;
sys/kern/kern_tc.c
288
nanoruntime(struct timespec *ts)
sys/kern/kern_tc.c
293
BINTIME_TO_TIMESPEC(&bt, ts);
sys/kern/kern_tc.c
540
tc_setrealtimeclock(const struct timespec *ts)
sys/kern/kern_tc.c
546
TIMESPEC_TO_BINTIME(ts, &utc);
sys/kern/kern_tc.c
560
enqueue_randomness(ts->tv_sec);
sys/kern/kern_tc.c
566
(long long)ts->tv_sec, ts->tv_nsec);
sys/kern/kern_tc.c
575
tc_setclock(const struct timespec *ts)
sys/kern/kern_tc.c
589
tc_setrealtimeclock(ts);
sys/kern/kern_tc.c
594
enqueue_randomness(ts->tv_sec);
sys/kern/kern_tc.c
596
TIMESPEC_TO_BINTIME(ts, &utc);
sys/kern/kern_time.c
101
(long long)now.tv_sec - ts->tv_sec);
sys/kern/kern_time.c
105
tc_setrealtimeclock(ts);
sys/kern/kern_time.c
225
struct timespec ts;
sys/kern/kern_time.c
230
memset(&ts, 0, sizeof(ts));
sys/kern/kern_time.c
243
BINTIME_TO_TIMESPEC(&bt, &ts);
sys/kern/kern_time.c
247
ts.tv_nsec = 1000000000 / stathz;
sys/kern/kern_time.c
257
ts.tv_nsec = 1000000000 / stathz;
sys/kern/kern_time.c
265
ts.tv_nsec = MAX(ts.tv_nsec, 1);
sys/kern/kern_time.c
266
error = copyout(&ts, SCARG(uap, tp), sizeof(ts));
sys/kern/kern_time.c
269
ktrreltimespec(p, &ts);
sys/kern/kern_time.c
388
struct timespec ts;
sys/kern/kern_time.c
396
TIMEVAL_TO_TIMESPEC(&atv, &ts);
sys/kern/kern_time.c
397
if ((error = settime(&ts)) != 0)
sys/kern/kern_time.c
72
settime(const struct timespec *ts)
sys/kern/kern_time.c
87
if (ts->tv_sec > UINT_MAX - 365*24*60*60) {
sys/kern/kern_time.c
89
(long long)ts->tv_sec);
sys/kern/kern_time.c
917
struct timespec ts;
sys/kern/kern_time.c
944
ts.tv_sec = rtctime.tv_sec;
sys/kern/kern_time.c
945
ts.tv_nsec = rtctime.tv_usec * 1000;
sys/kern/kern_time.c
946
tc_setclock(&ts);
sys/kern/kern_time.c
949
ts.tv_sec = rtctime.tv_sec;
sys/kern/kern_time.c
950
ts.tv_nsec = rtctime.tv_usec * 1000;
sys/kern/kern_time.c
951
tc_setclock(&ts);
sys/kern/kern_time.c
99
if (securelevel > 1 && timespeccmp(ts, &now, <=)) {
sys/kern/kern_timeout.c
945
db_timespec(const struct timespec *ts)
sys/kern/kern_timeout.c
950
if (ts->tv_sec >= 0) {
sys/kern/kern_timeout.c
952
ts->tv_sec, ts->tv_nsec);
sys/kern/kern_timeout.c
957
timespecsub(&zero, ts, &tmp);
sys/kern/sys_futex.c
262
struct timespec ts;
sys/kern/sys_futex.c
264
if ((error = copyin(timeout, &ts, sizeof(ts))))
sys/kern/sys_futex.c
268
ktrreltimespec(p, &ts);
sys/kern/sys_futex.c
270
if (ts.tv_sec < 0 || !timespecisvalid(&ts))
sys/kern/sys_futex.c
273
nsecs = MIN(TIMESPEC_TO_NSEC(&ts), MAXTSLP);
sys/kern/sys_generic.c
539
struct timespec ts, *tsp = NULL;
sys/kern/sys_generic.c
552
TIMEVAL_TO_TIMESPEC(&tv, &ts);
sys/kern/sys_generic.c
553
tsp = &ts;
sys/kern/sys_generic.c
568
syscallarg(const struct timespec *) ts;
sys/kern/sys_generic.c
572
struct timespec ts, *tsp = NULL;
sys/kern/sys_generic.c
576
if (SCARG(uap, ts) != NULL) {
sys/kern/sys_generic.c
577
if ((error = copyin(SCARG(uap, ts), &ts, sizeof ts)) != 0)
sys/kern/sys_generic.c
581
ktrreltimespec(p, &ts);
sys/kern/sys_generic.c
583
if (ts.tv_sec < 0 || !timespecisvalid(&ts))
sys/kern/sys_generic.c
585
tsp = &ts;
sys/kern/sys_generic.c
872
struct timespec ts, *tsp = NULL;
sys/kern/sys_generic.c
878
ts.tv_sec = msec / 1000;
sys/kern/sys_generic.c
879
ts.tv_nsec = (msec - (ts.tv_sec * 1000)) * 1000000;
sys/kern/sys_generic.c
880
tsp = &ts;
sys/kern/sys_generic.c
893
syscallarg(const struct timespec *) ts;
sys/kern/sys_generic.c
898
struct timespec ts, *tsp = NULL;
sys/kern/sys_generic.c
901
if (SCARG(uap, ts) != NULL) {
sys/kern/sys_generic.c
902
if ((error = copyin(SCARG(uap, ts), &ts, sizeof ts)) != 0)
sys/kern/sys_generic.c
906
ktrreltimespec(p, &ts);
sys/kern/sys_generic.c
908
if (ts.tv_sec < 0 || !timespecisvalid(&ts))
sys/kern/sys_generic.c
910
tsp = &ts;
sys/kern/tty.c
1032
struct tstamps *ts = (struct tstamps *)data;
sys/kern/tty.c
1039
if (ISSET(ts->ts_set, TIOCM_CAR))
sys/kern/tty.c
1041
if (ISSET(ts->ts_set, TIOCM_CTS))
sys/kern/tty.c
1043
if (ISSET(ts->ts_clr, TIOCM_CAR))
sys/kern/tty.c
1045
if (ISSET(ts->ts_clr, TIOCM_CTS))
sys/kern/tty_endrun.c
186
struct timespec ts;
sys/kern/tty_endrun.c
191
nanotime(&ts);
sys/kern/tty_endrun.c
196
gap = (ts.tv_sec * 1000000000LL + ts.tv_nsec) -
sys/kern/tty_endrun.c
199
np->lts.tv_sec = ts.tv_sec;
sys/kern/tty_endrun.c
200
np->lts.tv_nsec = ts.tv_nsec;
sys/kern/tty_endrun.c
205
np->ts.tv_sec = ts.tv_sec;
sys/kern/tty_endrun.c
206
np->ts.tv_nsec = ts.tv_nsec;
sys/kern/tty_endrun.c
219
tmax = lmax(np->ts.tv_sec, tp->t_tv.tv_sec);
sys/kern/tty_endrun.c
220
tmin = lmin(np->ts.tv_sec, tp->t_tv.tv_sec);
sys/kern/tty_endrun.c
224
np->ts.tv_sec = tp->t_tv.tv_sec;
sys/kern/tty_endrun.c
225
np->ts.tv_nsec = tp->t_tv.tv_usec *
sys/kern/tty_endrun.c
322
np->time.value = np->ts.tv_sec * 1000000000LL +
sys/kern/tty_endrun.c
323
np->ts.tv_nsec - endrun_now;
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_endrun.c
85
struct timespec ts; /* current timestamp */
sys/kern/tty_msts.c
147
struct timespec ts;
sys/kern/tty_msts.c
153
nanotime(&ts);
sys/kern/tty_msts.c
155
gap = (ts.tv_sec * 1000000000LL + ts.tv_nsec) -
sys/kern/tty_msts.c
158
np->lts.tv_sec = ts.tv_sec;
sys/kern/tty_msts.c
159
np->lts.tv_nsec = ts.tv_nsec;
sys/kern/tty_msts.c
164
np->ts.tv_sec = ts.tv_sec;
sys/kern/tty_msts.c
165
np->ts.tv_nsec = ts.tv_nsec;
sys/kern/tty_msts.c
178
tmax = lmax(np->ts.tv_sec, tp->t_tv.tv_sec);
sys/kern/tty_msts.c
179
tmin = lmin(np->ts.tv_sec, tp->t_tv.tv_sec);
sys/kern/tty_msts.c
183
np->ts.tv_sec = tp->t_tv.tv_sec;
sys/kern/tty_msts.c
184
np->ts.tv_nsec = tp->t_tv.tv_usec *
sys/kern/tty_msts.c
273
np->time.value = np->ts.tv_sec * 1000000000LL +
sys/kern/tty_msts.c
274
np->ts.tv_nsec - msts_now;
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_msts.c
57
struct timespec ts; /* current timestamp */
sys/kern/tty_nmea.c
186
struct timespec ts;
sys/kern/tty_nmea.c
192
nanotime(&ts);
sys/kern/tty_nmea.c
194
gap = (ts.tv_sec * 1000000000LL + ts.tv_nsec) -
sys/kern/tty_nmea.c
197
np->lts.tv_sec = ts.tv_sec;
sys/kern/tty_nmea.c
198
np->lts.tv_nsec = ts.tv_nsec;
sys/kern/tty_nmea.c
203
np->ts.tv_sec = ts.tv_sec;
sys/kern/tty_nmea.c
204
np->ts.tv_nsec = ts.tv_nsec;
sys/kern/tty_nmea.c
225
tmax = lmax(np->ts.tv_sec, tp->t_tv.tv_sec);
sys/kern/tty_nmea.c
226
tmin = lmin(np->ts.tv_sec, tp->t_tv.tv_sec);
sys/kern/tty_nmea.c
230
np->ts.tv_sec = tp->t_tv.tv_sec;
sys/kern/tty_nmea.c
231
np->ts.tv_nsec = tp->t_tv.tv_usec *
sys/kern/tty_nmea.c
374
np->time.value = np->ts.tv_sec * 1000000000LL +
sys/kern/tty_nmea.c
375
np->ts.tv_nsec - nmea_now;
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/tty_nmea.c
62
struct timespec ts; /* current timestamp */
sys/kern/uipc_syscalls.c
906
struct timespec ts, now, *timeout;
sys/kern/uipc_syscalls.c
915
error = copyin(timeout, &ts, sizeof(ts));
sys/kern/uipc_syscalls.c
920
ktrreltimespec(p, &ts);
sys/kern/uipc_syscalls.c
922
if (!timespecisvalid(&ts))
sys/kern/uipc_syscalls.c
926
timespecadd(&now, &ts, &ts);
sys/kern/uipc_syscalls.c
999
timespecsub(&now, &ts, &now);
sys/kern/vfs_syscalls.c
2649
struct timespec ts[2];
sys/kern/vfs_syscalls.c
2665
TIMEVAL_TO_TIMESPEC(&tv[0], &ts[0]);
sys/kern/vfs_syscalls.c
2666
TIMEVAL_TO_TIMESPEC(&tv[1], &ts[1]);
sys/kern/vfs_syscalls.c
2668
ts[0].tv_nsec = ts[1].tv_nsec = UTIME_NOW;
sys/kern/vfs_syscalls.c
2670
return (doutimensat(p, AT_FDCWD, SCARG(uap, path), ts, 0));
sys/kern/vfs_syscalls.c
2683
struct timespec ts[2];
sys/kern/vfs_syscalls.c
2689
error = copyin(tsp, ts, sizeof(ts));
sys/kern/vfs_syscalls.c
2692
for (i = 0; i < nitems(ts); i++) {
sys/kern/vfs_syscalls.c
2693
if (ts[i].tv_nsec == UTIME_NOW)
sys/kern/vfs_syscalls.c
2695
if (ts[i].tv_nsec == UTIME_OMIT)
sys/kern/vfs_syscalls.c
2699
ktrabstimespec(p, &ts[i]);
sys/kern/vfs_syscalls.c
2701
if (!timespecisvalid(&ts[i]))
sys/kern/vfs_syscalls.c
2705
ts[0].tv_nsec = ts[1].tv_nsec = UTIME_NOW;
sys/kern/vfs_syscalls.c
2707
return (doutimensat(p, SCARG(uap, fd), SCARG(uap, path), ts,
sys/kern/vfs_syscalls.c
2713
struct timespec ts[2], int flag)
sys/kern/vfs_syscalls.c
2730
return (dovutimens(p, vp, ts));
sys/kern/vfs_syscalls.c
2734
dovutimens(struct proc *p, struct vnode *vp, struct timespec ts[2])
sys/kern/vfs_syscalls.c
2742
if ((ts[0].tv_nsec != UTIME_NOW || ts[1].tv_nsec != UTIME_NOW) &&
sys/kern/vfs_syscalls.c
2744
ktrabstimespec(p, &ts[0]);
sys/kern/vfs_syscalls.c
2745
ktrabstimespec(p, &ts[1]);
sys/kern/vfs_syscalls.c
2754
if (ts[0].tv_nsec == UTIME_NOW || ts[1].tv_nsec == UTIME_NOW) {
sys/kern/vfs_syscalls.c
2755
if (ts[0].tv_nsec == UTIME_NOW && ts[1].tv_nsec == UTIME_NOW)
sys/kern/vfs_syscalls.c
2759
if (ts[0].tv_nsec == UTIME_NOW)
sys/kern/vfs_syscalls.c
2760
ts[0] = now;
sys/kern/vfs_syscalls.c
2761
if (ts[1].tv_nsec == UTIME_NOW)
sys/kern/vfs_syscalls.c
2762
ts[1] = now;
sys/kern/vfs_syscalls.c
2765
if (ts[0].tv_nsec != UTIME_OMIT)
sys/kern/vfs_syscalls.c
2766
vattr.va_atime = ts[0];
sys/kern/vfs_syscalls.c
2767
if (ts[1].tv_nsec != UTIME_OMIT)
sys/kern/vfs_syscalls.c
2768
vattr.va_mtime = ts[1];
sys/kern/vfs_syscalls.c
2790
struct timespec ts[2];
sys/kern/vfs_syscalls.c
2807
TIMEVAL_TO_TIMESPEC(&tv[0], &ts[0]);
sys/kern/vfs_syscalls.c
2808
TIMEVAL_TO_TIMESPEC(&tv[1], &ts[1]);
sys/kern/vfs_syscalls.c
2810
ts[0].tv_nsec = ts[1].tv_nsec = UTIME_NOW;
sys/kern/vfs_syscalls.c
2812
return (dofutimens(p, SCARG(uap, fd), ts));
sys/kern/vfs_syscalls.c
2822
struct timespec ts[2];
sys/kern/vfs_syscalls.c
2828
error = copyin(tsp, ts, sizeof(ts));
sys/kern/vfs_syscalls.c
2831
for (i = 0; i < nitems(ts); i++) {
sys/kern/vfs_syscalls.c
2832
if (ts[i].tv_nsec == UTIME_NOW)
sys/kern/vfs_syscalls.c
2834
if (ts[i].tv_nsec == UTIME_OMIT)
sys/kern/vfs_syscalls.c
2838
ktrabstimespec(p, &ts[i]);
sys/kern/vfs_syscalls.c
2840
if (!timespecisvalid(&ts[i]))
sys/kern/vfs_syscalls.c
2844
ts[0].tv_nsec = ts[1].tv_nsec = UTIME_NOW;
sys/kern/vfs_syscalls.c
2846
return (dofutimens(p, SCARG(uap, fd), ts));
sys/kern/vfs_syscalls.c
2850
dofutimens(struct proc *p, int fd, struct timespec ts[2])
sys/kern/vfs_syscalls.c
2862
return (dovutimens(p, vp, ts));
sys/msdosfs/msdosfs_denode.c
346
struct timespec ts;
sys/msdosfs/msdosfs_denode.c
350
getnanotime(&ts);
sys/msdosfs/msdosfs_denode.c
351
DETIMES(dep, &ts, &ts, &ts);
sys/msdosfs/msdosfs_vnops.c
120
struct timespec ts;
sys/msdosfs/msdosfs_vnops.c
1239
struct timespec ts;
sys/msdosfs/msdosfs_vnops.c
1262
getnanotime(&ts);
sys/msdosfs/msdosfs_vnops.c
1263
DETIMES(&ndirent, &ts, &ts, &ts);
sys/msdosfs/msdosfs_vnops.c
159
getnanotime(&ts);
sys/msdosfs/msdosfs_vnops.c
160
DETIMES(&ndirent, &ts, &ts, &ts);
sys/msdosfs/msdosfs_vnops.c
196
struct timespec ts;
sys/msdosfs/msdosfs_vnops.c
199
getnanotime(&ts);
sys/msdosfs/msdosfs_vnops.c
200
DETIMES(dep, &ts, &ts, &ts);
sys/msdosfs/msdosfs_vnops.c
231
struct timespec ts;
sys/msdosfs/msdosfs_vnops.c
234
getnanotime(&ts);
sys/msdosfs/msdosfs_vnops.c
235
DETIMES(dep, &ts, &ts, &ts);
sys/net/pf.c
4630
uint64_t ts = getnsecuptime();
sys/net/pf.c
4631
uint64_t diff = ts - stlim->pfstlim_rate_ts;
sys/net/pf.c
4651
ts - stlim->pfstlim_rate_bucket;
sys/net/pf.c
4698
uint64_t ts = getnsecuptime();
sys/net/pf.c
4699
uint64_t diff = ts - sr->pfsr_rate_ts;
sys/net/pf.c
4719
sr->pfsr_rate_ts = ts -
sys/net/pf_norm.c
1308
u_int8_t *ts = opt + 2;
sys/net/pf_norm.c
1323
memcpy(&tsval, ts, sizeof(u_int32_t));
sys/net/pf_norm.c
1332
ts, htonl(tsval + src->scrub->pfss_ts_mod),
sys/net/pf_norm.c
1333
PF_ALGNMNT(ts - opts));
sys/net/pf_osfp.c
233
u_int32_t ts;
sys/net/pf_osfp.c
234
memcpy(&ts, &optp[2], sizeof(ts));
sys/net/pf_osfp.c
235
if (ts == 0)
sys/nfs/nfs_vnops.c
1551
struct timespec ts;
sys/nfs/nfs_vnops.c
1629
getnanotime(&ts);
sys/nfs/nfs_vnops.c
1631
vap->va_atime = ts;
sys/nfs/nfs_vnops.c
1633
vap->va_mtime = ts;
sys/sys/syscallargs.h
553
syscallarg(const struct timespec *) ts;
sys/sys/syscallargs.h
562
syscallarg(const struct timespec *) ts;
sys/sys/time.h
243
BINTIME_TO_TIMESPEC(const struct bintime *bt, struct timespec *ts)
sys/sys/time.h
245
ts->tv_sec = bt->sec;
sys/sys/time.h
246
ts->tv_nsec = FRAC_TO_NSEC(bt->frac);
sys/sys/time.h
250
TIMESPEC_TO_BINTIME(const struct timespec *ts, struct bintime *bt)
sys/sys/time.h
252
bt->sec = ts->tv_sec;
sys/sys/time.h
254
bt->frac = (uint64_t)ts->tv_nsec * (uint64_t)18446744073ULL;
sys/sys/time.h
399
NSEC_TO_TIMESPEC(uint64_t ns, struct timespec *ts)
sys/sys/time.h
401
ts->tv_sec = ns / 1000000000L;
sys/sys/time.h
402
ts->tv_nsec = ns % 1000000000L;
sys/sys/time.h
430
TIMESPEC_TO_NSEC(const struct timespec *ts)
sys/sys/time.h
432
if (ts->tv_sec > (UINT64_MAX - ts->tv_nsec) / 1000000000ULL)
sys/sys/time.h
434
return ts->tv_sec * 1000000000ULL + ts->tv_nsec;
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/timetc.h
116
void tc_setclock(const struct timespec *ts);
sys/sys/timetc.h
117
void tc_setrealtimeclock(const struct timespec *ts);
sys/ufs/ext2fs/ext2fs_inode.c
107
struct timespec ts;
sys/ufs/ext2fs/ext2fs_inode.c
125
getnanotime(&ts);
sys/ufs/ext2fs/ext2fs_inode.c
126
ip->i_e2fs_dtime = ts.tv_sec;
sys/ufs/ufs/ufs_vnops.c
117
getnanotime(&ts);
sys/ufs/ufs/ufs_vnops.c
119
DIP_ASSIGN(ip, atime, ts.tv_sec);
sys/ufs/ufs/ufs_vnops.c
120
DIP_ASSIGN(ip, atimensec, ts.tv_nsec);
sys/ufs/ufs/ufs_vnops.c
123
DIP_ASSIGN(ip, mtime, ts.tv_sec);
sys/ufs/ufs/ufs_vnops.c
124
DIP_ASSIGN(ip, mtimensec, ts.tv_nsec);
sys/ufs/ufs/ufs_vnops.c
127
DIP_ASSIGN(ip, ctime, ts.tv_sec);
sys/ufs/ufs/ufs_vnops.c
128
DIP_ASSIGN(ip, ctimensec, ts.tv_nsec);
sys/ufs/ufs/ufs_vnops.c
96
struct timespec ts;
usr.bin/cdio/cdio.c
1001
toc2msf(tr2+1, &tm, &ts, &tf);
usr.bin/cdio/cdio.c
1002
if (cmpmsf(m2, s2, f2, tm, ts, tf) == 1) {
usr.bin/cdio/cdio.c
1008
toc2msf(n+1, &tm, &ts, &tf);
usr.bin/cdio/cdio.c
1013
s2 = ts;
usr.bin/cdio/cdio.c
1015
} else if (cmpmsf(m2, s2, f2, tm, ts, tf) == 1) {
usr.bin/cdio/cdio.c
688
unsigned char tm, ts, tf;
usr.bin/cdio/cdio.c
975
toc2msf(tr1, &tm, &ts, &tf);
usr.bin/cdio/cdio.c
976
addmsf(&m1, &s1, &f1, tm, ts, tf);
usr.bin/cdio/cdio.c
979
toc2msf(tr1+1, &tm, &ts, &tf);
usr.bin/cdio/cdio.c
980
if (cmpmsf(m1, s1, f1, tm, ts, tf) == 1) {
usr.bin/cdio/cdio.c
986
toc2msf(n+1, &tm, &ts, &tf);
usr.bin/cdio/cdio.c
987
if (cmpmsf(m1, s1, f1, tm, ts, tf) == 1) {
usr.bin/cdio/cdio.c
997
toc2msf(tr2, &tm, &ts, &tf);
usr.bin/cdio/cdio.c
998
addmsf(&m2, &s2, &f2, tm, ts, tf);
usr.bin/cdio/mmc.c
437
struct timespec ts, ots, ats;
usr.bin/cdio/mmc.c
504
clock_gettime(CLOCK_MONOTONIC, &ts);
usr.bin/cdio/mmc.c
505
if (lba == end_lba || timespeccmp(&ts, &ots, >)) {
usr.bin/cdio/mmc.c
510
timespecadd(&ts, &ats, &ots);
usr.bin/cdio/rip.c
367
struct timespec ts, ots, ats;
usr.bin/cdio/rip.c
383
clock_gettime(CLOCK_MONOTONIC, &ts);
usr.bin/cdio/rip.c
384
if (timespeccmp(&ts, &ots, >)) {
usr.bin/cdio/rip.c
389
timespecadd(&ts, &ats, &ots);
usr.bin/compress/main.c
793
struct timespec ts[2];
usr.bin/compress/main.c
826
ts[0] = fs->st_atim;
usr.bin/compress/main.c
827
ts[1] = fs->st_mtim;
usr.bin/compress/main.c
828
if (futimens(fd, ts))
usr.bin/cvs/file.c
1071
struct timespec ts[2];
usr.bin/cvs/file.c
1119
ts[0] = st.st_atim;
usr.bin/cvs/file.c
1120
ts[1] = st.st_mtim;
usr.bin/cvs/file.c
1122
if (futimens(dst, ts) == -1) {
usr.bin/ftp/fetch.c
1134
ts[0].tv_nsec = UTIME_NOW;
usr.bin/ftp/fetch.c
1135
ts[1].tv_nsec = 0;
usr.bin/ftp/fetch.c
1137
if (((ts[1].tv_sec = mktime(&lmt)) != -1) &&
usr.bin/ftp/fetch.c
1138
(futimens(out, ts) == -1))
usr.bin/ftp/fetch.c
339
struct timespec ts[2];
usr.bin/kdump/ktrstruct.c
616
struct timespec ts;
usr.bin/kdump/ktrstruct.c
618
if (datalen != sizeof(ts))
usr.bin/kdump/ktrstruct.c
620
memcpy(&ts, data, datalen);
usr.bin/kdump/ktrstruct.c
621
ktrtimespec(&ts, name[0] == 'r');
usr.bin/lndir/lndir.c
121
if (stat(tn, &ts) == -1)
usr.bin/lndir/lndir.c
123
if (!(S_ISDIR(ts.st_mode)))
usr.bin/lndir/lndir.c
134
exit(dodir(fn, &fs, &ts, 0));
usr.bin/lndir/lndir.c
179
struct stat *fs, *ts; /* stats for the "from" directory and cwd */
usr.bin/lndir/lndir.c
183
dodir(char *fn, struct stat *fs, struct stat *ts, int rel)
usr.bin/lndir/lndir.c
194
if (fs->st_dev == ts->st_dev && fs->st_ino == ts->st_ino) {
usr.bin/lndir/lndir.c
85
struct stat fs, ts;
usr.bin/mail/util.c
332
struct timespec ts[2];
usr.bin/mail/util.c
334
clock_gettime(CLOCK_REALTIME, &ts[0]);
usr.bin/mail/util.c
335
ts[0].tv_sec++;
usr.bin/mail/util.c
336
ts[1].tv_nsec = UTIME_OMIT;
usr.bin/mail/util.c
337
(void)utimensat(AT_FDCWD, name, ts, 0);
usr.bin/mg/file.c
731
char ts[NFILEN];
usr.bin/mg/file.c
734
(void)strlcpy(ts, path, NFILEN);
usr.bin/mg/file.c
735
len = strlcpy(dp, dirname(ts), dplen);
usr.bin/mg/file.c
751
char ts[NFILEN];
usr.bin/mg/file.c
753
(void)strlcpy(ts, path, NFILEN);
usr.bin/mg/file.c
754
return (strlcpy(bp, basename(ts), bplen));
usr.bin/rcs/rcsutil.c
75
struct timespec ts[2];
usr.bin/rcs/rcsutil.c
80
ts[0] = ts[1] = mtime;
usr.bin/rcs/rcsutil.c
82
if (futimens(fileno(file->rf_file), ts) == -1)
usr.bin/rsync/receiver.c
113
struct timespec ts[2];
usr.bin/rsync/receiver.c
119
ts[0].tv_nsec = UTIME_NOW;
usr.bin/rsync/receiver.c
120
ts[1].tv_sec = f->st.mtime;
usr.bin/rsync/receiver.c
121
ts[1].tv_nsec = 0;
usr.bin/rsync/receiver.c
122
if (utimensat(rootfd, path, ts, AT_SYMLINK_NOFOLLOW) == -1) {
usr.bin/rsync/receiver.c
52
struct timespec ts[2];
usr.bin/rsync/receiver.c
57
ts[0].tv_nsec = UTIME_NOW;
usr.bin/rsync/receiver.c
58
ts[1].tv_sec = f->st.mtime;
usr.bin/rsync/receiver.c
59
ts[1].tv_nsec = 0;
usr.bin/rsync/receiver.c
60
if (futimens(fd, ts) == -1) {
usr.bin/rsync/session.c
103
uint64_t tw, tr, ts;
usr.bin/rsync/session.c
110
ts = sess->total_size;
usr.bin/rsync/session.c
119
} else if (!io_write_ulong(sess, fd, ts)) {
usr.bin/rsync/session.c
125
stats_log(sess, tr, tw, ts);
usr.bin/rsync/session.c
139
uint64_t tr, tw, ts;
usr.bin/rsync/session.c
150
} else if (!io_read_ulong(sess, fd, &ts)) {
usr.bin/rsync/session.c
155
stats_log(sess, tr, tw, ts);
usr.bin/rsync/session.c
34
double tr, tw, ts;
usr.bin/rsync/session.c
73
ts = tsize / (1024.0 * 1024.0 * 1024.0);
usr.bin/rsync/session.c
77
ts = tsize / (1024.0 * 1024.0);
usr.bin/rsync/session.c
81
ts = tsize / 1024.0;
usr.bin/rsync/session.c
85
ts = tsize;
usr.bin/rsync/session.c
91
tssz, ts, tsu);
usr.bin/sndiod/file.c
313
struct timespec ts;
usr.bin/sndiod/file.c
401
clock_gettime(CLOCK_UPTIME, &ts);
usr.bin/sndiod/file.c
403
file_wtime += 1000000000LL * (ts.tv_sec - sleepts.tv_sec);
usr.bin/sndiod/file.c
404
file_wtime += ts.tv_nsec - sleepts.tv_nsec;
usr.bin/sndiod/file.c
407
delta_nsec = 1000000000LL * (ts.tv_sec - file_ts.tv_sec);
usr.bin/sndiod/file.c
408
delta_nsec += ts.tv_nsec - file_ts.tv_nsec;
usr.bin/sndiod/file.c
414
file_ts = ts;
usr.bin/sndiod/sock.c
1177
f->wmsg.u.ts.delta = htonl(f->slot->delta);
usr.bin/sndiod/sock.c
1204
f->wmsg.u.ts.delta = htonl(f->fillpending);
usr.bin/snmp/snmpc.c
786
struct timespec ts;
usr.bin/snmp/snmpc.c
804
if (clock_gettime(CLOCK_UPTIME, &ts) == -1)
usr.bin/snmp/snmpc.c
810
ts.tv_sec = lval / 100;
usr.bin/snmp/snmpc.c
811
ts.tv_nsec = (lval % 100) * 10000000;
usr.bin/snmp/snmpc.c
819
snmp_trap(agent, &ts, &trapoid, snmpc_varbindparse(argc, argv));
usr.bin/ssh/auth2.c
238
struct timespec ts;
usr.bin/ssh/auth2.c
251
ts.tv_sec = remain;
usr.bin/ssh/auth2.c
252
ts.tv_nsec = (remain - ts.tv_sec) * 1000000000;
usr.bin/ssh/auth2.c
255
nanosleep(&ts, NULL);
usr.bin/ssh/krl.c
809
format_timestamp(uint64_t timestamp, char *ts, size_t nts)
usr.bin/ssh/krl.c
817
strlcpy(ts, "<INVALID>", nts);
usr.bin/ssh/krl.c
819
*ts = '\0';
usr.bin/ssh/krl.c
820
strftime(ts, nts, "%Y%m%dT%H%M%S", tm);
usr.bin/ssh/misc.c
1728
ms_to_timespec(struct timespec *ts, int ms)
usr.bin/ssh/misc.c
1732
ts->tv_sec = ms / 1000;
usr.bin/ssh/misc.c
1733
ts->tv_nsec = (ms % 1000) * 1000 * 1000;
usr.bin/ssh/misc.c
1737
monotime_ts(struct timespec *ts)
usr.bin/ssh/misc.c
1739
if (clock_gettime(CLOCK_MONOTONIC, ts) != 0)
usr.bin/ssh/misc.c
1746
struct timespec ts;
usr.bin/ssh/misc.c
1748
monotime_ts(&ts);
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/misc.c
1756
struct timespec ts;
usr.bin/ssh/misc.c
1758
monotime_ts(&ts);
usr.bin/ssh/misc.c
1759
return (ts.tv_sec);
usr.bin/ssh/misc.c
1765
struct timespec ts;
usr.bin/ssh/misc.c
1767
monotime_ts(&ts);
usr.bin/ssh/misc.c
1768
return (double)ts.tv_sec + (double)ts.tv_nsec / 1000000000.0;
usr.bin/ssh/misc.c
1787
struct timespec ts, rm;
usr.bin/ssh/misc.c
1822
TIMEVAL_TO_TIMESPEC(&bw->bwend, &ts);
usr.bin/ssh/misc.c
1823
while (nanosleep(&ts, &rm) == -1) {
usr.bin/ssh/misc.c
1826
ts = rm;
usr.bin/ssh/sftp-server.c
967
static struct timespec ts[2];
usr.bin/ssh/sftp-server.c
969
ts[0].tv_sec = a->atime;
usr.bin/ssh/sftp-server.c
970
ts[0].tv_nsec = 0;
usr.bin/ssh/sftp-server.c
971
ts[1].tv_sec = a->mtime;
usr.bin/ssh/sftp-server.c
972
ts[1].tv_nsec = 0;
usr.bin/ssh/sftp-server.c
973
return ts;
usr.bin/tail/forward.c
191
if ((nevents = kevent(kq, NULL, 0, &ke, 1, ts)) <= 0) {
usr.bin/tail/forward.c
233
ts = tfreopen(NULL);
usr.bin/tail/forward.c
332
static const struct timespec ts = {1, 0};
usr.bin/tail/forward.c
380
return nfiles ? &ts : NULL;
usr.bin/tail/forward.c
84
const struct timespec *ts = NULL;
usr.bin/tcpbench/tcpbench.c
291
struct timespec ts;
usr.bin/tcpbench/tcpbench.c
293
if (clock_gettime(clock_id, &ts) == -1)
usr.bin/tcpbench/tcpbench.c
296
TIMESPEC_TO_TIMEVAL(tv, &ts);
usr.bin/tcpbench/tcpbench.c
675
struct tcpservsock *ts = arg;
usr.bin/tcpbench/tcpbench.c
693
event_add(&ts->ev, NULL);
usr.bin/tcpbench/tcpbench.c
705
event_del(&ts->ev);
usr.bin/tcpbench/tcpbench.c
706
evtimer_add(&ts->evt, &evtpause);
usr.bin/tcpbench/tcpbench.c
727
sc->tcp_ts = ts;
usr.bin/tcpbench/tcpbench.c
752
struct tcpservsock *ts;
usr.bin/tcpbench/tcpbench.c
818
if ((ts = calloc(1, sizeof(*ts))) == NULL)
usr.bin/tcpbench/tcpbench.c
821
ts->fd = sock;
usr.bin/tcpbench/tcpbench.c
822
evtimer_set(&ts->evt, tcp_server_accept, ts);
usr.bin/tcpbench/tcpbench.c
823
event_set(&ts->ev, ts->fd, EV_READ,
usr.bin/tcpbench/tcpbench.c
824
tcp_server_accept, ts);
usr.bin/tcpbench/tcpbench.c
825
event_add(&ts->ev, NULL);
usr.bin/tmux/tmux.c
277
struct timespec ts;
usr.bin/tmux/tmux.c
283
if (clock_gettime(CLOCK_MONOTONIC, &ts) != 0)
usr.bin/tmux/tmux.c
284
clock_gettime(CLOCK_REALTIME, &ts);
usr.bin/tmux/tmux.c
285
return ((ts.tv_sec * 1000ULL) + (ts.tv_nsec / 1000000ULL));
usr.bin/tmux/window-clock.c
131
struct timespec ts;
usr.bin/tmux/window-clock.c
134
clock_gettime(CLOCK_REALTIME, &ts);
usr.bin/tmux/window-clock.c
135
delay = 1000000 - (ts.tv_nsec / 1000);
usr.bin/touch/touch.c
108
stime_arg2(*argv++, len == 10, ts);
usr.bin/touch/touch.c
114
ts[0].tv_nsec = ts[1].tv_nsec = UTIME_NOW;
usr.bin/touch/touch.c
117
ts[0].tv_nsec = UTIME_OMIT;
usr.bin/touch/touch.c
119
ts[1].tv_nsec = UTIME_OMIT;
usr.bin/touch/touch.c
126
if (! utimensat(AT_FDCWD, *argv, ts, 0))
usr.bin/touch/touch.c
145
if (futimens(fd, ts) == -1) {
usr.bin/touch/touch.c
56
struct timespec ts[2];
usr.bin/touch/touch.c
74
stime_argd(optarg, ts);
usr.bin/touch/touch.c
83
stime_file(optarg, ts);
usr.bin/touch/touch.c
87
stime_arg1(optarg, ts);
usr.bin/ts/ts.c
116
timespecsub(&now, &start, &ts);
usr.bin/ts/ts.c
118
timespecadd(&now, &utc_offset, &ts);
usr.bin/ts/ts.c
120
ts = now;
usr.bin/ts/ts.c
121
fmtprint(&ts);
usr.bin/ts/ts.c
183
fmtprint(const struct timespec *ts)
usr.bin/ts/ts.c
189
if ((tm = localtime(&ts->tv_sec)) == NULL)
usr.bin/ts/ts.c
194
snprintf(us, sizeof(us), "%06ld", ts->tv_nsec / 1000);
usr.bin/ts/ts.c
52
struct timespec start, now, utc_offset, ts;
usr.bin/vi/cl/cl_term.c
39
char *ts; /* Key's termcap string. */
usr.bin/vi/cl/cl_term.c
86
if ((t = tigetstr(tkp->ts)) == NULL || t == (char *)-1)
usr.bin/vi/cl/cl_term.c
99
if ((t = tigetstr(tkp->ts)) == NULL || t == (char *)-1)
usr.bin/vi/ex/ex_print.c
200
size_t col, tlen, ts;
usr.bin/vi/ex/ex_print.c
204
ts = O_VAL(sp, O_TABSTOP);
usr.bin/vi/ex/ex_print.c
207
for (tlen = ts - col % ts;
usr.bin/vi/ex/ex_txt.c
376
u_long sw, ts;
usr.bin/vi/ex/ex_txt.c
379
ts = O_VAL(sp, O_TABSTOP);
usr.bin/vi/ex/ex_txt.c
385
scno += COL_OFF(scno, ts);
usr.bin/vi/ex/ex_txt.c
406
for (; cno + COL_OFF(cno, ts) <= scno; ++tabs)
usr.bin/vi/ex/ex_txt.c
407
cno += COL_OFF(cno, ts);
usr.bin/vi/vi/v_txt.c
1649
u_long ts;
usr.bin/vi/vi/v_txt.c
1677
ts = O_VAL(sp, O_TABSTOP);
usr.bin/vi/vi/v_txt.c
1685
scno += COL_OFF(scno, ts);
usr.bin/vi/vi/v_txt.c
1696
if ((!spaces || (!tab_after_sp && spaces < ts)) &&
usr.bin/vi/vi/v_txt.c
1704
for (; cno + COL_OFF(cno, ts) <= scno; ++tabs)
usr.bin/vi/vi/v_txt.c
1705
cno += COL_OFF(cno, ts);
usr.bin/vi/vi/v_txt.c
1866
u_long sw, ts;
usr.bin/vi/vi/v_txt.c
1870
ts = O_VAL(sp, O_TABSTOP);
usr.bin/vi/vi/v_txt.c
1891
COL_OFF(current, ts) : KEY_LEN(sp, tp->lb[cno]);
usr.bin/vi/vi/v_txt.c
1921
COL_OFF(current, ts) : KEY_LEN(sp, tp->lb[cno]);
usr.bin/vi/vi/v_txt.c
1941
for (; cno + COL_OFF(cno, ts) <= target; ++tabs)
usr.bin/vi/vi/v_txt.c
1942
cno += COL_OFF(cno, ts);
usr.bin/vi/vi/vs_msg.c
119
(void)clock_gettime(CLOCK_MONOTONIC, &ts);
usr.bin/vi/vi/vs_msg.c
120
ts_diff = ts;
usr.bin/vi/vi/vs_msg.c
130
vip->busy_ts = ts;
usr.bin/vi/vi/vs_msg.c
63
struct timespec ts, ts_diff;
usr.bin/xinstall/xinstall.c
222
struct timespec ts[2];
usr.bin/xinstall/xinstall.c
309
ts[0] = to_sb.st_atim;
usr.bin/xinstall/xinstall.c
310
ts[1] = to_sb.st_mtim;
usr.bin/xinstall/xinstall.c
311
futimens(temp_fd, ts);
usr.bin/xinstall/xinstall.c
329
ts[0] = from_sb.st_atim;
usr.bin/xinstall/xinstall.c
330
ts[1] = from_sb.st_mtim;
usr.bin/xinstall/xinstall.c
331
futimens(to_fd, ts);
usr.sbin/apmd/apmd.c
426
struct timespec ts = {TIMO, 0}, sts = {0, 0};
usr.sbin/apmd/apmd.c
450
ts.tv_sec = strtonum(optarg, 1, LLONG_MAX, &errstr);
usr.sbin/apmd/apmd.c
561
sts = ts;
usr.sbin/bgpctl/ometric.c
323
(long long)ov->value.ts.tv_sec, ov->value.ts.tv_nsec);
usr.sbin/bgpctl/ometric.c
438
ometric_set_timespec(struct ometric *om, const struct timespec *ts,
usr.sbin/bgpctl/ometric.c
449
ov->value.ts = *ts;
usr.sbin/bgpctl/ometric.c
528
ometric_set_timespec_with_labels(struct ometric *om, struct timespec *ts,
usr.sbin/bgpctl/ometric.c
534
ometric_set_timespec(om, ts, extra);
usr.sbin/bgpctl/ometric.c
55
struct timespec ts;
usr.sbin/bgpd/monotime.c
23
monotime_from_ts(struct timespec *ts)
usr.sbin/bgpd/monotime.c
27
mt = monotime_from_sec(ts->tv_sec);
usr.sbin/bgpd/monotime.c
28
mt.monotime += ts->tv_nsec / (1000 * 1000 * 1000LL / MONOTIME_RES);
usr.sbin/bgpd/monotime.c
35
struct timespec ts;
usr.sbin/bgpd/monotime.c
37
if (clock_gettime(CLOCK_MONOTONIC, &ts) != 0)
usr.sbin/bgpd/monotime.c
39
return monotime_from_ts(&ts);
usr.sbin/bgpd/rde_peer.c
609
struct timespec ts = { .tv_nsec = 1000 * 1000 };
usr.sbin/bgpd/rde_peer.c
610
nanosleep(&ts, NULL);
usr.sbin/bgpd/rde_peer.c
720
struct timespec ts = { .tv_nsec = 1000 * 1000 };
usr.sbin/bgpd/rde_peer.c
721
nanosleep(&ts, NULL);
usr.sbin/bpflogd/bpflogd.c
623
pp->ts = bh->bh_tstamp;
usr.sbin/btrace/btrace.c
775
struct timespec ts;
usr.sbin/btrace/btrace.c
778
clock_gettime(CLOCK_REALTIME, &ts);
usr.sbin/btrace/btrace.c
779
return ts.tv_sec;
usr.sbin/btrace/btrace.c
786
TIMESPEC_TO_NSEC(struct timespec *ts)
usr.sbin/btrace/btrace.c
788
return (ts->tv_sec * 1000000000L + ts->tv_nsec);
usr.sbin/btrace/btrace.c
794
struct timespec ts;
usr.sbin/btrace/btrace.c
797
clock_gettime(CLOCK_REALTIME, &ts);
usr.sbin/btrace/btrace.c
798
return TIMESPEC_TO_NSEC(&ts);
usr.sbin/cron/atrun.c
137
if (ts != NULL && run_time <= ts->tv_sec)
usr.sbin/cron/atrun.c
60
scan_atjobs(at_db **db, struct timespec *ts)
usr.sbin/cron/crontab.c
263
struct timespec ts[2];
usr.sbin/cron/crontab.c
280
ts[0] = statbuf.st_atim;
usr.sbin/cron/crontab.c
281
ts[1] = statbuf.st_mtim;
usr.sbin/cron/crontab.c
309
if (futimens(t, ts) == -1)
usr.sbin/cron/crontab.c
336
if (timespeccmp(&ts[1], &statbuf.st_mtim, ==)) {
usr.sbin/eigrpd/tlv.c
104
memset(&ts, 0, sizeof(ts));
usr.sbin/eigrpd/tlv.c
105
ts.type = htons(TLV_TYPE_SW_VERSION);
usr.sbin/eigrpd/tlv.c
106
ts.length = htons(TLV_TYPE_SW_VERSION_LEN);
usr.sbin/eigrpd/tlv.c
110
ts.vendor_os_major = (uint8_t) vendor_os_major;
usr.sbin/eigrpd/tlv.c
111
ts.vendor_os_minor = (uint8_t) vendor_os_minor;
usr.sbin/eigrpd/tlv.c
114
ts.eigrp_major = EIGRP_VERSION_MAJOR;
usr.sbin/eigrpd/tlv.c
115
ts.eigrp_minor = EIGRP_VERSION_MINOR;
usr.sbin/eigrpd/tlv.c
117
return (ibuf_add(buf, &ts, sizeof(ts)));
usr.sbin/eigrpd/tlv.c
99
struct tlv_sw_version ts;
usr.sbin/httpd/httpd.c
1259
struct timespec ts;
usr.sbin/httpd/httpd.c
1261
if (clock_gettime(CLOCK_MONOTONIC, &ts))
usr.sbin/httpd/httpd.c
1264
TIMESPEC_TO_TIMEVAL(tv, &ts);
usr.sbin/mtree/compare.c
199
struct timespec ts[2];
usr.sbin/mtree/compare.c
201
ts[0] = s->st_mtim;
usr.sbin/mtree/compare.c
202
ts[1] = p->fts_statp->st_mtim;
usr.sbin/mtree/compare.c
203
if (ts[0].tv_sec != ts[1].tv_sec ||
usr.sbin/mtree/compare.c
204
ts[0].tv_nsec != ts[1].tv_nsec) {
usr.sbin/mtree/compare.c
210
ts[1] = ts[0];
usr.sbin/mtree/compare.c
211
if (utimensat(AT_FDCWD, p->fts_accpath, ts, 0))
usr.sbin/npppd/common/time_utils.c
41
struct timespec ts;
usr.sbin/npppd/common/time_utils.c
44
if (clock_gettime(CLOCK_MONOTONIC, &ts) < 0)
usr.sbin/npppd/common/time_utils.c
46
rval = (int64_t)ts.tv_sec * (int64_t)1000000000LL;
usr.sbin/npppd/common/time_utils.c
47
rval = rval + (int64_t)ts.tv_nsec;
usr.sbin/ntpd/util.c
68
struct timespec ts;
usr.sbin/ntpd/util.c
70
if (clock_gettime(CLOCK_MONOTONIC, &ts) != 0)
usr.sbin/ntpd/util.c
73
return (ts.tv_sec);
usr.sbin/radiusd/radiusd_eap2mschap.c
786
struct timespec ts;
usr.sbin/radiusd/radiusd_eap2mschap.c
788
if (clock_gettime(CLOCK_MONOTONIC, &ts) != 0)
usr.sbin/radiusd/radiusd_eap2mschap.c
791
return (ts.tv_sec);
usr.sbin/relayd/util.c
282
struct timespec ts;
usr.sbin/relayd/util.c
284
if (clock_gettime(CLOCK_MONOTONIC, &ts))
usr.sbin/relayd/util.c
287
TIMESPEC_TO_TIMEVAL(tv, &ts);
usr.sbin/rpki-client/main.c
115
struct timespec ts;
usr.sbin/rpki-client/main.c
117
if (clock_gettime(CLOCK_MONOTONIC, &ts) != 0)
usr.sbin/rpki-client/main.c
119
return (ts.tv_sec);
usr.sbin/rpki-client/main.c
1551
struct timespec ts;
usr.sbin/rpki-client/main.c
1553
TIMEVAL_TO_TIMESPEC(&ru.ru_utime, &ts);
usr.sbin/rpki-client/main.c
1554
timespecadd(&stats.user_time, &ts, &stats.user_time);
usr.sbin/rpki-client/main.c
1555
TIMEVAL_TO_TIMESPEC(&ru.ru_stime, &ts);
usr.sbin/rpki-client/main.c
1556
timespecadd(&stats.system_time, &ts, &stats.system_time);
usr.sbin/rpki-client/ometric.c
325
(long long)ov->value.ts.tv_sec, ov->value.ts.tv_nsec);
usr.sbin/rpki-client/ometric.c
440
ometric_set_timespec(struct ometric *om, const struct timespec *ts,
usr.sbin/rpki-client/ometric.c
451
ov->value.ts = *ts;
usr.sbin/rpki-client/ometric.c
519
ometric_set_timespec_with_labels(struct ometric *om, struct timespec *ts,
usr.sbin/rpki-client/ometric.c
525
ometric_set_timespec(om, ts, extra);
usr.sbin/rpki-client/ometric.c
55
struct timespec ts;
usr.sbin/rpki-client/output.c
192
struct timespec ts[2];
usr.sbin/rpki-client/output.c
197
ts[0].tv_nsec = UTIME_OMIT;
usr.sbin/rpki-client/output.c
198
ts[1].tv_sec = buildtime;
usr.sbin/rpki-client/output.c
199
ts[1].tv_nsec = 0;
usr.sbin/rpki-client/output.c
201
if (utimensat(AT_FDCWD, output_tmpname, ts, 0) == -1)
usr.sbin/rpki-client/repo.c
1776
struct timespec ts[2];
usr.sbin/rpki-client/repo.c
1778
ts[0].tv_nsec = UTIME_OMIT;
usr.sbin/rpki-client/repo.c
1779
ts[1].tv_sec = fp->mtime;
usr.sbin/rpki-client/repo.c
1780
ts[1].tv_nsec = 0;
usr.sbin/rpki-client/repo.c
1781
ret = utimensat(AT_FDCWD, fp->file, ts, 0);
usr.sbin/sasyncd/sasyncd.c
105
timeout = &ts;
usr.sbin/sasyncd/sasyncd.c
106
timer_next_event(&ts);
usr.sbin/sasyncd/sasyncd.c
59
struct timespec *timeout, ts;
usr.sbin/sasyncd/timer.c
70
timer_next_event(struct timespec *ts)
usr.sbin/sasyncd/timer.c
78
timespecclear(ts);
usr.sbin/sasyncd/timer.c
80
timespecsub(&e->expire, &now, ts);
usr.sbin/sasyncd/timer.c
82
ts->tv_sec = 60; /* "Best guess". */
usr.sbin/sasyncd/timer.c
83
ts->tv_nsec = 0;
usr.sbin/smtpd/smtpctl.c
859
(long long)kv.val.u.ts.tv_sec * 1000000 +
usr.sbin/smtpd/smtpctl.c
860
kv.val.u.ts.tv_nsec / 1000000,
usr.sbin/smtpd/smtpctl.c
861
kv.val.u.ts.tv_nsec % 1000000);
usr.sbin/smtpd/smtpd.h
933
struct timespec ts;
usr.sbin/smtpd/stat_backend.c
103
stat_timespec(struct timespec *ts)
usr.sbin/smtpd/stat_backend.c
108
value.u.ts = *ts;
usr.sbin/tcpdump/print-802_11.c
1414
ts_print(&h->ts);
usr.sbin/tcpdump/print-802_11.c
1442
ts_print(&h->ts);
usr.sbin/tcpdump/print-atm.c
57
ts_print(&h->ts);
usr.sbin/tcpdump/print-enc.c
65
ts_print(&h->ts);
usr.sbin/tcpdump/print-ether.c
91
ts_print(&h->ts);
usr.sbin/tcpdump/print-fddi.c
264
ts_print(&h->ts);
usr.sbin/tcpdump/print-null.c
118
ts_print(&h->ts);
usr.sbin/tcpdump/print-ofp.c
530
ts_print(&h->ts);
usr.sbin/tcpdump/print-pflog.c
65
ts_print(&h->ts);
usr.sbin/tcpdump/print-pfsync.c
65
ts_print(&h->ts);
usr.sbin/tcpdump/print-ppp.c
1178
ts_print(&h->ts);
usr.sbin/tcpdump/print-ppp.c
1199
ts_print(&h->ts);
usr.sbin/tcpdump/print-ppp.c
1449
ts_print(&h->ts);
usr.sbin/tcpdump/print-raw.c
61
ts_print(&h->ts);
usr.sbin/tcpdump/print-sl.c
124
ts_print(&h->ts);
usr.sbin/tcpdump/print-sl.c
78
ts_print(&h->ts);
usr.sbin/tcpdump/print-udp.c
115
u_int ts = *(u_short *)hdr;
usr.sbin/tcpdump/print-udp.c
116
if ((ts & 0xf060) != 0) {
usr.sbin/tcpdump/print-udp.c
120
ts & 0x3ff, ts >> 10);
usr.sbin/tcpdump/print-udp.c
212
double ts, dts;
usr.sbin/tcpdump/print-udp.c
232
ts = (double)((u_int32_t)ntohl(sr->sr_ntp.upper)) +
usr.sbin/tcpdump/print-udp.c
235
printf(" @%.2f %u %up %ub", ts, (u_int32_t)ntohl(sr->sr_ts),
usr.sbin/tcpdump/print-udp.c
273
ts = (double)((u_int32_t)ntohl(rr->rr_lsr)) / 65536.;
usr.sbin/tcpdump/print-udp.c
278
(u_int32_t)ntohl(rr->rr_dv), ts, dts);
usr.sbin/tcpdump/print-usbpcap.c
48
ts_print(&h->ts);
usr.sbin/tcpdump/print-wb.c
312
int ts = ntohl(dh->dh_ts);
usr.sbin/tcpdump/print-wb.c
313
printf("%d", ts - ss + 1);
usr.sbin/tcpdump/print-wb.c
314
if (ss > ts || ts > es) {
usr.sbin/tcpdump/print-wb.c
316
if (ts < ss)
usr.sbin/tcpdump/print-wb.c
319
ss = ts;
usr.sbin/traceroute/worker.c
1018
struct timespec ts;
usr.sbin/traceroute/worker.c
1020
if (clock_gettime(CLOCK_MONOTONIC, &ts) == -1)
usr.sbin/traceroute/worker.c
1023
TIMESPEC_TO_TIMEVAL(tv, &ts);
usr.sbin/unbound/dnscrypt/dnscrypt.c
424
uint64_t ts = (uint64_t)0U;
usr.sbin/unbound/dnscrypt/dnscrypt.c
429
ts = (uint64_t)tv.tv_sec * 1000000U + (uint64_t)tv.tv_usec;
usr.sbin/unbound/dnscrypt/dnscrypt.c
433
return ts;
usr.sbin/unbound/services/cache/infra.c
1124
char ts[12], cs[12], ip[128];
usr.sbin/unbound/services/cache/infra.c
1127
sldns_wire2str_type_buf(qinfo->qtype, ts, sizeof(ts));
usr.sbin/unbound/services/cache/infra.c
1133
verbose(VERB_OPS, "ratelimit exceeded %s %d query %s %s %s from %s", buf, lim, qnm, cs, ts, ip);
usr.sbin/unbound/services/cache/infra.c
1135
verbose(VERB_OPS, "ratelimit exceeded %s %d query %s %s %s", buf, lim, qnm, cs, ts);
usr.sbin/unbound/services/listen_dnsport.c
4266
ngtcp2_tstamp ts = doq_get_timestamp_nanosec();
usr.sbin/unbound/services/listen_dnsport.c
4271
path->remote.addrlen, ts);
usr.sbin/unbound/services/listen_dnsport.c
5251
ngtcp2_tstamp ts;
usr.sbin/unbound/services/listen_dnsport.c
5258
ts = doq_get_timestamp_nanosec();
usr.sbin/unbound/services/listen_dnsport.c
5262
sldns_buffer_limit(c->doq_socket->pkt_buf), ts);
usr.sbin/unbound/services/listen_dnsport.c
5350
ngtcp2_tstamp ts = doq_get_timestamp_nanosec();
usr.sbin/unbound/services/listen_dnsport.c
5403
&ndatalen, flags, stream_id, datav, datav_count, ts);
usr.sbin/unbound/services/listen_dnsport.c
5475
ngtcp2_conn_update_pkt_tx_time(conn->conn, ts);
usr.sbin/unbound/services/listen_dnsport.c
5489
ngtcp2_conn_update_pkt_tx_time(conn->conn, ts);
usr.sbin/unbound/testcode/doqclient.c
1789
ngtcp2_tstamp ts = get_timestamp_nanosec();
usr.sbin/unbound/testcode/doqclient.c
1878
ngtcp2_conn_update_pkt_tx_time(data->conn, ts);
usr.sbin/unbound/testcode/doqclient.c
1926
flags, stream_id, datav, datav_count, ts);
usr.sbin/unbound/testcode/doqclient.c
1959
ngtcp2_conn_update_pkt_tx_time(data->conn, ts);
usr.sbin/unbound/testcode/doqclient.c
1977
ngtcp2_conn_update_pkt_tx_time(data->conn, ts);
usr.sbin/unbound/testcode/doqclient.c
1993
ngtcp2_conn_update_pkt_tx_time(data->conn, ts);
usr.sbin/unbound/testcode/doqclient.c
2002
ngtcp2_tstamp ts = get_timestamp_nanosec();
usr.sbin/unbound/testcode/doqclient.c
2016
ngtcp2_conn_update_pkt_tx_time(data->conn, ts);
usr.sbin/unbound/testcode/doqclient.c
2024
ngtcp2_conn_update_pkt_tx_time(data->conn, ts);
usr.sbin/unbound/util/net_help.c
558
const char *ts, *cs;
usr.sbin/unbound/util/net_help.c
562
if(type == LDNS_RR_TYPE_TSIG) ts = "TSIG";
usr.sbin/unbound/util/net_help.c
563
else if(type == LDNS_RR_TYPE_IXFR) ts = "IXFR";
usr.sbin/unbound/util/net_help.c
564
else if(type == LDNS_RR_TYPE_AXFR) ts = "AXFR";
usr.sbin/unbound/util/net_help.c
565
else if(type == LDNS_RR_TYPE_MAILB) ts = "MAILB";
usr.sbin/unbound/util/net_help.c
566
else if(type == LDNS_RR_TYPE_MAILA) ts = "MAILA";
usr.sbin/unbound/util/net_help.c
567
else if(type == LDNS_RR_TYPE_ANY) ts = "ANY";
usr.sbin/unbound/util/net_help.c
569
ts = sldns_rr_descript(type)->_name;
usr.sbin/unbound/util/net_help.c
572
ts = t;
usr.sbin/unbound/util/net_help.c
581
log_info("%s %s %s %s", str, buf, ts, cs);
usr.sbin/unbound/util/net_help.c
589
const char *ts, *cs;
usr.sbin/unbound/util/net_help.c
591
if(type == LDNS_RR_TYPE_TSIG) ts = "TSIG";
usr.sbin/unbound/util/net_help.c
592
else if(type == LDNS_RR_TYPE_IXFR) ts = "IXFR";
usr.sbin/unbound/util/net_help.c
593
else if(type == LDNS_RR_TYPE_AXFR) ts = "AXFR";
usr.sbin/unbound/util/net_help.c
594
else if(type == LDNS_RR_TYPE_MAILB) ts = "MAILB";
usr.sbin/unbound/util/net_help.c
595
else if(type == LDNS_RR_TYPE_MAILA) ts = "MAILA";
usr.sbin/unbound/util/net_help.c
596
else if(type == LDNS_RR_TYPE_ANY) ts = "ANY";
usr.sbin/unbound/util/net_help.c
598
ts = sldns_rr_descript(type)->_name;
usr.sbin/unbound/util/net_help.c
601
ts = t;
usr.sbin/unbound/util/net_help.c
611
log_query("%s %s %s %s", str, buf, ts, cs);
usr.sbin/unbound/util/net_help.c
612
else log_info("%s %s %s %s", str, buf, ts, cs);
usr.sbin/unbound/util/netevent.c
1010
struct timespec *ts;
usr.sbin/unbound/util/netevent.c
1077
ts = (struct timespec *)CMSG_DATA(cmsg);
usr.sbin/unbound/util/netevent.c
1078
TIMESPEC_TO_TIMEVAL(&rep.c->recv_tv, ts);
usr.sbin/unbound/util/netevent.c
1081
ts = (struct timespec *)CMSG_DATA(cmsg);
usr.sbin/unbound/util/netevent.c
1082
TIMESPEC_TO_TIMEVAL(&rep.c->recv_tv, ts);
usr.sbin/unbound/util/netevent.c
1830
ngtcp2_tstamp ts;
usr.sbin/unbound/util/netevent.c
1844
ts = doq_get_timestamp_nanosec();
usr.sbin/unbound/util/netevent.c
1849
&hd->dcid, ts);
usr.sbin/unbound/util/netevent.c
1898
ngtcp2_tstamp ts;
usr.sbin/unbound/util/netevent.c
1904
ts = doq_get_timestamp_nanosec();
usr.sbin/unbound/util/netevent.c
1916
10*NGTCP2_SECONDS, ts) != 0) {
usr.sbin/unbound/util/netevent.c
1931
ngtcp2_tstamp ts;
usr.sbin/unbound/util/netevent.c
1937
ts = doq_get_timestamp_nanosec();
usr.sbin/unbound/util/netevent.c
1947
ts) != 0) {
usr.sbin/vipw/vipw.c
109
struct timespec ts[2];
usr.sbin/vipw/vipw.c
120
ts[0] = sb->st_atim;
usr.sbin/vipw/vipw.c
121
ts[1] = sb->st_mtim;
usr.sbin/vipw/vipw.c
122
(void)futimens(to, ts);
usr.sbin/vmd/i8253.c
138
timespecsub(&now, &i8253_channel[i].ts, &delta);
usr.sbin/vmd/i8253.c
186
timespecsub(&now, &i8253_channel[2].ts, &delta);
usr.sbin/vmd/i8253.c
255
timespecsub(&now, &i8253_channel[sel].ts,
usr.sbin/vmd/i8253.c
299
&i8253_channel[sel].ts);
usr.sbin/vmd/i8253.c
352
clock_gettime(CLOCK_MONOTONIC, &i8253_channel[chn].ts);
usr.sbin/vmd/i8253.c
82
clock_gettime(CLOCK_MONOTONIC, &i8253_channel[0].ts);
usr.sbin/vmd/i8253.h
33
struct timespec ts; /* timer start time */
usr.sbin/vmd/vmd.c
1763
struct timespec ts;
usr.sbin/vmd/vmd.c
1765
if (clock_gettime(CLOCK_MONOTONIC, &ts))
usr.sbin/vmd/vmd.c
1768
TIMESPEC_TO_TIMEVAL(tv, &ts);