bin/cp/utils.c
331
struct stat ts;
bin/cp/utils.c
350
if (fdval ? fstat(fd, &ts) :
bin/cp/utils.c
351
fstatat(to.dir, to.path, &ts, atflags)) {
bin/cp/utils.c
355
ts.st_mode &= S_ISUID | S_ISGID | S_ISVTX |
bin/cp/utils.c
364
if (!gotstat || fs->st_uid != ts.st_uid || fs->st_gid != ts.st_gid) {
bin/cp/utils.c
375
if (!gotstat || fs->st_mode != ts.st_mode) {
bin/cp/utils.c
383
if (!Nflag && (!gotstat || fs->st_flags != ts.st_flags)) {
bin/date/date.c
135
ts.tv_sec = number;
bin/date/date.c
136
ts.tv_nsec = 0;
bin/date/date.c
138
ts.tv_sec = sb.st_mtim.tv_sec;
bin/date/date.c
139
ts.tv_nsec = sb.st_mtim.tv_nsec;
bin/date/date.c
160
if (clock_gettime(CLOCK_REALTIME, &ts) == -1)
bin/date/date.c
180
setthetime(fmt, *argv, jflag, &ts);
bin/date/date.c
193
lt = localtime(&ts.tv_sec);
bin/date/date.c
206
printisodate(lt, ts.tv_nsec, tres.tv_nsec);
bin/date/date.c
217
ts.tv_nsec, tres.tv_nsec);
bin/date/date.c
255
setthetime(const char *fmt, const char *p, int jflag, struct timespec *ts)
bin/date/date.c
262
lt = localtime(&ts->tv_sec);
bin/date/date.c
344
ts->tv_sec = mktime(lt);
bin/date/date.c
347
ts->tv_nsec = 0;
bin/date/date.c
354
if (clock_settime(CLOCK_REALTIME, ts) != 0)
bin/date/date.c
82
struct timespec ts = { 0, 0 }, tres = { 0, 1 };
bin/ed/ed.h
120
char *ts; \
bin/ed/ed.h
123
if ((ts = (char *) realloc((b), ti += max((i), MINBUFSZ))) == NULL) { \
bin/ed/ed.h
130
if ((ts = (char *) malloc(ti += max((i), MINBUFSZ))) == NULL) { \
bin/ed/ed.h
138
(b) = ts; \
bin/ed/ed.h
146
char *ts; \
bin/ed/ed.h
148
if ((ts = (char *) realloc((b), ti += max((i), MINBUFSZ))) == NULL) { \
bin/ed/ed.h
155
(b) = ts; \
bin/ed/glbl.c
149
line_t **ts;
bin/ed/glbl.c
154
if ((ts = (line_t **) realloc(active_list,
bin/ed/glbl.c
163
if ((ts = (line_t **) malloc((ti += MINBUFSZ) *
bin/ed/glbl.c
173
active_list = ts;
bin/mv/mv.c
258
struct timespec ts[2];
bin/mv/mv.c
318
ts[0] = sbp->st_atim;
bin/mv/mv.c
319
ts[1] = sbp->st_mtim;
bin/mv/mv.c
320
if (futimens(to_fd, ts))
crypto/heimdal/kadmin/test_util.c
42
} ts[] = {
crypto/heimdal/kadmin/test_util.c
53
for (i = 0; i < sizeof(ts)/sizeof(ts[0]); i++) {
crypto/heimdal/kadmin/test_util.c
57
ret = str2time_t (ts[i].str, &t);
crypto/heimdal/kadmin/test_util.c
58
if (ret != ts[i].ret) {
crypto/heimdal/kadmin/test_util.c
62
else if (t != ts[i].t) {
crypto/heimdal/lib/asn1/gen_copy.c
103
char *ts;
crypto/heimdal/lib/asn1/gen_copy.c
119
if (asprintf (&ts, "%s(%s)->%s%s",
crypto/heimdal/lib/asn1/gen_copy.c
123
if (ts == NULL)
crypto/heimdal/lib/asn1/gen_copy.c
127
fprintf(codefile, "%s = malloc(sizeof(*%s));\n", ts, ts);
crypto/heimdal/lib/asn1/gen_copy.c
128
fprintf(codefile, "if(%s == NULL) goto fail;\n", ts);
crypto/heimdal/lib/asn1/gen_copy.c
131
copy_type (fs, ts, m->type, FALSE);
crypto/heimdal/lib/asn1/gen_copy.c
134
fprintf(codefile, "%s = NULL;\n", ts);
crypto/heimdal/lib/asn1/gen_copy.c
137
free (ts);
crypto/heimdal/lib/gssapi/krb5/init_sec_context.c
236
krb5_timestamp ts;
crypto/heimdal/lib/gssapi/krb5/init_sec_context.c
238
krb5_timeofday (context, &ts);
crypto/heimdal/lib/gssapi/krb5/init_sec_context.c
239
this_cred.times.endtime = ts + time_req;
crypto/heimdal/lib/ipc/common.c
144
struct timespec ts;
crypto/heimdal/lib/ipc/common.c
145
ts.tv_sec = t;
crypto/heimdal/lib/ipc/common.c
146
ts.tv_nsec = 0;
crypto/heimdal/lib/ipc/common.c
147
ret = pthread_cond_timedwait(&s->cond, &s->mutex, &ts);
crypto/heimdal/lib/roken/get_window_size.c
80
struct ttysize ts;
crypto/heimdal/lib/roken/get_window_size.c
82
ret = ioctl(fd, TIOCGSIZE, &ts);
crypto/heimdal/lib/roken/get_window_size.c
85
*lines = ts.ws_lines;
crypto/heimdal/lib/roken/get_window_size.c
87
*columns = ts.ts_cols;
crypto/heimdal/lib/wind/combining.c
52
struct translation ts = {code_point};
crypto/heimdal/lib/wind/combining.c
53
void *s = bsearch(&ts, _wind_combining_table, _wind_combining_table_size,
crypto/heimdal/lib/wind/map.c
61
struct translation ts = {in[i]};
crypto/heimdal/lib/wind/map.c
65
bsearch(&ts, _wind_map_table, _wind_map_table_size,
crypto/heimdal/lib/wind/normalize.c
130
struct translation ts = {in[i]};
crypto/heimdal/lib/wind/normalize.c
141
void *s = bsearch(&ts,
crypto/krb5/src/ccapi/common/win/OldCC/util.cxx
202
TOKEN_STATISTICS ts;
crypto/krb5/src/ccapi/common/win/OldCC/util.cxx
205
if (!GetTokenInformation(hToken, TokenStatistics, &ts, sizeof(ts), &len))
crypto/krb5/src/ccapi/common/win/OldCC/util.cxx
207
*pAuthId = ts.AuthenticationId;
crypto/krb5/src/clients/klist/klist.c
644
printtime(krb5_timestamp ts)
crypto/krb5/src/clients/klist/klist.c
648
if (!krb5_timestamp_to_sfstring(ts, timestring, timestamp_width + 1,
crypto/krb5/src/clients/ksu/ccache.c
307
printtime(krb5_timestamp ts)
crypto/krb5/src/clients/ksu/ccache.c
311
if (!krb5_timestamp_to_sfstring(ts, fmtbuf, sizeof(fmtbuf), &fill))
crypto/krb5/src/include/k5-int.h
2344
ts_incr(krb5_timestamp ts, krb5_deltat delta)
crypto/krb5/src/include/k5-int.h
2346
return (krb5_timestamp)((uint32_t)ts + (uint32_t)delta);
crypto/krb5/src/kdc/kdc_preauth_ec.c
121
ret = decode_krb5_pa_enc_ts(&der_enc_ts, &ts);
crypto/krb5/src/kdc/kdc_preauth_ec.c
124
ret = krb5_check_clockskew(context, ts->patimestamp);
crypto/krb5/src/kdc/kdc_preauth_ec.c
147
krb5_free_pa_enc_ts(context, ts);
crypto/krb5/src/kdc/kdc_preauth_ec.c
163
krb5_pa_enc_ts ts;
crypto/krb5/src/kdc/kdc_preauth_ec.c
173
ret = krb5_us_timeofday(context, &ts.patimestamp, &ts.pausec);
crypto/krb5/src/kdc/kdc_preauth_ec.c
176
ret = encode_krb5_pa_enc_ts(&ts, &der_enc_ts);
crypto/krb5/src/kdc/kdc_preauth_ec.c
62
krb5_pa_enc_ts *ts = NULL;
crypto/krb5/src/lib/krb5/asn.1/asn1_encode.c
245
struct tm ts;
crypto/krb5/src/lib/krb5/asn.1/asn1_encode.c
264
ts.tm_year = 1000 * c2i(s[0]) + 100 * c2i(s[1]) + 10 * c2i(s[2]) +
crypto/krb5/src/lib/krb5/asn.1/asn1_encode.c
266
ts.tm_mon = 10 * c2i(s[4]) + c2i(s[5]) - 1;
crypto/krb5/src/lib/krb5/asn.1/asn1_encode.c
267
ts.tm_mday = 10 * c2i(s[6]) + c2i(s[7]);
crypto/krb5/src/lib/krb5/asn.1/asn1_encode.c
268
ts.tm_hour = 10 * c2i(s[8]) + c2i(s[9]);
crypto/krb5/src/lib/krb5/asn.1/asn1_encode.c
269
ts.tm_min = 10 * c2i(s[10]) + c2i(s[11]);
crypto/krb5/src/lib/krb5/asn.1/asn1_encode.c
270
ts.tm_sec = 10 * c2i(s[12]) + c2i(s[13]);
crypto/krb5/src/lib/krb5/asn.1/asn1_encode.c
271
ts.tm_isdst = -1;
crypto/krb5/src/lib/krb5/asn.1/asn1_encode.c
272
t = krb5int_gmt_mktime(&ts);
crypto/krb5/src/lib/krb5/krb/get_in_tkt.c
1522
char ts[256], banner[1024];
crypto/krb5/src/lib/krb5/krb/get_in_tkt.c
1559
ret = krb5_timestamp_to_string(pw_exp, ts, sizeof(ts));
crypto/krb5/src/lib/krb5/krb/get_in_tkt.c
1566
"on %s"), ts);
crypto/krb5/src/lib/krb5/krb/get_in_tkt.c
1570
interval / 3600, interval < 7200 ? "" : "s", ts);
crypto/krb5/src/lib/krb5/krb/get_in_tkt.c
1574
interval / 86400, ts);
crypto/krb5/src/lib/krb5/krb/preauth_ec.c
100
krb5_pa_enc_ts ts;
crypto/krb5/src/lib/krb5/krb/preauth_ec.c
104
retval = cb->get_preauth_time(context, rock, FALSE, &ts.patimestamp,
crypto/krb5/src/lib/krb5/krb/preauth_ec.c
105
&ts.pausec);
crypto/krb5/src/lib/krb5/krb/preauth_ec.c
107
retval = encode_krb5_pa_enc_ts(&ts, &encoded_ts);
crypto/krb5/src/lib/krb5/krb/preauth_encts.c
101
ts, &enc_data.ciphertext);
crypto/krb5/src/lib/krb5/krb/preauth_encts.c
127
krb5_free_data(context, ts);
crypto/krb5/src/lib/krb5/krb/preauth_encts.c
61
krb5_data *ts = NULL, *enc_ts = NULL;
crypto/krb5/src/lib/krb5/krb/preauth_encts.c
92
ret = encode_krb5_pa_enc_ts(&pa_enc, &ts);
crypto/krb5/src/lib/krb5/krb/preauth_encts.c
97
ts, &enc_data);
crypto/krb5/src/plugins/preauth/otp/main.c
100
ts = load_32_be(er->data);
crypto/krb5/src/plugins/preauth/otp/main.c
101
retval = krb5_check_clockskew(ctx, ts);
crypto/krb5/src/plugins/preauth/otp/main.c
82
krb5_timestamp ts;
crypto/krb5/src/util/verto/ev.c
1866
struct timespec ts;
crypto/krb5/src/util/verto/ev.c
1867
clock_gettime (CLOCK_REALTIME, &ts);
crypto/krb5/src/util/verto/ev.c
1868
return ts.tv_sec + ts.tv_nsec * 1e-9;
crypto/krb5/src/util/verto/ev.c
1884
struct timespec ts;
crypto/krb5/src/util/verto/ev.c
1885
clock_gettime (CLOCK_MONOTONIC, &ts);
crypto/krb5/src/util/verto/ev.c
1886
return ts.tv_sec + ts.tv_nsec * 1e-9;
crypto/krb5/src/util/verto/ev.c
1907
struct timespec ts;
crypto/krb5/src/util/verto/ev.c
1909
EV_TS_SET (ts, delay);
crypto/krb5/src/util/verto/ev.c
1910
nanosleep (&ts, 0);
crypto/krb5/src/util/verto/ev.c
2843
struct timespec ts;
crypto/krb5/src/util/verto/ev.c
2845
if (!clock_gettime (CLOCK_REALTIME, &ts))
crypto/krb5/src/util/verto/ev.c
2853
struct timespec ts;
crypto/krb5/src/util/verto/ev.c
2855
if (!clock_gettime (CLOCK_MONOTONIC, &ts))
crypto/krb5/src/util/verto/ev.c
389
# define clock_gettime(id, ts) syscall (SYS_clock_gettime, (id), (ts))
crypto/krb5/src/util/verto/ev.c
489
#define EV_TS_SET(ts,t) do { ts.tv_sec = (long)t; ts.tv_nsec = (long)((t - ts.tv_sec) * 1e9); } while (0)
crypto/openssh/auth2.c
248
struct timespec ts;
crypto/openssh/auth2.c
261
ts.tv_sec = remain;
crypto/openssh/auth2.c
262
ts.tv_nsec = (remain - ts.tv_sec) * 1000000000;
crypto/openssh/auth2.c
265
nanosleep(&ts, NULL);
crypto/openssh/defines.h
528
#define TIMEVAL_TO_TIMESPEC(tv, ts) { \
crypto/openssh/defines.h
529
(ts)->tv_sec = (tv)->tv_sec; \
crypto/openssh/defines.h
530
(ts)->tv_nsec = (tv)->tv_usec * 1000; \
crypto/openssh/defines.h
535
#define TIMESPEC_TO_TIMEVAL(tv, ts) { \
crypto/openssh/defines.h
536
(tv)->tv_sec = (ts)->tv_sec; \
crypto/openssh/defines.h
537
(tv)->tv_usec = (ts)->tv_nsec / 1000; \
crypto/openssh/krl.c
811
format_timestamp(uint64_t timestamp, char *ts, size_t nts)
crypto/openssh/krl.c
819
strlcpy(ts, "<INVALID>", nts);
crypto/openssh/krl.c
821
*ts = '\0';
crypto/openssh/krl.c
822
strftime(ts, nts, "%Y%m%dT%H%M%S", tm);
crypto/openssh/misc.c
1778
ms_to_timespec(struct timespec *ts, int ms)
crypto/openssh/misc.c
1782
ts->tv_sec = ms / 1000;
crypto/openssh/misc.c
1783
ts->tv_nsec = (ms % 1000) * 1000 * 1000;
crypto/openssh/misc.c
1787
monotime_ts(struct timespec *ts)
crypto/openssh/misc.c
1796
if (clock_gettime(CLOCK_BOOTTIME, ts) == 0)
crypto/openssh/misc.c
1800
if (clock_gettime(CLOCK_MONOTONIC, ts) == 0)
crypto/openssh/misc.c
1805
if (clock_gettime(CLOCK_REALTIME, ts) == 0)
crypto/openssh/misc.c
1813
ts->tv_sec = tv.tv_sec;
crypto/openssh/misc.c
1814
ts->tv_nsec = (long)tv.tv_usec * 1000;
crypto/openssh/misc.c
1820
struct timespec ts;
crypto/openssh/misc.c
1822
monotime_ts(&ts);
crypto/openssh/misc.c
1823
tv->tv_sec = ts.tv_sec;
crypto/openssh/misc.c
1824
tv->tv_usec = ts.tv_nsec / 1000;
crypto/openssh/misc.c
1830
struct timespec ts;
crypto/openssh/misc.c
1832
monotime_ts(&ts);
crypto/openssh/misc.c
1833
return (ts.tv_sec);
crypto/openssh/misc.c
1839
struct timespec ts;
crypto/openssh/misc.c
1841
monotime_ts(&ts);
crypto/openssh/misc.c
1842
return (double)ts.tv_sec + (double)ts.tv_nsec / 1000000000.0;
crypto/openssh/misc.c
1861
struct timespec ts, rm;
crypto/openssh/misc.c
1896
TIMEVAL_TO_TIMESPEC(&bw->bwend, &ts);
crypto/openssh/misc.c
1897
while (nanosleep(&ts, &rm) == -1) {
crypto/openssh/misc.c
1900
ts = rm;
crypto/openssh/openbsd-compat/bsd-misc.c
324
struct timespec ts;
crypto/openssh/openbsd-compat/bsd-misc.c
326
ts.tv_sec = useconds / 1000000;
crypto/openssh/openbsd-compat/bsd-misc.c
327
ts.tv_nsec = (useconds % 1000000) * 1000;
crypto/openssh/openbsd-compat/bsd-misc.c
328
return nanosleep(&ts, NULL);
crypto/openssh/openbsd-compat/bsd-misc.c
508
clock_gettime(clockid_t clockid, struct timespec *ts)
crypto/openssh/openbsd-compat/bsd-misc.c
516
if (ts == NULL) {
crypto/openssh/openbsd-compat/bsd-misc.c
524
ts->tv_sec = tv.tv_sec;
crypto/openssh/openbsd-compat/bsd-misc.c
525
ts->tv_nsec = (long)tv.tv_usec * 1000;
crypto/openssh/openbsd-compat/bsd-poll.c
102
struct timespec ts, *tsp = NULL;
crypto/openssh/openbsd-compat/bsd-poll.c
106
ts.tv_sec = timeout / 1000;
crypto/openssh/openbsd-compat/bsd-poll.c
107
ts.tv_nsec = (timeout % 1000) * 1000000;
crypto/openssh/openbsd-compat/bsd-poll.c
108
tsp = &ts;
crypto/openssh/openbsd-compat/regress/utimensattest.c
114
ts[0].tv_sec = 11223344;
crypto/openssh/openbsd-compat/regress/utimensattest.c
115
ts[1].tv_sec = 55667788;
crypto/openssh/openbsd-compat/regress/utimensattest.c
116
(void)utimensat(AT_FDCWD, TMPFILE, ts, AT_SYMLINK_NOFOLLOW);
crypto/openssh/openbsd-compat/regress/utimensattest.c
65
struct timespec ts[2];
crypto/openssh/openbsd-compat/regress/utimensattest.c
72
ts[0].tv_sec = 12345678;
crypto/openssh/openbsd-compat/regress/utimensattest.c
73
ts[0].tv_nsec = 23456789;
crypto/openssh/openbsd-compat/regress/utimensattest.c
74
ts[1].tv_sec = 34567890;
crypto/openssh/openbsd-compat/regress/utimensattest.c
75
ts[1].tv_nsec = 45678901;
crypto/openssh/openbsd-compat/regress/utimensattest.c
76
if (utimensat(AT_FDCWD, TMPFILE, ts, AT_SYMLINK_NOFOLLOW) == -1)
crypto/openssh/regress/misc/fuzz-harness/kex_fuzz.cc
102
ts->smsgs, ts->cin != NULL, &sn)) != 0) {
crypto/openssh/regress/misc/fuzz-harness/kex_fuzz.cc
108
ts->cmsgs, ts->sin != NULL, &cn)) != 0) {
crypto/openssh/regress/misc/fuzz-harness/kex_fuzz.cc
174
do_kex_with_key(struct shared_state *st, struct test_state *ts,
crypto/openssh/regress/misc/fuzz-harness/kex_fuzz.cc
185
ts->cin = ts->sin = NULL;
crypto/openssh/regress/misc/fuzz-harness/kex_fuzz.cc
186
if (ts->c_template != NULL &&
crypto/openssh/regress/misc/fuzz-harness/kex_fuzz.cc
187
(ts->cin = sshbuf_fromb(ts->c_template)) == NULL)
crypto/openssh/regress/misc/fuzz-harness/kex_fuzz.cc
189
if (ts->s_template != NULL &&
crypto/openssh/regress/misc/fuzz-harness/kex_fuzz.cc
190
(ts->sin = sshbuf_fromb(ts->s_template)) == NULL)
crypto/openssh/regress/misc/fuzz-harness/kex_fuzz.cc
196
if (ts->cin != NULL) {
crypto/openssh/regress/misc/fuzz-harness/kex_fuzz.cc
198
sshbuf_len(ts->cin));
crypto/openssh/regress/misc/fuzz-harness/kex_fuzz.cc
199
} else if (ts->sin != NULL) {
crypto/openssh/regress/misc/fuzz-harness/kex_fuzz.cc
201
sshbuf_len(ts->sin));
crypto/openssh/regress/misc/fuzz-harness/kex_fuzz.cc
234
if ((r = run_kex(ts, client, server)) != 0) {
crypto/openssh/regress/misc/fuzz-harness/kex_fuzz.cc
242
sshbuf_free(ts->sin);
crypto/openssh/regress/misc/fuzz-harness/kex_fuzz.cc
243
sshbuf_free(ts->cin);
crypto/openssh/regress/misc/fuzz-harness/kex_fuzz.cc
322
struct test_state *ts;
crypto/openssh/regress/misc/fuzz-harness/kex_fuzz.cc
345
ts = (struct test_state *)xcalloc(1, sizeof(*ts));
crypto/openssh/regress/misc/fuzz-harness/kex_fuzz.cc
346
ts->smsgs = sshbuf_new();
crypto/openssh/regress/misc/fuzz-harness/kex_fuzz.cc
347
ts->cmsgs = sshbuf_new();
crypto/openssh/regress/misc/fuzz-harness/kex_fuzz.cc
348
do_kex_with_key(st, ts, kextypes[j], keytypes[i]);
crypto/openssh/regress/misc/fuzz-harness/kex_fuzz.cc
354
if (fwrite(sshbuf_ptr(ts->smsgs), 1,
crypto/openssh/regress/misc/fuzz-harness/kex_fuzz.cc
355
sshbuf_len(ts->smsgs), f) != sshbuf_len(ts->smsgs))
crypto/openssh/regress/misc/fuzz-harness/kex_fuzz.cc
365
if (fwrite(sshbuf_ptr(ts->cmsgs), 1,
crypto/openssh/regress/misc/fuzz-harness/kex_fuzz.cc
366
sshbuf_len(ts->cmsgs), f) != sshbuf_len(ts->cmsgs))
crypto/openssh/regress/misc/fuzz-harness/kex_fuzz.cc
371
sshbuf_free(ts->smsgs);
crypto/openssh/regress/misc/fuzz-harness/kex_fuzz.cc
372
sshbuf_free(ts->cmsgs);
crypto/openssh/regress/misc/fuzz-harness/kex_fuzz.cc
373
free(ts);
crypto/openssh/regress/misc/fuzz-harness/kex_fuzz.cc
394
do_kex(struct shared_state *st, struct test_state *ts, const char *kex)
crypto/openssh/regress/misc/fuzz-harness/kex_fuzz.cc
396
do_kex_with_key(st, ts, kex, KEY_RSA);
crypto/openssh/regress/misc/fuzz-harness/kex_fuzz.cc
397
do_kex_with_key(st, ts, kex, KEY_ECDSA);
crypto/openssh/regress/misc/fuzz-harness/kex_fuzz.cc
398
do_kex_with_key(st, ts, kex, KEY_ED25519);
crypto/openssh/regress/misc/fuzz-harness/kex_fuzz.cc
402
kex_tests(struct shared_state *st, struct test_state *ts)
crypto/openssh/regress/misc/fuzz-harness/kex_fuzz.cc
404
do_kex(st, ts, "sntrup761x25519-sha512@openssh.com");
crypto/openssh/regress/misc/fuzz-harness/kex_fuzz.cc
405
do_kex(st, ts, "curve25519-sha256@libssh.org");
crypto/openssh/regress/misc/fuzz-harness/kex_fuzz.cc
406
do_kex(st, ts, "ecdh-sha2-nistp256");
crypto/openssh/regress/misc/fuzz-harness/kex_fuzz.cc
407
do_kex(st, ts, "diffie-hellman-group1-sha1");
crypto/openssh/regress/misc/fuzz-harness/kex_fuzz.cc
408
do_kex(st, ts, "diffie-hellman-group-exchange-sha1");
crypto/openssh/regress/misc/fuzz-harness/kex_fuzz.cc
414
struct test_state *ts;
crypto/openssh/regress/misc/fuzz-harness/kex_fuzz.cc
431
ts = (struct test_state *)xcalloc(1, sizeof(*ts));
crypto/openssh/regress/misc/fuzz-harness/kex_fuzz.cc
432
if ((ts->s_template = sshbuf_new()) == NULL ||
crypto/openssh/regress/misc/fuzz-harness/kex_fuzz.cc
433
sshbuf_put(ts->s_template, data, size) != 0 ||
crypto/openssh/regress/misc/fuzz-harness/kex_fuzz.cc
434
sshbuf_put(ts->s_template, crbuf, sizeof(crbuf)) != 0 ||
crypto/openssh/regress/misc/fuzz-harness/kex_fuzz.cc
435
sshbuf_put(ts->s_template, zbuf, sizeof(zbuf)) != 0)
crypto/openssh/regress/misc/fuzz-harness/kex_fuzz.cc
437
kex_tests(st, ts);
crypto/openssh/regress/misc/fuzz-harness/kex_fuzz.cc
438
sshbuf_free(ts->s_template);
crypto/openssh/regress/misc/fuzz-harness/kex_fuzz.cc
439
free(ts);
crypto/openssh/regress/misc/fuzz-harness/kex_fuzz.cc
441
ts = (struct test_state *)xcalloc(1, sizeof(*ts));
crypto/openssh/regress/misc/fuzz-harness/kex_fuzz.cc
442
if ((ts->c_template = sshbuf_new()) == NULL ||
crypto/openssh/regress/misc/fuzz-harness/kex_fuzz.cc
443
sshbuf_put(ts->c_template, data, size) != 0 ||
crypto/openssh/regress/misc/fuzz-harness/kex_fuzz.cc
444
sshbuf_put(ts->c_template, crbuf, sizeof(crbuf)) != 0 ||
crypto/openssh/regress/misc/fuzz-harness/kex_fuzz.cc
445
sshbuf_put(ts->c_template, zbuf, sizeof(zbuf)) != 0)
crypto/openssh/regress/misc/fuzz-harness/kex_fuzz.cc
447
kex_tests(st, ts);
crypto/openssh/regress/misc/fuzz-harness/kex_fuzz.cc
448
sshbuf_free(ts->c_template);
crypto/openssh/regress/misc/fuzz-harness/kex_fuzz.cc
449
free(ts);
crypto/openssh/regress/misc/fuzz-harness/kex_fuzz.cc
76
run_kex(struct test_state *ts, struct ssh *client, struct ssh *server)
crypto/openssh/regress/misc/fuzz-harness/kex_fuzz.cc
82
if (ts->sin != NULL) {
crypto/openssh/regress/misc/fuzz-harness/kex_fuzz.cc
83
if ((r = ssh_input_append(server, sshbuf_ptr(ts->sin),
crypto/openssh/regress/misc/fuzz-harness/kex_fuzz.cc
84
sshbuf_len(ts->sin))) != 0) {
crypto/openssh/regress/misc/fuzz-harness/kex_fuzz.cc
88
sshbuf_reset(ts->sin);
crypto/openssh/regress/misc/fuzz-harness/kex_fuzz.cc
90
if (ts->cin != NULL) {
crypto/openssh/regress/misc/fuzz-harness/kex_fuzz.cc
91
if ((r = ssh_input_append(client, sshbuf_ptr(ts->cin),
crypto/openssh/regress/misc/fuzz-harness/kex_fuzz.cc
92
sshbuf_len(ts->cin))) != 0) {
crypto/openssh/regress/misc/fuzz-harness/kex_fuzz.cc
96
sshbuf_reset(ts->cin);
crypto/openssh/regress/unittests/misc/test_ptimeout.c
28
struct timespec pt, *ts;
crypto/openssh/regress/unittests/misc/test_ptimeout.c
40
ts = ptimeout_get_tsp(&pt);
crypto/openssh/regress/unittests/misc/test_ptimeout.c
41
ASSERT_PTR_NE(ts, NULL);
crypto/openssh/regress/unittests/misc/test_ptimeout.c
42
ASSERT_LONG_EQ(ts->tv_nsec, 0);
crypto/openssh/regress/unittests/misc/test_ptimeout.c
43
ASSERT_LONG_EQ(ts->tv_sec, 100);
crypto/openssh/regress/unittests/misc/test_ptimeout.c
50
ts = ptimeout_get_tsp(&pt);
crypto/openssh/regress/unittests/misc/test_ptimeout.c
51
ASSERT_PTR_NE(ts, NULL);
crypto/openssh/regress/unittests/misc/test_ptimeout.c
52
ASSERT_LONG_EQ(ts->tv_nsec, 123 * 1000000);
crypto/openssh/regress/unittests/misc/test_ptimeout.c
53
ASSERT_LONG_EQ(ts->tv_sec, 50);
crypto/openssh/regress/unittests/misc/test_ptimeout.c
60
ts = ptimeout_get_tsp(&pt);
crypto/openssh/regress/unittests/misc/test_ptimeout.c
61
ASSERT_PTR_NE(ts, NULL);
crypto/openssh/regress/unittests/misc/test_ptimeout.c
62
ASSERT_LONG_EQ(ts->tv_nsec, 0);
crypto/openssh/regress/unittests/misc/test_ptimeout.c
63
ASSERT_LONG_EQ(ts->tv_sec, 0);
crypto/openssh/regress/unittests/misc/test_ptimeout.c
71
ts = ptimeout_get_tsp(&pt);
crypto/openssh/regress/unittests/misc/test_ptimeout.c
72
ASSERT_PTR_NE(ts, NULL);
crypto/openssh/regress/unittests/misc/test_ptimeout.c
73
ASSERT_LONG_GT(ts->tv_sec, 50);
crypto/openssh/regress/unittests/misc/test_ptimeout.c
74
ASSERT_LONG_LT(ts->tv_sec, 200);
crypto/openssh/regress/unittests/misc/test_ptimeout.c
82
ts = ptimeout_get_tsp(&pt);
crypto/openssh/regress/unittests/misc/test_ptimeout.c
83
ASSERT_PTR_NE(ts, NULL);
crypto/openssh/regress/unittests/misc/test_ptimeout.c
84
ASSERT_LONG_EQ(ts->tv_nsec, 0);
crypto/openssh/regress/unittests/misc/test_ptimeout.c
85
ASSERT_LONG_EQ(ts->tv_sec, 0);
crypto/openssh/regress/unittests/test_helper/test_helper.c
660
tstod(const struct timespec *ts)
crypto/openssh/regress/unittests/test_helper/test_helper.c
662
return (double)ts->tv_sec + ((double)ts->tv_nsec / 1000000000.0);
crypto/openssh/regress/unittests/test_helper/test_helper.c
722
struct timespec ts;
crypto/openssh/regress/unittests/test_helper/test_helper.c
725
timespecsub(&bench_finish_time, &bench_start_time, &ts);
crypto/openssh/regress/unittests/test_helper/test_helper.c
736
bench_samples[bench_nruns++] = ts;
crypto/openssh/regress/unittests/test_helper/test_helper.c
737
bench_accum_secs += tstod(&ts);
crypto/openssh/sftp-server.c
969
static struct timespec ts[2];
crypto/openssh/sftp-server.c
971
ts[0].tv_sec = a->atime;
crypto/openssh/sftp-server.c
972
ts[0].tv_nsec = 0;
crypto/openssh/sftp-server.c
973
ts[1].tv_sec = a->mtime;
crypto/openssh/sftp-server.c
974
ts[1].tv_nsec = 0;
crypto/openssh/sftp-server.c
975
return ts;
crypto/openssl/apps/cmp.c
1083
X509_STORE *ts = load_certstore(input, opt_otherpass, desc, vpm);
crypto/openssl/apps/cmp.c
1085
if (ts == NULL)
crypto/openssl/apps/cmp.c
1087
X509_STORE_set_verify_cb(ts, X509_STORE_CTX_print_verify_cb);
crypto/openssl/apps/cmp.c
1090
if (X509_STORE_set1_param(ts, vpm /* may be NULL */)
crypto/openssl/apps/cmp.c
1091
&& (for_new_cert || truststore_set_host_etc(ts, NULL)))
crypto/openssl/apps/cmp.c
1092
return ts;
crypto/openssl/apps/cmp.c
1095
X509_STORE_free(ts);
crypto/openssl/apps/cmp.c
1264
X509_STORE *ts = load_trusted(opt_srv_trusted, 0, "certs trusted by mock server");
crypto/openssl/apps/cmp.c
1266
if (ts == NULL || !OSSL_CMP_CTX_set0_trusted(ctx, ts)) {
crypto/openssl/apps/cmp.c
1267
X509_STORE_free(ts);
crypto/openssl/apps/cmp.c
1395
X509_STORE *ts;
crypto/openssl/apps/cmp.c
1401
ts = load_trusted(opt_trusted, 0, "certs trusted by client");
crypto/openssl/apps/cmp.c
1403
if (ts == NULL || !OSSL_CMP_CTX_set0_trusted(ctx, ts)) {
crypto/openssl/apps/cmp.c
1404
X509_STORE_free(ts);
crypto/openssl/apps/cmp.c
862
static int truststore_set_host_etc(X509_STORE *ts, const char *host)
crypto/openssl/apps/cmp.c
864
X509_VERIFY_PARAM *ts_vpm = X509_STORE_get0_param(ts);
crypto/openssl/apps/lib/apps.c
2573
X509_STORE *ts = SSL_CTX_get_cert_store(ssl_ctx);
crypto/openssl/apps/lib/apps.c
2574
X509_VERIFY_PARAM *vpm = X509_STORE_get0_param(ts);
crypto/openssl/crypto/asn1/a_gentm.c
66
struct tm *ts;
crypto/openssl/crypto/asn1/a_gentm.c
69
ts = OPENSSL_gmtime(&t, &data);
crypto/openssl/crypto/asn1/a_gentm.c
70
if (ts == NULL)
crypto/openssl/crypto/asn1/a_gentm.c
74
if (!OPENSSL_gmtime_adj(ts, offset_day, offset_sec))
crypto/openssl/crypto/asn1/a_gentm.c
78
return ossl_asn1_time_from_tm(s, ts, V_ASN1_GENERALIZEDTIME);
crypto/openssl/crypto/asn1/a_time.c
265
ASN1_TIME *ossl_asn1_time_from_tm(ASN1_TIME *s, struct tm *ts, int type)
crypto/openssl/crypto/asn1/a_time.c
272
if (is_utc(ts->tm_year))
crypto/openssl/crypto/asn1/a_time.c
277
if (!is_utc(ts->tm_year))
crypto/openssl/crypto/asn1/a_time.c
296
if (ts->tm_mon > INT_MAX - 1)
crypto/openssl/crypto/asn1/a_time.c
300
if (ts->tm_year > INT_MAX - 1900)
crypto/openssl/crypto/asn1/a_time.c
303
ts->tm_year + 1900, ts->tm_mon + 1,
crypto/openssl/crypto/asn1/a_time.c
304
ts->tm_mday, ts->tm_hour, ts->tm_min,
crypto/openssl/crypto/asn1/a_time.c
305
ts->tm_sec);
crypto/openssl/crypto/asn1/a_time.c
308
ts->tm_year % 100, ts->tm_mon + 1,
crypto/openssl/crypto/asn1/a_time.c
309
ts->tm_mday, ts->tm_hour, ts->tm_min,
crypto/openssl/crypto/asn1/a_time.c
310
ts->tm_sec);
crypto/openssl/crypto/asn1/a_time.c
331
struct tm *ts;
crypto/openssl/crypto/asn1/a_time.c
334
ts = OPENSSL_gmtime(&t, &data);
crypto/openssl/crypto/asn1/a_time.c
335
if (ts == NULL) {
crypto/openssl/crypto/asn1/a_time.c
340
if (!OPENSSL_gmtime_adj(ts, offset_day, offset_sec))
crypto/openssl/crypto/asn1/a_time.c
343
return ossl_asn1_time_from_tm(s, ts, V_ASN1_UNDEF);
crypto/openssl/crypto/asn1/a_utctm.c
60
struct tm *ts;
crypto/openssl/crypto/asn1/a_utctm.c
63
ts = OPENSSL_gmtime(&t, &data);
crypto/openssl/crypto/asn1/a_utctm.c
64
if (ts == NULL)
crypto/openssl/crypto/asn1/a_utctm.c
68
if (!OPENSSL_gmtime_adj(ts, offset_day, offset_sec))
crypto/openssl/crypto/asn1/a_utctm.c
72
return ossl_asn1_time_from_tm(s, ts, V_ASN1_UTCTIME);
crypto/openssl/crypto/asn1/asn1_local.h
93
ASN1_TIME *ossl_asn1_time_from_tm(ASN1_TIME *s, struct tm *ts, int type);
crypto/openssl/crypto/cmp/cmp_genm.c
16
const X509_STORE *ts = OSSL_CMP_CTX_get0_trustedStore(ctx);
crypto/openssl/crypto/cmp/cmp_genm.c
18
return ts == NULL ? NULL : X509_STORE_get0_param(ts);
crypto/openssl/crypto/cmp/cmp_genm.c
214
X509_STORE *ts = X509_STORE_CTX_get0_store(store_ctx);
crypto/openssl/crypto/cmp/cmp_genm.c
217
if (ts == NULL || (verify_cb = X509_STORE_get_verify_cb(ts)) == NULL)
crypto/openssl/crypto/cmp/cmp_genm.c
225
X509_STORE *ts, STACK_OF(X509) *untrusted,
crypto/openssl/crypto/cmp/cmp_genm.c
231
if (ts == NULL || target == NULL) {
crypto/openssl/crypto/cmp/cmp_genm.c
237
|| !X509_STORE_CTX_init(csc, ts, target, untrusted))
crypto/openssl/crypto/cmp/cmp_genm.c
253
X509_STORE *ts = OSSL_CMP_CTX_get0_trusted(ctx);
crypto/openssl/crypto/cmp/cmp_genm.c
258
X509_VERIFY_PARAM *vpm = (ts == NULL) ? NULL
crypto/openssl/crypto/cmp/cmp_genm.c
259
: X509_STORE_get0_param(ts);
crypto/openssl/crypto/cmp/cmp_genm.c
261
if ((ts = X509_STORE_new()) == NULL)
crypto/openssl/crypto/cmp/cmp_genm.c
263
if (!X509_STORE_set1_param(ts, vpm)
crypto/openssl/crypto/cmp/cmp_genm.c
264
|| !X509_STORE_add_cert(ts, trusted))
crypto/openssl/crypto/cmp/cmp_genm.c
274
ts, untrusted, target);
crypto/openssl/crypto/cmp/cmp_genm.c
283
X509_STORE_free(ts);
crypto/openssl/crypto/cmp/cmp_vfy.c
144
static int verify_cb_cert(X509_STORE *ts, X509 *cert, int err)
crypto/openssl/crypto/cmp/cmp_vfy.c
150
if (ts == NULL || (verify_cb = X509_STORE_get_verify_cb(ts)) == NULL)
crypto/openssl/crypto/cmp/cmp_vfy.c
153
&& X509_STORE_CTX_init(csc, ts, cert, NULL)) {
crypto/openssl/crypto/cmp/cmp_vfy.c
252
X509_STORE *ts = ctx->trusted;
crypto/openssl/crypto/cmp/cmp_vfy.c
255
X509_VERIFY_PARAM *vpm = ts != NULL ? X509_STORE_get0_param(ts) : NULL;
crypto/openssl/crypto/cmp/cmp_vfy.c
284
&& verify_cb_cert(ts, cert, err) <= 0)
crypto/openssl/crypto/conf/conf_api.c
48
STACK_OF(CONF_VALUE) *ts;
crypto/openssl/crypto/conf/conf_api.c
50
ts = (STACK_OF(CONF_VALUE) *)section->value;
crypto/openssl/crypto/conf/conf_api.c
53
if (!sk_CONF_VALUE_push(ts, value))
crypto/openssl/crypto/conf/conf_api.c
58
(void)sk_CONF_VALUE_delete_ptr(ts, v);
crypto/openssl/crypto/crmf/crmf_lib.c
667
X509_STORE *ts, STACK_OF(X509) *extra, EVP_PKEY *pkey,
crypto/openssl/crypto/crmf/crmf_lib.c
698
if (ts == NULL) {
crypto/openssl/crypto/crmf/crmf_lib.c
719
if ((vpm = X509_STORE_get0_param(ts)) == NULL)
crypto/openssl/crypto/crmf/crmf_lib.c
724
if (!X509_STORE_set_purpose(ts, purpose_id)) {
crypto/openssl/crypto/crmf/crmf_lib.c
729
pkey_bio = CMS_SignedData_verify(sd, NULL, NULL /* scerts */, ts,
crypto/openssl/crypto/crmf/crmf_lib.c
732
if (!X509_STORE_set_purpose(ts, bak_purpose_id)) {
crypto/openssl/crypto/crmf/crmf_lib.c
753
((void)ts, (void)extra, (void)cert, (void)secret);
crypto/openssl/crypto/o_time.c
16
struct tm *ts = NULL;
crypto/openssl/crypto/o_time.c
38
ts = result;
crypto/openssl/crypto/o_time.c
43
ts = result;
crypto/openssl/crypto/o_time.c
47
ts = result;
crypto/openssl/crypto/o_time.c
49
ts = gmtime(timer);
crypto/openssl/crypto/o_time.c
50
if (ts == NULL)
crypto/openssl/crypto/o_time.c
53
memcpy(result, ts, sizeof(struct tm));
crypto/openssl/crypto/o_time.c
54
ts = result;
crypto/openssl/crypto/o_time.c
56
return ts;
crypto/openssl/crypto/ocsp/ocsp_prn.c
38
static const char *do_table2string(long s, const OCSP_TBLSTR *ts, size_t len)
crypto/openssl/crypto/ocsp/ocsp_prn.c
41
for (i = 0; i < len; i++, ts++)
crypto/openssl/crypto/ocsp/ocsp_prn.c
42
if (ts->t == s)
crypto/openssl/crypto/ocsp/ocsp_prn.c
43
return ts->m;
crypto/openssl/crypto/sleep.c
61
struct timespec ts;
crypto/openssl/crypto/sleep.c
63
ts.tv_sec = (long int)(millis / 1000);
crypto/openssl/crypto/sleep.c
64
ts.tv_nsec = (long int)(millis % 1000) * 1000000ul;
crypto/openssl/crypto/sleep.c
65
nanosleep(&ts, NULL);
crypto/openssl/crypto/x509/t_x509.c
455
X509_STORE *ts = X509_STORE_CTX_get0_store(ctx);
crypto/openssl/crypto/x509/t_x509.c
456
X509_VERIFY_PARAM *vpm = X509_STORE_get0_param(ts);
crypto/openssl/include/openssl/crmf.h
267
X509_STORE *ts, STACK_OF(X509) *extra, EVP_PKEY *pkey,
crypto/openssl/providers/implementations/rands/seeding/rand_unix.c
149
struct timespec ts;
crypto/openssl/providers/implementations/rands/seeding/rand_unix.c
167
ts.tv_nsec = random();
crypto/openssl/providers/implementations/rands/seeding/rand_unix.c
180
clock_gettime(CLOCK_REALTIME, &ts);
crypto/openssl/providers/implementations/rands/seeding/rand_unix.c
181
v = (unsigned char)(ts.tv_nsec & 0xFF);
crypto/openssl/providers/implementations/rands/seeding/rand_unix.c
784
struct timespec ts;
crypto/openssl/providers/implementations/rands/seeding/rand_unix.c
786
if (clock_gettime(CLOCK_REALTIME, &ts) == 0)
crypto/openssl/providers/implementations/rands/seeding/rand_unix.c
787
return TWO32TO64(ts.tv_sec, ts.tv_nsec);
crypto/openssl/providers/implementations/rands/seeding/rand_vxworks.c
42
struct timespec ts;
crypto/openssl/providers/implementations/rands/seeding/rand_vxworks.c
44
if (clock_gettime(CLOCK_REALTIME, &ts) == 0)
crypto/openssl/providers/implementations/rands/seeding/rand_vxworks.c
45
return TWO32TO64(ts.tv_sec, ts.tv_nsec);
crypto/openssl/providers/implementations/rands/seeding/rand_vxworks.c
52
struct timespec ts;
crypto/openssl/providers/implementations/rands/seeding/rand_vxworks.c
57
if (clock_gettime(CLOCK_MONOTONIC, &ts) == 0)
crypto/openssl/providers/implementations/rands/seeding/rand_vxworks.c
58
return TWO32TO64(ts.tv_sec, ts.tv_nsec);
crypto/openssl/test/cmp_client_test.c
56
X509_STORE *ts = X509_STORE_new();
crypto/openssl/test/cmp_client_test.c
64
if (ts == NULL || !X509_STORE_add_cert(ts, trusted))
crypto/openssl/test/cmp_client_test.c
67
vpm = X509_STORE_get0_param(ts);
crypto/openssl/test/cmp_client_test.c
69
|| !OSSL_CMP_CTX_set0_trusted(ctx, ts))
crypto/openssl/test/cmp_client_test.c
74
X509_STORE_free(ts);
crypto/openssl/test/cmp_vfy_test.c
147
X509_STORE *ts = OSSL_CMP_CTX_get0_trusted(fixture->cmp_ctx);
crypto/openssl/test/cmp_vfy_test.c
150
ts, fixture->cert));
crypto/openssl/test/cmp_vfy_test.c
224
X509_STORE *ts;
crypto/openssl/test/cmp_vfy_test.c
229
ts = OSSL_CMP_CTX_get0_trusted(fixture->cmp_ctx);
crypto/openssl/test/cmp_vfy_test.c
231
if (ts == NULL
crypto/openssl/test/cmp_vfy_test.c
237
X509_VERIFY_PARAM *vpm = X509_STORE_get0_param(ts);
crypto/openssl/test/cmp_vfy_test.c
404
X509_STORE *ts = OSSL_CMP_CTX_get0_trusted((*fixture)->cmp_ctx);
crypto/openssl/test/cmp_vfy_test.c
405
X509_VERIFY_PARAM *vpm = X509_STORE_get0_param(ts);
crypto/openssl/test/cmp_vfy_test.c
54
X509_STORE *ts;
crypto/openssl/test/cmp_vfy_test.c
60
ts = X509_STORE_new();
crypto/openssl/test/cmp_vfy_test.c
606
struct tm ts = { 0 };
crypto/openssl/test/cmp_vfy_test.c
608
ts.tm_year = 2018 - 1900; /* 2018 */
crypto/openssl/test/cmp_vfy_test.c
609
ts.tm_mon = 1; /* February */
crypto/openssl/test/cmp_vfy_test.c
610
ts.tm_mday = 18; /* 18th */
crypto/openssl/test/cmp_vfy_test.c
611
test_time_valid = mktime(&ts); /* February 18th 2018 */
crypto/openssl/test/cmp_vfy_test.c
612
ts.tm_year += 10; /* February 18th 2028 */
crypto/openssl/test/cmp_vfy_test.c
613
test_time_after_expiration = mktime(&ts);
crypto/openssl/test/cmp_vfy_test.c
62
if (ts == NULL
crypto/openssl/test/cmp_vfy_test.c
64
|| !OSSL_CMP_CTX_set0_trusted(fixture->cmp_ctx, ts)
crypto/openssl/test/cmp_vfy_test.c
67
X509_STORE_free(ts);
crypto/openssl/test/cmp_vfy_test.c
70
X509_VERIFY_PARAM_set_time(X509_STORE_get0_param(ts), test_time_valid);
crypto/openssl/test/cmp_vfy_test.c
71
X509_STORE_set_verify_cb(ts, X509_STORE_CTX_print_verify_cb);
crypto/openssl/test/helpers/quictestlib.c
433
QTEST_FAULT *qtest_create_injector(QUIC_TSERVER *ts)
crypto/openssl/test/helpers/quictestlib.c
441
f->qtserv = ts;
crypto/openssl/test/helpers/quictestlib.h
62
QTEST_FAULT *qtest_create_injector(QUIC_TSERVER *ts);
include/time.h
189
int timespec_get(struct timespec *ts, int base);
lib/libc/gen/timespec_get.c
39
timespec_get(struct timespec *ts, int base)
lib/libc/gen/timespec_get.c
44
if (clock_gettime(CLOCK_REALTIME, ts) == -1)
lib/libc/gen/timespec_get.c
48
if (clock_gettime(CLOCK_MONOTONIC, ts) == -1)
lib/libc/gen/timespec_getres.c
10
timespec_getres(struct timespec *ts, int base)
lib/libc/gen/timespec_getres.c
15
if (clock_getres(CLOCK_REALTIME, ts) == 0)
lib/libc/gen/timespec_getres.c
19
if (clock_getres(CLOCK_MONOTONIC, ts) == 0)
lib/libc/isc/ev_timers.c
158
struct timespec ts;
lib/libc/isc/ev_timers.c
160
ts.tv_sec = tv.tv_sec;
lib/libc/isc/ev_timers.c
161
ts.tv_nsec = tv.tv_usec * 1000;
lib/libc/isc/ev_timers.c
162
return (ts);
lib/libc/isc/ev_timers.c
167
evTimeVal(struct timespec ts) {
lib/libc/isc/ev_timers.c
170
tv.tv_sec = ts.tv_sec;
lib/libc/isc/ev_timers.c
171
tv.tv_usec = ts.tv_nsec / 1000;
lib/libc/rpc/clnt_dg.c
328
struct timespec ts;
lib/libc/rpc/clnt_dg.c
457
TIMEVAL_TO_TIMESPEC(&tv, &ts);
lib/libc/rpc/clnt_dg.c
459
n = _kevent(cu->cu_kq, &cu->cu_kin, kin_len, &kv, 1, &ts);
lib/libc/stdio/xprintf_time.c
62
struct timespec *ts;
lib/libc/stdio/xprintf_time.c
73
ts = *((struct timespec **)arg[0]);
lib/libc/stdio/xprintf_time.c
74
t = ts->tv_sec;
lib/libc/stdio/xprintf_time.c
75
nsec = ts->tv_nsec;
lib/libc/tests/nss/getaddrinfo_test.c
222
char *s, *ps, *ts;
lib/libc/tests/nss/getaddrinfo_test.c
229
*result = (unsigned char)strtol(s, &ts, 10);
lib/libc/tests/nss/getaddrinfo_test.c
231
if (*ts != '\0')
lib/libc/tests/nss/getaddrinfo_test.c
245
char *s, *ps, *ts;
lib/libc/tests/nss/getaddrinfo_test.c
259
*pi = (int)strtol(s, &ts, 10);
lib/libc/tests/nss/getaddrinfo_test.c
260
if (*ts != '\0')
lib/libc/tests/nss/getaddrinfo_test.c
264
ai->ai_addrlen = (socklen_t)strtol(s, &ts, 10);
lib/libc/tests/nss/getaddrinfo_test.c
265
if (*ts != '\0')
lib/libc/tests/nss/getgr_test.c
206
char *s, *ps, *ts;
lib/libc/tests/nss/getgr_test.c
230
grp->gr_gid = (gid_t)strtol(s, &ts, 10);
lib/libc/tests/nss/getgr_test.c
231
if (*ts != '\0') {
lib/libc/tests/nss/getgr_test.c
251
ts = strdup(s);
lib/libc/tests/nss/getgr_test.c
252
ATF_REQUIRE(ts != NULL);
lib/libc/tests/nss/getgr_test.c
253
sl_add(sl, ts);
lib/libc/tests/nss/getgr_test.c
256
ts = strdup(s);
lib/libc/tests/nss/getgr_test.c
257
ATF_REQUIRE(ts != NULL);
lib/libc/tests/nss/getgr_test.c
258
sl_add(sl, ts);
lib/libc/tests/nss/gethostby_test.c
526
char *s, *ps, *ts;
lib/libc/tests/nss/gethostby_test.c
533
*result = (unsigned char)strtol(s, &ts, 10);
lib/libc/tests/nss/gethostby_test.c
535
if (*ts != '\0')
lib/libc/tests/nss/gethostby_test.c
550
char *s, *ps, *ts;
lib/libc/tests/nss/gethostby_test.c
570
ht->h_addrtype = (int)strtol(s, &ts, 10);
lib/libc/tests/nss/gethostby_test.c
571
if (*ts != '\0')
lib/libc/tests/nss/gethostby_test.c
576
ht->h_length = (int)strtol(s, &ts, 10);
lib/libc/tests/nss/gethostby_test.c
577
if (*ts != '\0')
lib/libc/tests/nss/gethostby_test.c
590
ts = strdup(s);
lib/libc/tests/nss/gethostby_test.c
591
ATF_REQUIRE(ts != NULL);
lib/libc/tests/nss/gethostby_test.c
592
sl_add(sl1, ts);
lib/libc/tests/nss/gethostby_test.c
598
ts = strdup(s);
lib/libc/tests/nss/gethostby_test.c
599
ATF_REQUIRE(ts != NULL);
lib/libc/tests/nss/gethostby_test.c
600
sl_add(sl1, ts);
lib/libc/tests/nss/gethostby_test.c
614
ts = calloc(1, ht->h_length);
lib/libc/tests/nss/gethostby_test.c
615
ATF_REQUIRE(ts != NULL);
lib/libc/tests/nss/gethostby_test.c
617
(unsigned char *)ts,
lib/libc/tests/nss/gethostby_test.c
619
sl_add(sl2, ts);
lib/libc/tests/nss/gethostby_test.c
624
ts = calloc(1, ht->h_length);
lib/libc/tests/nss/gethostby_test.c
625
ATF_REQUIRE(ts != NULL);
lib/libc/tests/nss/gethostby_test.c
627
(unsigned char *)ts, ht->h_length);
lib/libc/tests/nss/gethostby_test.c
628
sl_add(sl2, ts);
lib/libc/tests/nss/getproto_test.c
198
char *s, *ps, *ts;
lib/libc/tests/nss/getproto_test.c
215
pe->p_proto = (int)strtol(s, &ts, 10);
lib/libc/tests/nss/getproto_test.c
216
if (*ts != '\0') {
lib/libc/tests/nss/getproto_test.c
231
ts = strdup(s);
lib/libc/tests/nss/getproto_test.c
232
assert(ts != NULL);
lib/libc/tests/nss/getproto_test.c
233
sl_add(sl, ts);
lib/libc/tests/nss/getproto_test.c
236
ts = strdup(s);
lib/libc/tests/nss/getproto_test.c
237
assert(ts != NULL);
lib/libc/tests/nss/getproto_test.c
238
sl_add(sl, ts);
lib/libc/tests/nss/getpw_test.c
161
char *s, *ps, *ts;
lib/libc/tests/nss/getpw_test.c
182
pwd->pw_uid = (uid_t)strtol(s, &ts, 10);
lib/libc/tests/nss/getpw_test.c
183
if (*ts != '\0')
lib/libc/tests/nss/getpw_test.c
187
pwd->pw_gid = (gid_t)strtol(s, &ts, 10);
lib/libc/tests/nss/getpw_test.c
188
if (*ts != '\0')
lib/libc/tests/nss/getpw_test.c
192
pwd->pw_change = (time_t)strtol(s, &ts, 10);
lib/libc/tests/nss/getpw_test.c
193
if (*ts != '\0')
lib/libc/tests/nss/getpw_test.c
213
pwd->pw_expire = (time_t)strtol(s, &ts, 10);
lib/libc/tests/nss/getpw_test.c
214
if (*ts != '\0')
lib/libc/tests/nss/getpw_test.c
218
pwd->pw_fields = (int)strtol(s, &ts, 10);
lib/libc/tests/nss/getpw_test.c
219
if (*ts != '\0')
lib/libc/tests/nss/getrpc_test.c
197
char *s, *ps, *ts;
lib/libc/tests/nss/getrpc_test.c
214
rpc->r_number = (int)strtol(s, &ts, 10);
lib/libc/tests/nss/getrpc_test.c
215
if (*ts != '\0') {
lib/libc/tests/nss/getrpc_test.c
230
ts = strdup(s);
lib/libc/tests/nss/getrpc_test.c
231
ATF_REQUIRE(ts != NULL);
lib/libc/tests/nss/getrpc_test.c
232
sl_add(sl, ts);
lib/libc/tests/nss/getrpc_test.c
235
ts = strdup(s);
lib/libc/tests/nss/getrpc_test.c
236
ATF_REQUIRE(ts != NULL);
lib/libc/tests/nss/getrpc_test.c
237
sl_add(sl, ts);
lib/libc/tests/nss/getserv_test.c
203
char *s, *ps, *ts;
lib/libc/tests/nss/getserv_test.c
221
(int)strtol(s, &ts, 10));
lib/libc/tests/nss/getserv_test.c
222
if (*ts != '\0') {
lib/libc/tests/nss/getserv_test.c
242
ts = strdup(s);
lib/libc/tests/nss/getserv_test.c
243
ATF_REQUIRE(ts != NULL);
lib/libc/tests/nss/getserv_test.c
244
sl_add(sl, ts);
lib/libc/tests/nss/getserv_test.c
247
ts = strdup(s);
lib/libc/tests/nss/getserv_test.c
248
ATF_REQUIRE(ts != NULL);
lib/libc/tests/nss/getserv_test.c
249
sl_add(sl, ts);
lib/libc/tests/stdlib/strfmon_test.c
23
const char *ts;
lib/libc/tests/stdlib/strfmon_test.c
30
ts = lc->mon_thousands_sep;
lib/libc/tests/stdlib/strfmon_test.c
31
if (strlen(ts) == 0)
lib/libc/tests/stdlib/strfmon_test.c
32
ts = lc->thousands_sep;
lib/libc/tests/stdlib/strfmon_test.c
34
if (strlen(ts) < 2)
lib/libc/tests/stdlib/strfmon_test.c
41
strlcat(expected, ts, sizeof(expected));
lib/libdevstat/devstat.c
340
struct timespec ts;
lib/libdevstat/devstat.c
353
clock_gettime(CLOCK_MONOTONIC, &ts);
lib/libdevstat/devstat.c
354
stats->snap_time = ts.tv_sec + ts.tv_nsec * 1e-9;
lib/libdevstat/devstat.c
436
if (KREADNL(kd, X_TIME_UPTIME, ts.tv_sec) == -1)
lib/libdevstat/devstat.c
439
stats->snap_time = ts.tv_sec;
lib/libstdthreads/cnd.c
76
const struct timespec *restrict ts)
lib/libstdthreads/cnd.c
79
switch (pthread_cond_timedwait(cond, mtx, ts)) {
lib/libstdthreads/mtx.c
81
mtx_timedlock(mtx_t *restrict mtx, const struct timespec *restrict ts)
lib/libstdthreads/mtx.c
84
switch (pthread_mutex_timedlock(mtx, ts)) {
lib/libsys/__vdso_gettimeofday.c
157
__vdso_clock_gettime(clockid_t clock_id, struct timespec *ts)
lib/libsys/__vdso_gettimeofday.c
192
bintime2timespec(&bt, ts);
lib/libsys/__vdso_gettimeofday.c
194
ts->tv_nsec = 0;
lib/libsys/_libsys.h
811
int __sys_pselect(int nd, fd_set * in, fd_set * ou, fd_set * ex, const struct timespec * ts, const sigset_t * sm);
lib/libsys/_libsys.h
834
int __sys_ppoll(struct pollfd * fds, u_int nfds, const struct timespec * ts, const sigset_t * set);
lib/libsys/clock_gettime.c
35
int __clock_gettime(clockid_t, struct timespec *ts);
lib/libsys/clock_gettime.c
40
__clock_gettime(clockid_t clock_id, struct timespec *ts)
lib/libsys/clock_gettime.c
45
error = __vdso_clock_gettime(clock_id, ts);
lib/libsys/clock_gettime.c
49
error = __sys_clock_gettime(clock_id, ts);
lib/libthr/thread/thr_join.c
119
struct timespec ts, ts2, *tsp;
lib/libthr/thread/thr_join.c
175
clock_gettime(CLOCK_REALTIME, &ts);
lib/libthr/thread/thr_join.c
176
TIMESPEC_SUB(&ts2, abstime, &ts);
lib/libthr/thread/thr_umtx.c
249
const struct timespec *ts;
lib/libthr/thread/thr_umtx.c
254
ts = timeout;
lib/libthr/thread/thr_umtx.c
258
ts = &utimep->_timeout;
lib/libthr/thread/thr_umtx.c
262
ts = NULL;
lib/libthr/thread/thr_umtx.c
266
if (ts != NULL && (ts->tv_sec < 0 || (ts->tv_sec == 0 &&
lib/libthr/thread/thr_umtx.c
267
ts->tv_nsec <= 0))) {
lib/libusb/libusb10_io.c
314
struct timespec ts;
lib/libusb/libusb10_io.c
328
err = clock_gettime(CLOCK_MONOTONIC, &ts);
lib/libusb/libusb10_io.c
336
ts.tv_sec += tv->tv_sec;
lib/libusb/libusb10_io.c
337
ts.tv_nsec += tv->tv_usec * 1000;
lib/libusb/libusb10_io.c
338
if (ts.tv_nsec >= 1000000000) {
lib/libusb/libusb10_io.c
339
ts.tv_nsec -= 1000000000;
lib/libusb/libusb10_io.c
340
ts.tv_sec++;
lib/libusb/libusb10_io.c
343
&ctx->ctx_lock, &ts);
libexec/talkd/table.c
116
clock_gettime(CLOCK_MONOTONIC_FAST, &ts);
libexec/talkd/table.c
117
current_time = ts.tv_sec;
libexec/talkd/table.c
154
clock_gettime(CLOCK_MONOTONIC_FAST, &ts);
libexec/talkd/table.c
155
current_time = ts.tv_sec;
libexec/talkd/table.c
57
static struct timespec ts;
libexec/talkd/table.c
82
clock_gettime(CLOCK_MONOTONIC_FAST, &ts);
libexec/talkd/table.c
83
current_time = ts.tv_sec;
libexec/tftpd/tftp-transfer.c
124
ts->retries++;
libexec/tftpd/tftp-transfer.c
164
ts->retries++;
libexec/tftpd/tftp-transfer.c
184
ts->blocks++;
libexec/tftpd/tftp-transfer.c
185
ts->amount += window[j].size;
libexec/tftpd/tftp-transfer.c
206
ts->retries++;
libexec/tftpd/tftp-transfer.c
228
ts->rollovers++;
libexec/tftpd/tftp-transfer.c
230
gettimeofday(&(ts->tstop), NULL);
libexec/tftpd/tftp-transfer.c
243
tftp_receive(int peer, uint16_t *block, struct tftp_stats *ts,
libexec/tftpd/tftp-transfer.c
251
ts->amount = 0;
libexec/tftpd/tftp-transfer.c
256
ts->amount += writesize;
libexec/tftpd/tftp-transfer.c
257
ts->blocks++;
libexec/tftpd/tftp-transfer.c
281
gettimeofday(&(ts->tstop), NULL);
libexec/tftpd/tftp-transfer.c
302
ts->rollovers++;
libexec/tftpd/tftp-transfer.c
336
ts->blocks++;
libexec/tftpd/tftp-transfer.c
374
ts->retries++;
libexec/tftpd/tftp-transfer.c
386
ts->amount += writesize;
libexec/tftpd/tftp-transfer.c
427
gettimeofday(&(ts->tstop), NULL);
libexec/tftpd/tftp-transfer.c
59
tftp_send(int peer, uint16_t *block, struct tftp_stats *ts)
libexec/tftpd/tftp-transfer.c
71
ts->amount = 0;
libexec/tftpd/tftp-utils.c
298
stats_init(struct tftp_stats *ts)
libexec/tftpd/tftp-utils.c
301
ts->amount = 0;
libexec/tftpd/tftp-utils.c
302
ts->rollovers = 0;
libexec/tftpd/tftp-utils.c
303
ts->retries = 0;
libexec/tftpd/tftp-utils.c
304
ts->blocks = 0;
libexec/tftpd/tftp-utils.c
305
ts->amount = 0;
libexec/tftpd/tftp-utils.c
306
gettimeofday(&(ts->tstart), NULL);
libexec/tftpd/tftp-utils.c
310
printstats(const char *direction, int verbose, struct tftp_stats *ts)
libexec/tftpd/tftp-utils.c
314
delta = ((ts->tstop.tv_sec*10.)+(ts->tstop.tv_usec/100000)) -
libexec/tftpd/tftp-utils.c
315
((ts->tstart.tv_sec*10.)+(ts->tstart.tv_usec/100000));
libexec/tftpd/tftp-utils.c
319
direction, ts->amount, delta, ts->blocks);
libexec/tftpd/tftp-utils.c
321
if (ts->rollovers != 0)
libexec/tftpd/tftp-utils.c
323
ts->rollovers, ts->rollovers != 1 ? "s" : "");
libexec/tftpd/tftp-utils.c
326
printf(" [%.0f bits/sec]", (ts->amount*8.)/delta);
libexec/tftpd/tftp-utils.h
128
void stats_init(struct tftp_stats *ts);
libexec/tftpd/tftp-utils.h
129
void printstats(const char *direction, int verbose, struct tftp_stats *ts);
libexec/tftpd/tftpd.c
800
struct tftp_stats ts;
libexec/tftpd/tftpd.c
802
memset(&ts, 0, sizeof(ts));
libexec/tftpd/tftpd.c
809
tftp_send(peer, &block, &ts);
libexec/tftpd/tftpd.c
813
(intmax_t)ts.amount, (intmax_t)time(NULL) - now);
libexec/tftpd/tftpd.c
821
struct tftp_stats ts;
libexec/tftpd/tftpd.c
830
tftp_receive(peer, &block, &ts, NULL, 0);
libexec/tftpd/tftpd.c
845
(intmax_t)ts.amount, block, f);
sbin/camcontrol/timestamp.c
185
report_timestamp(struct cam_device *device, uint64_t *ts, int task_attr,
sbin/camcontrol/timestamp.c
232
*ts = scsi_8btou64(temp_timestamp);
sbin/camcontrol/timestamp.c
252
uint64_t ts = 0;
sbin/camcontrol/timestamp.c
272
ts = (uint64_t) time_value;
sbin/camcontrol/timestamp.c
282
ts = (uint64_t) time_value;
sbin/camcontrol/timestamp.c
285
ts *= 1000;
sbin/camcontrol/timestamp.c
287
scsi_create_timestamp(ts_p.timestamp, ts);
sbin/camcontrol/timestamp.c
315
printf("Timestamp set to %ju\n", (uintmax_t)ts);
sbin/camcontrol/timestamp.c
332
uint64_t ts = 0;
sbin/camcontrol/timestamp.c
454
error = report_timestamp(device, &ts, task_attr, retry_count,
sbin/camcontrol/timestamp.c
460
(uintmax_t)ts);
sbin/camcontrol/timestamp.c
463
time_t time_var = ts / 1000;
sbin/camcontrol/timestamp.c
65
static int report_timestamp(struct cam_device *device, uint64_t *ts,
sbin/dhclient/tests/option-domain-search.c
311
time_t ts;
sbin/dhclient/tests/option-domain-search.c
328
ts = parse_date(file);
sbin/dhclient/tests/option-domain-search.c
329
if (ts != timestamp)
sbin/hastd/synch.h
163
struct timespec ts;
sbin/hastd/synch.h
171
error = clock_gettime(CLOCK_MONOTONIC, &ts);
sbin/hastd/synch.h
173
ts.tv_sec += timeout;
sbin/hastd/synch.h
174
error = pthread_cond_timedwait(cv, lock, &ts);
sbin/ipf/ipsend/ip.c
150
int i, sent = 0, ts, hlen, olen;
sbin/ipf/ipsend/ip.c
199
ts = iplen - sent;
sbin/ipf/ipsend/ip.c
202
ts = (mtu - hlen);
sbin/ipf/ipsend/ip.c
205
ts += hlen;
sbin/ipf/ipsend/ip.c
206
ip->ip_len = htons(ts);
sbin/ipf/ipsend/ip.c
210
bcopy(s + sent, ipbuf + sizeof(*eh) + hlen, ts - hlen);
sbin/ipf/ipsend/ip.c
211
err = sendip(nfd, ipbuf, sizeof(*eh) + ts);
sbin/ipf/ipsend/ip.c
214
sent += (ts - hlen);
sbin/ipf/ipsend/iptests.c
1239
struct timespec ts;
sbin/ipf/ipsend/iptests.c
1318
struct timespec ts;
sbin/ipf/ipsend/iptests.c
447
struct timespec ts;
sbin/ipf/ipsend/iptests.c
541
struct timespec ts;
sbin/ipf/ipsend/iptests.c
736
struct timespec ts;
sbin/ipf/ipsend/iptests.c
84
# define PAUSE() ts.tv_sec = 0; ts.tv_nsec = 10000000; \
sbin/ipf/ipsend/iptests.c
85
(void) nanosleep(&ts, NULL)
sbin/ipf/ipsend/iptests.c
897
struct timespec ts;
sbin/ipf/ipsend/iptests.c
96
struct timespec ts;
sbin/ipfw/ipfw2.c
5879
struct tidx ts;
sbin/ipfw/ipfw2.c
5887
memset(&ts, 0, sizeof(ts));
sbin/ipfw/ipfw2.c
5896
compile_rule(av, (uint32_t *)rule, &rbufsize, &ts);
sbin/ipfw/ipfw2.c
5903
if (ts.count != 0) {
sbin/ipfw/ipfw2.c
5905
tlen = ts.count * sizeof(ipfw_obj_ntlv);
sbin/ipfw/ipfw2.c
5915
ctlv->count = ts.count;
sbin/ipfw/ipfw2.c
5917
memcpy(ctlv + 1, ts.idx, tlen);
sbin/ipfw/ipfw2.c
5953
if (ts.idx != NULL)
sbin/ipfw/ipfw2.c
5954
free(ts.idx);
sbin/pfctl/pfctl_table.c
441
print_tstats(const struct pfr_tstats *ts, int debug)
sbin/pfctl/pfctl_table.c
443
time_t time = ts->pfrts_tzero;
sbin/pfctl/pfctl_table.c
447
if (!debug && !(ts->pfrts_flags & PFR_TFLAG_ACTIVE))
sbin/pfctl/pfctl_table.c
450
print_table(&ts->pfrts_t, 1, debug);
sbin/pfctl/pfctl_table.c
451
printf("\tAddresses: %d\n", ts->pfrts_cnt);
sbin/pfctl/pfctl_table.c
457
ts->pfrts_refcnt[PFR_REFCNT_ANCHOR],
sbin/pfctl/pfctl_table.c
458
ts->pfrts_refcnt[PFR_REFCNT_RULE]);
sbin/pfctl/pfctl_table.c
460
(unsigned long long)ts->pfrts_nomatch,
sbin/pfctl/pfctl_table.c
461
(unsigned long long)ts->pfrts_match);
sbin/pfctl/pfctl_table.c
466
(unsigned long long)ts->pfrts_packets[dir][op],
sbin/pfctl/pfctl_table.c
467
(unsigned long long)ts->pfrts_bytes[dir][op]);
sbin/route/route.c
1802
struct timespec ts;
sbin/route/route.c
1860
clock_gettime(CLOCK_REALTIME_FAST, &ts);
sbin/route/route.c
1862
ts.tv_sec = 0;
sbin/route/route.c
1863
printf("%8ld%c\n", (long)(rtm->rtm_rmx.rmx_expire - ts.tv_sec),
sbin/route/route.c
832
struct timespec ts;
sbin/route/route.c
834
clock_gettime(CLOCK_REALTIME_FAST, &ts);
sbin/route/route.c
835
*valp += ts.tv_sec;
sbin/routed/defs.h
269
time_t ts; /* timestamp on network stats */
sbin/routed/if.c
547
ifp->int_data.ts = now.tv_sec;
sbin/routed/if.c
585
ifp->int_data.ts = 0;
sbin/routed/if.c
721
ifs0.int_data.ts = now.tv_sec;
sbin/routed/if.c
937
} else if (now.tv_sec>(ifp->int_data.ts
sbin/routed/if.c
943
ifp->int_data.ts);
sbin/routed/if.c
958
if (now.tv_sec < ifp->int_data.ts+CHECK_BAD_INTERVAL)
sbin/routed/if.c
967
if (ifp->int_data.ts == 0) {
sbin/routed/trace.c
154
(void)fprintf(ftrace, "-- %s --\n", ts(now.tv_sec));
sbin/routed/trace.c
602
(void)fprintf(ftrace, "%s ", ts(rts->rts_time));
sbin/routed/trace.c
833
RT->rt_poison_metric, ts(RT->rt_poison_time));
share/examples/scsi_target/scsi_target.c
405
struct timespec ts, *tptr;
share/examples/scsi_target/scsi_target.c
420
ts.tv_sec = 0;
share/examples/scsi_target/scsi_target.c
421
ts.tv_nsec = 0;
share/examples/scsi_target/scsi_target.c
488
tptr = &ts;
share/examples/scsi_target/scsi_target.c
534
tptr = &ts;
stand/kboot/libkboot/host_syscalls.c
138
struct timespec ts = { .tv_sec = timeout->tv_sec, .tv_nsec = timeout->tv_usec * 1000 };
stand/kboot/libkboot/host_syscalls.c
146
(uintptr_t)exceptfds, (uintptr_t)&ts, (uintptr_t)NULL);
sys/amd64/amd64/pmap.c
723
struct turnstile *ts;
sys/amd64/amd64/pmap.c
725
ts = turnstile_trywait(&invl_gen_ts);
sys/amd64/amd64/pmap.c
727
turnstile_wait(ts, NULL, TS_SHARED_QUEUE);
sys/amd64/amd64/pmap.c
729
turnstile_cancel(ts);
sys/amd64/amd64/pmap.c
735
struct turnstile *ts;
sys/amd64/amd64/pmap.c
738
ts = turnstile_lookup(&invl_gen_ts);
sys/amd64/amd64/pmap.c
741
if (ts != NULL) {
sys/amd64/amd64/pmap.c
742
turnstile_broadcast(ts, TS_SHARED_QUEUE);
sys/amd64/amd64/pmap.c
743
turnstile_unpend(ts);
sys/amd64/linux/linux_vdso_gtod.c
103
__vdso_clock_getres_fallback(clockid_t clock_id, struct l_timespec *ts)
sys/amd64/linux/linux_vdso_gtod.c
111
: "a"(LINUX_SYS_linux_clock_getres), "D"(clock_id), "S"(ts)
sys/amd64/linux/linux_vdso_gtod.c
73
__vdso_clock_gettime_fallback(clockid_t clock_id, struct l_timespec *ts)
sys/amd64/linux/linux_vdso_gtod.c
81
: "a"(LINUX_SYS_linux_clock_gettime), "D"(clock_id), "S"(ts)
sys/amd64/linux32/linux32_vdso_gtod.c
117
__vdso_clock_getres_fallback(clockid_t clock_id, struct l_timespec *ts)
sys/amd64/linux32/linux32_vdso_gtod.c
125
: "a"(LINUX32_SYS_linux_clock_getres), "b"(clock_id), "c"(ts)
sys/amd64/linux32/linux32_vdso_gtod.c
72
__vdso_clock_gettime_fallback(clockid_t clock_id, struct l_timespec *ts)
sys/amd64/linux32/linux32_vdso_gtod.c
80
: "a"(LINUX32_SYS_linux_clock_gettime), "b"(clock_id), "c"(ts)
sys/amd64/linux32/linux32_vdso_gtod.c
87
__vdso_clock_gettime64_fallback(clockid_t clock_id, struct l_timespec64 *ts)
sys/amd64/linux32/linux32_vdso_gtod.c
95
: "a"(LINUX32_SYS_linux_clock_gettime64), "b"(clock_id), "c"(ts)
sys/amd64/vmm/intel/vmx.c
2388
struct vm_task_switch *ts;
sys/amd64/vmm/intel/vmx.c
2477
ts = &vmexit->u.task_switch;
sys/amd64/vmm/intel/vmx.c
2478
ts->tsssel = qual & 0xffff;
sys/amd64/vmm/intel/vmx.c
2479
ts->reason = vmx_task_switch_reason(qual);
sys/amd64/vmm/intel/vmx.c
2480
ts->ext = 0;
sys/amd64/vmm/intel/vmx.c
2481
ts->errcode_valid = 0;
sys/amd64/vmm/intel/vmx.c
2482
vmx_paging_info(&ts->paging);
sys/amd64/vmm/intel/vmx.c
2496
if (ts->reason == TSR_IDT_GATE) {
sys/amd64/vmm/intel/vmx.c
2505
ts->ext = 1;
sys/amd64/vmm/intel/vmx.c
2508
ts->errcode_valid = 1;
sys/amd64/vmm/intel/vmx.c
2509
ts->errcode = vmcs_idt_vectoring_err();
sys/amd64/vmm/intel/vmx.c
2514
SDT_PROBE4(vmm, vmx, exit, taskswitch, vmx, vcpuid, vmexit, ts);
sys/amd64/vmm/intel/vmx.c
2516
"%s errcode 0x%016lx", ts->reason, ts->tsssel,
sys/amd64/vmm/intel/vmx.c
2517
ts->ext ? "external" : "internal",
sys/amd64/vmm/intel/vmx.c
2518
((uint64_t)ts->errcode << 32) | ts->errcode_valid);
sys/amd64/vmm/io/vrtc.c
184
struct timespec ts;
sys/amd64/vmm/io/vrtc.c
204
ts.tv_sec = rtctime;
sys/amd64/vmm/io/vrtc.c
205
ts.tv_nsec = 0;
sys/amd64/vmm/io/vrtc.c
206
clock_ts_to_ct(&ts, &ct);
sys/amd64/vmm/io/vrtc.c
285
struct timespec ts;
sys/amd64/vmm/io/vrtc.c
382
error = clock_ct_to_ts(&ct, &ts);
sys/amd64/vmm/io/vrtc.c
383
if (error || ts.tv_sec < 0) {
sys/amd64/vmm/io/vrtc.c
390
return (ts.tv_sec); /* success */
sys/arm/allwinner/aw_rtc.c
167
static int aw_rtc_gettime(device_t dev, struct timespec *ts);
sys/arm/allwinner/aw_rtc.c
168
static int aw_rtc_settime(device_t dev, struct timespec *ts);
sys/arm/allwinner/aw_rtc.c
295
aw_rtc_gettime(device_t dev, struct timespec *ts)
sys/arm/allwinner/aw_rtc.c
317
return (clock_ct_to_ts(&ct, ts));
sys/arm/allwinner/aw_rtc.c
321
aw_rtc_settime(device_t dev, struct timespec *ts)
sys/arm/allwinner/aw_rtc.c
329
if (ts->tv_nsec >= HALF_OF_SEC_NS)
sys/arm/allwinner/aw_rtc.c
330
ts->tv_sec++;
sys/arm/allwinner/aw_rtc.c
331
ts->tv_nsec = 0;
sys/arm/allwinner/aw_rtc.c
333
clock_ts_to_ct(ts, &ct);
sys/arm/freescale/imx/imx6_snvs.c
111
snvs_gettime(device_t dev, struct timespec *ts)
sys/arm/freescale/imx/imx6_snvs.c
137
*ts = sbttots(counter1);
sys/arm/freescale/imx/imx6_snvs.c
139
clock_dbgprint_ts(sc->dev, CLOCK_DBG_READ, ts);
sys/arm/freescale/imx/imx6_snvs.c
145
snvs_settime(device_t dev, struct timespec *ts)
sys/arm/freescale/imx/imx6_snvs.c
158
sbt = tstosbt(*ts);
sys/arm/freescale/imx/imx6_snvs.c
165
clock_dbgprint_ts(sc->dev, CLOCK_DBG_WRITE, ts);
sys/arm/mv/armada38x/armada38x_rtc.c
112
static int mv_rtc_gettime(device_t dev, struct timespec *ts);
sys/arm/mv/armada38x/armada38x_rtc.c
113
static int mv_rtc_settime(device_t dev, struct timespec *ts);
sys/arm/mv/armada38x/armada38x_rtc.c
251
mv_rtc_gettime(device_t dev, struct timespec *ts)
sys/arm/mv/armada38x/armada38x_rtc.c
272
ts->tv_sec = val_check;
sys/arm/mv/armada38x/armada38x_rtc.c
274
ts->tv_nsec = 0;
sys/arm/mv/armada38x/armada38x_rtc.c
280
mv_rtc_settime(device_t dev, struct timespec *ts)
sys/arm/mv/armada38x/armada38x_rtc.c
287
if (ts->tv_nsec >= HALF_OF_SEC_NS)
sys/arm/mv/armada38x/armada38x_rtc.c
288
ts->tv_sec++;
sys/arm/mv/armada38x/armada38x_rtc.c
289
ts->tv_nsec = 0;
sys/arm/mv/armada38x/armada38x_rtc.c
306
mv_rtc_reg_write(sc, RTC_TIME, ts->tv_sec);
sys/arm/mv/rtc.c
128
mv_rtc_gettime(device_t dev, struct timespec *ts)
sys/arm/mv/rtc.c
150
return (clock_ct_to_ts(&ct, ts));
sys/arm/mv/rtc.c
154
mv_rtc_settime(device_t dev, struct timespec *ts)
sys/arm/mv/rtc.c
163
if (ts->tv_nsec >= 500000000)
sys/arm/mv/rtc.c
164
ts->tv_sec++;
sys/arm/mv/rtc.c
165
ts->tv_nsec = 0;
sys/arm/mv/rtc.c
166
clock_ts_to_ct(ts, &ct);
sys/arm/mv/rtc.c
70
static int mv_rtc_gettime(device_t dev, struct timespec *ts);
sys/arm/mv/rtc.c
71
static int mv_rtc_settime(device_t dev, struct timespec *ts);
sys/arm/nvidia/as3722.h
303
int as3722_rtc_gettime(device_t dev, struct timespec *ts);
sys/arm/nvidia/as3722.h
304
int as3722_rtc_settime(device_t dev, struct timespec *ts);
sys/arm/nvidia/as3722_rtc.c
41
as3722_rtc_gettime(device_t dev, struct timespec *ts)
sys/arm/nvidia/as3722_rtc.c
64
return clock_ct_to_ts(&ct, ts);
sys/arm/nvidia/as3722_rtc.c
68
as3722_rtc_settime(device_t dev, struct timespec *ts)
sys/arm/nvidia/as3722_rtc.c
76
clock_ts_to_ct(ts, &ct);
sys/arm/nvidia/tegra_rtc.c
125
tegra_rtc_gettime(device_t dev, struct timespec *ts)
sys/arm/nvidia/tegra_rtc.c
139
TIMEVAL_TO_TIMESPEC(&tv, ts);
sys/arm/nvidia/tegra_rtc.c
144
tegra_rtc_settime(device_t dev, struct timespec *ts)
sys/arm/nvidia/tegra_rtc.c
152
TIMESPEC_TO_TIMEVAL(&tv, ts);
sys/arm/ti/am335x/am335x_rtc.c
152
struct timespec ts;
sys/arm/ti/am335x/am335x_rtc.c
176
clock_ct_to_ts(&ct, &ts);
sys/arm/ti/am335x/am335x_rtc.c
177
ts.tv_sec += 2;
sys/arm/ti/am335x/am335x_rtc.c
178
clock_ts_to_ct(&ts, &ct);
sys/arm/ti/ti_pruss.c
104
uint64_t ts[TI_TS_ARRAY];
sys/arm/ti/ti_pruss.c
269
error = uiomove(&irq->tstamps.ts[idx], ts_len, uio);
sys/arm/ti/ti_pruss.c
755
struct timespec ts;
sys/arm/ti/ti_pruss.c
756
nanouptime(&ts);
sys/arm/ti/ti_pruss.c
757
irq->tstamps.ts[wr] = ts.tv_sec * 1000000000 + ts.tv_nsec;
sys/arm64/arm64/pl031_rtc.c
115
pl031_gettime(device_t dev, struct timespec *ts)
sys/arm64/arm64/pl031_rtc.c
120
ts->tv_sec = bus_read_4(sc->reg, RTCDR);
sys/arm64/arm64/pl031_rtc.c
121
ts->tv_nsec = 0;
sys/arm64/arm64/pl031_rtc.c
127
pl031_settime(device_t dev, struct timespec *ts)
sys/arm64/arm64/pl031_rtc.c
132
bus_write_4(sc->reg, RTCLR, ts->tv_sec);
sys/arm64/linux/linux_vdso_gtod.c
106
register struct l_timespec *ts asm("x1") = lts;
sys/arm64/linux/linux_vdso_gtod.c
112
: "r" (clockid), "r" (ts), "r" (svc)
sys/arm64/linux/linux_vdso_gtod.c
74
register struct l_timespec *ts asm("x1") = lts;
sys/arm64/linux/linux_vdso_gtod.c
80
: "r" (clockid), "r" (ts), "r" (svc)
sys/arm64/nvidia/tegra210/max77620_rtc.c
232
max77620_rtc_gettime(device_t dev, struct timespec *ts)
sys/arm64/nvidia/tegra210/max77620_rtc.c
264
return (clock_ct_to_ts(&ct, ts));
sys/arm64/nvidia/tegra210/max77620_rtc.c
268
max77620_rtc_settime(device_t dev, struct timespec *ts)
sys/arm64/nvidia/tegra210/max77620_rtc.c
276
clock_ts_to_ct(ts, &ct);
sys/cam/ctl/ctl.c
7253
int alloc_len, ext, total_len = 0, g, pc, pg, ts, os;
sys/cam/ctl/ctl.c
7341
ts = TPG_ASYMMETRIC_ACCESS_OPTIMIZED;
sys/cam/ctl/ctl.c
7343
ts = os;
sys/cam/ctl/ctl.c
7349
ts = TPG_ASYMMETRIC_ACCESS_UNAVAILABLE;
sys/cam/ctl/ctl.c
7352
ts = TPG_ASYMMETRIC_ACCESS_TRANSITIONING;
sys/cam/ctl/ctl.c
7355
ts = os = TPG_ASYMMETRIC_ACCESS_TRANSITIONING;
sys/cam/ctl/ctl.c
7359
tpg_desc->pref_state = ts;
sys/cam/ctl/ctl.c
7382
tpg_desc->pref_state = (g == pg) ? ts : os;
sys/cddl/dev/dtrace/dtrace_vtime.c
85
hrtime_t ts;
sys/cddl/dev/dtrace/dtrace_vtime.c
88
ts = dtrace_gethrtime();
sys/cddl/dev/dtrace/dtrace_vtime.c
91
curthread->t_dtrace_vtime += ts - curthread->t_dtrace_start;
sys/cddl/dev/dtrace/dtrace_vtime.c
96
next->t_dtrace_start = ts;
sys/compat/freebsd32/freebsd32_misc.c
1437
struct timespec32 ts;
sys/compat/freebsd32/freebsd32_misc.c
1443
struct timespec ts;
sys/compat/freebsd32/freebsd32_misc.c
1465
TS_CP(*in, tmp32, ts);
sys/compat/freebsd32/freebsd32_misc.c
1466
copylen = sizeof(tmp32.ts);
sys/compat/freebsd32/freebsd32_misc.c
1907
struct timespec ts[2], *tsp;
sys/compat/freebsd32/freebsd32_misc.c
1914
CP(ts32[0], ts[0], tv_sec);
sys/compat/freebsd32/freebsd32_misc.c
1915
CP(ts32[0], ts[0], tv_nsec);
sys/compat/freebsd32/freebsd32_misc.c
1916
CP(ts32[1], ts[1], tv_sec);
sys/compat/freebsd32/freebsd32_misc.c
1917
CP(ts32[1], ts[1], tv_nsec);
sys/compat/freebsd32/freebsd32_misc.c
1918
tsp = ts;
sys/compat/freebsd32/freebsd32_misc.c
1928
struct timespec ts[2], *tsp;
sys/compat/freebsd32/freebsd32_misc.c
1935
CP(ts32[0], ts[0], tv_sec);
sys/compat/freebsd32/freebsd32_misc.c
1936
CP(ts32[0], ts[0], tv_nsec);
sys/compat/freebsd32/freebsd32_misc.c
1937
CP(ts32[1], ts[1], tv_sec);
sys/compat/freebsd32/freebsd32_misc.c
1938
CP(ts32[1], ts[1], tv_nsec);
sys/compat/freebsd32/freebsd32_misc.c
1939
tsp = ts;
sys/compat/freebsd32/freebsd32_misc.c
3146
struct timespec ts;
sys/compat/freebsd32/freebsd32_misc.c
3152
error = kern_clock_getres(td, uap->clock_id, &ts);
sys/compat/freebsd32/freebsd32_misc.c
3154
CP(ts, ts32, tv_sec);
sys/compat/freebsd32/freebsd32_misc.c
3155
CP(ts, ts32, tv_nsec);
sys/compat/freebsd32/freebsd32_misc.c
3330
struct timespec ts, *tsp;
sys/compat/freebsd32/freebsd32_misc.c
3340
ts.tv_sec = ts32.tv_sec;
sys/compat/freebsd32/freebsd32_misc.c
3341
ts.tv_nsec = ts32.tv_nsec;
sys/compat/freebsd32/freebsd32_misc.c
3342
tsp = &ts;
sys/compat/freebsd32/freebsd32_misc.c
3393
struct timespec ts;
sys/compat/freebsd32/freebsd32_misc.c
3404
ts.tv_sec = ts32.tv_sec;
sys/compat/freebsd32/freebsd32_misc.c
3405
ts.tv_nsec = ts32.tv_nsec;
sys/compat/freebsd32/freebsd32_misc.c
3406
timeout = &ts;
sys/compat/freebsd32/freebsd32_misc.c
4052
struct timespec ts, *tsp;
sys/compat/freebsd32/freebsd32_misc.c
4056
if (uap->ts != NULL) {
sys/compat/freebsd32/freebsd32_misc.c
4057
error = copyin(uap->ts, &ts32, sizeof(ts32));
sys/compat/freebsd32/freebsd32_misc.c
4060
CP(ts32, ts, tv_sec);
sys/compat/freebsd32/freebsd32_misc.c
4061
CP(ts32, ts, tv_nsec);
sys/compat/freebsd32/freebsd32_misc.c
4062
tsp = &ts;
sys/compat/freebsd32/freebsd32_misc.c
4080
struct timespec ts;
sys/compat/freebsd32/freebsd32_misc.c
4084
error = kern_sched_rr_get_interval(td, uap->pid, &ts);
sys/compat/freebsd32/freebsd32_misc.c
4086
CP(ts, ts32, tv_sec);
sys/compat/freebsd32/freebsd32_misc.c
4087
CP(ts, ts32, tv_nsec);
sys/compat/freebsd32/freebsd32_misc.c
679
struct timespec ts;
sys/compat/freebsd32/freebsd32_misc.c
684
if (uap->ts != NULL) {
sys/compat/freebsd32/freebsd32_misc.c
685
error = copyin(uap->ts, &ts32, sizeof(ts32));
sys/compat/freebsd32/freebsd32_misc.c
688
CP(ts32, ts, tv_sec);
sys/compat/freebsd32/freebsd32_misc.c
689
CP(ts32, ts, tv_nsec);
sys/compat/freebsd32/freebsd32_misc.c
690
TIMESPEC_TO_TIMEVAL(&tv, &ts);
sys/compat/freebsd32/freebsd32_misc.c
806
struct timespec ts, *tsp;
sys/compat/freebsd32/freebsd32_misc.c
821
CP(ts32, ts, tv_sec);
sys/compat/freebsd32/freebsd32_misc.c
822
CP(ts32, ts, tv_nsec);
sys/compat/freebsd32/freebsd32_misc.c
823
tsp = &ts;
sys/compat/freebsd32/freebsd32_misc.c
903
struct timespec ts, *tsp;
sys/compat/freebsd32/freebsd32_misc.c
918
CP(ts32, ts, tv_sec);
sys/compat/freebsd32/freebsd32_misc.c
919
CP(ts32, ts, tv_nsec);
sys/compat/freebsd32/freebsd32_misc.c
920
tsp = &ts;
sys/compat/freebsd32/freebsd32_proto.h
543
char ts_l_[PADL_(const struct timespec32 *)]; const struct timespec32 * ts; char ts_r_[PADR_(const struct timespec32 *)];
sys/compat/freebsd32/freebsd32_proto.h
605
char ts_l_[PADL_(const struct timespec32 *)]; const struct timespec32 * ts; char ts_r_[PADR_(const struct timespec32 *)];
sys/compat/freebsd32/freebsd32_systrace_args.c
2732
uarg[a++] = (intptr_t)p->ts; /* const struct timespec32 * */
sys/compat/freebsd32/freebsd32_systrace_args.c
2963
uarg[a++] = (intptr_t)p->ts; /* const struct timespec32 * */
sys/compat/linux/linux_event.c
435
struct timespec ts, *tsp;
sys/compat/linux/linux_event.c
444
ts.tv_sec = timeout / 1000;
sys/compat/linux/linux_event.c
445
ts.tv_nsec = (timeout % 1000) * 1000000;
sys/compat/linux/linux_event.c
446
tsp = &ts;
sys/compat/linux/linux_event.c
483
struct timespec ts, *tsa;
sys/compat/linux/linux_event.c
493
error = linux_get_timespec64(&ts, args->timeout);
sys/compat/linux/linux_event.c
496
tsa = &ts;
sys/compat/linux/linux_event.c
507
struct timespec ts, *tsa;
sys/compat/linux/linux_event.c
517
error = linux_get_timespec(&ts, args->timeout);
sys/compat/linux/linux_event.c
520
tsa = &ts;
sys/compat/linux/linux_futex.c
264
args->ts);
sys/compat/linux/linux_futex.c
272
args->ts);
sys/compat/linux/linux_futex.c
373
if (!try && args->ts != NULL) {
sys/compat/linux/linux_futex.c
654
nrwake = (int)(unsigned long)args->ts;
sys/compat/linux/linux_futex.c
686
nrrequeue = (int)(unsigned long)args->ts;
sys/compat/linux/linux_futex.c
72
struct timespec *ts;
sys/compat/linux/linux_futex.c
757
if (args->ts != NULL)
sys/compat/linux/linux_futex.c
773
args->ts == NULL ? NULL : &timo);
sys/compat/linux/linux_futex.c
805
umtx_abs_timeout_init(timo, clockid, absolute, args->ts);
sys/compat/linux/linux_futex.c
815
.ts = NULL,
sys/compat/linux/linux_futex.c
831
fargs.ts = &fargs.kts;
sys/compat/linux/linux_futex.c
835
fargs.ts = PTRIN(args->timeout);
sys/compat/linux/linux_futex.c
849
.ts = NULL,
sys/compat/linux/linux_futex.c
865
fargs.ts = &fargs.kts;
sys/compat/linux/linux_futex.c
869
fargs.ts = PTRIN(args->timeout);
sys/compat/linux/linux_ipc.c
487
struct timespec ts, *tsa;
sys/compat/linux/linux_ipc.c
491
error = linux_get_timespec64(&ts, args->timeout);
sys/compat/linux/linux_ipc.c
494
tsa = &ts;
sys/compat/linux/linux_ipc.c
506
struct timespec ts, *tsa;
sys/compat/linux/linux_ipc.c
510
error = linux_get_timespec(&ts, args->timeout);
sys/compat/linux/linux_ipc.c
513
tsa = &ts;
sys/compat/linux/linux_misc.c
143
struct timespec ts;
sys/compat/linux/linux_misc.c
146
getnanouptime(&ts);
sys/compat/linux/linux_misc.c
147
if (ts.tv_nsec != 0)
sys/compat/linux/linux_misc.c
148
ts.tv_sec++;
sys/compat/linux/linux_misc.c
149
sysinfo.uptime = ts.tv_sec;
sys/compat/linux/linux_misc.c
2124
struct timespec ts, *tsp;
sys/compat/linux/linux_misc.c
2128
error = linux_get_timespec(&ts, args->tsp);
sys/compat/linux/linux_misc.c
2131
tsp = &ts;
sys/compat/linux/linux_misc.c
2139
linux_put_timespec(&ts, args->tsp);
sys/compat/linux/linux_misc.c
2205
struct timespec ts, *tsp;
sys/compat/linux/linux_misc.c
2209
error = linux_get_timespec64(&ts, args->tsp);
sys/compat/linux/linux_misc.c
2212
tsp = &ts;
sys/compat/linux/linux_misc.c
2220
linux_put_timespec64(&ts, args->tsp);
sys/compat/linux/linux_misc.c
2363
struct timespec *ts)
sys/compat/linux/linux_misc.c
2379
error = kern_sched_rr_get_interval_td(td, tdt, ts);
sys/compat/linux/linux_misc.c
2388
struct timespec ts;
sys/compat/linux/linux_misc.c
2391
error = linux_sched_rr_get_interval_common(td, uap->pid, &ts);
sys/compat/linux/linux_misc.c
2394
return (linux_put_timespec(&ts, uap->interval));
sys/compat/linux/linux_misc.c
2402
struct timespec ts;
sys/compat/linux/linux_misc.c
2405
error = linux_sched_rr_get_interval_common(td, uap->pid, &ts);
sys/compat/linux/linux_misc.c
2408
return (linux_put_timespec64(&ts, uap->interval));
sys/compat/linux/linux_misc.c
2596
struct timespec ts, *tsp;
sys/compat/linux/linux_misc.c
2601
ts.tv_sec = args->timeout / 1000;
sys/compat/linux/linux_misc.c
2602
ts.tv_nsec = (args->timeout % 1000) * 1000000;
sys/compat/linux/linux_misc.c
2603
tsp = &ts;
sys/compat/linux/linux_misc.c
3034
struct timespec ts, *abs_timeout;
sys/compat/linux/linux_misc.c
3040
error = linux_get_timespec(&ts, args->abs_timeout);
sys/compat/linux/linux_misc.c
3043
abs_timeout = &ts;
sys/compat/linux/linux_misc.c
3053
struct timespec ts, *abs_timeout;
sys/compat/linux/linux_misc.c
3059
error = linux_get_timespec(&ts, args->abs_timeout);
sys/compat/linux/linux_misc.c
3062
abs_timeout = &ts;
sys/compat/linux/linux_signal.c
477
struct timespec ts, *tsa;
sys/compat/linux/linux_signal.c
481
error = linux_get_timespec(&ts, args->timeout);
sys/compat/linux/linux_signal.c
484
tsa = &ts;
sys/compat/linux/linux_signal.c
528
struct timespec ts, *tsa;
sys/compat/linux/linux_signal.c
532
error = linux_get_timespec64(&ts, args->timeout);
sys/compat/linux/linux_signal.c
535
tsa = &ts;
sys/compat/linux/linux_socket.c
1727
struct timespec ts;
sys/compat/linux/linux_socket.c
1737
bintime2timespec(*data, &ts);
sys/compat/linux/linux_socket.c
1739
ts32.tv_sec = ts.tv_sec;
sys/compat/linux/linux_socket.c
1740
ts32.tv_nsec = ts.tv_nsec;
sys/compat/linux/linux_socket.c
1743
ts64.tv_sec = ts.tv_sec;
sys/compat/linux/linux_socket.c
1744
ts64.tv_nsec = ts.tv_nsec;
sys/compat/linux/linux_socket.c
1756
struct timespec ts;
sys/compat/linux/linux_socket.c
1758
bintime2timespec(*data, &ts);
sys/compat/linux/linux_socket.c
1759
memmove(*data, &ts, sizeof(struct timespec));
sys/compat/linux/linux_socket.c
2015
struct timespec ts;
sys/compat/linux/linux_socket.c
2047
getnanotime(&ts);
sys/compat/linux/linux_socket.c
2048
timespecsub(&ts, tts, &ts);
sys/compat/linux/linux_socket.c
2049
if (!timespecisset(&ts) || ts.tv_sec > 0)
sys/compat/linux/linux_socket.c
2065
struct timespec ts, tts, *ptts;
sys/compat/linux/linux_socket.c
2069
error = linux_get_timespec(&ts, args->timeout);
sys/compat/linux/linux_socket.c
2073
timespecadd(&tts, &ts, &tts);
sys/compat/linux/linux_socket.c
2086
struct timespec ts, tts, *ptts;
sys/compat/linux/linux_socket.c
2090
error = linux_get_timespec64(&ts, args->timeout);
sys/compat/linux/linux_socket.c
2094
timespecadd(&tts, &ts, &tts);
sys/compat/linux/linux_time.c
498
struct timespec *ts)
sys/compat/linux/linux_time.c
512
error = kern_clock_settime(td, nwhich, ts);
sys/compat/linux/linux_time.c
523
struct timespec ts;
sys/compat/linux/linux_time.c
526
error = linux_get_timespec(&ts, args->tp);
sys/compat/linux/linux_time.c
531
return (linux_common_clock_settime(td, args->which, &ts));
sys/compat/linux/linux_time.c
538
struct timespec ts;
sys/compat/linux/linux_time.c
541
error = linux_get_timespec64(&ts, args->tp);
sys/compat/linux/linux_time.c
546
return (linux_common_clock_settime(td, args->which, &ts));
sys/compat/linux/linux_time.c
552
struct timespec *ts)
sys/compat/linux/linux_time.c
596
if (ts == NULL) {
sys/compat/linux/linux_time.c
614
ts->tv_sec = 0;
sys/compat/linux/linux_time.c
615
ts->tv_nsec = 1;
sys/compat/linux/linux_time.c
634
error = kern_clock_getres(td, nwhich, ts);
sys/compat/linux/linux_time.c
649
struct timespec ts;
sys/compat/linux/linux_time.c
652
error = linux_common_clock_getres(td, args->which, &ts);
sys/compat/linux/linux_time.c
655
error = linux_put_timespec(&ts, args->tp);
sys/compat/linux/linux_time.c
667
struct timespec ts;
sys/compat/linux/linux_time.c
670
error = linux_common_clock_getres(td, args->which, &ts);
sys/compat/linux/linux_time.c
673
error = linux_put_timespec64(&ts, args->tp);
sys/compat/linuxkpi/common/include/linux/interrupt.h
192
extern void tasklet_unlock_wait(struct tasklet_struct *ts);
sys/compat/linuxkpi/common/include/linux/interrupt.h
193
#define tasklet_unlock_spin_wait(ts) tasklet_unlock_wait(ts)
sys/compat/linuxkpi/common/include/linux/ktime.h
173
timespec_to_ktime(struct timespec ts)
sys/compat/linuxkpi/common/include/linux/ktime.h
175
return (ktime_set(ts.tv_sec, ts.tv_nsec));
sys/compat/linuxkpi/common/include/linux/ktime.h
185
timespec64_to_ns(struct timespec64 *ts)
sys/compat/linuxkpi/common/include/linux/ktime.h
187
return (timespec_to_ns(ts));
sys/compat/linuxkpi/common/include/linux/ktime.h
194
#define ktime_get_ts(ts) getnanouptime(ts)
sys/compat/linuxkpi/common/include/linux/ktime.h
195
#define ktime_get_ts64(ts) getnanouptime(ts)
sys/compat/linuxkpi/common/include/linux/ktime.h
196
#define ktime_get_raw_ts64(ts) getnanouptime(ts)
sys/compat/linuxkpi/common/include/linux/ktime.h
197
#define ktime_get_real_ts64(ts) getnanotime(ts)
sys/compat/linuxkpi/common/include/linux/ktime.h
198
#define getrawmonotonic64(ts) getnanouptime(ts)
sys/compat/linuxkpi/common/include/linux/ktime.h
203
struct timespec ts;
sys/compat/linuxkpi/common/include/linux/ktime.h
205
ktime_get_ts(&ts);
sys/compat/linuxkpi/common/include/linux/ktime.h
207
return (ktime_to_ns(timespec_to_ktime(ts)));
sys/compat/linuxkpi/common/include/linux/ktime.h
213
struct timespec ts;
sys/compat/linuxkpi/common/include/linux/ktime.h
215
ktime_get_ts(&ts);
sys/compat/linuxkpi/common/include/linux/ktime.h
216
return (timespec_to_ktime(ts));
sys/compat/linuxkpi/common/include/linux/ktime.h
222
struct timespec ts;
sys/compat/linuxkpi/common/include/linux/ktime.h
224
nanouptime(&ts);
sys/compat/linuxkpi/common/include/linux/ktime.h
225
return (timespec_to_ktime(ts));
sys/compat/linuxkpi/common/include/linux/ktime.h
245
struct timespec ts;
sys/compat/linuxkpi/common/include/linux/ktime.h
247
nanotime(&ts);
sys/compat/linuxkpi/common/include/linux/ktime.h
248
return (timespec_to_ktime(ts));
sys/compat/linuxkpi/common/include/linux/ktime.h
254
struct timespec ts;
sys/compat/linuxkpi/common/include/linux/ktime.h
256
nanotime(&ts);
sys/compat/linuxkpi/common/include/linux/ktime.h
257
return (ts.tv_sec);
sys/compat/linuxkpi/common/include/linux/ktime.h
263
struct timespec ts;
sys/compat/linuxkpi/common/include/linux/ktime.h
265
nanouptime(&ts);
sys/compat/linuxkpi/common/include/linux/ktime.h
266
return (timespec_to_ktime(ts));
sys/compat/linuxkpi/common/include/linux/ktime.h
272
struct timespec ts;
sys/compat/linuxkpi/common/include/linux/ktime.h
274
nanouptime(&ts);
sys/compat/linuxkpi/common/include/linux/ktime.h
275
return (ktime_to_ns(timespec_to_ktime(ts)));
sys/compat/linuxkpi/common/include/linux/ktime.h
281
struct timespec ts;
sys/compat/linuxkpi/common/include/linux/ktime.h
283
getnanouptime(&ts);
sys/compat/linuxkpi/common/include/linux/ktime.h
284
return (ktime_to_ns(timespec_to_ktime(ts)));
sys/compat/linuxkpi/common/include/linux/sched.h
209
struct timespec ts;
sys/compat/linuxkpi/common/include/linux/sched.h
211
nanotime(&ts);
sys/compat/linuxkpi/common/include/linux/sched.h
212
return ((uint64_t)ts.tv_sec * NSEC_PER_SEC + ts.tv_nsec);
sys/compat/linuxkpi/common/include/linux/time.h
105
struct timespec ts;
sys/compat/linuxkpi/common/include/linux/time.h
109
ts.tv_sec = 0;
sys/compat/linuxkpi/common/include/linux/time.h
110
ts.tv_nsec = 0;
sys/compat/linuxkpi/common/include/linux/time.h
111
return (ts);
sys/compat/linuxkpi/common/include/linux/time.h
114
ts.tv_sec = nsec / NSEC_PER_SEC;
sys/compat/linuxkpi/common/include/linux/time.h
117
ts.tv_sec--;
sys/compat/linuxkpi/common/include/linux/time.h
120
ts.tv_nsec = rem;
sys/compat/linuxkpi/common/include/linux/time.h
121
return (ts);
sys/compat/linuxkpi/common/include/linux/time.h
127
timespec_valid(const struct timespec *ts)
sys/compat/linuxkpi/common/include/linux/time.h
129
if (ts->tv_sec < 0 || ts->tv_sec > 100000000 ||
sys/compat/linuxkpi/common/include/linux/time.h
130
ts->tv_nsec < 0 || ts->tv_nsec >= 1000000000)
sys/compat/linuxkpi/common/include/linux/time.h
76
#define getrawmonotonic(ts) nanouptime(ts)
sys/compat/linuxkpi/common/include/linux/time.h
81
struct timespec ts;
sys/compat/linuxkpi/common/include/linux/time.h
83
timespecsub(&lhs, &rhs, &ts);
sys/compat/linuxkpi/common/include/linux/time.h
85
return ts;
sys/compat/linuxkpi/common/include/linux/time.h
89
set_normalized_timespec(struct timespec *ts, time_t sec, int64_t nsec)
sys/compat/linuxkpi/common/include/linux/time.h
92
ts->tv_sec = sec;
sys/compat/linuxkpi/common/include/linux/time.h
93
ts->tv_nsec = nsec;
sys/compat/linuxkpi/common/include/linux/time.h
97
timespec_to_ns(const struct timespec *ts)
sys/compat/linuxkpi/common/include/linux/time.h
99
return ((ts->tv_sec * NSEC_PER_SEC) + ts->tv_nsec);
sys/compat/linuxkpi/common/src/linux_current.c
100
ts->comm = td->td_name;
sys/compat/linuxkpi/common/src/linux_current.c
101
ts->pid = td->td_tid;
sys/compat/linuxkpi/common/src/linux_current.c
102
ts->group_leader = ts;
sys/compat/linuxkpi/common/src/linux_current.c
103
atomic_set(&ts->usage, 1);
sys/compat/linuxkpi/common/src/linux_current.c
104
atomic_set(&ts->state, TASK_RUNNING);
sys/compat/linuxkpi/common/src/linux_current.c
105
init_completion(&ts->parked);
sys/compat/linuxkpi/common/src/linux_current.c
106
init_completion(&ts->exited);
sys/compat/linuxkpi/common/src/linux_current.c
118
uma_zfree(linux_current_zone, ts);
sys/compat/linuxkpi/common/src/linux_current.c
130
ts->mm = mm;
sys/compat/linuxkpi/common/src/linux_current.c
134
ts->mm = mm_other;
sys/compat/linuxkpi/common/src/linux_current.c
137
ts->mm = mm_other;
sys/compat/linuxkpi/common/src/linux_current.c
141
td->td_lkpi_task = ts;
sys/compat/linuxkpi/common/src/linux_current.c
170
linux_free_current(struct task_struct *ts)
sys/compat/linuxkpi/common/src/linux_current.c
172
mmput(ts->mm);
sys/compat/linuxkpi/common/src/linux_current.c
173
uma_zfree(linux_current_zone, ts);
sys/compat/linuxkpi/common/src/linux_current.c
179
struct task_struct *ts;
sys/compat/linuxkpi/common/src/linux_current.c
181
ts = td->td_lkpi_task;
sys/compat/linuxkpi/common/src/linux_current.c
182
if (ts == NULL)
sys/compat/linuxkpi/common/src/linux_current.c
186
put_task_struct(ts);
sys/compat/linuxkpi/common/src/linux_current.c
194
struct task_struct *ts;
sys/compat/linuxkpi/common/src/linux_current.c
200
ts = td->td_lkpi_task;
sys/compat/linuxkpi/common/src/linux_current.c
201
if (do_get && ts != NULL)
sys/compat/linuxkpi/common/src/linux_current.c
202
get_task_struct(ts);
sys/compat/linuxkpi/common/src/linux_current.c
204
return (ts);
sys/compat/linuxkpi/common/src/linux_current.c
211
ts = td->td_lkpi_task;
sys/compat/linuxkpi/common/src/linux_current.c
212
if (ts != NULL) {
sys/compat/linuxkpi/common/src/linux_current.c
214
get_task_struct(ts);
sys/compat/linuxkpi/common/src/linux_current.c
216
return (ts);
sys/compat/linuxkpi/common/src/linux_current.c
309
struct task_struct *ts;
sys/compat/linuxkpi/common/src/linux_current.c
320
if ((ts = td->td_lkpi_task) != NULL) {
sys/compat/linuxkpi/common/src/linux_current.c
322
put_task_struct(ts);
sys/compat/linuxkpi/common/src/linux_current.c
60
struct task_struct *ts;
sys/compat/linuxkpi/common/src/linux_current.c
65
ts = td->td_lkpi_task;
sys/compat/linuxkpi/common/src/linux_current.c
66
if (ts == NULL)
sys/compat/linuxkpi/common/src/linux_current.c
68
mm = ts->mm;
sys/compat/linuxkpi/common/src/linux_current.c
82
struct task_struct *ts;
sys/compat/linuxkpi/common/src/linux_current.c
92
ts = uma_zalloc(linux_current_zone, flags | M_ZERO);
sys/compat/linuxkpi/common/src/linux_current.c
93
if (ts == NULL)
sys/compat/linuxkpi/common/src/linux_current.c
98
atomic_set(&ts->kthread_flags, 0);
sys/compat/linuxkpi/common/src/linux_current.c
99
ts->task_thread = td;
sys/compat/linuxkpi/common/src/linux_rcu.c
184
struct task_struct *ts;
sys/compat/linuxkpi/common/src/linux_rcu.c
191
ts = current;
sys/compat/linuxkpi/common/src/linux_rcu.c
194
MPASS(ts->rcu_recurse[type] != INT_MAX);
sys/compat/linuxkpi/common/src/linux_rcu.c
196
if (++(ts->rcu_recurse[type]) != 1)
sys/compat/linuxkpi/common/src/linux_rcu.c
213
(ck_epoch_section_t *)&ts->rcu_section[type]);
sys/compat/linuxkpi/common/src/linux_rcu.c
214
TAILQ_INSERT_TAIL(&record->ts_head, ts, rcu_entry[type]);
sys/compat/linuxkpi/common/src/linux_rcu.c
222
struct task_struct *ts;
sys/compat/linuxkpi/common/src/linux_rcu.c
229
ts = current;
sys/compat/linuxkpi/common/src/linux_rcu.c
232
MPASS(ts->rcu_recurse[type] > 0);
sys/compat/linuxkpi/common/src/linux_rcu.c
234
if (--(ts->rcu_recurse[type]) != 0)
sys/compat/linuxkpi/common/src/linux_rcu.c
245
(ck_epoch_section_t *)&ts->rcu_section[type]);
sys/compat/linuxkpi/common/src/linux_rcu.c
246
TAILQ_REMOVE(&record->ts_head, ts, rcu_entry[type]);
sys/compat/linuxkpi/common/src/linux_rcu.c
257
struct task_struct *ts;
sys/compat/linuxkpi/common/src/linux_rcu.c
267
ts = current;
sys/compat/linuxkpi/common/src/linux_rcu.c
268
if (ts->rcu_recurse[type] == 0)
sys/compat/linuxkpi/common/src/linux_rcu.c
285
struct task_struct *ts;
sys/compat/linuxkpi/common/src/linux_rcu.c
298
TAILQ_FOREACH(ts, &record->ts_head, rcu_entry[record->type]) {
sys/compat/linuxkpi/common/src/linux_rcu.c
299
if (ts->task_thread->td_priority > prio)
sys/compat/linuxkpi/common/src/linux_rcu.c
300
prio = ts->task_thread->td_priority;
sys/compat/linuxkpi/common/src/linux_rcu.c
301
is_sleeping |= (ts->task_thread->td_inhibitors != 0);
sys/compat/linuxkpi/common/src/linux_tasklet.c
146
tasklet_init(struct tasklet_struct *ts,
sys/compat/linuxkpi/common/src/linux_tasklet.c
149
ts->entry.tqe_prev = NULL;
sys/compat/linuxkpi/common/src/linux_tasklet.c
150
ts->entry.tqe_next = NULL;
sys/compat/linuxkpi/common/src/linux_tasklet.c
151
ts->func = func;
sys/compat/linuxkpi/common/src/linux_tasklet.c
152
ts->callback = NULL;
sys/compat/linuxkpi/common/src/linux_tasklet.c
153
ts->data = data;
sys/compat/linuxkpi/common/src/linux_tasklet.c
154
atomic_set_int(&ts->tasklet_state, TASKLET_ST_IDLE);
sys/compat/linuxkpi/common/src/linux_tasklet.c
155
atomic_set(&ts->count, 0);
sys/compat/linuxkpi/common/src/linux_tasklet.c
156
ts->use_callback = false;
sys/compat/linuxkpi/common/src/linux_tasklet.c
160
tasklet_setup(struct tasklet_struct *ts, tasklet_callback_t *c)
sys/compat/linuxkpi/common/src/linux_tasklet.c
162
ts->entry.tqe_prev = NULL;
sys/compat/linuxkpi/common/src/linux_tasklet.c
163
ts->entry.tqe_next = NULL;
sys/compat/linuxkpi/common/src/linux_tasklet.c
164
ts->func = NULL;
sys/compat/linuxkpi/common/src/linux_tasklet.c
165
ts->callback = c;
sys/compat/linuxkpi/common/src/linux_tasklet.c
166
ts->data = 0;
sys/compat/linuxkpi/common/src/linux_tasklet.c
167
atomic_set_int(&ts->tasklet_state, TASKLET_ST_IDLE);
sys/compat/linuxkpi/common/src/linux_tasklet.c
168
atomic_set(&ts->count, 0);
sys/compat/linuxkpi/common/src/linux_tasklet.c
169
ts->use_callback = true;
sys/compat/linuxkpi/common/src/linux_tasklet.c
185
tasklet_schedule(struct tasklet_struct *ts)
sys/compat/linuxkpi/common/src/linux_tasklet.c
189
if (atomic_read(&ts->count))
sys/compat/linuxkpi/common/src/linux_tasklet.c
192
if (TASKLET_ST_CMPSET(ts, TASKLET_ST_EXEC, TASKLET_ST_LOOP)) {
sys/compat/linuxkpi/common/src/linux_tasklet.c
194
} else if (TASKLET_ST_CMPSET(ts, TASKLET_ST_IDLE, TASKLET_ST_BUSY)) {
sys/compat/linuxkpi/common/src/linux_tasklet.c
202
TAILQ_INSERT_TAIL(&tw->head, ts, entry);
sys/compat/linuxkpi/common/src/linux_tasklet.c
222
tasklet_kill(struct tasklet_struct *ts)
sys/compat/linuxkpi/common/src/linux_tasklet.c
228
while (TASKLET_ST_GET(ts) != TASKLET_ST_IDLE)
sys/compat/linuxkpi/common/src/linux_tasklet.c
233
tasklet_enable(struct tasklet_struct *ts)
sys/compat/linuxkpi/common/src/linux_tasklet.c
236
atomic_dec(&ts->count);
sys/compat/linuxkpi/common/src/linux_tasklet.c
240
tasklet_disable(struct tasklet_struct *ts)
sys/compat/linuxkpi/common/src/linux_tasklet.c
243
atomic_inc(&ts->count);
sys/compat/linuxkpi/common/src/linux_tasklet.c
244
tasklet_unlock_wait(ts);
sys/compat/linuxkpi/common/src/linux_tasklet.c
248
tasklet_disable_nosync(struct tasklet_struct *ts)
sys/compat/linuxkpi/common/src/linux_tasklet.c
250
atomic_inc(&ts->count);
sys/compat/linuxkpi/common/src/linux_tasklet.c
255
tasklet_trylock(struct tasklet_struct *ts)
sys/compat/linuxkpi/common/src/linux_tasklet.c
258
return (TASKLET_ST_CMPSET(ts, TASKLET_ST_IDLE, TASKLET_ST_BUSY));
sys/compat/linuxkpi/common/src/linux_tasklet.c
262
tasklet_unlock(struct tasklet_struct *ts)
sys/compat/linuxkpi/common/src/linux_tasklet.c
265
TASKLET_ST_SET(ts, TASKLET_ST_IDLE);
sys/compat/linuxkpi/common/src/linux_tasklet.c
269
tasklet_unlock_wait(struct tasklet_struct *ts)
sys/compat/linuxkpi/common/src/linux_tasklet.c
275
while (TASKLET_ST_GET(ts) != TASKLET_ST_IDLE)
sys/compat/linuxkpi/common/src/linux_tasklet.c
42
#define TASKLET_ST_CMPSET(ts, old, new) \
sys/compat/linuxkpi/common/src/linux_tasklet.c
43
atomic_cmpset_int((volatile u_int *)&(ts)->tasklet_state, old, new)
sys/compat/linuxkpi/common/src/linux_tasklet.c
45
#define TASKLET_ST_SET(ts, new) \
sys/compat/linuxkpi/common/src/linux_tasklet.c
46
WRITE_ONCE(*(volatile u_int *)&(ts)->tasklet_state, new)
sys/compat/linuxkpi/common/src/linux_tasklet.c
48
#define TASKLET_ST_GET(ts) \
sys/compat/linuxkpi/common/src/linux_tasklet.c
49
READ_ONCE(*(volatile u_int *)&(ts)->tasklet_state)
sys/compat/linuxkpi/common/src/linux_tasklet.c
66
struct tasklet_struct *ts;
sys/compat/linuxkpi/common/src/linux_tasklet.c
74
ts = TAILQ_FIRST(&tw->head);
sys/compat/linuxkpi/common/src/linux_tasklet.c
75
if (ts == NULL)
sys/compat/linuxkpi/common/src/linux_tasklet.c
77
TAILQ_REMOVE(&tw->head, ts, entry);
sys/compat/linuxkpi/common/src/linux_tasklet.c
79
if (!atomic_read(&ts->count)) {
sys/compat/linuxkpi/common/src/linux_tasklet.c
83
TASKLET_ST_SET(ts, TASKLET_ST_EXEC);
sys/compat/linuxkpi/common/src/linux_tasklet.c
85
if (ts->use_callback)
sys/compat/linuxkpi/common/src/linux_tasklet.c
86
ts->callback(ts);
sys/compat/linuxkpi/common/src/linux_tasklet.c
88
ts->func(ts->data);
sys/compat/linuxkpi/common/src/linux_tasklet.c
90
} while (TASKLET_ST_CMPSET(ts, TASKLET_ST_EXEC,
sys/compat/linuxkpi/common/src/linux_tasklet.c
94
TAILQ_INSERT_TAIL(&tw->head, ts, entry);
sys/compat/linuxkpi/common/src/linux_tasklet.c
96
if (ts == last)
sys/crypto/skein/skein_block.c
101
ts[2] = ts[0] ^ ts[1];
sys/crypto/skein/skein_block.c
105
Skein_Show_Block(BLK_BITS,&ctx->h,ctx->X,blkPtr,w,ks,ts);
sys/crypto/skein/skein_block.c
108
X1 = w[1] + ks[1] + ts[0];
sys/crypto/skein/skein_block.c
109
X2 = w[2] + ks[2] + ts[1];
sys/crypto/skein/skein_block.c
129
X1 += ks[((R)+2) % 5] + ts[((R)+1) % 3]; \
sys/crypto/skein/skein_block.c
130
X2 += ks[((R)+3) % 5] + ts[((R)+2) % 3]; \
sys/crypto/skein/skein_block.c
140
X1 += ks[r+(R)+1] + ts[r+(R)+0]; \
sys/crypto/skein/skein_block.c
141
X2 += ks[r+(R)+2] + ts[r+(R)+1]; \
sys/crypto/skein/skein_block.c
144
ts[r + (R)+2 ] = ts[r+(R)-1]; \
sys/crypto/skein/skein_block.c
220
ts[1] &= ~SKEIN_T1_FLAG_FIRST;
sys/crypto/skein/skein_block.c
223
ctx->h.T[0] = ts[0];
sys/crypto/skein/skein_block.c
224
ctx->h.T[1] = ts[1];
sys/crypto/skein/skein_block.c
275
ts[0] = ctx->h.T[0];
sys/crypto/skein/skein_block.c
276
ts[1] = ctx->h.T[1];
sys/crypto/skein/skein_block.c
279
ts[0] += byteCntAdd; /* update processed length */
sys/crypto/skein/skein_block.c
293
ts[2] = ts[0] ^ ts[1];
sys/crypto/skein/skein_block.c
297
Skein_Show_Block(BLK_BITS,&ctx->h,ctx->X,blkPtr,w,ks,ts);
sys/crypto/skein/skein_block.c
304
X5 = w[5] + ks[5] + ts[0];
sys/crypto/skein/skein_block.c
305
X6 = w[6] + ks[6] + ts[1];
sys/crypto/skein/skein_block.c
329
X5 += ks[((R)+6) % 9] + ts[((R)+1) % 3]; \
sys/crypto/skein/skein_block.c
330
X6 += ks[((R)+7) % 9] + ts[((R)+2) % 3]; \
sys/crypto/skein/skein_block.c
344
X5 += ks[r+(R)+5] + ts[r+(R)+0]; \
sys/crypto/skein/skein_block.c
345
X6 += ks[r+(R)+6] + ts[r+(R)+1]; \
sys/crypto/skein/skein_block.c
348
ts[r + (R)+2] = ts[r+(R)-1]; \
sys/crypto/skein/skein_block.c
428
ts[1] &= ~SKEIN_T1_FLAG_FIRST;
sys/crypto/skein/skein_block.c
431
ctx->h.T[0] = ts[0];
sys/crypto/skein/skein_block.c
432
ctx->h.T[1] = ts[1];
sys/crypto/skein/skein_block.c
44
#define DebugSaveTweak(ctx) { ctx->h.T[0] = ts[0]; ctx->h.T[1] = ts[1]; }
sys/crypto/skein/skein_block.c
487
ts[0] = ctx->h.T[0];
sys/crypto/skein/skein_block.c
488
ts[1] = ctx->h.T[1];
sys/crypto/skein/skein_block.c
491
ts[0] += byteCntAdd; /* update processed length */
sys/crypto/skein/skein_block.c
515
ts[2] = ts[0] ^ ts[1];
sys/crypto/skein/skein_block.c
519
Skein_Show_Block(BLK_BITS,&ctx->h,ctx->X,blkPtr,w,ks,ts);
sys/crypto/skein/skein_block.c
534
X13 = w[13] + ks[13] + ts[0];
sys/crypto/skein/skein_block.c
535
X14 = w[14] + ks[14] + ts[1];
sys/crypto/skein/skein_block.c
569
X13 += ks[((R)+14) % 17] + ts[((R)+1) % 3]; \
sys/crypto/skein/skein_block.c
570
X14 += ks[((R)+15) % 17] + ts[((R)+2) % 3]; \
sys/crypto/skein/skein_block.c
592
X13 += ks[r+(R)+13] + ts[r+(R)+0]; \
sys/crypto/skein/skein_block.c
593
X14 += ks[r+(R)+14] + ts[r+(R)+1]; \
sys/crypto/skein/skein_block.c
596
ts[r + (R)+ 2] = ts[r+(R)-1]; \
sys/crypto/skein/skein_block.c
685
ts[1] &= ~SKEIN_T1_FLAG_FIRST;
sys/crypto/skein/skein_block.c
689
ctx->h.T[0] = ts[0];
sys/crypto/skein/skein_block.c
690
ctx->h.T[1] = ts[1];
sys/crypto/skein/skein_block.c
88
ts[0] = ctx->h.T[0];
sys/crypto/skein/skein_block.c
89
ts[1] = ctx->h.T[1];
sys/crypto/skein/skein_block.c
92
ts[0] += byteCntAdd; /* update processed length */
sys/dev/acpica/acpi_hpet.c
933
struct timespec ts;
sys/dev/acpica/acpi_hpet.c
947
bintime2timespec(&b2, &ts);
sys/dev/acpica/acpi_hpet.c
950
(long)ts.tv_sec, ts.tv_nsec, u1, u2, u2 - u1);
sys/dev/acpica/acpi_hpet.c
952
device_printf(sc->dev, "time per call: %ld ns\n", ts.tv_nsec / 1000);
sys/dev/ath/ath_hal/ar5210/ar5210_xmit.c
591
struct ath_desc *ds, struct ath_tx_status *ts)
sys/dev/ath/ath_hal/ar5210/ar5210_xmit.c
599
ts->ts_seqnum = ads->ds_status1 & AR_SeqNum;
sys/dev/ath/ath_hal/ar5210/ar5210_xmit.c
600
ts->ts_tstamp = MS(ads->ds_status0, AR_SendTimestamp);
sys/dev/ath/ath_hal/ar5210/ar5210_xmit.c
601
ts->ts_status = 0;
sys/dev/ath/ath_hal/ar5210/ar5210_xmit.c
604
ts->ts_status |= HAL_TXERR_XRETRY;
sys/dev/ath/ath_hal/ar5210/ar5210_xmit.c
606
ts->ts_status |= HAL_TXERR_FILT;
sys/dev/ath/ath_hal/ar5210/ar5210_xmit.c
608
ts->ts_status |= HAL_TXERR_FIFO;
sys/dev/ath/ath_hal/ar5210/ar5210_xmit.c
610
ts->ts_rate = MS(ads->ds_ctl0, AR_XmitRate);
sys/dev/ath/ath_hal/ar5210/ar5210_xmit.c
611
ts->ts_rssi = MS(ads->ds_status1, AR_AckSigStrength);
sys/dev/ath/ath_hal/ar5210/ar5210_xmit.c
612
ts->ts_shortretry = MS(ads->ds_status0, AR_ShortRetryCnt);
sys/dev/ath/ath_hal/ar5210/ar5210_xmit.c
613
ts->ts_longretry = MS(ads->ds_status0, AR_LongRetryCnt);
sys/dev/ath/ath_hal/ar5210/ar5210_xmit.c
614
ts->ts_antenna = 0; /* NB: don't know */
sys/dev/ath/ath_hal/ar5210/ar5210_xmit.c
615
ts->ts_finaltsi = 0;
sys/dev/ath/ath_hal/ar5211/ar5211_xmit.c
620
struct ath_desc *ds, struct ath_tx_status *ts)
sys/dev/ath/ath_hal/ar5211/ar5211_xmit.c
628
ts->ts_seqnum = MS(ads->ds_status1, AR_SeqNum);
sys/dev/ath/ath_hal/ar5211/ar5211_xmit.c
629
ts->ts_tstamp = MS(ads->ds_status0, AR_SendTimestamp);
sys/dev/ath/ath_hal/ar5211/ar5211_xmit.c
630
ts->ts_status = 0;
sys/dev/ath/ath_hal/ar5211/ar5211_xmit.c
633
ts->ts_status |= HAL_TXERR_XRETRY;
sys/dev/ath/ath_hal/ar5211/ar5211_xmit.c
635
ts->ts_status |= HAL_TXERR_FILT;
sys/dev/ath/ath_hal/ar5211/ar5211_xmit.c
637
ts->ts_status |= HAL_TXERR_FIFO;
sys/dev/ath/ath_hal/ar5211/ar5211_xmit.c
639
ts->ts_rate = MS(ads->ds_ctl0, AR_XmitRate);
sys/dev/ath/ath_hal/ar5211/ar5211_xmit.c
640
ts->ts_rssi = MS(ads->ds_status1, AR_AckSigStrength);
sys/dev/ath/ath_hal/ar5211/ar5211_xmit.c
641
ts->ts_shortretry = MS(ads->ds_status0, AR_ShortRetryCnt);
sys/dev/ath/ath_hal/ar5211/ar5211_xmit.c
642
ts->ts_longretry = MS(ads->ds_status0, AR_LongRetryCnt);
sys/dev/ath/ath_hal/ar5211/ar5211_xmit.c
643
ts->ts_virtcol = MS(ads->ds_status0, AR_VirtCollCnt);
sys/dev/ath/ath_hal/ar5211/ar5211_xmit.c
644
ts->ts_antenna = 0; /* NB: don't know */
sys/dev/ath/ath_hal/ar5211/ar5211_xmit.c
645
ts->ts_finaltsi = 0;
sys/dev/ath/ath_hal/ar5211/ar5211_xmit.c
650
if (ts->ts_shortretry > 0)
sys/dev/ath/ath_hal/ar5211/ar5211_xmit.c
651
ts->ts_shortretry++;
sys/dev/ath/ath_hal/ar5211/ar5211_xmit.c
652
if (ts->ts_longretry > 0)
sys/dev/ath/ath_hal/ar5211/ar5211_xmit.c
653
ts->ts_longretry++;
sys/dev/ath/ath_hal/ar5212/ar5212_xmit.c
877
struct ath_desc *ds, struct ath_tx_status *ts)
sys/dev/ath/ath_hal/ar5212/ar5212_xmit.c
892
ts->ts_seqnum = MS(ads->ds_txstatus1, AR_SeqNum);
sys/dev/ath/ath_hal/ar5212/ar5212_xmit.c
893
ts->ts_tstamp = MS(ads->ds_txstatus0, AR_SendTimestamp);
sys/dev/ath/ath_hal/ar5212/ar5212_xmit.c
894
ts->ts_status = 0;
sys/dev/ath/ath_hal/ar5212/ar5212_xmit.c
897
ts->ts_status |= HAL_TXERR_XRETRY;
sys/dev/ath/ath_hal/ar5212/ar5212_xmit.c
899
ts->ts_status |= HAL_TXERR_FILT;
sys/dev/ath/ath_hal/ar5212/ar5212_xmit.c
901
ts->ts_status |= HAL_TXERR_FIFO;
sys/dev/ath/ath_hal/ar5212/ar5212_xmit.c
907
ts->ts_finaltsi = MS(ads->ds_txstatus1, AR_FinalTSIndex);
sys/dev/ath/ath_hal/ar5212/ar5212_xmit.c
908
switch (ts->ts_finaltsi) {
sys/dev/ath/ath_hal/ar5212/ar5212_xmit.c
910
ts->ts_rate = MS(ads->ds_ctl3, AR_XmitRate0);
sys/dev/ath/ath_hal/ar5212/ar5212_xmit.c
913
ts->ts_rate = MS(ads->ds_ctl3, AR_XmitRate1);
sys/dev/ath/ath_hal/ar5212/ar5212_xmit.c
916
ts->ts_rate = MS(ads->ds_ctl3, AR_XmitRate2);
sys/dev/ath/ath_hal/ar5212/ar5212_xmit.c
919
ts->ts_rate = MS(ads->ds_ctl3, AR_XmitRate3);
sys/dev/ath/ath_hal/ar5212/ar5212_xmit.c
922
ts->ts_rssi = MS(ads->ds_txstatus1, AR_AckSigStrength);
sys/dev/ath/ath_hal/ar5212/ar5212_xmit.c
923
ts->ts_shortretry = MS(ads->ds_txstatus0, AR_RTSFailCnt);
sys/dev/ath/ath_hal/ar5212/ar5212_xmit.c
924
ts->ts_longretry = MS(ads->ds_txstatus0, AR_DataFailCnt);
sys/dev/ath/ath_hal/ar5212/ar5212_xmit.c
936
switch (ts->ts_finaltsi) {
sys/dev/ath/ath_hal/ar5212/ar5212_xmit.c
937
case 3: ts->ts_longretry += MS(ads->ds_ctl2, AR_XmitDataTries2);
sys/dev/ath/ath_hal/ar5212/ar5212_xmit.c
938
case 2: ts->ts_longretry += MS(ads->ds_ctl2, AR_XmitDataTries1);
sys/dev/ath/ath_hal/ar5212/ar5212_xmit.c
939
case 1: ts->ts_longretry += MS(ads->ds_ctl2, AR_XmitDataTries0);
sys/dev/ath/ath_hal/ar5212/ar5212_xmit.c
941
ts->ts_virtcol = MS(ads->ds_txstatus0, AR_VirtCollCnt);
sys/dev/ath/ath_hal/ar5212/ar5212_xmit.c
942
ts->ts_antenna = (ads->ds_txstatus1 & AR_XmitAtenna ? 2 : 1);
sys/dev/ath/ath_hal/ar5416/ar5416_xmit.c
718
struct ath_desc *ds, struct ath_tx_status *ts)
sys/dev/ath/ath_hal/ar5416/ar5416_xmit.c
733
ts->ts_seqnum = MS(ds_txstatus[9], AR_SeqNum);
sys/dev/ath/ath_hal/ar5416/ar5416_xmit.c
734
ts->ts_tstamp = AR_SendTimestamp(ds_txstatus);
sys/dev/ath/ath_hal/ar5416/ar5416_xmit.c
735
ts->ts_tid = MS(ds_txstatus[9], AR_TxTid);
sys/dev/ath/ath_hal/ar5416/ar5416_xmit.c
737
ts->ts_status = 0;
sys/dev/ath/ath_hal/ar5416/ar5416_xmit.c
739
ts->ts_status |= HAL_TXERR_XRETRY;
sys/dev/ath/ath_hal/ar5416/ar5416_xmit.c
741
ts->ts_status |= HAL_TXERR_FILT;
sys/dev/ath/ath_hal/ar5416/ar5416_xmit.c
743
ts->ts_status |= HAL_TXERR_FIFO;
sys/dev/ath/ath_hal/ar5416/ar5416_xmit.c
745
ts->ts_status |= HAL_TXERR_XTXOP;
sys/dev/ath/ath_hal/ar5416/ar5416_xmit.c
747
ts->ts_status |= HAL_TXERR_TIMER_EXPIRED;
sys/dev/ath/ath_hal/ar5416/ar5416_xmit.c
749
ts->ts_flags = 0;
sys/dev/ath/ath_hal/ar5416/ar5416_xmit.c
751
ts->ts_flags |= HAL_TX_BA;
sys/dev/ath/ath_hal/ar5416/ar5416_xmit.c
752
ts->ts_ba_low = AR_BaBitmapLow(ds_txstatus);
sys/dev/ath/ath_hal/ar5416/ar5416_xmit.c
753
ts->ts_ba_high = AR_BaBitmapHigh(ds_txstatus);
sys/dev/ath/ath_hal/ar5416/ar5416_xmit.c
756
ts->ts_flags |= HAL_TX_AGGR;
sys/dev/ath/ath_hal/ar5416/ar5416_xmit.c
758
ts->ts_flags |= HAL_TX_DESC_CFG_ERR;
sys/dev/ath/ath_hal/ar5416/ar5416_xmit.c
760
ts->ts_flags |= HAL_TX_DATA_UNDERRUN;
sys/dev/ath/ath_hal/ar5416/ar5416_xmit.c
762
ts->ts_flags |= HAL_TX_DELIM_UNDERRUN;
sys/dev/ath/ath_hal/ar5416/ar5416_xmit.c
768
ts->ts_finaltsi = MS(ds_txstatus[9], AR_FinalTxIdx);
sys/dev/ath/ath_hal/ar5416/ar5416_xmit.c
769
switch (ts->ts_finaltsi) {
sys/dev/ath/ath_hal/ar5416/ar5416_xmit.c
771
ts->ts_rate = MS(ads->ds_ctl3, AR_XmitRate0);
sys/dev/ath/ath_hal/ar5416/ar5416_xmit.c
774
ts->ts_rate = MS(ads->ds_ctl3, AR_XmitRate1);
sys/dev/ath/ath_hal/ar5416/ar5416_xmit.c
777
ts->ts_rate = MS(ads->ds_ctl3, AR_XmitRate2);
sys/dev/ath/ath_hal/ar5416/ar5416_xmit.c
780
ts->ts_rate = MS(ads->ds_ctl3, AR_XmitRate3);
sys/dev/ath/ath_hal/ar5416/ar5416_xmit.c
784
ts->ts_rssi = MS(ds_txstatus[5], AR_TxRSSICombined);
sys/dev/ath/ath_hal/ar5416/ar5416_xmit.c
785
ts->ts_rssi_ctl[0] = MS(ds_txstatus[0], AR_TxRSSIAnt00);
sys/dev/ath/ath_hal/ar5416/ar5416_xmit.c
786
ts->ts_rssi_ctl[1] = MS(ds_txstatus[0], AR_TxRSSIAnt01);
sys/dev/ath/ath_hal/ar5416/ar5416_xmit.c
787
ts->ts_rssi_ctl[2] = MS(ds_txstatus[0], AR_TxRSSIAnt02);
sys/dev/ath/ath_hal/ar5416/ar5416_xmit.c
788
ts->ts_rssi_ext[0] = MS(ds_txstatus[5], AR_TxRSSIAnt10);
sys/dev/ath/ath_hal/ar5416/ar5416_xmit.c
789
ts->ts_rssi_ext[1] = MS(ds_txstatus[5], AR_TxRSSIAnt11);
sys/dev/ath/ath_hal/ar5416/ar5416_xmit.c
790
ts->ts_rssi_ext[2] = MS(ds_txstatus[5], AR_TxRSSIAnt12);
sys/dev/ath/ath_hal/ar5416/ar5416_xmit.c
791
ts->ts_evm0 = AR_TxEVM0(ds_txstatus);
sys/dev/ath/ath_hal/ar5416/ar5416_xmit.c
792
ts->ts_evm1 = AR_TxEVM1(ds_txstatus);
sys/dev/ath/ath_hal/ar5416/ar5416_xmit.c
793
ts->ts_evm2 = AR_TxEVM2(ds_txstatus);
sys/dev/ath/ath_hal/ar5416/ar5416_xmit.c
795
ts->ts_shortretry = MS(ds_txstatus[1], AR_RTSFailCnt);
sys/dev/ath/ath_hal/ar5416/ar5416_xmit.c
796
ts->ts_longretry = MS(ds_txstatus[1], AR_DataFailCnt);
sys/dev/ath/ath_hal/ar5416/ar5416_xmit.c
808
switch (ts->ts_finaltsi) {
sys/dev/ath/ath_hal/ar5416/ar5416_xmit.c
809
case 3: ts->ts_longretry += MS(ads->ds_ctl2, AR_XmitDataTries2);
sys/dev/ath/ath_hal/ar5416/ar5416_xmit.c
810
case 2: ts->ts_longretry += MS(ads->ds_ctl2, AR_XmitDataTries1);
sys/dev/ath/ath_hal/ar5416/ar5416_xmit.c
811
case 1: ts->ts_longretry += MS(ads->ds_ctl2, AR_XmitDataTries0);
sys/dev/ath/ath_hal/ar5416/ar5416_xmit.c
818
ts->ts_virtcol = MS(ads->ds_ctl1, AR_VirtRetryCnt);
sys/dev/ath/ath_hal/ar5416/ar5416_xmit.c
819
ts->ts_antenna = 0; /* We don't switch antennas on Owl*/
sys/dev/ath/ath_hal/ar5416/ar5416_xmit.c
822
if ((ts->ts_status & HAL_TXERR_FIFO) ||
sys/dev/ath/ath_hal/ar5416/ar5416_xmit.c
823
(ts->ts_flags & (HAL_TX_DATA_UNDERRUN | HAL_TX_DELIM_UNDERRUN)))
sys/dev/ath/ath_rate/amrr/amrr.c
161
const struct ath_rc_series *rc, const struct ath_tx_status *ts,
sys/dev/ath/ath_rate/amrr/amrr.c
165
int sr = ts->ts_shortretry;
sys/dev/ath/ath_rate/amrr/amrr.c
166
int lr = ts->ts_longretry;
sys/dev/ath/ath_rate/onoe/onoe.c
169
const struct ath_rc_series *rc, const struct ath_tx_status *ts,
sys/dev/ath/ath_rate/onoe/onoe.c
174
if (ts->ts_status == 0)
sys/dev/ath/ath_rate/onoe/onoe.c
178
on->on_tx_retr += ts->ts_shortretry
sys/dev/ath/ath_rate/onoe/onoe.c
179
+ ts->ts_longretry;
sys/dev/ath/ath_rate/sample/sample.c
1098
const struct ath_rc_series *rc, const struct ath_tx_status *ts,
sys/dev/ath/ath_rate/sample/sample.c
1105
int status = ts->ts_status;
sys/dev/ath/ath_rate/sample/sample.c
1108
final_rix = rt->rateCodeToIndex[ts->ts_rate];
sys/dev/ath/ath_rate/sample/sample.c
1109
short_tries = ts->ts_shortretry;
sys/dev/ath/ath_rate/sample/sample.c
1110
long_tries = ts->ts_longretry + 1;
sys/dev/ath/ath_rate/sample/sample.c
1169
if (!mrr || ts->ts_finaltsi == 0) {
sys/dev/ath/ath_rate/sample/sample.c
1173
__func__, ts->ts_rate, ts->ts_finaltsi, final_rix);
sys/dev/ath/ath_rate/sample/sample.c
1174
badrate(sc, 0, ts->ts_rate, long_tries, status);
sys/dev/ath/ath_rate/sample/sample.c
1194
int finalTSIdx = ts->ts_finaltsi;
sys/dev/ath/if_ath.c
4219
ath_tx_update_stats(struct ath_softc *sc, struct ath_tx_status *ts,
sys/dev/ath/if_ath.c
4226
if (ts->ts_status == 0) {
sys/dev/ath/if_ath.c
4227
u_int8_t txant = ts->ts_antenna;
sys/dev/ath/if_ath.c
4235
if (ts->ts_finaltsi != 0)
sys/dev/ath/if_ath.c
4246
if (ts->ts_status & HAL_TXERR_XRETRY)
sys/dev/ath/if_ath.c
4248
if (ts->ts_status & HAL_TXERR_FIFO)
sys/dev/ath/if_ath.c
4250
if (ts->ts_status & HAL_TXERR_FILT)
sys/dev/ath/if_ath.c
4252
if (ts->ts_status & HAL_TXERR_XTXOP)
sys/dev/ath/if_ath.c
4254
if (ts->ts_status & HAL_TXERR_TIMER_EXPIRED)
sys/dev/ath/if_ath.c
4261
if (ts->ts_flags & HAL_TX_DESC_CFG_ERR)
sys/dev/ath/if_ath.c
4271
if (ts->ts_flags & HAL_TX_DATA_UNDERRUN)
sys/dev/ath/if_ath.c
4273
if (ts->ts_flags & HAL_TX_DELIM_UNDERRUN)
sys/dev/ath/if_ath.c
4276
sr = ts->ts_shortretry;
sys/dev/ath/if_ath.c
4277
lr = ts->ts_longretry;
sys/dev/ath/if_ath.c
4291
struct ath_tx_status *ts = &bf->bf_status.ds_txstat;
sys/dev/ath/if_ath.c
4298
ts->ts_status : HAL_TXERR_XRETRY;
sys/dev/ath/if_ath.c
4350
struct ath_rc_series *rc, struct ath_tx_status *ts, int frmlen,
sys/dev/ath/if_ath.c
4368
if ((ts->ts_status & HAL_TXERR_FILT) == 0) {
sys/dev/ath/if_ath.c
4370
ath_rate_tx_complete(sc, an, rc, ts, frmlen, rc_framelen,
sys/dev/ath/if_ath.c
4385
struct ath_tx_status *ts, struct ath_buf *bf)
sys/dev/ath/if_ath.c
4395
ath_tx_update_stats(sc, ts, bf);
sys/dev/ath/if_ath.c
4407
if ((ts->ts_status & HAL_TXERR_FILT) == 0 &&
sys/dev/ath/if_ath.c
4417
bf->bf_state.bfs_rc, ts,
sys/dev/ath/if_ath.c
4421
(ts->ts_status == 0 ? 0 : 1));
sys/dev/ath/if_ath.c
4439
struct ath_tx_status *ts;
sys/dev/ath/if_ath.c
4469
ts = &bf->bf_status.ds_txstat;
sys/dev/ath/if_ath.c
4471
status = ath_hal_txprocdesc(ah, ds, ts);
sys/dev/ath/if_ath.c
4542
txq->axq_qnum, bf, ds, ni, ts->ts_status);
sys/dev/ath/if_ath.c
4548
if (ni != NULL && ts->ts_status == 0 &&
sys/dev/ath/if_ath.c
4551
sc->sc_stats.ast_tx_rssi = ts->ts_rssi;
sys/dev/ath/if_ath.c
4553
ts->ts_rssi);
sys/dev/ath/if_ath.c
4555
ts->ts_rssi);
sys/dev/ath/if_ath.c
4562
ath_tx_process_buf_completion(sc, txq, ts, bf);
sys/dev/ath/if_ath_debug.c
138
const struct ath_tx_status *ts =
sys/dev/ath/if_ath_debug.c
165
!done ? "" : (ts->ts_status == 0) ? " *" : " !");
sys/dev/ath/if_ath_debug.c
201
const struct ath_tx_status *ts = &first_bf->bf_status.ds_txstat;
sys/dev/ath/if_ath_debug.c
219
!done ? "" : (ts->ts_status == 0) ? " *" : " !");
sys/dev/ath/if_ath_misc.h
65
struct ath_tx_status *ts, int frmlen, int rc_framelen,
sys/dev/ath/if_ath_misc.h
92
struct ath_txq *txq, struct ath_tx_status *ts, struct ath_buf *bf);
sys/dev/ath/if_ath_tdma.c
377
const struct ieee80211_tdma_state *ts = vap->iv_tdma;
sys/dev/ath/if_ath_tdma.c
379
ath_tdma_bintvalsetup(sc, ts);
sys/dev/ath/if_ath_tdma.c
386
ts->tdma_slot, ts->tdma_slotcnt, ts->tdma_slotlen,
sys/dev/ath/if_ath_tx.c
4190
struct ath_tx_status *ts = &bf->bf_status.ds_txstat;
sys/dev/ath/if_ath_tx.c
4205
if ((ts->ts_status & HAL_TXERR_FILT) ||
sys/dev/ath/if_ath_tx.c
4206
(ts->ts_status != 0 && atid->isfiltered)) {
sys/dev/ath/if_ath_tx.c
4211
ts->ts_status);
sys/dev/ath/if_ath_tx.c
4255
ts,
sys/dev/ath/if_ath_tx.c
4258
1, (ts->ts_status == 0) ? 0 : 1);
sys/dev/ath/if_ath_tx.c
4826
struct ath_tx_status ts;
sys/dev/ath/if_ath_tx.c
4850
ts = bf_first->bf_status.ds_txstat;
sys/dev/ath/if_ath_tx.c
4895
if ((ts.ts_status & HAL_TXERR_FILT) ||
sys/dev/ath/if_ath_tx.c
4896
(ts.ts_status != 0 && atid->isfiltered)) {
sys/dev/ath/if_ath_tx.c
4944
if (ts.ts_status & HAL_TXERR_XRETRY) {
sys/dev/ath/if_ath_tx.c
4946
if (ts.ts_status != 0) {
sys/dev/ath/if_ath_tx.c
4958
seq_st = ts.ts_seqnum;
sys/dev/ath/if_ath_tx.c
4959
hasba = !! (ts.ts_flags & HAL_TX_BA);
sys/dev/ath/if_ath_tx.c
4960
tx_ok = (ts.ts_status == 0);
sys/dev/ath/if_ath_tx.c
4962
ba[0] = ts.ts_ba_low;
sys/dev/ath/if_ath_tx.c
4963
ba[1] = ts.ts_ba_high;
sys/dev/ath/if_ath_tx.c
4976
__func__, tap->txa_start, tx_ok, ts.ts_status, ts.ts_flags,
sys/dev/ath/if_ath_tx.c
4990
if (tid != ts.ts_tid) {
sys/dev/ath/if_ath_tx.c
4992
__func__, tid, ts.ts_tid);
sys/dev/ath/if_ath_tx.c
5093
ath_tx_update_ratectrl(sc, ni, rc, &ts, agglen, rc_agglen,
sys/dev/ath/if_ath_tx.c
5167
struct ath_tx_status ts;
sys/dev/ath/if_ath_tx.c
5174
ts = bf->bf_status.ds_txstat;
sys/dev/ath/if_ath_tx.c
5187
1, (ts.ts_status == 0) ? 0 : 1);
sys/dev/ath/if_ath_tx.c
5247
if ((ts.ts_status & HAL_TXERR_FILT) ||
sys/dev/ath/if_ath_tx.c
5248
(ts.ts_status != 0 && atid->isfiltered)) {
sys/dev/ath/if_ath_tx.c
5302
if (fail == 0 && ts->ts_status & HAL_TXERR_XRETRY) {
sys/dev/ath/if_ath_tx.c
5304
if (fail == 0 && ts.ts_status != 0) {
sys/dev/ath/if_ath_tx_edma.c
1000
memcpy(&bf->bf_status, &ts, sizeof(ts));
sys/dev/ath/if_ath_tx_edma.c
1006
if (ni != NULL && ts.ts_status == 0 &&
sys/dev/ath/if_ath_tx_edma.c
1009
sc->sc_stats.ast_tx_rssi = ts.ts_rssi;
sys/dev/ath/if_ath_tx_edma.c
1011
ts.ts_rssi);
sys/dev/ath/if_ath_tx_edma.c
1013
ts.ts_rssi);
sys/dev/ath/if_ath_tx_edma.c
1017
ath_tx_process_buf_completion(sc, txq, &ts, bf);
sys/dev/ath/if_ath_tx_edma.c
798
struct ath_tx_status ts;
sys/dev/ath/if_ath_tx_edma.c
814
bzero(&ts, sizeof(ts));
sys/dev/ath/if_ath_tx_edma.c
820
status = ath_hal_txprocdesc(ah, NULL, (void *) &ts);
sys/dev/ath/if_ath_tx_edma.c
832
if (ts.ts_queue_id != sc->sc_bhalq)
sys/dev/ath/if_ath_tx_edma.c
833
ath_printtxstatbuf(sc, NULL, txstatus, ts.ts_queue_id,
sys/dev/ath/if_ath_tx_edma.c
873
if (ts.ts_queue_id == sc->sc_bhalq)
sys/dev/ath/if_ath_tx_edma.c
876
txq = &sc->sc_txq[ts.ts_queue_id];
sys/dev/ath/if_ath_tx_edma.c
889
ts.ts_queue_id);
sys/dev/ath/if_ath_tx_edma.c
896
ts.ts_queue_id, bf,
sys/dev/ath/if_ath_tx_edma.c
904
if (ts.ts_desc_id != bf->bf_descid) {
sys/dev/ath/if_ath_tx_edma.c
909
ts.ts_queue_id,
sys/dev/ath/if_ath_tx_edma.c
910
ts.ts_desc_id,
sys/dev/ath/if_ath_tx_edma.c
971
if (ts.ts_finaltsi < 4) {
sys/dev/ath/if_ath_tx_edma.c
972
ts.ts_rate =
sys/dev/ath/if_ath_tx_edma.c
973
bf->bf_state.bfs_rc[ts.ts_finaltsi].ratecode;
sys/dev/ath/if_ath_tx_edma.c
974
switch (ts.ts_finaltsi) {
sys/dev/ath/if_ath_tx_edma.c
975
case 3: ts.ts_longretry +=
sys/dev/ath/if_ath_tx_edma.c
977
case 2: ts.ts_longretry +=
sys/dev/ath/if_ath_tx_edma.c
979
case 1: ts.ts_longretry +=
sys/dev/ath/if_ath_tx_edma.c
985
ts.ts_finaltsi);
sys/dev/ath/if_ath_tx_edma.c
986
ts.ts_rate = bf->bf_state.bfs_rc[0].ratecode;
sys/dev/axgbe/xgbe-drv.c
158
hw_feat->ts = XGMAC_GET_BITS(mac_hfr0, MAC_HWF0R, TSSEL);
sys/dev/axgbe/xgbe-drv.c
257
hw_feat->ts ? "yes" : "no");
sys/dev/axgbe/xgbe-ptp.c
176
static int xgbe_gettime(struct ptp_clock_info *info, struct timespec64 *ts)
sys/dev/axgbe/xgbe-ptp.c
190
*ts = ns_to_timespec64(nsec);
sys/dev/axgbe/xgbe-ptp.c
196
const struct timespec64 *ts)
sys/dev/axgbe/xgbe-ptp.c
204
nsec = timespec64_to_ns(ts);
sys/dev/axgbe/xgbe.h
963
unsigned int ts; /* IEEE 1588-2008 Advanced Timestamp */
sys/dev/bwn/if_bwn_phy_g.c
2192
struct timespec ts;
sys/dev/bwn/if_bwn_phy_g.c
2287
nanouptime(&ts);
sys/dev/bwn/if_bwn_phy_g.c
2289
(ts.tv_nsec / 1000000 + ts.tv_sec * 1000) - BWN_LO_TXCTL_EXPIRE))
sys/dev/bwn/if_bwnvar.h
54
struct timespec ts; \
sys/dev/bwn/if_bwnvar.h
55
nanouptime(&ts); \
sys/dev/bwn/if_bwnvar.h
56
(v) = ts.tv_nsec / 1000000 + ts.tv_sec * 1000; \
sys/dev/coreboot/coreboot.c
276
struct cb_version_timestamp *ts =
sys/dev/coreboot/coreboot.c
279
if (rec_size < sizeof(*ts))
sys/dev/coreboot/coreboot.c
281
sc->version_timestamp = ts->timestamp;
sys/dev/cxgbe/firmware/t4fw_interface.h
9534
} ts;
sys/dev/cxgbe/tom/t4_listen.c
1609
to->to_tsecr = synqe->ts;
sys/dev/cxgbe/tom/t4_listen.c
872
synqe->ts = to.to_tsval;
sys/dev/cxgbe/tom/t4_tom.h
284
uint32_t ts;
sys/dev/dialog/da9063/da9063_rtc.c
146
da9063_rtc_gettime(device_t dev, struct timespec *ts)
sys/dev/dialog/da9063/da9063_rtc.c
176
error = clock_ct_to_ts(&ct, ts);
sys/dev/dialog/da9063/da9063_rtc.c
188
da9063_rtc_settime(device_t dev, struct timespec *ts)
sys/dev/dialog/da9063/da9063_rtc.c
200
ts->tv_sec -= utc_offset();
sys/dev/dialog/da9063/da9063_rtc.c
201
clock_ts_to_ct(ts, &ct);
sys/dev/drm2/drm_os_freebsd.h
449
#define getrawmonotonic(ts) getnanouptime(ts)
sys/dev/efidev/efirtc.c
129
efirtc_gettime(device_t dev, struct timespec *ts)
sys/dev/efidev/efirtc.c
148
return (clock_ct_to_ts(&ct, ts));
sys/dev/efidev/efirtc.c
152
efirtc_settime(device_t dev, struct timespec *ts)
sys/dev/efidev/efirtc.c
162
ts->tv_sec -= utc_offset();
sys/dev/efidev/efirtc.c
164
timespecadd(ts, &efirtc_resadj, ts);
sys/dev/efidev/efirtc.c
166
clock_ts_to_ct(ts, &ct);
sys/dev/ena/ena.c
3228
sbintime_t ts;
sys/dev/ena/ena.c
3232
ts = atomic_load_64(&tx_buf->timestamp);
sys/dev/ena/ena.c
3233
if (ts == 0)
sys/dev/ena/ena.c
3236
time_offset = curtime - ts;
sys/dev/goldfish/goldfish_rtc.c
119
goldfish_rtc_gettime(device_t dev, struct timespec *ts)
sys/dev/goldfish/goldfish_rtc.c
137
ts->tv_sec = nsec / 1000000000;
sys/dev/goldfish/goldfish_rtc.c
138
ts->tv_nsec = nsec % 1000000000;
sys/dev/goldfish/goldfish_rtc.c
144
goldfish_rtc_settime(device_t dev, struct timespec *ts)
sys/dev/goldfish/goldfish_rtc.c
155
ts->tv_sec -= utc_offset();
sys/dev/goldfish/goldfish_rtc.c
156
nsec = (uint64_t)ts->tv_sec * 1000000000 + ts->tv_nsec;
sys/dev/hwpmc/hwpmc_logging.c
690
struct timespec ts;
sys/dev/hwpmc/hwpmc_logging.c
718
nanotime(&ts);
sys/dev/hwpmc/hwpmc_logging.c
731
memcpy(_le, &ts, sizeof(ts));
sys/dev/hwpmc/hwpmc_logging.c
732
_le += sizeof(ts)/4;
sys/dev/iicbus/pmic/rockchip/rk8xx.h
131
int rk8xx_gettime(device_t dev, struct timespec *ts);
sys/dev/iicbus/pmic/rockchip/rk8xx.h
132
int rk8xx_settime(device_t dev, struct timespec *ts);
sys/dev/iicbus/pmic/rockchip/rk8xx_rtc.c
102
return (clock_bcd_to_ts(&bct, ts, false));
sys/dev/iicbus/pmic/rockchip/rk8xx_rtc.c
106
rk8xx_settime(device_t dev, struct timespec *ts)
sys/dev/iicbus/pmic/rockchip/rk8xx_rtc.c
116
clock_ts_to_bcd(ts, &bct, false);
sys/dev/iicbus/pmic/rockchip/rk8xx_rtc.c
37
rk8xx_gettime(device_t dev, struct timespec *ts)
sys/dev/iicbus/rtc/ds1307.c
450
ds1307_gettime(device_t dev, struct timespec *ts)
sys/dev/iicbus/rtc/ds1307.c
497
return (clock_bcd_to_ts(&bct, ts, sc->sc_use_ampm));
sys/dev/iicbus/rtc/ds1307.c
501
ds1307_settime(device_t dev, struct timespec *ts)
sys/dev/iicbus/rtc/ds1307.c
515
ts->tv_sec -= utc_offset();
sys/dev/iicbus/rtc/ds1307.c
516
clock_ts_to_bcd(ts, &bct, sc->sc_use_ampm);
sys/dev/iicbus/rtc/ds13rtc.c
345
ds13rtc_gettime(device_t dev, struct timespec *ts)
sys/dev/iicbus/rtc/ds13rtc.c
364
ts->tv_nsec = 0;
sys/dev/iicbus/rtc/ds13rtc.c
365
return (read_timeword(sc, &ts->tv_sec));
sys/dev/iicbus/rtc/ds13rtc.c
398
err = clock_bcd_to_ts(&bct, ts, sc->use_ampm);
sys/dev/iicbus/rtc/ds13rtc.c
404
ds13rtc_settime(device_t dev, struct timespec *ts)
sys/dev/iicbus/rtc/ds13rtc.c
418
ts->tv_sec -= utc_offset();
sys/dev/iicbus/rtc/ds13rtc.c
422
return (write_timeword(sc, ts->tv_sec));
sys/dev/iicbus/rtc/ds13rtc.c
424
clock_ts_to_bcd(ts, &bct, sc->use_ampm);
sys/dev/iicbus/rtc/ds1672.c
142
ds1672_gettime(device_t dev, struct timespec *ts)
sys/dev/iicbus/rtc/ds1672.c
150
ts->tv_sec = (secs[3] << 24) | (secs[2] << 16)
sys/dev/iicbus/rtc/ds1672.c
152
ts->tv_nsec = 0;
sys/dev/iicbus/rtc/ds1672.c
154
clock_dbgprint_ts(dev, CLOCK_DBG_READ, ts);
sys/dev/iicbus/rtc/ds1672.c
159
ds1672_settime(device_t dev, struct timespec *ts)
sys/dev/iicbus/rtc/ds1672.c
163
data[0] = (ts->tv_sec >> 0) & 0xff;
sys/dev/iicbus/rtc/ds1672.c
164
data[1] = (ts->tv_sec >> 8) & 0xff;
sys/dev/iicbus/rtc/ds1672.c
165
data[2] = (ts->tv_sec >> 16) & 0xff;
sys/dev/iicbus/rtc/ds1672.c
166
data[3] = (ts->tv_sec >> 24) & 0xff;
sys/dev/iicbus/rtc/ds1672.c
168
ts->tv_nsec = 0;
sys/dev/iicbus/rtc/ds1672.c
169
clock_dbgprint_ts(dev, CLOCK_DBG_WRITE, ts);
sys/dev/iicbus/rtc/ds3231.c
479
ds3231_gettime(device_t dev, struct timespec *ts)
sys/dev/iicbus/rtc/ds3231.c
534
return (clock_bcd_to_ts(&bct, ts, sc->sc_use_ampm));
sys/dev/iicbus/rtc/ds3231.c
538
ds3231_settime(device_t dev, struct timespec *ts)
sys/dev/iicbus/rtc/ds3231.c
552
ts->tv_sec -= utc_offset();
sys/dev/iicbus/rtc/ds3231.c
553
clock_ts_to_bcd(ts, &bct, sc->sc_use_ampm);
sys/dev/iicbus/rtc/hym8563.c
306
hym8563_gettime(device_t dev, struct timespec *ts)
sys/dev/iicbus/rtc/hym8563.c
342
return (clock_bcd_to_ts(&bct, ts, false));
sys/dev/iicbus/rtc/hym8563.c
346
hym8563_settime(device_t dev, struct timespec *ts)
sys/dev/iicbus/rtc/hym8563.c
354
ts->tv_sec -= utc_offset();
sys/dev/iicbus/rtc/hym8563.c
355
clock_ts_to_bcd(ts, &bct, false);
sys/dev/iicbus/rtc/isl12xx.c
233
isl12xx_gettime(device_t dev, struct timespec *ts)
sys/dev/iicbus/rtc/isl12xx.c
276
return (clock_bcd_to_ts(&bct, ts, sc->use_ampm));
sys/dev/iicbus/rtc/isl12xx.c
280
isl12xx_settime(device_t dev, struct timespec *ts)
sys/dev/iicbus/rtc/isl12xx.c
292
ts->tv_sec -= utc_offset();
sys/dev/iicbus/rtc/isl12xx.c
293
ts->tv_nsec = 0;
sys/dev/iicbus/rtc/isl12xx.c
294
clock_ts_to_bcd(ts, &bct, sc->use_ampm);
sys/dev/iicbus/rtc/nxprtc.c
388
struct timespec ts;
sys/dev/iicbus/rtc/nxprtc.c
393
getnanouptime(&ts);
sys/dev/iicbus/rtc/nxprtc.c
394
if (ts.tv_sec < sc->bat_time)
sys/dev/iicbus/rtc/nxprtc.c
396
sc->bat_time = ts.tv_sec + (60 * 60 * 24);
sys/dev/iicbus/rtc/nxprtc.c
740
nxprtc_gettime(device_t dev, struct timespec *ts)
sys/dev/iicbus/rtc/nxprtc.c
799
err = clock_bcd_to_ts(&bct, ts, sc->use_ampm);
sys/dev/iicbus/rtc/nxprtc.c
800
ts->tv_sec += utc_offset();
sys/dev/iicbus/rtc/nxprtc.c
806
nxprtc_settime(device_t dev, struct timespec *ts)
sys/dev/iicbus/rtc/nxprtc.c
835
getnanotime(ts);
sys/dev/iicbus/rtc/nxprtc.c
836
ts->tv_sec -= utc_offset();
sys/dev/iicbus/rtc/nxprtc.c
837
ts->tv_nsec = 0;
sys/dev/iicbus/rtc/nxprtc.c
838
clock_ts_to_bcd(ts, &bct, sc->use_ampm);
sys/dev/iicbus/rtc/pcf85063.c
122
pcf85063_get_time(device_t dev, struct timespec *ts)
sys/dev/iicbus/rtc/pcf85063.c
166
error = clock_bcd_to_ts(&bcd, ts,
sys/dev/iicbus/rtc/pcf85063.c
173
pcf85063_set_time(device_t dev, struct timespec *ts)
sys/dev/iicbus/rtc/pcf85063.c
183
ts->tv_sec -= utc_offset();
sys/dev/iicbus/rtc/pcf85063.c
184
clock_ts_to_bcd(ts, &bcd, false);
sys/dev/iicbus/rtc/pcf85063.c
195
if (ts->tv_nsec > PCF85063_HALF_OF_SEC_NS)
sys/dev/iicbus/rtc/pcf85063.c
73
static int pcf85063_get_time(device_t dev, struct timespec *ts);
sys/dev/iicbus/rtc/pcf85063.c
74
static int pcf85063_set_time(device_t dev, struct timespec *ts);
sys/dev/iicbus/rtc/rs5c372a.c
105
clock_ts_to_bcd(ts, &ct, is_12hr);
sys/dev/iicbus/rtc/rs5c372a.c
54
rs5c372a_gettime(device_t dev, struct timespec *ts)
sys/dev/iicbus/rtc/rs5c372a.c
85
clock_bcd_to_ts(&ct, ts, ct.ispm);
sys/dev/iicbus/rtc/rs5c372a.c
91
rs5c372a_settime(device_t dev, struct timespec *ts)
sys/dev/iicbus/rtc/rtc8583.c
190
rtc8583_gettime(device_t dev, struct timespec *ts)
sys/dev/iicbus/rtc/rtc8583.c
243
return (clock_bcd_to_ts(&bct, ts, false));
sys/dev/iicbus/rtc/rtc8583.c
247
rtc8583_settime(device_t dev, struct timespec *ts)
sys/dev/iicbus/rtc/rtc8583.c
256
ts->tv_sec -= utc_offset();
sys/dev/iicbus/rtc/rtc8583.c
257
clock_ts_to_bcd(ts, &bct, false);
sys/dev/iicbus/rtc/rtc8583.c
261
tregs.msec = bin2bcd(ts->tv_nsec / (10 * 1000 * 1000));
sys/dev/iicbus/rtc/rtc8583.c
86
static int rtc8583_gettime(device_t dev, struct timespec *ts);
sys/dev/iicbus/rtc/rtc8583.c
87
static int rtc8583_settime(device_t dev, struct timespec *ts);
sys/dev/iicbus/rtc/rv3032.c
373
rv3032_gettime(device_t dev, struct timespec *ts)
sys/dev/iicbus/rtc/rv3032.c
398
return (clock_ct_to_ts(&ct, ts));
sys/dev/iicbus/rtc/rv3032.c
402
rv3032_settime(device_t dev, struct timespec *ts)
sys/dev/iicbus/rtc/rv3032.c
414
clock_ts_to_ct(ts, &ct);
sys/dev/iicbus/rtc/rx8803.c
105
rx8803_gettime(device_t dev, struct timespec *ts)
sys/dev/iicbus/rtc/rx8803.c
133
rc = clock_bcd_to_ts(&bcd, ts, false);
sys/dev/iicbus/rtc/rx8803.c
138
rx8803_settime(device_t dev, struct timespec *ts)
sys/dev/iicbus/rtc/rx8803.c
145
ts->tv_sec -= utc_offset();
sys/dev/iicbus/rtc/rx8803.c
146
clock_ts_to_bcd(ts, &bcd, false);
sys/dev/iicbus/rtc/rx8803.c
157
if (ts->tv_nsec > HALF_OF_SEC_NS)
sys/dev/iicbus/rtc/rx8803.c
81
static int rx8803_gettime(device_t dev, struct timespec *ts);
sys/dev/iicbus/rtc/rx8803.c
82
static int rx8803_settime(device_t dev, struct timespec *ts);
sys/dev/iicbus/rtc/s35390a.c
295
s390rtc_gettime(device_t dev, struct timespec *ts)
sys/dev/iicbus/rtc/s35390a.c
321
return (clock_bcd_to_ts(&bct, ts, false));
sys/dev/iicbus/rtc/s35390a.c
325
s390rtc_settime(device_t dev, struct timespec *ts)
sys/dev/iicbus/rtc/s35390a.c
330
clock_ts_to_bcd(ts, &bct, false);
sys/dev/ips/ips.c
537
uint32_t ts;
sys/dev/ips/ips.c
543
ts = time_second + command->timeout;
sys/dev/ips/ips.c
546
&& (ts > time_second))
sys/dev/irdma/irdma_kcompat.c
1442
struct timespec ts;
sys/dev/irdma/irdma_kcompat.c
1444
getnanotime(&ts);
sys/dev/irdma/irdma_kcompat.c
1445
cm_node->tcp_cntxt.loc_seq_num = ts.tv_nsec;
sys/dev/isp/isp_freebsd.c
2372
sbintime_t ts;
sys/dev/isp/isp_freebsd.c
2421
ts = SBT_1MS * ccb->ccb_h.timeout + 10 * SBT_1S;
sys/dev/isp/isp_freebsd.c
2422
callout_reset_sbt(&PISP_PCMD(ccb)->wdog, ts, 0,
sys/dev/ksyms/ksyms.c
130
struct tsizes *ts;
sys/dev/ksyms/ksyms.c
135
ts = arg;
sys/dev/ksyms/ksyms.c
138
ts->ts_symsz += syms * sizeof(Elf_Sym);
sys/dev/ksyms/ksyms.c
139
ts->ts_strsz += LINKER_STRTAB_GET(lf, &strtab);
sys/dev/ksyms/ksyms.c
149
ksyms_size_calc(struct tsizes *ts)
sys/dev/ksyms/ksyms.c
152
ts->ts_symsz = 0;
sys/dev/ksyms/ksyms.c
153
ts->ts_strsz = 0;
sys/dev/ksyms/ksyms.c
155
(void)linker_file_foreach(ksyms_size_permod, ts);
sys/dev/ksyms/ksyms.c
267
ksyms_snapshot(struct ksyms_softc *sc, struct tsizes *ts)
sys/dev/ksyms/ksyms.c
329
hdr->kh_shdr[SHDR_SYMTAB].sh_size = ts->ts_symsz;
sys/dev/ksyms/ksyms.c
331
hdr->kh_shdr[SHDR_SYMTAB].sh_info = ts->ts_symsz / sizeof(Elf_Sym);
sys/dev/ksyms/ksyms.c
341
hdr->kh_shdr[SHDR_SYMTAB].sh_offset + ts->ts_symsz;
sys/dev/ksyms/ksyms.c
342
hdr->kh_shdr[SHDR_STRTAB].sh_size = ts->ts_strsz;
sys/dev/ksyms/ksyms.c
406
struct tsizes ts;
sys/dev/ksyms/ksyms.c
443
ksyms_size_calc(&ts);
sys/dev/ksyms/ksyms.c
444
elfsz = sizeof(struct ksyms_hdr) + ts.ts_symsz + ts.ts_strsz;
sys/dev/ksyms/ksyms.c
451
error = ksyms_snapshot(sc, &ts);
sys/dev/kvm_clock/kvm_clock.c
235
kvm_clock_gettime(device_t dev, struct timespec *ts)
sys/dev/kvm_clock/kvm_clock.c
239
pvclock_gettime(&sc->pvc, ts);
sys/dev/kvm_clock/kvm_clock.c
244
kvm_clock_settime(device_t dev, struct timespec *ts)
sys/dev/mlx4/mlx4_core/mlx4_fw.c
1510
int ts = 0, tc = 0;
sys/dev/mlx4/mlx4_core/mlx4_fw.c
1544
ts += 1 << (lg - 10);
sys/dev/mlx4/mlx4_core/mlx4_fw.c
1566
mlx4_dbg(dev, "Mapped %d chunks/%d KB for FW\n", tc, ts);
sys/dev/mlx4/mlx4_core/mlx4_fw.c
1569
mlx4_dbg(dev, "Mapped %d chunks/%d KB for ICM aux\n", tc, ts);
sys/dev/mlx4/mlx4_core/mlx4_fw.c
1573
tc, ts, (unsigned long long) virt - (ts << 10));
sys/dev/mlx4/mlx4_core/mlx4_resource_tracker.c
2672
u32 ts = (be32_to_cpu(qpc->flags) >> 16) & 0xff;
sys/dev/mlx4/mlx4_core/mlx4_resource_tracker.c
2673
int xrc = (ts == MLX4_QP_ST_XRC) ? 1 : 0;
sys/dev/mlx4/mlx4_core/mlx4_resource_tracker.c
3750
u32 ts = (be32_to_cpu(qpc->flags) >> 16) & 0xff;
sys/dev/mlx4/mlx4_core/mlx4_resource_tracker.c
3755
if (mlx4_is_eth(dev, port) && (ts != MLX4_QP_ST_MLX)) {
sys/dev/mlx4/mlx4_core/mlx4_resource_tracker.c
698
u32 ts = (be32_to_cpu(qp_ctx->flags) >> 16) & 0xff;
sys/dev/mlx4/mlx4_core/mlx4_resource_tracker.c
701
if (MLX4_QP_ST_UD == ts) {
sys/dev/mlx4/mlx4_core/mlx4_resource_tracker.c
709
} else if (MLX4_QP_ST_RC == ts || MLX4_QP_ST_XRC == ts || MLX4_QP_ST_UC == ts) {
sys/dev/mlx5/mlx5_en/mlx5_en_main.c
1167
mlx5e_timespec2usec(const struct timespec *ts)
sys/dev/mlx5/mlx5_en/mlx5_en_main.c
1170
return ((uint64_t)ts->tv_sec * 1000000000 + ts->tv_nsec);
sys/dev/mlx5/mlx5_en/mlx5_en_main.c
1200
struct timespec ts;
sys/dev/mlx5/mlx5_en/mlx5_en_main.c
1226
nanouptime(&ts);
sys/dev/mlx5/mlx5_en/mlx5_en_main.c
1227
next->base_curr = mlx5e_timespec2usec(&ts);
sys/dev/mthca/mthca_cmd.c
663
int ts = 0, tc = 0;
sys/dev/mthca/mthca_cmd.c
699
ts += 1 << (lg - 10);
sys/dev/mthca/mthca_cmd.c
719
mthca_dbg(dev, "Mapped %d chunks/%d KB for FW.\n", tc, ts);
sys/dev/mthca/mthca_cmd.c
722
mthca_dbg(dev, "Mapped %d chunks/%d KB for ICM aux.\n", tc, ts);
sys/dev/mthca/mthca_cmd.c
726
tc, ts, (unsigned long long) virt - (ts << 10));
sys/dev/mvs/mvs.h
458
uint32_t ts; /* CPRB Time Stamp */
sys/dev/netmap/netmap.c
2718
microtime(&ring->ts);
sys/dev/netmap/netmap_pipe.c
212
struct netmap_slot *ts = &txring->slot[k];
sys/dev/netmap/netmap_pipe.c
215
*rs = *ts;
sys/dev/netmap/netmap_pipe.c
219
if (ts->flags & NS_BUF_CHANGED) {
sys/dev/netmap/netmap_pipe.c
220
ts->flags &= ~NS_BUF_CHANGED;
sys/dev/netmap/netmap_pipe.c
222
complete = !(ts->flags & NS_MOREFRAG);
sys/dev/netmap/netmap_pipe.c
267
struct netmap_slot *ts = &txring->slot[k];
sys/dev/netmap/netmap_pipe.c
270
*ts = *rs;
sys/dev/ntsync/ntsync.c
1284
struct timespec ts;
sys/dev/ntsync/ntsync.c
1286
nanouptime(&ts);
sys/dev/ntsync/ntsync.c
1287
state->sb -= tstosbt(ts);
sys/dev/qat/qat_common/adf_clock.c
196
timespec_to_ms(const struct timespec *ts)
sys/dev/qat/qat_common/adf_clock.c
198
return (uint64_t)(ts->tv_sec * (1000)) + (ts->tv_nsec / NSEC_PER_MSEC);
sys/dev/qat/qat_common/adf_clock.c
204
struct timespec ts;
sys/dev/qat/qat_common/adf_clock.c
206
getnanotime(&ts);
sys/dev/qat/qat_common/adf_clock.c
207
return timespec_to_ms(&ts);
sys/dev/smartpqi/smartpqi_misc.c
35
struct timespec ts;
sys/dev/smartpqi/smartpqi_misc.c
38
getnanotime(&ts);
sys/dev/smartpqi/smartpqi_misc.c
39
clock_ts_to_ct(&ts, &ct);
sys/dev/syscons/scterm-sc.c
674
tcp = scp->ts;
sys/dev/syscons/scterm-sc.c
707
term_stat *tcp = scp->ts;
sys/dev/syscons/scterm-sc.c
741
term_stat *tcp = scp->ts;
sys/dev/syscons/scterm-sc.c
756
term_stat *tcp = scp->ts;
sys/dev/syscons/scterm-teken.c
119
teken_stat *ts;
sys/dev/syscons/scterm-teken.c
127
ts = *softc;
sys/dev/syscons/scterm-teken.c
132
ts->ts_busy = 1;
sys/dev/syscons/scterm-teken.c
135
ta = *teken_get_defattr(&ts->ts_teken);
sys/dev/syscons/scterm-teken.c
136
teken_init(&ts->ts_teken, &scteken_funcs, scp);
sys/dev/syscons/scterm-teken.c
137
teken_set_defattr(&ts->ts_teken, &ta);
sys/dev/syscons/scterm-teken.c
139
teken_set_8bit(&ts->ts_teken);
sys/dev/syscons/scterm-teken.c
142
teken_set_cons25(&ts->ts_teken);
sys/dev/syscons/scterm-teken.c
144
teken_set_cons25keys(&ts->ts_teken);
sys/dev/syscons/scterm-teken.c
145
scteken_sync_internal(scp, ts);
sys/dev/syscons/scterm-teken.c
168
teken_stat *ts = scp->ts;
sys/dev/syscons/scterm-teken.c
171
teken_input(&ts->ts_teken, buf, len);
sys/dev/syscons/scterm-teken.c
179
teken_stat *ts = scp->ts;
sys/dev/syscons/scterm-teken.c
186
scteken_te_to_sc_attr(teken_get_curattr(&ts->ts_teken));
sys/dev/syscons/scterm-teken.c
193
attr = scteken_te_to_sc_attr(teken_get_defattr(&ts->ts_teken));
sys/dev/syscons/scterm-teken.c
210
teken_stat *ts = scp->ts;
sys/dev/syscons/scterm-teken.c
214
teken_set_defattr(&ts->ts_teken, &ta);
sys/dev/syscons/scterm-teken.c
220
teken_stat *ts = scp->ts;
sys/dev/syscons/scterm-teken.c
223
scteken_sync_internal(scp, ts);
sys/dev/syscons/scterm-teken.c
225
scteken_te_to_sc_attr(teken_get_curattr(&ts->ts_teken))
sys/dev/syscons/scterm-teken.c
240
teken_stat *ts = scp->ts;
sys/dev/syscons/scterm-teken.c
284
return (teken_get_sequence(&ts->ts_teken, k));
sys/dev/syscons/scterm-teken.c
288
scteken_sync_internal(scr_stat *scp, teken_stat *ts)
sys/dev/syscons/scterm-teken.c
294
teken_set_winsize_noreset(&ts->ts_teken, &tp);
sys/dev/syscons/scterm-teken.c
297
teken_set_cursor(&ts->ts_teken, &tp);
sys/dev/syscons/scterm-teken.c
303
scteken_sync_internal(scp, scp->ts);
sys/dev/syscons/scvidctl.c
380
(*scp->tsw->te_term)(scp, scp->ts);
sys/dev/syscons/scvidctl.c
382
scp->ts = NULL;
sys/dev/syscons/syscons.c
1761
void *ts;
sys/dev/syscons/syscons.c
1776
ts = sc_kts[i];
sys/dev/syscons/syscons.c
1778
(*sc_ktsw->te_term)(sc_console, &ts);
sys/dev/syscons/syscons.c
1779
free(ts, M_DEVBUF);
sys/dev/syscons/syscons.c
1983
void *oldts, *ts;
sys/dev/syscons/syscons.c
2052
ts = sc_kts[curcpu];
sys/dev/syscons/syscons.c
2053
if (ts != NULL) {
sys/dev/syscons/syscons.c
2055
oldts = scp->ts;
sys/dev/syscons/syscons.c
2057
scp->ts = ts;
sys/dev/syscons/syscons.c
2065
if (ts != NULL) {
sys/dev/syscons/syscons.c
2067
scp->ts = oldts;
sys/dev/syscons/syscons.c
3463
(*scp->tsw->te_term)(scp, &scp->ts);
sys/dev/syscons/syscons.c
3468
free(scp->ts, M_DEVBUF);
sys/dev/syscons/syscons.c
3665
scp->ts = NULL;
sys/dev/syscons/syscons.c
3715
error = (*sw->te_init)(scp, &scp->ts, SC_TE_WARM_INIT);
sys/dev/syscons/syscons.c
3732
(*scp->tsw->te_term)(scp, &scp->ts);
sys/dev/syscons/syscons.c
3733
if (scp->ts != NULL)
sys/dev/syscons/syscons.c
3734
free(scp->ts, M_DEVBUF);
sys/dev/syscons/syscons.c
3736
scp->ts = p;
sys/dev/syscons/syscons.c
565
void *oldts, *ts;
sys/dev/syscons/syscons.c
587
oldts = sc_console->ts;
sys/dev/syscons/syscons.c
589
ts = malloc(sc_console->tsw->te_size, M_DEVBUF,
sys/dev/syscons/syscons.c
592
sc_console, &ts, SC_TE_COLD_INIT);
sys/dev/syscons/syscons.c
593
sc_console->ts = ts;
sys/dev/syscons/syscons.c
596
sc_kts[i] = ts;
sys/dev/syscons/syscons.c
598
sc_console->ts = oldts;
sys/dev/syscons/syscons.h
300
void *ts;
sys/dev/tws/tws.h
164
struct timespec ts;
sys/dev/vmware/vmxnet3/if_vmx.c
1247
struct vmxnet3_txq_shared *ts;
sys/dev/vmware/vmxnet3/if_vmx.c
1262
ts = sc->vmx_txq[0].vxtxq_ts;
sys/dev/vmware/vmxnet3/if_vmx.c
1263
if (ts->stopped != 0)
sys/dev/vmware/vmxnet3/if_vmx.c
1264
device_printf(dev, "Tx queue error %#x\n", ts->error);
sys/dev/watchdog/watchdog.c
185
struct timespec ts;
sys/dev/watchdog/watchdog.c
188
CLOCK_MONOTONIC_FAST, &ts);
sys/dev/watchdog/watchdog.c
190
wd_lastpat = ts.tv_sec;
sys/dev/watchdog/watchdog.c
232
struct timespec ts;
sys/dev/watchdog/watchdog.c
235
error = kern_clock_gettime(td, CLOCK_MONOTONIC_FAST, &ts);
sys/dev/watchdog/watchdog.c
240
*remainp = ts.tv_sec - wd_lastpat;
sys/dev/xen/timer/xen_timer.c
193
xen_fetch_wallclock(struct timespec *ts)
sys/dev/xen/timer/xen_timer.c
200
pvclock_get_wallclock(wc, ts);
sys/dev/xen/timer/xen_timer.c
204
xen_fetch_uptime(struct timespec *ts)
sys/dev/xen/timer/xen_timer.c
210
ts->tv_sec = uptime / NSEC_IN_SEC;
sys/dev/xen/timer/xen_timer.c
211
ts->tv_nsec = uptime % NSEC_IN_SEC;
sys/dev/xen/timer/xen_timer.c
215
xentimer_settime(device_t dev __unused, struct timespec *ts)
sys/dev/xen/timer/xen_timer.c
229
settime.u.settime64.secs = ts->tv_sec;
sys/dev/xen/timer/xen_timer.c
230
settime.u.settime64.nsecs = ts->tv_nsec;
sys/dev/xen/timer/xen_timer.c
253
xentimer_gettime(device_t dev, struct timespec *ts)
sys/dev/xen/timer/xen_timer.c
257
timespecclear(ts);
sys/dev/xen/timer/xen_timer.c
258
xen_fetch_wallclock(ts);
sys/dev/xen/timer/xen_timer.c
260
timespecadd(ts, &u_ts, ts);
sys/fs/devfs/devfs_devs.c
132
struct timespec ts;
sys/fs/devfs/devfs_devs.c
145
vfs_timestamp(&ts);
sys/fs/devfs/devfs_devs.c
146
cdev->si_atime = cdev->si_mtime = cdev->si_ctime = ts;
sys/fs/devfs/devfs_vnops.c
100
time_t ts;
sys/fs/devfs/devfs_vnops.c
105
ts = time_second;
sys/fs/devfs/devfs_vnops.c
106
if (tsp->tv_sec != ts) {
sys/fs/devfs/devfs_vnops.c
107
tsp->tv_sec = ts;
sys/fs/ext2fs/ext2_alloc.c
381
struct timespec ts;
sys/fs/ext2fs/ext2_alloc.c
476
vfs_timestamp(&ts);
sys/fs/ext2fs/ext2_alloc.c
477
ip->i_birthtime = ts.tv_sec;
sys/fs/ext2fs/ext2_alloc.c
478
ip->i_birthnsec = ts.tv_nsec;
sys/fs/ext2fs/ext2_vnops.c
218
struct timespec ts;
sys/fs/ext2fs/ext2_vnops.c
230
vfs_timestamp(&ts);
sys/fs/ext2fs/ext2_vnops.c
232
ip->i_atime = ts.tv_sec;
sys/fs/ext2fs/ext2_vnops.c
233
ip->i_atimensec = ts.tv_nsec;
sys/fs/ext2fs/ext2_vnops.c
236
ip->i_mtime = ts.tv_sec;
sys/fs/ext2fs/ext2_vnops.c
237
ip->i_mtimensec = ts.tv_nsec;
sys/fs/ext2fs/ext2_vnops.c
241
ip->i_ctime = ts.tv_sec;
sys/fs/ext2fs/ext2_vnops.c
242
ip->i_ctimensec = ts.tv_nsec;
sys/fs/fuse/fuse_node.c
575
struct timespec ts;
sys/fs/fuse/fuse_node.c
577
vfs_timestamp(&ts);
sys/fs/fuse/fuse_node.c
580
ts.tv_nsec = rounddown(ts.tv_nsec, data->time_gran);
sys/fs/fuse/fuse_node.c
588
fvdat->cached_attrs.va_atime = ts;
sys/fs/fuse/fuse_node.c
590
fvdat->cached_attrs.va_mtime = ts;
sys/fs/fuse/fuse_node.c
592
fvdat->cached_attrs.va_ctime = ts;
sys/fs/msdosfs/msdosfs_denode.c
317
struct timespec ts;
sys/fs/msdosfs/msdosfs_denode.c
327
vfs_timestamp(&ts);
sys/fs/msdosfs/msdosfs_denode.c
328
DETIMES(dep, &ts, &ts, &ts);
sys/fs/msdosfs/msdosfs_vnops.c
1351
struct timespec ts;
sys/fs/msdosfs/msdosfs_vnops.c
1374
vfs_timestamp(&ts);
sys/fs/msdosfs/msdosfs_vnops.c
1375
DETIMES(&ndirent, &ts, &ts, &ts);
sys/fs/msdosfs/msdosfs_vnops.c
138
struct timespec ts;
sys/fs/msdosfs/msdosfs_vnops.c
173
vfs_timestamp(&ts);
sys/fs/msdosfs/msdosfs_vnops.c
174
DETIMES(&ndirent, &ts, &ts, &ts);
sys/fs/msdosfs/msdosfs_vnops.c
207
struct timespec ts;
sys/fs/msdosfs/msdosfs_vnops.c
211
vfs_timestamp(&ts);
sys/fs/msdosfs/msdosfs_vnops.c
212
DETIMES(dep, &ts, &ts, &ts);
sys/fs/msdosfs/msdosfs_vnops.c
257
struct timespec ts;
sys/fs/msdosfs/msdosfs_vnops.c
261
vfs_timestamp(&ts);
sys/fs/msdosfs/msdosfs_vnops.c
262
DETIMES(dep, &ts, &ts, &ts);
sys/fs/nfs/nfs_commonkrpc.c
1379
getnanouptime(&ts);
sys/fs/nfs/nfs_commonkrpc.c
1380
} while (timespeccmp(&ts, &waituntil, <));
sys/fs/nfs/nfs_commonkrpc.c
694
struct timespec trylater_delay, ts, waituntil;
sys/fs/nfs/nfs_commonport.c
267
struct timespec *ts)
sys/fs/nfs/nfs_commonport.c
272
if (ts) {
sys/fs/nfs/nfs_commonport.c
273
timeo = hz * ts->tv_sec;
sys/fs/nfs/nfs_commonport.c
274
nsecval = (u_int64_t)ts->tv_nsec;
sys/fs/nfs/nfs_commonsubs.c
5087
struct timespec ts;
sys/fs/nfs/nfs_commonsubs.c
5092
ts.tv_sec = 0;
sys/fs/nfs/nfs_commonsubs.c
5093
ts.tv_nsec = 0;
sys/fs/nfs/nfs_commonsubs.c
5095
PVFS, "nfsndlck", &ts);
sys/fs/nfsclient/nfs_clbio.c
1254
nanouptime(&ts);
sys/fs/nfsclient/nfs_clbio.c
1256
np->n_localmodtime = ts;
sys/fs/nfsclient/nfs_clbio.c
1330
struct timespec ts;
sys/fs/nfsclient/nfs_clbio.c
1373
nanouptime(&ts);
sys/fs/nfsclient/nfs_clbio.c
1381
nanouptime(&ts);
sys/fs/nfsclient/nfs_clbio.c
1385
np->n_localmodtime = ts;
sys/fs/nfsclient/nfs_clbio.c
845
struct timespec ts;
sys/fs/nfsclient/nfs_clrpcops.c
3970
struct timespec dctime, ts;
sys/fs/nfsclient/nfs_clrpcops.c
4172
nanouptime(&ts);
sys/fs/nfsclient/nfs_clrpcops.c
4403
&ts, >=)) {
sys/fs/nfsclient/nfs_clvnops.c
1022
struct timespec ts;
sys/fs/nfsclient/nfs_clvnops.c
1126
nanouptime(&ts);
sys/fs/nfsclient/nfs_clvnops.c
1128
np->n_localmodtime = ts;
sys/fs/nfsclient/nfs_clvnops.c
1227
struct timespec nctime, ts;
sys/fs/nfsclient/nfs_clvnops.c
1400
nanouptime(&ts);
sys/fs/nfsclient/nfs_clvnops.c
1483
timespeccmp(&np->n_localmodtime, &ts, >=)) {
sys/fs/nfsclient/nfs_clvnops.c
1559
timespeccmp(&np->n_localmodtime, &ts, >=)) {
sys/fs/nfsclient/nfs_clvnops.c
2880
struct timespec ts;
sys/fs/nfsclient/nfs_clvnops.c
2882
nanouptime(&ts);
sys/fs/nfsclient/nfs_clvnops.c
2945
timespeccmp(&np->n_localmodtime, &ts, >=)) {
sys/fs/nfsclient/nfs_clvnops.c
3108
struct timespec ts;
sys/fs/nfsclient/nfs_clvnops.c
3414
nanouptime(&ts);
sys/fs/nfsclient/nfs_clvnops.c
3416
np->n_localmodtime = ts;
sys/fs/nfsclient/nfs_clvnops.c
3702
struct timespec ts;
sys/fs/nfsclient/nfs_clvnops.c
3706
vfs_timestamp(&ts);
sys/fs/nfsclient/nfs_clvnops.c
3708
np->n_atim = ts;
sys/fs/nfsclient/nfs_clvnops.c
3710
np->n_mtim = ts;
sys/fs/nfsclient/nfs_clvnops.c
3832
struct timespec ts;
sys/fs/nfsclient/nfs_clvnops.c
3865
nanouptime(&ts);
sys/fs/nfsclient/nfs_clvnops.c
3867
np->n_localmodtime = ts;
sys/fs/nfsclient/nfs_clvnops.c
3907
struct timespec ts;
sys/fs/nfsclient/nfs_clvnops.c
3950
nanouptime(&ts);
sys/fs/nfsclient/nfs_clvnops.c
3952
np->n_localmodtime = ts;
sys/fs/nfsserver/nfs_nfsdport.c
2113
struct timespec ts;
sys/fs/nfsserver/nfs_nfsdport.c
2214
getnanouptime(&ts);
sys/fs/nfsserver/nfs_nfsdport.c
2215
if (ts.tv_sec != prevsec) {
sys/fs/nfsserver/nfs_nfsdport.c
2217
prevsec = ts.tv_sec;
sys/fs/p9fs/p9fs_vnops.c
81
struct timespec ts;
sys/fs/p9fs/p9fs_vnops.c
87
vfs_timestamp(&ts);
sys/fs/p9fs/p9fs_vnops.c
88
inode->i_mtime = ts.tv_sec;
sys/geom/raid/md_ddf.c
566
struct timespec ts;
sys/geom/raid/md_ddf.c
588
getnanotime(&ts);
sys/geom/raid/md_ddf.c
589
clock_ts_to_ct(&ts, &ct);
sys/geom/raid/md_ddf.c
632
(u_int)(ts.tv_sec - DECADE), arc4random());
sys/geom/raid/md_ddf.c
634
SET32(meta, hdr->TimeStamp, (ts.tv_sec - DECADE));
sys/geom/raid/md_ddf.c
844
struct timespec ts;
sys/geom/raid/md_ddf.c
856
getnanotime(&ts);
sys/geom/raid/md_ddf.c
857
clock_ts_to_ct(&ts, &ct);
sys/i386/linux/linux_vdso_gtod.c
117
__vdso_clock_getres_fallback(clockid_t clock_id, struct l_timespec *ts)
sys/i386/linux/linux_vdso_gtod.c
125
: "a"(LINUX_SYS_linux_clock_getres), "b"(clock_id), "c"(ts)
sys/i386/linux/linux_vdso_gtod.c
72
__vdso_clock_gettime_fallback(clockid_t clock_id, struct l_timespec *ts)
sys/i386/linux/linux_vdso_gtod.c
80
: "a"(LINUX_SYS_linux_clock_gettime), "b"(clock_id), "c"(ts)
sys/i386/linux/linux_vdso_gtod.c
87
__vdso_clock_gettime64_fallback(clockid_t clock_id, struct l_timespec64 *ts)
sys/i386/linux/linux_vdso_gtod.c
95
: "a"(LINUX_SYS_linux_clock_gettime64), "b"(clock_id), "c"(ts)
sys/kern/kern_event.c
1328
struct timespec ts, *tsp;
sys/kern/kern_event.c
1335
error = copyin(uap->timeout, &ts, sizeof(ts));
sys/kern/kern_event.c
1338
tsp = &ts;
sys/kern/kern_mutex.c
1040
struct turnstile *ts;
sys/kern/kern_mutex.c
1070
ts = turnstile_lookup(&m->lock_object);
sys/kern/kern_mutex.c
1071
MPASS(ts != NULL);
sys/kern/kern_mutex.c
1074
turnstile_broadcast(ts, TS_EXCLUSIVE_QUEUE);
sys/kern/kern_mutex.c
1080
turnstile_unpend(ts);
sys/kern/kern_mutex.c
520
struct turnstile *ts;
sys/kern/kern_mutex.c
635
ts = turnstile_trywait(&m->lock_object);
sys/kern/kern_mutex.c
644
turnstile_cancel(ts);
sys/kern/kern_mutex.c
658
turnstile_cancel(ts);
sys/kern/kern_mutex.c
683
turnstile_wait(ts, owner, TS_EXCLUSIVE_QUEUE);
sys/kern/kern_rmlock.c
488
struct turnstile *ts;
sys/kern/kern_rmlock.c
495
ts = turnstile_lookup(&rm->lock_object);
sys/kern/kern_rmlock.c
497
turnstile_signal(ts, TS_EXCLUSIVE_QUEUE);
sys/kern/kern_rmlock.c
498
turnstile_unpend(ts);
sys/kern/kern_rmlock.c
536
struct turnstile *ts;
sys/kern/kern_rmlock.c
570
ts = turnstile_trywait(&rm->lock_object);
sys/kern/kern_rmlock.c
573
turnstile_wait(ts, prio->rmp_thread,
sys/kern/kern_rwlock.c
1024
goto ts;
sys/kern/kern_rwlock.c
1042
goto ts;
sys/kern/kern_rwlock.c
1081
ts:
sys/kern/kern_rwlock.c
1083
ts = turnstile_trywait(&rw->lock_object);
sys/kern/kern_rwlock.c
1098
turnstile_cancel(ts);
sys/kern/kern_rwlock.c
1103
turnstile_cancel(ts);
sys/kern/kern_rwlock.c
1120
turnstile_claim(ts);
sys/kern/kern_rwlock.c
1122
turnstile_cancel(ts);
sys/kern/kern_rwlock.c
1169
turnstile_wait(ts, owner, TS_EXCLUSIVE_QUEUE);
sys/kern/kern_rwlock.c
1221
struct turnstile *ts;
sys/kern/kern_rwlock.c
1283
ts = turnstile_lookup(&rw->lock_object);
sys/kern/kern_rwlock.c
1284
MPASS(ts != NULL);
sys/kern/kern_rwlock.c
1285
turnstile_broadcast(ts, queue);
sys/kern/kern_rwlock.c
1286
turnstile_unpend(ts);
sys/kern/kern_rwlock.c
1299
struct turnstile *ts;
sys/kern/kern_rwlock.c
1333
ts = turnstile_trywait(&rw->lock_object);
sys/kern/kern_rwlock.c
1337
turnstile_cancel(ts);
sys/kern/kern_rwlock.c
1350
turnstile_claim(ts);
sys/kern/kern_rwlock.c
1352
turnstile_cancel(ts);
sys/kern/kern_rwlock.c
1382
struct turnstile *ts;
sys/kern/kern_rwlock.c
1422
ts = turnstile_lookup(&rw->lock_object);
sys/kern/kern_rwlock.c
1423
MPASS(ts != NULL);
sys/kern/kern_rwlock.c
1432
turnstile_broadcast(ts, TS_SHARED_QUEUE);
sys/kern/kern_rwlock.c
1433
turnstile_unpend(ts);
sys/kern/kern_rwlock.c
1435
turnstile_disown(ts);
sys/kern/kern_rwlock.c
447
struct turnstile *ts;
sys/kern/kern_rwlock.c
573
ts = turnstile_trywait(&rw->lock_object);
sys/kern/kern_rwlock.c
583
turnstile_cancel(ts);
sys/kern/kern_rwlock.c
599
turnstile_cancel(ts);
sys/kern/kern_rwlock.c
636
turnstile_wait(ts, owner, TS_SHARED_QUEUE);
sys/kern/kern_rwlock.c
786
struct turnstile *ts;
sys/kern/kern_rwlock.c
843
ts = turnstile_lookup(&rw->lock_object);
sys/kern/kern_rwlock.c
844
MPASS(ts != NULL);
sys/kern/kern_rwlock.c
845
turnstile_broadcast(ts, queue);
sys/kern/kern_rwlock.c
846
turnstile_unpend(ts);
sys/kern/kern_rwlock.c
915
struct turnstile *ts;
sys/kern/kern_shutdown.c
364
struct timespec ts;
sys/kern/kern_shutdown.c
366
getnanouptime(&ts);
sys/kern/kern_shutdown.c
369
if (ts.tv_sec >= 86400) {
sys/kern/kern_shutdown.c
370
printf("%ldd", (long)ts.tv_sec / 86400);
sys/kern/kern_shutdown.c
371
ts.tv_sec %= 86400;
sys/kern/kern_shutdown.c
374
if (f || ts.tv_sec >= 3600) {
sys/kern/kern_shutdown.c
375
printf("%ldh", (long)ts.tv_sec / 3600);
sys/kern/kern_shutdown.c
376
ts.tv_sec %= 3600;
sys/kern/kern_shutdown.c
379
if (f || ts.tv_sec >= 60) {
sys/kern/kern_shutdown.c
380
printf("%ldm", (long)ts.tv_sec / 60);
sys/kern/kern_shutdown.c
381
ts.tv_sec %= 60;
sys/kern/kern_shutdown.c
384
printf("%lds\n", (long)ts.tv_sec);
sys/kern/kern_sig.c
1272
struct timespec ts;
sys/kern/kern_sig.c
1279
error = copyin(uap->timeout, &ts, sizeof(ts));
sys/kern/kern_sig.c
1283
timeout = &ts;
sys/kern/kern_sig.c
1348
struct timespec ts;
sys/kern/kern_sig.c
1361
ts = *timeout;
sys/kern/kern_sig.c
1362
if (ts.tv_sec < INT32_MAX / 2) {
sys/kern/kern_sig.c
1363
tsbt = tstosbt(ts);
sys/kern/kern_tc.c
1298
tc_setclock(struct timespec *ts)
sys/kern/kern_tc.c
1303
timespec2bintime(ts, &bt);
sys/kern/kern_tc.c
1324
(intmax_t)ts->tv_sec, ts->tv_nsec);
sys/kern/kern_tc.c
558
ffclock_reset_clock(struct timespec *ts)
sys/kern/kern_tc.c
566
timespec2bintime(ts, &ffclock_boottime);
sys/kern/kern_tc.c
567
timespec2bintime(ts, &(cest.update_time));
sys/kern/kern_tc.c
583
(unsigned long long)tc->tc_frequency, (long)ts->tv_sec,
sys/kern/kern_tc.c
584
(unsigned long)ts->tv_nsec);
sys/kern/kern_thr.c
524
struct timespec ts, *tsp;
sys/kern/kern_thr.c
529
error = umtx_copyin_timeout(uap->timeout, &ts);
sys/kern/kern_thr.c
532
tsp = &ts;
sys/kern/kern_time.c
112
static int itimespecfix(struct timespec *ts);
sys/kern/kern_time.c
124
struct timespec ts;
sys/kern/kern_time.c
1619
struct timespec cts, ts;
sys/kern/kern_time.c
1649
ts = val.it_value;
sys/kern/kern_time.c
165
ts.tv_sec = tv->tv_sec;
sys/kern/kern_time.c
1655
timespecsub(&ts, &cts, &ts);
sys/kern/kern_time.c
166
ts.tv_nsec = tv->tv_usec * 1000;
sys/kern/kern_time.c
1661
TIMESPEC_TO_TIMEVAL(&tv, &ts);
sys/kern/kern_time.c
167
tc_setclock(&ts);
sys/kern/kern_time.c
1689
itimespecfix(struct timespec *ts)
sys/kern/kern_time.c
1692
if (!timespecvalid_interval(ts))
sys/kern/kern_time.c
1694
if ((UINT64_MAX - ts->tv_nsec) / NS_PER_SEC < ts->tv_sec)
sys/kern/kern_time.c
1696
if (ts->tv_sec == 0 && ts->tv_nsec != 0 && ts->tv_nsec < tick * 1000)
sys/kern/kern_time.c
1697
ts->tv_nsec = tick * 1000;
sys/kern/kern_time.c
1711
struct timespec cts, ts;
sys/kern/kern_time.c
1757
timespecsub(&it->it_time.it_value, &cts, &ts);
sys/kern/kern_time.c
1758
TIMESPEC_TO_TIMEVAL(&tv, &ts);
sys/kern/kern_time.c
1778
ts = it->it_time.it_value;
sys/kern/kern_time.c
1779
timespecsub(&ts, &cts, &ts);
sys/kern/kern_time.c
1780
TIMESPEC_TO_TIMEVAL(&tv, &ts);
sys/kern/kern_time.c
444
struct timespec ts;
sys/kern/kern_time.c
450
error = kern_clock_getres(td, uap->clock_id, &ts);
sys/kern/kern_time.c
452
error = copyout(&ts, uap->tp, sizeof(ts));
sys/kern/kern_time.c
457
kern_clock_getres(struct thread *td, clockid_t clock_id, struct timespec *ts)
sys/kern/kern_time.c
460
ts->tv_sec = 0;
sys/kern/kern_time.c
477
ts->tv_nsec = NS_PER_SEC / tc_getfrequency() + 1;
sys/kern/kern_time.c
482
ts->tv_nsec = howmany(NS_PER_SEC, hz);
sys/kern/kern_time.c
485
ts->tv_sec = 1;
sys/kern/kern_time.c
486
ts->tv_nsec = 0;
sys/kern/kern_time.c
491
ts->tv_nsec = 1000000000 / cpu_tickrate() + 1;
sys/kern/kern_time.c
519
struct timespec ts, now;
sys/kern/kern_time.c
568
ts = *rqt;
sys/kern/kern_time.c
578
timespecsub(&ts, &now, &ts);
sys/kern/kern_time.c
580
if (ts.tv_sec < 0 || (ts.tv_sec == 0 && ts.tv_nsec == 0)) {
sys/kern/kern_time.c
584
if (ts.tv_sec > INT32_MAX / 2) {
sys/kern/kern_time.c
585
over = ts.tv_sec - INT32_MAX / 2;
sys/kern/kern_time.c
586
ts.tv_sec -= over;
sys/kern/kern_time.c
589
tmp = tstosbt(ts);
sys/kern/kern_time.c
613
ts = sbttots(sbt - sbtt);
sys/kern/kern_time.c
614
ts.tv_sec += over;
sys/kern/kern_time.c
615
if (ts.tv_sec < 0)
sys/kern/kern_time.c
616
timespecclear(&ts);
sys/kern/kern_time.c
617
*rmt = ts;
sys/kern/kern_umtx.c
3881
struct timespec *ts, timeout;
sys/kern/kern_umtx.c
3886
ts = NULL;
sys/kern/kern_umtx.c
3891
ts = &timeout;
sys/kern/kern_umtx.c
3895
return (do_lock_umtx32(td, uap->obj, uap->val, ts));
sys/kern/kern_umtx.c
3897
return (do_lock_umtx(td, uap->obj, uap->val, ts));
sys/kern/kern_umtx.c
4127
struct timespec *ts, timeout;
sys/kern/kern_umtx.c
4145
ts = NULL;
sys/kern/kern_umtx.c
4150
ts = &timeout;
sys/kern/kern_umtx.c
4159
if (ts != NULL) {
sys/kern/kern_umtx.c
4161
(wflags & CVWAIT_ABSTIME) != 0, ts);
sys/kern/p1003_1b.c
335
struct timespec *ts)
sys/kern/p1003_1b.c
352
e = kern_sched_rr_get_interval_td(td, targettd, ts);
sys/kern/p1003_1b.c
359
struct timespec *ts)
sys/kern/p1003_1b.c
369
error = ksched_rr_get_interval(ksched, targettd, ts);
sys/kern/sched_4bsd.c
113
#define TS_RUNQ_PTR(ts) ((ts)->ts_rqcpu == NOCPU ? \
sys/kern/sched_4bsd.c
1135
struct td_sched *ts;
sys/kern/sched_4bsd.c
1138
ts = td_get_sched(td);
sys/kern/sched_4bsd.c
1139
if (ts->ts_slptime > 1) {
sys/kern/sched_4bsd.c
114
(&runq_global) : (DPCPU_ID_PTR((ts)->ts_rqcpu, runq_pcpu)))
sys/kern/sched_4bsd.c
1144
ts->ts_slptime = 0;
sys/kern/sched_4bsd.c
1145
ts->ts_slice = sched_slice;
sys/kern/sched_4bsd.c
116
#define TS_RUNQ_PTR(ts) (&runq_global)
sys/kern/sched_4bsd.c
1312
struct td_sched *ts;
sys/kern/sched_4bsd.c
1317
ts = td_get_sched(td);
sys/kern/sched_4bsd.c
1357
ts->ts_flags & TSF_AFFINITY)) {
sys/kern/sched_4bsd.c
1362
KASSERT(ts->ts_rqcpu != NOCPU,
sys/kern/sched_4bsd.c
1364
cpu = ts->ts_rqcpu;
sys/kern/sched_4bsd.c
1368
ts->ts_rqcpu = cpu;
sys/kern/sched_4bsd.c
1371
"sched_add: Put td_sched:%p(td:%p) on cpu%d runq", ts, td,
sys/kern/sched_4bsd.c
1375
"sched_add: adding td_sched:%p (td:%p) to gbl runq", ts,
sys/kern/sched_4bsd.c
1378
ts->ts_rqcpu = NOCPU;
sys/kern/sched_4bsd.c
1383
runq_add(TS_RUNQ_PTR(ts), td, flags);
sys/kern/sched_4bsd.c
1411
struct td_sched *ts;
sys/kern/sched_4bsd.c
1413
ts = td_get_sched(td);
sys/kern/sched_4bsd.c
1441
CTR2(KTR_RUNQ, "sched_add: adding td_sched:%p (td:%p) to runq", ts, td);
sys/kern/sched_4bsd.c
1442
ts->ts_rqcpu = NOCPU;
sys/kern/sched_4bsd.c
1446
runq_add(TS_RUNQ_PTR(ts), td, flags);
sys/kern/sched_4bsd.c
1457
struct td_sched *ts;
sys/kern/sched_4bsd.c
1459
ts = td_get_sched(td);
sys/kern/sched_4bsd.c
1473
if (ts->ts_rqcpu != NOCPU)
sys/kern/sched_4bsd.c
1474
(*DPCPU_ID_PTR(ts->ts_rqcpu, runq_length))--;
sys/kern/sched_4bsd.c
1476
runq_remove(TS_RUNQ_PTR(ts), td);
sys/kern/sched_4bsd.c
1560
struct td_sched *ts = td_get_sched(td);
sys/kern/sched_4bsd.c
1568
ts->ts_rqcpu = cpu;
sys/kern/sched_4bsd.c
1620
struct td_sched *ts;
sys/kern/sched_4bsd.c
1623
ts = td_get_sched(td);
sys/kern/sched_4bsd.c
1624
return (ts->ts_pctcpu);
sys/kern/sched_4bsd.c
1740
struct td_sched *ts;
sys/kern/sched_4bsd.c
1742
ts = td_get_sched(td);
sys/kern/sched_4bsd.c
1743
if (ts->ts_name[0] == '\0')
sys/kern/sched_4bsd.c
1744
snprintf(ts->ts_name, sizeof(ts->ts_name),
sys/kern/sched_4bsd.c
1746
return (ts->ts_name);
sys/kern/sched_4bsd.c
1756
struct td_sched *ts;
sys/kern/sched_4bsd.c
1758
ts = td_get_sched(td);
sys/kern/sched_4bsd.c
1759
ts->ts_name[0] = '\0';
sys/kern/sched_4bsd.c
1767
struct td_sched *ts;
sys/kern/sched_4bsd.c
1776
ts = td_get_sched(td);
sys/kern/sched_4bsd.c
1777
ts->ts_flags &= ~TSF_AFFINITY;
sys/kern/sched_4bsd.c
1780
ts->ts_flags |= TSF_AFFINITY;
sys/kern/sched_4bsd.c
1788
if (!(ts->ts_flags & TSF_AFFINITY))
sys/kern/sched_4bsd.c
1801
if (ts->ts_rqcpu != NOCPU && THREAD_CAN_SCHED(td, ts->ts_rqcpu))
sys/kern/sched_4bsd.c
457
struct td_sched *ts;
sys/kern/sched_4bsd.c
469
ts = td_get_sched(td);
sys/kern/sched_4bsd.c
494
ts->ts_pctcpu = (ts->ts_pctcpu * ccpu) >> FSHIFT;
sys/kern/sched_4bsd.c
500
if (ts->ts_cpticks != 0) {
sys/kern/sched_4bsd.c
502
ts->ts_pctcpu += (realstathz == 100)
sys/kern/sched_4bsd.c
503
? ((fixpt_t) ts->ts_cpticks) <<
sys/kern/sched_4bsd.c
505
100 * (((fixpt_t) ts->ts_cpticks)
sys/kern/sched_4bsd.c
508
ts->ts_pctcpu += ((FSCALE - ccpu) *
sys/kern/sched_4bsd.c
509
(ts->ts_cpticks *
sys/kern/sched_4bsd.c
512
ts->ts_cpticks = 0;
sys/kern/sched_4bsd.c
520
if (ts->ts_slptime > 1) {
sys/kern/sched_4bsd.c
532
ts->ts_slptime = 0;
sys/kern/sched_4bsd.c
534
ts->ts_slptime++;
sys/kern/sched_4bsd.c
535
if (ts->ts_slptime > 1) {
sys/kern/sched_4bsd.c
539
ts->ts_estcpu = decay_cpu(loadfac, ts->ts_estcpu);
sys/kern/sched_4bsd.c
570
struct td_sched *ts;
sys/kern/sched_4bsd.c
574
ts = td_get_sched(td);
sys/kern/sched_4bsd.c
576
if (ts->ts_slptime > 5 * loadfac)
sys/kern/sched_4bsd.c
577
ts->ts_estcpu = 0;
sys/kern/sched_4bsd.c
579
newcpu = ts->ts_estcpu;
sys/kern/sched_4bsd.c
580
ts->ts_slptime--; /* was incremented in schedcpu() */
sys/kern/sched_4bsd.c
581
while (newcpu && --ts->ts_slptime)
sys/kern/sched_4bsd.c
583
ts->ts_estcpu = newcpu;
sys/kern/sched_4bsd.c
722
struct td_sched *ts;
sys/kern/sched_4bsd.c
725
ts = td_get_sched(td);
sys/kern/sched_4bsd.c
727
ts->ts_cpticks++;
sys/kern/sched_4bsd.c
728
ts->ts_estcpu = ESTCPULIM(ts->ts_estcpu + 1);
sys/kern/sched_4bsd.c
729
if ((ts->ts_estcpu % INVERSE_ESTCPU_WEIGHT) == 0) {
sys/kern/sched_4bsd.c
738
if (!TD_IS_IDLETHREAD(td) && --ts->ts_slice <= 0) {
sys/kern/sched_4bsd.c
739
ts->ts_slice = sched_slice;
sys/kern/sched_4bsd.c
810
struct td_sched *ts, *tsc;
sys/kern/sched_4bsd.c
818
ts = td_get_sched(childtd);
sys/kern/sched_4bsd.c
819
bzero(ts, sizeof(*ts));
sys/kern/sched_4bsd.c
821
ts->ts_estcpu = tsc->ts_estcpu;
sys/kern/sched_4bsd.c
822
ts->ts_flags |= (tsc->ts_flags & TSF_AFFINITY);
sys/kern/sched_4bsd.c
823
ts->ts_slice = 1;
sys/kern/sched_ule.c
1399
struct td_sched *ts;
sys/kern/sched_ule.c
1405
ts = td_get_sched(td);
sys/kern/sched_ule.c
1406
KASSERT(!CPU_ABSENT(ts->ts_cpu), ("sched_pickcpu: Start scheduler on "
sys/kern/sched_ule.c
1407
"absent CPU %d for thread %s.", ts->ts_cpu, td->td_name));
sys/kern/sched_ule.c
1414
return (ts->ts_cpu);
sys/kern/sched_ule.c
1426
ts->ts_cpu = self;
sys/kern/sched_ule.c
1432
tdq = TDQ_CPU(ts->ts_cpu);
sys/kern/sched_ule.c
1439
if (THREAD_CAN_SCHED(td, ts->ts_cpu) &&
sys/kern/sched_ule.c
1441
SCHED_AFFINITY(ts, CG_SHARE_L2)) {
sys/kern/sched_ule.c
1453
return (ts->ts_cpu);
sys/kern/sched_ule.c
1457
return (ts->ts_cpu);
sys/kern/sched_ule.c
1472
(!intr && !SCHED_AFFINITY(ts, cg->cg_level)))
sys/kern/sched_ule.c
1489
cpu = sched_lowest(ccg, mask, pri, INT_MAX, ts->ts_cpu, r);
sys/kern/sched_ule.c
1496
INT_MAX, ts->ts_cpu, r);
sys/kern/sched_ule.c
1502
cpu = sched_lowest(cpu_top, mask, pri, INT_MAX, ts->ts_cpu, r);
sys/kern/sched_ule.c
1508
cpu = sched_lowest(cpu_top, mask, -1, INT_MAX, ts->ts_cpu, r);
sys/kern/sched_ule.c
1524
if (cpu != ts->ts_cpu)
sys/kern/sched_ule.c
1719
struct td_sched *ts;
sys/kern/sched_ule.c
1722
ts = td_get_sched(td);
sys/kern/sched_ule.c
1729
ts->ts_runtime >= ts->ts_slptime)
sys/kern/sched_ule.c
1732
if (ts->ts_runtime > ts->ts_slptime) {
sys/kern/sched_ule.c
1733
div = max(1, ts->ts_runtime / SCHED_INTERACT_HALF);
sys/kern/sched_ule.c
1735
(SCHED_INTERACT_HALF - (ts->ts_slptime / div)));
sys/kern/sched_ule.c
1737
if (ts->ts_slptime > ts->ts_runtime) {
sys/kern/sched_ule.c
1738
div = max(1, ts->ts_slptime / SCHED_INTERACT_HALF);
sys/kern/sched_ule.c
1739
return (ts->ts_runtime / div);
sys/kern/sched_ule.c
1742
if (ts->ts_runtime)
sys/kern/sched_ule.c
1788
const struct td_sched *const ts = td_get_sched(td);
sys/kern/sched_ule.c
1789
const u_int run = SCHED_TICK_RUN_SHIFTED(ts);
sys/kern/sched_ule.c
1792
const u_int len = SCHED_TICK_LENGTH(ts);
sys/kern/sched_ule.c
1822
struct td_sched *ts;
sys/kern/sched_ule.c
1825
ts = td_get_sched(td);
sys/kern/sched_ule.c
1826
sum = ts->ts_runtime + ts->ts_slptime;
sys/kern/sched_ule.c
1835
if (ts->ts_runtime > ts->ts_slptime) {
sys/kern/sched_ule.c
1836
ts->ts_runtime = SCHED_SLP_RUN_MAX;
sys/kern/sched_ule.c
1837
ts->ts_slptime = 1;
sys/kern/sched_ule.c
1839
ts->ts_slptime = SCHED_SLP_RUN_MAX;
sys/kern/sched_ule.c
1840
ts->ts_runtime = 1;
sys/kern/sched_ule.c
1850
ts->ts_runtime /= 2;
sys/kern/sched_ule.c
1851
ts->ts_slptime /= 2;
sys/kern/sched_ule.c
1854
ts->ts_runtime = (ts->ts_runtime / 5) * 4;
sys/kern/sched_ule.c
1855
ts->ts_slptime = (ts->ts_slptime / 5) * 4;
sys/kern/sched_ule.c
1867
struct td_sched *ts;
sys/kern/sched_ule.c
187
#define SCHED_TICK_RUN_SHIFTED(ts) ((ts)->ts_ticks)
sys/kern/sched_ule.c
1871
ts = td_get_sched(td);
sys/kern/sched_ule.c
1872
sum = ts->ts_runtime + ts->ts_slptime;
sys/kern/sched_ule.c
1875
ts->ts_runtime /= ratio;
sys/kern/sched_ule.c
1876
ts->ts_slptime /= ratio;
sys/kern/sched_ule.c
188
#define SCHED_TICK_LENGTH(ts) (max((ts)->ts_ltick - (ts)->ts_ftick, 1))
sys/kern/sched_ule.c
1939
sched_pctcpu_update(struct td_sched *ts, int run)
sys/kern/sched_ule.c
1945
const u_int lu_span = t - ts->ts_ltick;
sys/kern/sched_ule.c
1953
ts->ts_ticks = run ? (t_tgt << SCHED_TICK_SHIFT) : 0;
sys/kern/sched_ule.c
1954
ts->ts_ftick = t - t_tgt;
sys/kern/sched_ule.c
1955
ts->ts_ltick = t;
sys/kern/sched_ule.c
1959
if (t - ts->ts_ftick >= t_max) {
sys/kern/sched_ule.c
1975
ts->ts_ticks = SCHED_TICK_RUN_SHIFTED(ts) /
sys/kern/sched_ule.c
1976
SCHED_TICK_LENGTH(ts) * (t_tgt - lu_span);
sys/kern/sched_ule.c
1977
ts->ts_ftick = t - t_tgt;
sys/kern/sched_ule.c
1981
ts->ts_ticks += lu_span << SCHED_TICK_SHIFT;
sys/kern/sched_ule.c
1982
ts->ts_ltick = t;
sys/kern/sched_ule.c
2324
struct td_sched *ts;
sys/kern/sched_ule.c
2336
ts = td_get_sched(td);
sys/kern/sched_ule.c
2337
sched_pctcpu_update(ts, 1);
sys/kern/sched_ule.c
2341
ts->ts_rltick = (u_int)ticks - affinity * MAX_CACHE_LEVELS;
sys/kern/sched_ule.c
2343
ts->ts_rltick = (u_int)ticks;
sys/kern/sched_ule.c
2368
if (THREAD_CAN_MIGRATE(td) && (!THREAD_CAN_SCHED(td, ts->ts_cpu)
sys/kern/sched_ule.c
2370
ts->ts_cpu = sched_pickcpu(td, 0);
sys/kern/sched_ule.c
2372
if (ts->ts_cpu == cpuid)
sys/kern/sched_ule.c
2501
struct td_sched *ts;
sys/kern/sched_ule.c
2505
ts = td_get_sched(td);
sys/kern/sched_ule.c
2514
ts->ts_slptime += (ticks - slptick) << SCHED_TICK_SHIFT;
sys/kern/sched_ule.c
2516
sched_pctcpu_update(ts, 0);
sys/kern/sched_ule.c
2530
ts->ts_slice = 0;
sys/kern/sched_ule.c
2560
struct td_sched *ts;
sys/kern/sched_ule.c
2569
ts = td_get_sched(td);
sys/kern/sched_ule.c
2576
ts2->ts_cpu = ts->ts_cpu;
sys/kern/sched_ule.c
2581
ts2->ts_ticks = ts->ts_ticks;
sys/kern/sched_ule.c
2582
ts2->ts_ltick = ts->ts_ltick;
sys/kern/sched_ule.c
2583
ts2->ts_ftick = ts->ts_ftick;
sys/kern/sched_ule.c
2591
ts2->ts_slptime = ts->ts_slptime;
sys/kern/sched_ule.c
2592
ts2->ts_runtime = ts->ts_runtime;
sys/kern/sched_ule.c
2714
struct td_sched *ts;
sys/kern/sched_ule.c
2755
ts = td_get_sched(td);
sys/kern/sched_ule.c
2756
sched_pctcpu_update(ts, 1);
sys/kern/sched_ule.c
2774
ts->ts_slice += cnt;
sys/kern/sched_ule.c
2775
if (ts->ts_slice >= td_slice(td, tdq)) {
sys/kern/sched_ule.c
2776
ts->ts_slice = 0;
sys/kern/sched_ule.c
2983
struct td_sched *ts;
sys/kern/sched_ule.c
2988
ts = td_get_sched(td);
sys/kern/sched_ule.c
2989
sched_pctcpu_update(ts, TD_IS_RUNNING(td));
sys/kern/sched_ule.c
2990
len = SCHED_TICK_LENGTH(ts);
sys/kern/sched_ule.c
2992
(SCHED_TICK_RUN_SHIFTED(ts) << (FSHIFT - SCHED_TICK_SHIFT)) :
sys/kern/sched_ule.c
2993
(SCHED_TICK_RUN_SHIFTED(ts) >> (SCHED_TICK_SHIFT - FSHIFT))) +
sys/kern/sched_ule.c
3006
struct td_sched *ts;
sys/kern/sched_ule.c
3009
ts = td_get_sched(td);
sys/kern/sched_ule.c
3010
if (THREAD_CAN_SCHED(td, ts->ts_cpu))
sys/kern/sched_ule.c
3026
ipi_cpu(ts->ts_cpu, IPI_PREEMPT);
sys/kern/sched_ule.c
3036
struct td_sched *ts;
sys/kern/sched_ule.c
3040
ts = td_get_sched(td);
sys/kern/sched_ule.c
3041
if (ts->ts_flags & TSF_BOUND)
sys/kern/sched_ule.c
3044
ts->ts_flags |= TSF_BOUND;
sys/kern/sched_ule.c
3048
ts->ts_cpu = cpu;
sys/kern/sched_ule.c
3060
struct td_sched *ts;
sys/kern/sched_ule.c
3064
ts = td_get_sched(td);
sys/kern/sched_ule.c
3065
if ((ts->ts_flags & TSF_BOUND) == 0)
sys/kern/sched_ule.c
3067
ts->ts_flags &= ~TSF_BOUND;
sys/kern/sched_ule.c
313
#define SCHED_AFFINITY(ts, t) ((u_int)ticks - (ts)->ts_rltick < (t) * affinity)
sys/kern/sched_ule.c
3323
struct td_sched *ts;
sys/kern/sched_ule.c
3325
ts = td_get_sched(td);
sys/kern/sched_ule.c
3326
if (ts->ts_name[0] == '\0')
sys/kern/sched_ule.c
3327
snprintf(ts->ts_name, sizeof(ts->ts_name),
sys/kern/sched_ule.c
3329
return (ts->ts_name);
sys/kern/sched_ule.c
3339
struct td_sched *ts;
sys/kern/sched_ule.c
3341
ts = td_get_sched(td);
sys/kern/sched_ule.c
3342
ts->ts_name[0] = '\0';
sys/kern/sched_ule.c
506
struct td_sched *ts;
sys/kern/sched_ule.c
513
ts = td_get_sched(td);
sys/kern/sched_ule.c
517
ts->ts_flags |= TSF_XFERABLE;
sys/kern/sched_ule.c
602
struct td_sched *ts;
sys/kern/sched_ule.c
605
ts = td_get_sched(td);
sys/kern/sched_ule.c
608
if (ts->ts_flags & TSF_XFERABLE) {
sys/kern/sched_ule.c
610
ts->ts_flags &= ~TSF_XFERABLE;
sys/kern/subr_clock.c
135
clock_ct_to_ts(const struct clocktime *ct, struct timespec *ts)
sys/kern/subr_clock.c
185
ts->tv_sec = (((time_t)days * 24 + ct->hour) * 60 + ct->min) * 60 +
sys/kern/subr_clock.c
187
ts->tv_nsec = ct->nsec;
sys/kern/subr_clock.c
190
printf(" = %jd.%09ld\n", (intmax_t)ts->tv_sec, ts->tv_nsec);
sys/kern/subr_clock.c
195
clock_bcd_to_ts(const struct bcd_clocktime *bct, struct timespec *ts, bool ampm)
sys/kern/subr_clock.c
240
return (clock_ct_to_ts(&ct, ts));
sys/kern/subr_clock.c
244
clock_ts_to_ct(const struct timespec *ts, struct clocktime *ct)
sys/kern/subr_clock.c
250
secs = ts->tv_sec;
sys/kern/subr_clock.c
281
ct->nsec = ts->tv_nsec;
sys/kern/subr_clock.c
284
(intmax_t)ts->tv_sec, ts->tv_nsec);
sys/kern/subr_clock.c
305
clock_ts_to_bcd(const struct timespec *ts, struct bcd_clocktime *bct, bool ampm)
sys/kern/subr_clock.c
309
clock_ts_to_ct(ts, &ct);
sys/kern/subr_clock.c
369
clock_print_ts(const struct timespec *ts, int nsdigits)
sys/kern/subr_clock.c
373
clock_ts_to_ct(ts, &ct);
sys/kern/subr_epoch.c
570
struct turnstile *ts;
sys/kern/subr_epoch.c
655
((ts = curwaittd->td_blocked) != NULL)) {
sys/kern/subr_epoch.c
666
if (turnstile_lock(ts, &lock, &owner)) {
sys/kern/subr_epoch.c
667
if (ts == curwaittd->td_blocked) {
sys/kern/subr_epoch.c
671
turnstile_wait(ts, owner,
sys/kern/subr_epoch.c
677
turnstile_unlock(ts, lock);
sys/kern/subr_fattime.c
259
struct timespec ts;
sys/kern/subr_fattime.c
273
ts.tv_sec = ((time_t) arc4random() << 4) ^ arc4random();
sys/kern/subr_fattime.c
274
} while ((ts.tv_sec < T1980 * 86400) || (ts.tv_sec >= T2108 * 86400ull));
sys/kern/subr_fattime.c
276
ts.tv_nsec = random() % 1000000000;
sys/kern/subr_fattime.c
278
printf("%10jd.%03ld -- ", (intmax_t) ts.tv_sec, ts.tv_nsec / 1000000);
sys/kern/subr_fattime.c
280
gmtime_r(&ts.tv_sec, &tm);
sys/kern/subr_fattime.c
284
a = ts.tv_sec + ts.tv_nsec * 1e-9;
sys/kern/subr_fattime.c
286
timespec2fattime(&ts, 1, &d, &t, &p);
sys/kern/subr_fattime.c
296
ts.tv_sec = ts.tv_nsec = 0;
sys/kern/subr_fattime.c
297
fattime2timespec(d, t, p, 1, &ts);
sys/kern/subr_fattime.c
298
printf("%10jd.%03ld == ", (intmax_t) ts.tv_sec, ts.tv_nsec / 1000000);
sys/kern/subr_fattime.c
299
gmtime_r(&ts.tv_sec, &tm);
sys/kern/subr_fattime.c
302
a -= ts.tv_sec + ts.tv_nsec * 1e-9;
sys/kern/subr_rtc.c
136
struct timespec ts;
sys/kern/subr_rtc.c
142
getnanotime(&ts);
sys/kern/subr_rtc.c
144
ts.tv_sec -= utc_offset();
sys/kern/subr_rtc.c
145
timespecadd(&ts, &rtc->resadj, &ts);
sys/kern/subr_rtc.c
148
ts.tv_sec = 0;
sys/kern/subr_rtc.c
149
ts.tv_nsec = 0;
sys/kern/subr_rtc.c
151
error = CLOCK_SETTIME(rtc->clockdev, &ts);
sys/kern/subr_rtc.c
200
clock_dbgprint_ts(device_t dev, int rw, const struct timespec *ts)
sys/kern/subr_rtc.c
205
clock_print_ts(ts, 9);
sys/kern/subr_rtc.c
289
read_clocks(struct timespec *ts, bool debug_read)
sys/kern/subr_rtc.c
297
if ((error = CLOCK_GETTIME(rtc->clockdev, ts)) != 0)
sys/kern/subr_rtc.c
299
if (ts->tv_sec < 0 || ts->tv_nsec < 0) {
sys/kern/subr_rtc.c
304
timespecadd(ts, &rtc->resadj, ts);
sys/kern/subr_rtc.c
305
ts->tv_sec += utc_offset();
sys/kern/subr_rtc.c
333
struct timespec ts;
sys/kern/subr_rtc.c
336
error = read_clocks(&ts, false);
sys/kern/subr_rtc.c
356
ts.tv_sec = (base > 0) ? base : -1;
sys/kern/subr_rtc.c
357
ts.tv_nsec = 0;
sys/kern/subr_rtc.c
360
if (ts.tv_sec >= 0) {
sys/kern/subr_rtc.c
361
tc_setclock(&ts);
sys/kern/subr_rtc.c
363
ffclock_reset_clock(&ts);
sys/kern/subr_turnstile.c
1004
THREAD_LOCKPTR_ASSERT(td, &ts->ts_lock);
sys/kern/subr_turnstile.c
1017
mtx_unlock_spin(&ts->ts_lock);
sys/kern/subr_turnstile.c
1025
turnstile_disown(struct turnstile *ts)
sys/kern/subr_turnstile.c
1030
MPASS(ts != NULL);
sys/kern/subr_turnstile.c
1031
mtx_assert(&ts->ts_lock, MA_OWNED);
sys/kern/subr_turnstile.c
1032
MPASS(ts->ts_owner == curthread);
sys/kern/subr_turnstile.c
1033
MPASS(TAILQ_EMPTY(&ts->ts_pending));
sys/kern/subr_turnstile.c
1034
MPASS(!TAILQ_EMPTY(&ts->ts_blocked[TS_EXCLUSIVE_QUEUE]) ||
sys/kern/subr_turnstile.c
1035
!TAILQ_EMPTY(&ts->ts_blocked[TS_SHARED_QUEUE]));
sys/kern/subr_turnstile.c
1044
ts->ts_owner = NULL;
sys/kern/subr_turnstile.c
1045
LIST_REMOVE(ts, ts_link);
sys/kern/subr_turnstile.c
1055
mtx_unlock_spin(&ts->ts_lock);
sys/kern/subr_turnstile.c
1067
turnstile_head(struct turnstile *ts, int queue)
sys/kern/subr_turnstile.c
1071
MPASS(ts != NULL);
sys/kern/subr_turnstile.c
1073
mtx_assert(&ts->ts_lock, MA_OWNED);
sys/kern/subr_turnstile.c
1075
return (TAILQ_FIRST(&ts->ts_blocked[queue]));
sys/kern/subr_turnstile.c
1082
turnstile_empty(struct turnstile *ts, int queue)
sys/kern/subr_turnstile.c
1086
MPASS(ts != NULL);
sys/kern/subr_turnstile.c
1088
mtx_assert(&ts->ts_lock, MA_OWNED);
sys/kern/subr_turnstile.c
1090
return (TAILQ_EMPTY(&ts->ts_blocked[queue]));
sys/kern/subr_turnstile.c
1120
struct turnstile *ts;
sys/kern/subr_turnstile.c
1133
LIST_FOREACH(ts, &tc->tc_turnstiles, ts_hash)
sys/kern/subr_turnstile.c
1134
if (ts->ts_lockobj == lock)
sys/kern/subr_turnstile.c
1142
LIST_FOREACH(ts, &turnstile_chains[i].tc_turnstiles, ts_hash) {
sys/kern/subr_turnstile.c
1143
if (ts == (struct turnstile *)addr)
sys/kern/subr_turnstile.c
1150
lock = ts->ts_lockobj;
sys/kern/subr_turnstile.c
1153
if (ts->ts_owner)
sys/kern/subr_turnstile.c
1154
print_thread(ts->ts_owner, "Lock Owner: ");
sys/kern/subr_turnstile.c
1157
print_queue(&ts->ts_blocked[TS_SHARED_QUEUE], "Shared Waiters", "\t");
sys/kern/subr_turnstile.c
1158
print_queue(&ts->ts_blocked[TS_EXCLUSIVE_QUEUE], "Exclusive Waiters",
sys/kern/subr_turnstile.c
1160
print_queue(&ts->ts_pending, "Pending Threads", "\t");
sys/kern/subr_turnstile.c
1173
struct turnstile *ts;
sys/kern/subr_turnstile.c
1202
ts = td->td_blocked;
sys/kern/subr_turnstile.c
1203
lock = ts->ts_lockobj;
sys/kern/subr_turnstile.c
1207
if (ts->ts_owner == NULL)
sys/kern/subr_turnstile.c
1209
td = ts->ts_owner;
sys/kern/subr_turnstile.c
1267
static void print_waiters(struct turnstile *ts, int indent);
sys/kern/subr_turnstile.c
1272
struct turnstile *ts;
sys/kern/subr_turnstile.c
1280
LIST_FOREACH(ts, &td->td_contested, ts_link)
sys/kern/subr_turnstile.c
1281
print_waiters(ts, indent + 1);
sys/kern/subr_turnstile.c
1285
print_waiters(struct turnstile *ts, int indent)
sys/kern/subr_turnstile.c
1294
lock = ts->ts_lockobj;
sys/kern/subr_turnstile.c
1299
TAILQ_FOREACH(td, &ts->ts_blocked[TS_EXCLUSIVE_QUEUE], td_lockq)
sys/kern/subr_turnstile.c
1301
TAILQ_FOREACH(td, &ts->ts_blocked[TS_SHARED_QUEUE], td_lockq)
sys/kern/subr_turnstile.c
1303
TAILQ_FOREACH(td, &ts->ts_pending, td_lockq)
sys/kern/subr_turnstile.c
1312
struct turnstile *ts;
sys/kern/subr_turnstile.c
1318
LIST_FOREACH(ts, &tc->tc_turnstiles, ts_hash)
sys/kern/subr_turnstile.c
1319
if (ts->ts_lockobj == lock)
sys/kern/subr_turnstile.c
1321
if (ts == NULL) {
sys/kern/subr_turnstile.c
1326
print_waiters(ts, 0);
sys/kern/subr_turnstile.c
162
static int turnstile_adjust_thread(struct turnstile *ts,
sys/kern/subr_turnstile.c
164
static struct thread *turnstile_first_waiter(struct turnstile *ts);
sys/kern/subr_turnstile.c
165
static void turnstile_setowner(struct turnstile *ts, struct thread *owner);
sys/kern/subr_turnstile.c
178
propagate_unlock_ts(struct turnstile *top, struct turnstile *ts)
sys/kern/subr_turnstile.c
181
if (ts != top)
sys/kern/subr_turnstile.c
182
mtx_unlock_spin(&ts->ts_lock);
sys/kern/subr_turnstile.c
201
struct turnstile *ts, *top;
sys/kern/subr_turnstile.c
206
top = ts = td->td_blocked;
sys/kern/subr_turnstile.c
207
THREAD_LOCKPTR_ASSERT(td, &ts->ts_lock);
sys/kern/subr_turnstile.c
215
td = ts->ts_owner;
sys/kern/subr_turnstile.c
222
propagate_unlock_ts(top, ts);
sys/kern/subr_turnstile.c
231
if (td->td_lock != &ts->ts_lock) {
sys/kern/subr_turnstile.c
233
propagate_unlock_ts(top, ts);
sys/kern/subr_turnstile.c
250
ts->ts_lockobj->lo_name);
sys/kern/subr_turnstile.c
291
ts->ts_lockobj->lo_name));
sys/kern/subr_turnstile.c
296
ts = td->td_blocked;
sys/kern/subr_turnstile.c
297
MPASS(ts != NULL);
sys/kern/subr_turnstile.c
298
THREAD_LOCKPTR_ASSERT(td, &ts->ts_lock);
sys/kern/subr_turnstile.c
300
if (!turnstile_adjust_thread(ts, td)) {
sys/kern/subr_turnstile.c
301
propagate_unlock_ts(top, ts);
sys/kern/subr_turnstile.c
313
turnstile_adjust_thread(struct turnstile *ts, struct thread *td)
sys/kern/subr_turnstile.c
339
THREAD_LOCKPTR_BLOCKED_ASSERT(td, &ts->ts_lock);
sys/kern/subr_turnstile.c
351
TAILQ_REMOVE(&ts->ts_blocked[queue], td, td_lockq);
sys/kern/subr_turnstile.c
352
TAILQ_FOREACH(td1, &ts->ts_blocked[queue], td_lockq) {
sys/kern/subr_turnstile.c
359
TAILQ_INSERT_TAIL(&ts->ts_blocked[queue], td, td_lockq);
sys/kern/subr_turnstile.c
366
td->td_tid, ts->ts_lockobj, ts->ts_lockobj->lo_name);
sys/kern/subr_turnstile.c
370
td->td_tid, td1->td_tid, ts->ts_lockobj,
sys/kern/subr_turnstile.c
371
ts->ts_lockobj->lo_name);
sys/kern/subr_turnstile.c
445
struct turnstile *ts;
sys/kern/subr_turnstile.c
452
ts = td->td_blocked;
sys/kern/subr_turnstile.c
453
MPASS(ts != NULL);
sys/kern/subr_turnstile.c
454
THREAD_LOCKPTR_BLOCKED_ASSERT(td, &ts->ts_lock);
sys/kern/subr_turnstile.c
455
mtx_assert(&ts->ts_lock, MA_OWNED);
sys/kern/subr_turnstile.c
458
if (!turnstile_adjust_thread(ts, td))
sys/kern/subr_turnstile.c
468
if (td == TAILQ_FIRST(&ts->ts_blocked[td->td_tsqueue]) &&
sys/kern/subr_turnstile.c
478
turnstile_setowner(struct turnstile *ts, struct thread *owner)
sys/kern/subr_turnstile.c
482
MPASS(ts->ts_owner == NULL);
sys/kern/subr_turnstile.c
489
ts->ts_owner = owner;
sys/kern/subr_turnstile.c
490
LIST_INSERT_HEAD(&owner->td_contested, ts, ts_link);
sys/kern/subr_turnstile.c
500
struct turnstile *ts;
sys/kern/subr_turnstile.c
502
ts = mem;
sys/kern/subr_turnstile.c
503
MPASS(TAILQ_EMPTY(&ts->ts_blocked[TS_EXCLUSIVE_QUEUE]));
sys/kern/subr_turnstile.c
504
MPASS(TAILQ_EMPTY(&ts->ts_blocked[TS_SHARED_QUEUE]));
sys/kern/subr_turnstile.c
505
MPASS(TAILQ_EMPTY(&ts->ts_pending));
sys/kern/subr_turnstile.c
515
struct turnstile *ts;
sys/kern/subr_turnstile.c
518
ts = mem;
sys/kern/subr_turnstile.c
519
TAILQ_INIT(&ts->ts_blocked[TS_EXCLUSIVE_QUEUE]);
sys/kern/subr_turnstile.c
520
TAILQ_INIT(&ts->ts_blocked[TS_SHARED_QUEUE]);
sys/kern/subr_turnstile.c
521
TAILQ_INIT(&ts->ts_pending);
sys/kern/subr_turnstile.c
522
LIST_INIT(&ts->ts_free);
sys/kern/subr_turnstile.c
523
mtx_init(&ts->ts_lock, "turnstile lock", NULL, MTX_SPIN);
sys/kern/subr_turnstile.c
530
struct turnstile *ts;
sys/kern/subr_turnstile.c
532
ts = mem;
sys/kern/subr_turnstile.c
533
mtx_destroy(&ts->ts_lock);
sys/kern/subr_turnstile.c
550
turnstile_free(struct turnstile *ts)
sys/kern/subr_turnstile.c
553
uma_zfree(turnstile_zone, ts);
sys/kern/subr_turnstile.c
572
struct turnstile *ts;
sys/kern/subr_turnstile.c
576
LIST_FOREACH(ts, &tc->tc_turnstiles, ts_hash)
sys/kern/subr_turnstile.c
577
if (ts->ts_lockobj == lock) {
sys/kern/subr_turnstile.c
578
mtx_lock_spin(&ts->ts_lock);
sys/kern/subr_turnstile.c
579
return (ts);
sys/kern/subr_turnstile.c
582
ts = curthread->td_turnstile;
sys/kern/subr_turnstile.c
583
MPASS(ts != NULL);
sys/kern/subr_turnstile.c
584
mtx_lock_spin(&ts->ts_lock);
sys/kern/subr_turnstile.c
585
KASSERT(ts->ts_lockobj == NULL, ("stale ts_lockobj pointer"));
sys/kern/subr_turnstile.c
586
ts->ts_lockobj = lock;
sys/kern/subr_turnstile.c
588
return (ts);
sys/kern/subr_turnstile.c
592
turnstile_lock(struct turnstile *ts, struct lock_object **lockp,
sys/kern/subr_turnstile.c
598
if ((lock = ts->ts_lockobj) == NULL)
sys/kern/subr_turnstile.c
602
mtx_lock_spin(&ts->ts_lock);
sys/kern/subr_turnstile.c
603
if (__predict_false(lock != ts->ts_lockobj)) {
sys/kern/subr_turnstile.c
605
mtx_unlock_spin(&ts->ts_lock);
sys/kern/subr_turnstile.c
609
*tdp = ts->ts_owner;
sys/kern/subr_turnstile.c
614
turnstile_unlock(struct turnstile *ts, struct lock_object *lock)
sys/kern/subr_turnstile.c
618
mtx_assert(&ts->ts_lock, MA_OWNED);
sys/kern/subr_turnstile.c
619
mtx_unlock_spin(&ts->ts_lock);
sys/kern/subr_turnstile.c
620
if (ts == curthread->td_turnstile)
sys/kern/subr_turnstile.c
621
ts->ts_lockobj = NULL;
sys/kern/subr_turnstile.c
627
turnstile_assert(struct turnstile *ts)
sys/kern/subr_turnstile.c
629
MPASS(ts->ts_lockobj == NULL);
sys/kern/subr_turnstile.c
633
turnstile_cancel(struct turnstile *ts)
sys/kern/subr_turnstile.c
638
mtx_assert(&ts->ts_lock, MA_OWNED);
sys/kern/subr_turnstile.c
640
mtx_unlock_spin(&ts->ts_lock);
sys/kern/subr_turnstile.c
641
lock = ts->ts_lockobj;
sys/kern/subr_turnstile.c
642
if (ts == curthread->td_turnstile)
sys/kern/subr_turnstile.c
643
ts->ts_lockobj = NULL;
sys/kern/subr_turnstile.c
657
struct turnstile *ts;
sys/kern/subr_turnstile.c
661
LIST_FOREACH(ts, &tc->tc_turnstiles, ts_hash)
sys/kern/subr_turnstile.c
662
if (ts->ts_lockobj == lock) {
sys/kern/subr_turnstile.c
663
mtx_lock_spin(&ts->ts_lock);
sys/kern/subr_turnstile.c
664
return (ts);
sys/kern/subr_turnstile.c
686
turnstile_first_waiter(struct turnstile *ts)
sys/kern/subr_turnstile.c
690
std = TAILQ_FIRST(&ts->ts_blocked[TS_SHARED_QUEUE]);
sys/kern/subr_turnstile.c
691
xtd = TAILQ_FIRST(&ts->ts_blocked[TS_EXCLUSIVE_QUEUE]);
sys/kern/subr_turnstile.c
702
turnstile_claim(struct turnstile *ts)
sys/kern/subr_turnstile.c
707
mtx_assert(&ts->ts_lock, MA_OWNED);
sys/kern/subr_turnstile.c
708
MPASS(ts != curthread->td_turnstile);
sys/kern/subr_turnstile.c
712
turnstile_setowner(ts, owner);
sys/kern/subr_turnstile.c
715
td = turnstile_first_waiter(ts);
sys/kern/subr_turnstile.c
718
THREAD_LOCKPTR_BLOCKED_ASSERT(td, &ts->ts_lock);
sys/kern/subr_turnstile.c
727
tc = TC_LOOKUP(ts->ts_lockobj);
sys/kern/subr_turnstile.c
728
mtx_unlock_spin(&ts->ts_lock);
sys/kern/subr_turnstile.c
739
turnstile_wait(struct turnstile *ts, struct thread *owner, int queue)
sys/kern/subr_turnstile.c
746
mtx_assert(&ts->ts_lock, MA_OWNED);
sys/kern/subr_turnstile.c
756
tc = TC_LOOKUP(ts->ts_lockobj);
sys/kern/subr_turnstile.c
758
if (ts == td->td_turnstile) {
sys/kern/subr_turnstile.c
767
LIST_INSERT_HEAD(&tc->tc_turnstiles, ts, ts_hash);
sys/kern/subr_turnstile.c
768
KASSERT(TAILQ_EMPTY(&ts->ts_pending),
sys/kern/subr_turnstile.c
770
KASSERT(TAILQ_EMPTY(&ts->ts_blocked[TS_EXCLUSIVE_QUEUE]),
sys/kern/subr_turnstile.c
772
KASSERT(TAILQ_EMPTY(&ts->ts_blocked[TS_SHARED_QUEUE]),
sys/kern/subr_turnstile.c
774
KASSERT(LIST_EMPTY(&ts->ts_free),
sys/kern/subr_turnstile.c
776
MPASS(ts->ts_lockobj != NULL);
sys/kern/subr_turnstile.c
778
TAILQ_INSERT_TAIL(&ts->ts_blocked[queue], td, td_lockq);
sys/kern/subr_turnstile.c
779
turnstile_setowner(ts, owner);
sys/kern/subr_turnstile.c
782
TAILQ_FOREACH(td1, &ts->ts_blocked[queue], td_lockq)
sys/kern/subr_turnstile.c
789
TAILQ_INSERT_TAIL(&ts->ts_blocked[queue], td, td_lockq);
sys/kern/subr_turnstile.c
790
MPASS(owner == ts->ts_owner);
sys/kern/subr_turnstile.c
793
LIST_INSERT_HEAD(&ts->ts_free, td->td_turnstile, ts_hash);
sys/kern/subr_turnstile.c
796
thread_lock_set(td, &ts->ts_lock);
sys/kern/subr_turnstile.c
800
lock = ts->ts_lockobj;
sys/kern/subr_turnstile.c
802
td->td_blocked = ts;
sys/kern/subr_turnstile.c
815
THREAD_LOCKPTR_ASSERT(td, &ts->ts_lock);
sys/kern/subr_turnstile.c
828
turnstile_signal(struct turnstile *ts, int queue)
sys/kern/subr_turnstile.c
834
MPASS(ts != NULL);
sys/kern/subr_turnstile.c
835
mtx_assert(&ts->ts_lock, MA_OWNED);
sys/kern/subr_turnstile.c
837
MPASS(ts->ts_owner == curthread || ts->ts_owner == NULL);
sys/kern/subr_turnstile.c
844
td = TAILQ_FIRST(&ts->ts_blocked[queue]);
sys/kern/subr_turnstile.c
847
TAILQ_REMOVE(&ts->ts_blocked[queue], td, td_lockq);
sys/kern/subr_turnstile.c
849
TAILQ_INSERT_TAIL(&ts->ts_pending, td, td_lockq);
sys/kern/subr_turnstile.c
856
empty = TAILQ_EMPTY(&ts->ts_blocked[TS_EXCLUSIVE_QUEUE]) &&
sys/kern/subr_turnstile.c
857
TAILQ_EMPTY(&ts->ts_blocked[TS_SHARED_QUEUE]);
sys/kern/subr_turnstile.c
859
tc = TC_LOOKUP(ts->ts_lockobj);
sys/kern/subr_turnstile.c
861
MPASS(LIST_EMPTY(&ts->ts_free));
sys/kern/subr_turnstile.c
866
ts = LIST_FIRST(&ts->ts_free);
sys/kern/subr_turnstile.c
867
MPASS(ts != NULL);
sys/kern/subr_turnstile.c
868
LIST_REMOVE(ts, ts_hash);
sys/kern/subr_turnstile.c
869
td->td_turnstile = ts;
sys/kern/subr_turnstile.c
879
turnstile_broadcast(struct turnstile *ts, int queue)
sys/kern/subr_turnstile.c
885
MPASS(ts != NULL);
sys/kern/subr_turnstile.c
886
mtx_assert(&ts->ts_lock, MA_OWNED);
sys/kern/subr_turnstile.c
888
MPASS(ts->ts_owner == curthread || ts->ts_owner == NULL);
sys/kern/subr_turnstile.c
893
tc = TC_LOOKUP(ts->ts_lockobj);
sys/kern/subr_turnstile.c
901
TAILQ_CONCAT(&ts->ts_pending, &ts->ts_blocked[queue], td_lockq);
sys/kern/subr_turnstile.c
908
TAILQ_FOREACH(td, &ts->ts_pending, td_lockq) {
sys/kern/subr_turnstile.c
909
if (LIST_EMPTY(&ts->ts_free)) {
sys/kern/subr_turnstile.c
911
ts1 = ts;
sys/kern/subr_turnstile.c
916
ts1 = LIST_FIRST(&ts->ts_free);
sys/kern/subr_turnstile.c
947
turnstile_unpend(struct turnstile *ts)
sys/kern/subr_turnstile.c
953
MPASS(ts != NULL);
sys/kern/subr_turnstile.c
954
mtx_assert(&ts->ts_lock, MA_OWNED);
sys/kern/subr_turnstile.c
955
MPASS(ts->ts_owner == curthread || ts->ts_owner == NULL);
sys/kern/subr_turnstile.c
956
MPASS(!TAILQ_EMPTY(&ts->ts_pending));
sys/kern/subr_turnstile.c
963
TAILQ_CONCAT(&pending_threads, &ts->ts_pending, td_lockq);
sys/kern/subr_turnstile.c
965
if (TAILQ_EMPTY(&ts->ts_blocked[TS_EXCLUSIVE_QUEUE]) &&
sys/kern/subr_turnstile.c
966
TAILQ_EMPTY(&ts->ts_blocked[TS_SHARED_QUEUE]))
sys/kern/subr_turnstile.c
967
ts->ts_lockobj = NULL;
sys/kern/subr_turnstile.c
984
if (ts->ts_owner != NULL) {
sys/kern/subr_turnstile.c
985
ts->ts_owner = NULL;
sys/kern/subr_turnstile.c
986
LIST_REMOVE(ts, ts_link);
sys/kern/sys_generic.c
1079
struct timespec ts;
sys/kern/sys_generic.c
1084
if (uap->ts != NULL) {
sys/kern/sys_generic.c
1085
error = copyin(uap->ts, &ts, sizeof(ts));
sys/kern/sys_generic.c
1088
TIMESPEC_TO_TIMEVAL(&tv, &ts);
sys/kern/sys_generic.c
1551
struct timespec ts, *tsp;
sys/kern/sys_generic.c
1556
ts.tv_sec = uap->timeout / 1000;
sys/kern/sys_generic.c
1557
ts.tv_nsec = (uap->timeout % 1000) * 1000000;
sys/kern/sys_generic.c
1558
tsp = &ts;
sys/kern/sys_generic.c
1574
struct timespec ts;
sys/kern/sys_generic.c
1584
ts = *tsp;
sys/kern/sys_generic.c
1585
if (ts.tv_sec > INT32_MAX / 2) {
sys/kern/sys_generic.c
1586
over = ts.tv_sec - INT32_MAX / 2;
sys/kern/sys_generic.c
1587
ts.tv_sec -= over;
sys/kern/sys_generic.c
1590
tmp = tstosbt(ts);
sys/kern/sys_generic.c
1650
struct timespec ts, *tsp;
sys/kern/sys_generic.c
1654
if (uap->ts != NULL) {
sys/kern/sys_generic.c
1655
error = copyin(uap->ts, &ts, sizeof(ts));
sys/kern/sys_generic.c
1658
tsp = &ts;
sys/kern/sys_timerfd.c
113
timerfd_getboottime(struct timespec *ts)
sys/kern/sys_timerfd.c
118
TIMEVAL_TO_TIMESPEC(&tv, ts);
sys/kern/sys_timerfd.c
522
struct timespec ts;
sys/kern/sys_timerfd.c
552
nanouptime(&ts);
sys/kern/sys_timerfd.c
553
timespecadd(&tfd->tfd_time.it_value, &ts,
sys/kern/systrace_args.c
2843
uarg[a++] = (intptr_t)p->ts; /* const struct timespec * */
sys/kern/systrace_args.c
3056
uarg[a++] = (intptr_t)p->ts; /* const struct timespec * */
sys/kern/uipc_mqueue.c
1695
struct timespec ts, ts2;
sys/kern/uipc_mqueue.c
1736
getnanotime(&ts);
sys/kern/uipc_mqueue.c
1737
timespecsub(abs_timeout, &ts, &ts2);
sys/kern/uipc_mqueue.c
1850
struct timespec ts, ts2;
sys/kern/uipc_mqueue.c
1887
getnanotime(&ts);
sys/kern/uipc_mqueue.c
1888
timespecsub(abs_timeout, &ts, &ts2);
sys/kern/uipc_sem.c
1007
ts = &abstime;
sys/kern/uipc_sem.c
1009
return (kern_sem_wait(td, uap->id, 0, ts));
sys/kern/uipc_sem.c
774
struct timespec *ts;
sys/kern/uipc_sem.c
781
ts = NULL;
sys/kern/uipc_sem.c
788
ts = &abstime;
sys/kern/uipc_sem.c
790
return (kern_sem_wait(td, uap->id, 0, ts));
sys/kern/uipc_sem.c
991
struct timespec *ts, abstime;
sys/kern/uipc_sem.c
998
ts = NULL;
sys/kern/uipc_usrreq.c
3730
struct timespec *ts;
sys/kern/uipc_usrreq.c
3865
m = sbcreatecontrol(NULL, sizeof(*ts), SCM_REALTIME,
sys/kern/uipc_usrreq.c
3867
ts = (struct timespec *)
sys/kern/uipc_usrreq.c
3869
nanotime(ts);
sys/kern/uipc_usrreq.c
3873
m = sbcreatecontrol(NULL, sizeof(*ts), SCM_MONOTONIC,
sys/kern/uipc_usrreq.c
3875
ts = (struct timespec *)
sys/kern/uipc_usrreq.c
3877
nanouptime(ts);
sys/kern/vfs_aio.c
1956
struct timespec *ts)
sys/kern/vfs_aio.c
1965
if (ts) {
sys/kern/vfs_aio.c
1966
if (ts->tv_nsec < 0 || ts->tv_nsec >= 1000000000)
sys/kern/vfs_aio.c
1969
TIMESPEC_TO_TIMEVAL(&atv, ts);
sys/kern/vfs_aio.c
2016
struct timespec ts, *tsp;
sys/kern/vfs_aio.c
2025
if ((error = copyin(uap->timeout, &ts, sizeof(ts))) != 0)
sys/kern/vfs_aio.c
2027
tsp = &ts;
sys/kern/vfs_aio.c
2524
struct timespec *ts, struct aiocb_ops *ops)
sys/kern/vfs_aio.c
2536
if (ts == NULL) {
sys/kern/vfs_aio.c
2538
} else if (ts->tv_sec == 0 && ts->tv_nsec == 0) {
sys/kern/vfs_aio.c
2541
if ((ts->tv_nsec < 0) || (ts->tv_nsec >= 1000000000))
sys/kern/vfs_aio.c
2544
TIMESPEC_TO_TIMEVAL(&atv, ts);
sys/kern/vfs_aio.c
2598
struct timespec ts, *tsp;
sys/kern/vfs_aio.c
2603
error = copyin(uap->timeout, &ts, sizeof(ts));
sys/kern/vfs_aio.c
2606
tsp = &ts;
sys/kern/vfs_aio.c
2949
struct timespec ts, *tsp;
sys/kern/vfs_aio.c
2961
CP(ts32, ts, tv_sec);
sys/kern/vfs_aio.c
2962
CP(ts32, ts, tv_nsec);
sys/kern/vfs_aio.c
2963
tsp = &ts;
sys/kern/vfs_aio.c
3055
struct timespec ts, *tsp;
sys/kern/vfs_aio.c
3063
CP(ts32, ts, tv_sec);
sys/kern/vfs_aio.c
3064
CP(ts32, ts, tv_nsec);
sys/kern/vfs_aio.c
3065
tsp = &ts;
sys/kern/vfs_cache.c
808
cache_alloc_uma(int len, bool ts)
sys/kern/vfs_cache.c
813
if (__predict_false(ts)) {
sys/kern/vfs_cache.c
848
cache_alloc(int len, bool ts)
sys/kern/vfs_cache.c
873
return (cache_alloc_uma(len, ts));
sys/kern/vfs_syscalls.c
3305
setutimes(struct thread *td, struct vnode *vp, const struct timespec *ts,
sys/kern/vfs_syscalls.c
3321
timespeccmp(&ts[1], &vattr.va_birthtime, < ))
sys/kern/vfs_syscalls.c
3324
vattr.va_atime = ts[0];
sys/kern/vfs_syscalls.c
3325
vattr.va_mtime = ts[1];
sys/kern/vfs_syscalls.c
3327
vattr.va_birthtime = ts[1];
sys/kern/vfs_syscalls.c
3329
vattr.va_birthtime = ts[2];
sys/kern/vfs_syscalls.c
3380
struct timespec ts[2];
sys/kern/vfs_syscalls.c
3383
if ((error = getutimes(tptr, tptrseg, ts)) != 0)
sys/kern/vfs_syscalls.c
3391
error = setutimes(td, nd.ni_vp, ts, 2, tptr == NULL);
sys/kern/vfs_syscalls.c
3417
struct timespec ts[2];
sys/kern/vfs_syscalls.c
3421
if ((error = getutimes(tptr, tptrseg, ts)) != 0)
sys/kern/vfs_syscalls.c
3427
error = setutimes(td, nd.ni_vp, ts, 2, tptr == NULL);
sys/kern/vfs_syscalls.c
3452
struct timespec ts[2];
sys/kern/vfs_syscalls.c
3457
error = getutimes(tptr, tptrseg, ts);
sys/kern/vfs_syscalls.c
3470
error = setutimes(td, fp->f_vnode, ts, 2, tptr == NULL);
sys/kern/vfs_syscalls.c
3486
struct timespec ts[2];
sys/kern/vfs_syscalls.c
3491
error = getutimens(tptr, tptrseg, ts, &flags);
sys/kern/vfs_syscalls.c
3506
error = setutimes(td, fp->f_vnode, ts, 2, flags & UTIMENS_NULL);
sys/kern/vfs_syscalls.c
3525
struct timespec ts[2];
sys/kern/vfs_syscalls.c
3532
if ((error = getutimens(tptr, tptrseg, ts, &flags)) != 0)
sys/kern/vfs_syscalls.c
3547
error = setutimes(td, nd.ni_vp, ts, 2, flags & UTIMENS_NULL);
sys/net/bpf.c
2141
struct timespec ts;
sys/net/bpf.c
2151
mbuf_tstmp2timespec(m, &ts);
sys/net/bpf.c
2152
timespec2bintime(&ts, bt);
sys/net/bpf.c
2396
bpf_bintime2ts(struct bintime *bt, struct bpf_ts *ts, int tstype)
sys/net/bpf.c
2411
ts->bt_sec = tsm.tv_sec;
sys/net/bpf.c
2412
ts->bt_frac = tsm.tv_usec;
sys/net/bpf.c
2416
ts->bt_sec = tsn.tv_sec;
sys/net/bpf.c
2417
ts->bt_frac = tsn.tv_nsec;
sys/net/bpf.c
2420
ts->bt_sec = bt->sec;
sys/net/bpf.c
2421
ts->bt_frac = bt->frac;
sys/net/bpf.c
2538
struct bpf_ts ts;
sys/net/bpf.c
2540
bpf_bintime2ts(bt, &ts, tstype);
sys/net/bpf.c
2545
hdr32_old.bh_tstamp.tv_sec = ts.bt_sec;
sys/net/bpf.c
2546
hdr32_old.bh_tstamp.tv_usec = ts.bt_frac;
sys/net/bpf.c
2558
hdr_old.bh_tstamp.tv_sec = ts.bt_sec;
sys/net/bpf.c
2559
hdr_old.bh_tstamp.tv_usec = ts.bt_frac;
sys/net/netmap.h
302
struct timeval ts; /* (k) time of last *sync() */
sys/net/netmap_user.h
1141
d->hdr.ts = ring->ts;
sys/net/netmap_user.h
1166
hdr->ts = ring->ts;
sys/net/netmap_user.h
245
struct timeval ts;
sys/net80211/ieee80211_ddb.c
362
_db_show_tdma(const char *sep, const struct ieee80211_tdma_state *ts, int showprocs)
sys/net80211/ieee80211_ddb.c
364
db_printf("%stdma %p:\n", sep, ts);
sys/net80211/ieee80211_ddb.c
366
ts->tdma_version, ts->tdma_slot, ts->tdma_bintval, ts->tdma_peer);
sys/net80211/ieee80211_ddb.c
368
ts->tdma_slotlen, ts->tdma_slotcnt);
sys/net80211/ieee80211_ddb.c
370
ts->tdma_inuse[0], ts->tdma_active[0], ts->tdma_count);
sys/net80211/ieee80211_ddb.c
372
DB_PRINTSYM(sep, " tdma_newstate", ts->tdma_newstate);
sys/net80211/ieee80211_ddb.c
373
DB_PRINTSYM(sep, " tdma_recv_mgmt", ts->tdma_recv_mgmt);
sys/net80211/ieee80211_ddb.c
374
DB_PRINTSYM(sep, " tdma_opdetach", ts->tdma_opdetach);
sys/net80211/ieee80211_scan_sta.c
1056
const struct ieee80211_tdma_state *ts = vap->iv_tdma;
sys/net80211/ieee80211_scan_sta.c
1060
else if (tdma->tdma_version != ts->tdma_version)
sys/net80211/ieee80211_tdma.c
147
struct ieee80211_tdma_state *ts;
sys/net80211/ieee80211_tdma.c
152
ts = (struct ieee80211_tdma_state *) IEEE80211_MALLOC(
sys/net80211/ieee80211_tdma.c
155
if (ts == NULL) {
sys/net80211/ieee80211_tdma.c
163
ts->tdma_version = TDMA_VERSION;
sys/net80211/ieee80211_tdma.c
164
ts->tdma_slotlen = TDMA_SLOTLEN_DEFAULT;
sys/net80211/ieee80211_tdma.c
165
ts->tdma_slotcnt = TDMA_SLOTCNT_DEFAULT;
sys/net80211/ieee80211_tdma.c
166
ts->tdma_bintval = TDMA_BINTVAL_DEFAULT;
sys/net80211/ieee80211_tdma.c
167
ts->tdma_slot = 1; /* passive operation */
sys/net80211/ieee80211_tdma.c
185
ts->tdma_opdetach = vap->iv_opdetach;
sys/net80211/ieee80211_tdma.c
187
ts->tdma_newstate = vap->iv_newstate;
sys/net80211/ieee80211_tdma.c
190
ts->tdma_recv_mgmt = vap->iv_recv_mgmt;
sys/net80211/ieee80211_tdma.c
193
vap->iv_tdma = ts;
sys/net80211/ieee80211_tdma.c
199
struct ieee80211_tdma_state *ts = vap->iv_tdma;
sys/net80211/ieee80211_tdma.c
201
if (ts == NULL) {
sys/net80211/ieee80211_tdma.c
205
ts->tdma_opdetach(vap);
sys/net80211/ieee80211_tdma.c
227
struct ieee80211_tdma_state *ts = vap->iv_tdma;
sys/net80211/ieee80211_tdma.c
243
ts->tdma_slot != 0) {
sys/net80211/ieee80211_tdma.c
267
status = ts->tdma_newstate(vap, nstate, arg);
sys/net80211/ieee80211_tdma.c
272
ts->tdma_slot != 0 &&
sys/net80211/ieee80211_tdma.c
282
2 * vap->iv_bmissthreshold * ts->tdma_bintval *
sys/net80211/ieee80211_tdma.c
283
((ts->tdma_slotcnt * ts->tdma_slotlen) / 1024));
sys/net80211/ieee80211_tdma.c
294
struct ieee80211_tdma_state *ts = vap->iv_tdma;
sys/net80211/ieee80211_tdma.c
309
if (ts->tdma_peer != NULL) { /* XXX? can this be null? */
sys/net80211/ieee80211_tdma.c
311
ts->tdma_peer = NULL;
sys/net80211/ieee80211_tdma.c
321
ts->tdma_inuse = 0; /* clear slot usage */
sys/net80211/ieee80211_tdma.c
332
struct ieee80211_tdma_state *ts = vap->iv_tdma;
sys/net80211/ieee80211_tdma.c
399
ts->tdma_recv_mgmt(ni, m0, subtype, rxs, rssi, nf);
sys/net80211/ieee80211_tdma.c
413
struct ieee80211_tdma_state *ts = vap->iv_tdma;
sys/net80211/ieee80211_tdma.c
420
if (tdma->tdma_slotcnt != ts->tdma_slotcnt) {
sys/net80211/ieee80211_tdma.c
422
if (ppsratecheck(&ts->tdma_lastprint, &ts->tdma_fails, 1))
sys/net80211/ieee80211_tdma.c
431
if (slotlen != ts->tdma_slotlen) {
sys/net80211/ieee80211_tdma.c
433
if (ppsratecheck(&ts->tdma_lastprint, &ts->tdma_fails, 1))
sys/net80211/ieee80211_tdma.c
440
if (tdma->tdma_bintval != ts->tdma_bintval) {
sys/net80211/ieee80211_tdma.c
442
if (ppsratecheck(&ts->tdma_lastprint, &ts->tdma_fails, 1))
sys/net80211/ieee80211_tdma.c
450
slot = ts->tdma_slot;
sys/net80211/ieee80211_tdma.c
466
if (slot != ts->tdma_slot)
sys/net80211/ieee80211_tdma.c
469
if (ni != ts->tdma_peer) {
sys/net80211/ieee80211_tdma.c
483
ts->tdma_slotcnt = tdma->tdma_slotcnt;
sys/net80211/ieee80211_tdma.c
485
ts->tdma_slotlen = slotlen;
sys/net80211/ieee80211_tdma.c
487
ts->tdma_slot = slot;
sys/net80211/ieee80211_tdma.c
489
ts->tdma_bintval = tdma->tdma_bintval;
sys/net80211/ieee80211_tdma.c
495
__func__, ts->tdma_slot, ts->tdma_slotcnt,
sys/net80211/ieee80211_tdma.c
496
ts->tdma_slotlen, ts->tdma_bintval);
sys/net80211/ieee80211_tdma.c
510
if (ts->tdma_peer != ni) {
sys/net80211/ieee80211_tdma.c
511
if (ts->tdma_peer != NULL)
sys/net80211/ieee80211_tdma.c
515
ts->tdma_peer = ni;
sys/net80211/ieee80211_tdma.c
528
struct ieee80211_tdma_state *ts = vap->iv_tdma;
sys/net80211/ieee80211_tdma.c
542
if (tdma->tdma_version != ts->tdma_version) {
sys/net80211/ieee80211_tdma.c
546
tdma->tdma_version, ts->tdma_version);
sys/net80211/ieee80211_tdma.c
566
if (tdma->tdma_slot != ts->tdma_slot &&
sys/net80211/ieee80211_tdma.c
567
isclr(ts->tdma_inuse, tdma->tdma_slot)) {
sys/net80211/ieee80211_tdma.c
570
setbit(ts->tdma_inuse, tdma->tdma_slot);
sys/net80211/ieee80211_tdma.c
572
if (ts->tdma_slot == 0)
sys/net80211/ieee80211_tdma.c
575
setbit(ts->tdma_active, tdma->tdma_slot);
sys/net80211/ieee80211_tdma.c
576
if (tdma->tdma_slot == ts->tdma_slot-1) {
sys/net80211/ieee80211_tdma.c
588
} else if (tdma->tdma_slot == ts->tdma_slot+1) {
sys/net80211/ieee80211_tdma.c
610
} else if (tdma->tdma_slot == ts->tdma_slot &&
sys/net80211/ieee80211_tdma.c
623
setbit(ts->tdma_inuse, tdma->tdma_slot);
sys/net80211/ieee80211_tdma.c
634
struct ieee80211_tdma_state *ts = vap->iv_tdma;
sys/net80211/ieee80211_tdma.c
638
return ts->tdma_slot;
sys/net80211/ieee80211_tdma.c
652
struct ieee80211_tdma_state *ts = vap->iv_tdma;
sys/net80211/ieee80211_tdma.c
657
setbit(ts->tdma_inuse, tdma->tdma_slot);
sys/net80211/ieee80211_tdma.c
691
const struct ieee80211_tdma_state *ts = vap->iv_tdma;
sys/net80211/ieee80211_tdma.c
699
*frm++ = ts->tdma_slot;
sys/net80211/ieee80211_tdma.c
700
*frm++ = ts->tdma_slotcnt;
sys/net80211/ieee80211_tdma.c
702
slotlen = ts->tdma_slotlen / 100; /* 100us units */
sys/net80211/ieee80211_tdma.c
704
*frm++ = ts->tdma_bintval;
sys/net80211/ieee80211_tdma.c
705
*frm++ = ts->tdma_inuse[0];
sys/net80211/ieee80211_tdma.c
719
struct ieee80211_tdma_state *ts = vap->iv_tdma;
sys/net80211/ieee80211_tdma.c
728
if (ts->tdma_slot != 0) /* only on master */
sys/net80211/ieee80211_tdma.c
730
if (ts->tdma_count <= 0) {
sys/net80211/ieee80211_tdma.c
738
ts->tdma_inuse[0] = ts->tdma_active[0];
sys/net80211/ieee80211_tdma.c
739
ts->tdma_active[0] = 0x01;
sys/net80211/ieee80211_tdma.c
744
ts->tdma_count = vap->iv_bmissthreshold-1;
sys/net80211/ieee80211_tdma.c
746
ts->tdma_count--;
sys/net80211/ieee80211_tdma.c
752
struct ieee80211_tdma_state *ts = vap->iv_tdma;
sys/net80211/ieee80211_tdma.c
759
ireq->i_val = ts->tdma_slot;
sys/net80211/ieee80211_tdma.c
762
ireq->i_val = ts->tdma_slotcnt;
sys/net80211/ieee80211_tdma.c
765
ireq->i_val = ts->tdma_slotlen;
sys/net80211/ieee80211_tdma.c
768
ireq->i_val = ts->tdma_bintval;
sys/net80211/ieee80211_tdma.c
780
struct ieee80211_tdma_state *ts = vap->iv_tdma;
sys/net80211/ieee80211_tdma.c
787
if (!(0 <= ireq->i_val && ireq->i_val <= ts->tdma_slotcnt))
sys/net80211/ieee80211_tdma.c
789
if (ireq->i_val != ts->tdma_slot) {
sys/net80211/ieee80211_tdma.c
790
ts->tdma_slot = ireq->i_val;
sys/net80211/ieee80211_tdma.c
797
if (ireq->i_val != ts->tdma_slotcnt) {
sys/net80211/ieee80211_tdma.c
798
ts->tdma_slotcnt = ireq->i_val;
sys/net80211/ieee80211_tdma.c
811
if (ireq->i_val != ts->tdma_slotlen) {
sys/net80211/ieee80211_tdma.c
812
ts->tdma_slotlen = ireq->i_val;
sys/net80211/ieee80211_tdma.c
819
if (ireq->i_val != ts->tdma_bintval) {
sys/net80211/ieee80211_tdma.c
820
ts->tdma_bintval = ireq->i_val;
sys/netgraph/netflow/netflow.c
1017
struct timespec ts;
sys/netgraph/netflow/netflow.c
1026
getnanotime(&ts);
sys/netgraph/netflow/netflow.c
1027
header->unix_secs = htonl(ts.tv_sec);
sys/netgraph/netflow/netflow.c
1028
header->unix_nsecs = htonl(ts.tv_nsec);
sys/netgraph/netflow/netflow_v9.c
202
struct timespec ts;
sys/netgraph/netflow/netflow_v9.c
218
getnanotime(&ts);
sys/netgraph/netflow/netflow_v9.c
219
header->unix_secs = htonl(ts.tv_sec);
sys/netgraph/ng_source.c
880
struct ng_source_embed_info *ts;
sys/netgraph/ng_source.c
919
ts = &sc->embed_timestamp;
sys/netgraph/ng_source.c
920
if (ts->flags & NGM_SOURCE_EMBED_ENABLE) {
sys/netgraph/ng_source.c
925
ng_source_packet_mod(sc, m, ts->offset, sizeof (now),
sys/netgraph/ng_source.c
926
(caddr_t)&now, ts->flags);
sys/netinet/ip_input.c
1193
struct timespec ts, ts1;
sys/netinet/ip_input.c
1197
mbuf_tstmp2timespec(m, &ts);
sys/netinet/ip_input.c
1200
timespecadd(&ts, &ts1, &ts);
sys/netinet/ip_input.c
1202
nanotime(&ts);
sys/netinet/ip_input.c
1204
*mp = sbcreatecontrol(&ts, sizeof(ts), SCM_REALTIME,
sys/netinet/ip_input.c
1211
struct timespec ts;
sys/netinet/ip_input.c
1215
mbuf_tstmp2timespec(m, &ts);
sys/netinet/ip_input.c
1217
nanouptime(&ts);
sys/netinet/ip_input.c
1218
*mp = sbcreatecontrol(&ts, sizeof(ts), SCM_MONOTONIC,
sys/netinet/sctp_output.c
12465
(void)SCTP_GETTIME_TIMEVAL(&sp->ts);
sys/netinet/sctp_output.c
6353
sp->ts.tv_sec = sp->timetolive;
sys/netinet/sctp_output.c
6354
sp->ts.tv_usec = 0;
sys/netinet/sctp_output.c
6360
(void)SCTP_GETTIME_TIMEVAL(&sp->ts);
sys/netinet/sctp_output.c
6367
timevaladd(&sp->ts, &tv);
sys/netinet/sctp_output.c
6375
sp->ts.tv_sec = sp->timetolive;
sys/netinet/sctp_output.c
6376
sp->ts.tv_usec = 0;
sys/netinet/sctp_output.c
6454
(void)SCTP_GETTIME_TIMEVAL(&sp->ts);
sys/netinet/sctp_output.c
7573
chk->rec.data.timetodrop = sp->ts;
sys/netinet/sctp_structs.h
530
struct timeval ts;
sys/netinet/tcp_stacks/bbr.c
11318
struct timespec ts;
sys/netinet/tcp_stacks/bbr.c
11320
mbuf_tstmp2timespec(m, &ts);
sys/netinet/tcp_stacks/bbr.c
11321
bbr->rc_tv.tv_sec = ts.tv_sec;
sys/netinet/tcp_stacks/bbr.c
11322
bbr->rc_tv.tv_usec = ts.tv_nsec / 1000;
sys/netinet/tcp_stacks/bbr.c
11326
struct timespec ts;
sys/netinet/tcp_stacks/bbr.c
11328
mbuf_tstmp2timespec(m, &ts);
sys/netinet/tcp_stacks/bbr.c
11329
bbr->rc_tv.tv_sec = ts.tv_sec;
sys/netinet/tcp_stacks/bbr.c
11330
bbr->rc_tv.tv_usec = ts.tv_nsec / 1000;
sys/netinet/tcp_stacks/bbr.c
2233
struct timespec ts;
sys/netinet/tcp_stacks/bbr.c
2237
mbuf_tstmp2timespec(m, &ts);
sys/netinet/tcp_stacks/bbr.c
2238
tv.tv_sec = ts.tv_sec;
sys/netinet/tcp_stacks/bbr.c
2239
tv.tv_usec = ts.tv_nsec / 1000;
sys/netinet/tcp_stacks/bbr.c
7323
uint32_t ts, now, rtt;
sys/netinet/tcp_stacks/bbr.c
7325
ts = bbr_ts_convert(to->to_tsecr);
sys/netinet/tcp_stacks/bbr.c
7327
rtt = now - ts;
sys/netinet/tcp_stacks/rack.c
10073
uint64_t ts;
sys/netinet/tcp_stacks/rack.c
10110
if ((ts = rsm->r_tim_lastsent[(rsm->r_rtr_cnt-1)]) <=
sys/netinet/tcp_stacks/rack.c
10114
rack->r_ctl.rc_gp_cumack_ts = ts;
sys/netinet/tcp_stacks/rack.c
10115
rack_log_gpset(rack, tp->gput_ack, (uint32_t)ts, rsm->r_end,
sys/netinet/tcp_stacks/rack.c
15218
struct timespec ts;
sys/netinet/tcp_stacks/rack.c
15252
ts.tv_sec = ae->timestamp / 1000000000;
sys/netinet/tcp_stacks/rack.c
15253
ts.tv_nsec = ae->timestamp % 1000000000;
sys/netinet/tcp_stacks/rack.c
15254
ltv.tv_sec = ts.tv_sec;
sys/netinet/tcp_stacks/rack.c
15255
ltv.tv_usec = ts.tv_nsec / 1000;
sys/netinet/tcp_stacks/rack.c
15260
ts.tv_sec = ae->timestamp / 1000000000;
sys/netinet/tcp_stacks/rack.c
15261
ts.tv_nsec = ae->timestamp % 1000000000;
sys/netinet/tcp_stacks/rack.c
15262
ltv.tv_sec = ts.tv_sec;
sys/netinet/tcp_stacks/rack.c
15263
ltv.tv_usec = ts.tv_nsec / 1000;
sys/netinet/tcp_stacks/rack.c
15560
struct timespec ts;
sys/netinet/tcp_stacks/rack.c
15747
ts.tv_sec = ae->timestamp / 1000000000;
sys/netinet/tcp_stacks/rack.c
15748
ts.tv_nsec = ae->timestamp % 1000000000;
sys/netinet/tcp_stacks/rack.c
15749
rack->r_ctl.act_rcv_time.tv_sec = ts.tv_sec;
sys/netinet/tcp_stacks/rack.c
15750
rack->r_ctl.act_rcv_time.tv_usec = ts.tv_nsec/1000;
sys/netinet/tcp_stacks/rack.c
15795
ts.tv_sec = ae->timestamp / 1000000000;
sys/netinet/tcp_stacks/rack.c
15796
ts.tv_nsec = ae->timestamp % 1000000000;
sys/netinet/tcp_stacks/rack.c
15797
rack->r_ctl.act_rcv_time.tv_sec = ts.tv_sec;
sys/netinet/tcp_stacks/rack.c
15798
rack->r_ctl.act_rcv_time.tv_usec = ts.tv_nsec/1000;
sys/netinet/tcp_stacks/rack.c
16236
struct timespec ts;
sys/netinet/tcp_stacks/rack.c
16350
mbuf_tstmp2timespec(m, &ts);
sys/netinet/tcp_stacks/rack.c
16351
rack->r_ctl.act_rcv_time.tv_sec = ts.tv_sec;
sys/netinet/tcp_stacks/rack.c
16352
rack->r_ctl.act_rcv_time.tv_usec = ts.tv_nsec/1000;
sys/netinet/tcp_stacks/rack.c
16465
mbuf_tstmp2timespec(m, &ts);
sys/netinet/tcp_stacks/rack.c
16466
ltv.tv_sec = ts.tv_sec;
sys/netinet/tcp_stacks/rack.c
16467
ltv.tv_usec = ts.tv_nsec / 1000;
sys/netinet/tcp_stacks/rack.c
16471
mbuf_tstmp2timespec(m, &ts);
sys/netinet/tcp_stacks/rack.c
16472
ltv.tv_sec = ts.tv_sec;
sys/netinet/tcp_stacks/rack.c
16473
ltv.tv_usec = ts.tv_nsec / 1000;
sys/netinet/tcp_stacks/rack.c
493
uint32_t seq_out, uint16_t th_flags, int32_t err, uint64_t ts,
sys/netinet/tcp_stacks/rack.c
517
struct rack_sendmap *rsm, uint64_t ts, int32_t * lenp, uint32_t add_flag, int segsiz);
sys/netinet/tcp_stacks/rack.c
520
struct rack_sendmap *rsm, uint64_t ts, uint32_t add_flag, int segsiz);
sys/netinet/tcp_stacks/rack.c
7988
struct rack_sendmap *rsm, uint64_t ts, uint32_t add_flag, int segsiz)
sys/netinet/tcp_stacks/rack.c
8014
rsm->r_tim_lastsent[idx] = ts;
sys/netinet/tcp_stacks/rack.c
8061
struct rack_sendmap *rsm, uint64_t ts, int32_t *lenp, uint32_t add_flag, int segsiz)
sys/netinet/tcp_stacks/rack.c
8079
rack_update_rsm(tp, rack, rsm, ts, add_flag, segsiz);
sys/netinet/tcp_stacks/rack.c
8128
rack_update_rsm(tp, rack, rsm, ts, add_flag, segsiz);
sys/netinet/tcp_stacks/rack.c
9036
uint32_t seq, ts;
sys/netinet/tcp_stacks/rack.c
9052
ts = tp->gput_ts;
sys/netinet/tcp_stacks/rack.c
9135
rack_log_pacing_delay_calc(rack, ts, tp->gput_ts,
sys/netinet/tcp_stacks/tcp_rack.h
120
rack_ts_to_msec(uint64_t ts)
sys/netinet/tcp_stacks/tcp_rack.h
122
return((uint32_t)(ts / HPTS_MSEC_IN_SEC));
sys/netinet/tcp_subr.c
4724
tcp_req_check_for_stale_entries(struct tcpcb *tp, uint64_t ts, int rm_oldest)
sys/netinet/tcp_subr.c
4741
if (ts >= ent->localtime)
sys/netinet/tcp_subr.c
4742
time_delta = ts - ent->localtime;
sys/netinet/tcp_subr.c
4889
tcp_req_alloc_req_full(struct tcpcb *tp, struct tcp_snd_req *req, uint64_t ts, int rec_dups)
sys/netinet/tcp_subr.c
4906
tcp_req_check_for_stale_entries(tp, ts,
sys/netinet/tcp_subr.c
4945
fil->localtime = ts;
sys/netinet/tcp_subr.c
4988
tcp_req_alloc_req(struct tcpcb *tp, union tcp_log_userdata *user, uint64_t ts)
sys/netinet/tcp_subr.c
4990
(void)tcp_req_alloc_req_full(tp, &user->tcp_req, ts, 1);
sys/netinet/tcp_var.h
1581
uint64_t ts);
sys/netinet/tcp_var.h
1584
tcp_req_alloc_req_full(struct tcpcb *tp, struct tcp_snd_req *req, uint64_t ts, int rec_dups);
sys/netinet6/ip6_input.c
1121
struct timespec ts;
sys/netinet6/ip6_input.c
1188
mbuf_tstmp2timespec(m, &t.ts);
sys/netinet6/ip6_input.c
1191
timespecadd(&t.ts, &ts1, &t.ts);
sys/netinet6/ip6_input.c
1193
nanotime(&t.ts);
sys/netinet6/ip6_input.c
1195
*mp = sbcreatecontrol(&t.ts, sizeof(t.ts),
sys/netinet6/ip6_input.c
1206
mbuf_tstmp2timespec(m, &t.ts);
sys/netinet6/ip6_input.c
1208
nanouptime(&t.ts);
sys/netinet6/ip6_input.c
1209
*mp = sbcreatecontrol(&t.ts, sizeof(t.ts),
sys/netipsec/key.c
1000
if (__predict_false(sp->lastused != ts))
sys/netipsec/key.c
1001
sp->lastused = ts;
sys/netipsec/key.c
946
time_t ts;
sys/netipsec/key.c
999
ts = time_second;
sys/netpfil/ipfw/dn_sched_qfq.c
257
static inline uint64_t qfq_round_down(uint64_t ts, unsigned int shift)
sys/netpfil/ipfw/dn_sched_qfq.c
259
return ts & ~((1ULL << shift) - 1);
sys/netpfil/ipfw/nat64/nat64lsn.c
1400
struct nat64lsn_state *state, *ts;
sys/netpfil/ipfw/nat64/nat64lsn.c
1407
entries, ts) {
sys/netpfil/ipfw/nat64/nat64lsn.c
1612
uint16_t ts;
sys/netpfil/ipfw/nat64/nat64lsn.c
1615
SET_AGE(ts);
sys/netpfil/ipfw/nat64/nat64lsn.c
1616
if (state->timestamp != ts)
sys/netpfil/ipfw/nat64/nat64lsn.c
1617
state->timestamp = ts;
sys/netpfil/ipfw/nat64/nat64lsn.c
609
uint16_t port, ts;
sys/netpfil/ipfw/nat64/nat64lsn.c
668
SET_AGE(ts);
sys/netpfil/ipfw/nat64/nat64lsn.c
673
if (state->timestamp != ts)
sys/netpfil/ipfw/nat64/nat64lsn.c
674
state->timestamp = ts;
sys/netpfil/pf/pf.c
6111
struct timespec ts;
sys/netpfil/pf/pf.c
6112
getnanouptime(&ts);
sys/netpfil/pf/pf.c
6113
uint64_t diff = SEC_TO_NSEC(ts.tv_sec) +
sys/netpfil/pf/pf.c
6114
ts.tv_nsec - stlim->pfstlim_rate_ts;
sys/netpfil/pf/pf.c
6134
SEC_TO_NSEC(ts.tv_sec) + ts.tv_nsec -
sys/netpfil/pf/pf.c
6181
struct timespec ts;
sys/netpfil/pf/pf.c
6182
getnanouptime(&ts);
sys/netpfil/pf/pf.c
6183
uint64_t diff = SEC_TO_NSEC(ts.tv_sec) +
sys/netpfil/pf/pf.c
6184
ts.tv_nsec - sr->pfsr_rate_ts;
sys/netpfil/pf/pf.c
6206
SEC_TO_NSEC(ts.tv_sec) + ts.tv_nsec -
sys/netpfil/pf/pf_ioctl.c
1736
struct timespec ts;
sys/netpfil/pf/pf_ioctl.c
1738
getnanouptime(&ts);
sys/netpfil/pf/pf_ioctl.c
1740
pfstlim->pfstlim_rate_ts = SEC_TO_NSEC(ts.tv_sec) + ts.tv_nsec -
sys/netpfil/pf/pf_ioctl.c
636
pf_init_tagset(struct pf_tagset *ts, unsigned int *tunable_size,
sys/netpfil/pf/pf_ioctl.c
646
ts->namehash = mallocarray(hashsize, sizeof(*ts->namehash), M_PFHASH,
sys/netpfil/pf/pf_ioctl.c
648
ts->taghash = mallocarray(hashsize, sizeof(*ts->taghash), M_PFHASH,
sys/netpfil/pf/pf_ioctl.c
650
ts->mask = hashsize - 1;
sys/netpfil/pf/pf_ioctl.c
651
ts->seed = arc4random();
sys/netpfil/pf/pf_ioctl.c
653
TAILQ_INIT(&ts->namehash[i]);
sys/netpfil/pf/pf_ioctl.c
654
TAILQ_INIT(&ts->taghash[i]);
sys/netpfil/pf/pf_ioctl.c
656
BIT_FILL(TAGID_MAX, &ts->avail);
sys/netpfil/pf/pf_ioctl.c
660
pf_cleanup_tagset(struct pf_tagset *ts)
sys/netpfil/pf/pf_ioctl.c
670
hashsize = ts->mask + 1;
sys/netpfil/pf/pf_ioctl.c
672
TAILQ_FOREACH_SAFE(t, &ts->namehash[i], namehash_entries, tmp)
sys/netpfil/pf/pf_ioctl.c
675
free(ts->namehash, M_PFHASH);
sys/netpfil/pf/pf_ioctl.c
676
free(ts->taghash, M_PFHASH);
sys/netpfil/pf/pf_ioctl.c
680
tagname2hashindex(const struct pf_tagset *ts, const char *tagname)
sys/netpfil/pf/pf_ioctl.c
685
return (murmur3_32_hash(tagname, len, ts->seed) & ts->mask);
sys/netpfil/pf/pf_ioctl.c
689
tag2hashindex(const struct pf_tagset *ts, uint16_t tag)
sys/netpfil/pf/pf_ioctl.c
692
return (tag & ts->mask);
sys/netpfil/pf/pf_ioctl.c
696
tagname2tag(struct pf_tagset *ts, const char *tagname, bool add_new)
sys/netpfil/pf/pf_ioctl.c
706
index = tagname2hashindex(ts, tagname);
sys/netpfil/pf/pf_ioctl.c
707
TAILQ_FOREACH(tag, &ts->namehash[index], namehash_entries)
sys/netpfil/pf/pf_ioctl.c
734
TAILQ_FOREACH(tag, &ts->namehash[index], namehash_entries)
sys/netpfil/pf/pf_ioctl.c
748
new_tagid = BIT_FFS(TAGID_MAX, &ts->avail);
sys/netpfil/pf/pf_ioctl.c
762
BIT_CLR(TAGID_MAX, new_tagid - 1, &ts->avail);
sys/netpfil/pf/pf_ioctl.c
775
TAILQ_INSERT_TAIL(&ts->namehash[index], tag, namehash_entries);
sys/netpfil/pf/pf_ioctl.c
778
index = tag2hashindex(ts, new_tagid);
sys/netpfil/pf/pf_ioctl.c
779
TAILQ_INSERT_TAIL(&ts->taghash[index], tag, taghash_entries);
sys/netpfil/pf/pf_ioctl.c
786
tag2tagname(struct pf_tagset *ts, u_int16_t tag)
sys/netpfil/pf/pf_ioctl.c
795
index = tag2hashindex(ts, tag);
sys/netpfil/pf/pf_ioctl.c
796
TAILQ_FOREACH(t, &ts->taghash[index], taghash_entries)
sys/netpfil/pf/pf_ioctl.c
807
tag_unref(struct pf_tagset *ts, u_int16_t tag)
sys/netpfil/pf/pf_ioctl.c
814
index = tag2hashindex(ts, tag);
sys/netpfil/pf/pf_ioctl.c
815
TAILQ_FOREACH(t, &ts->taghash[index], taghash_entries)
sys/netpfil/pf/pf_ioctl.c
818
TAILQ_REMOVE(&ts->taghash[index], t,
sys/netpfil/pf/pf_ioctl.c
820
index = tagname2hashindex(ts, t->name);
sys/netpfil/pf/pf_ioctl.c
821
TAILQ_REMOVE(&ts->namehash[index], t,
sys/netpfil/pf/pf_ioctl.c
824
BIT_SET(TAGID_MAX, tag - 1, &ts->avail);
sys/netpfil/pf/pf_norm.c
1673
uint8_t *ts = opt + 2;
sys/netpfil/pf/pf_norm.c
1687
memcpy(&tsval, ts, sizeof(u_int32_t));
sys/netpfil/pf/pf_norm.c
1696
ts, htonl(tsval + src->scrub->pfss_ts_mod),
sys/netpfil/pf/pf_norm.c
1697
PF_ALGNMNT(ts - opts));
sys/netpfil/pf/pf_osfp.c
174
u_int32_t ts;
sys/netpfil/pf/pf_osfp.c
175
memcpy(&ts, &optp[2], sizeof(ts));
sys/netpfil/pf/pf_osfp.c
176
if (ts == 0)
sys/netsmb/smb_iod.c
530
struct timespec ts, tstimeout;
sys/netsmb/smb_iod.c
554
getnanotime(&ts);
sys/netsmb/smb_iod.c
555
timespecsub(&ts, &tstimeout, &ts);
sys/netsmb/smb_iod.c
556
if (timespeccmp(&ts, &rqp->sr_timesent, >)) {
sys/powerpc/booke/pmap.c
2777
uint32_t ts, tid;
sys/powerpc/booke/pmap.c
2796
ts = (0 << MAS1_TS_SHIFT) & MAS1_TS_MASK;
sys/powerpc/booke/pmap.c
2801
e.mas1 = MAS1_VALID | MAS1_IPROT | ts | tid;
sys/powerpc/mpc85xx/ds1553_bus_fdt.c
118
ds1553_gettime(dev, &ts);
sys/powerpc/mpc85xx/ds1553_bus_fdt.c
120
(long)ts.tv_sec, ts.tv_nsec);
sys/powerpc/mpc85xx/ds1553_bus_fdt.c
88
struct timespec ts;
sys/powerpc/mpc85xx/ds1553_core.c
123
return (clock_ct_to_ts(&ct, ts));
sys/powerpc/mpc85xx/ds1553_core.c
131
ds1553_settime(device_t dev, struct timespec *ts)
sys/powerpc/mpc85xx/ds1553_core.c
141
if (ts->tv_nsec >= 500000000)
sys/powerpc/mpc85xx/ds1553_core.c
142
ts->tv_sec++;
sys/powerpc/mpc85xx/ds1553_core.c
143
ts->tv_nsec = 0;
sys/powerpc/mpc85xx/ds1553_core.c
144
clock_ts_to_ct(ts, &ct);
sys/powerpc/mpc85xx/ds1553_core.c
88
ds1553_gettime(device_t dev, struct timespec *ts)
sys/powerpc/powermac/cuda.c
773
cuda_gettime(device_t dev, struct timespec *ts)
sys/powerpc/powermac/cuda.c
784
ts->tv_sec = sc->sc_rtc - DIFF19041970;
sys/powerpc/powermac/cuda.c
785
ts->tv_nsec = 0;
sys/powerpc/powermac/cuda.c
792
cuda_settime(device_t dev, struct timespec *ts)
sys/powerpc/powermac/cuda.c
798
sec = ts->tv_sec + DIFF19041970;
sys/powerpc/powermac/cuda.c
83
static int cuda_gettime(device_t dev, struct timespec *ts);
sys/powerpc/powermac/cuda.c
84
static int cuda_settime(device_t dev, struct timespec *ts);
sys/powerpc/powermac/pmu.c
1089
pmu_gettime(device_t dev, struct timespec *ts)
sys/powerpc/powermac/pmu.c
1100
ts->tv_sec = sec - DIFF19041970;
sys/powerpc/powermac/pmu.c
1101
ts->tv_nsec = 0;
sys/powerpc/powermac/pmu.c
1107
pmu_settime(device_t dev, struct timespec *ts)
sys/powerpc/powermac/pmu.c
1112
sec = ts->tv_sec + DIFF19041970;
sys/powerpc/powermac/pmu.c
86
static int pmu_gettime(device_t dev, struct timespec *ts);
sys/powerpc/powermac/pmu.c
87
static int pmu_settime(device_t dev, struct timespec *ts);
sys/powerpc/powermac/smu.c
1335
smu_gettime(device_t dev, struct timespec *ts)
sys/powerpc/powermac/smu.c
1356
return (clock_ct_to_ts(&ct, ts));
sys/powerpc/powermac/smu.c
1360
smu_settime(device_t dev, struct timespec *ts)
sys/powerpc/powermac/smu.c
1369
clock_ts_to_ct(ts, &ct);
sys/powerpc/powermac/smu.c
167
static int smu_gettime(device_t dev, struct timespec *ts);
sys/powerpc/powermac/smu.c
168
static int smu_settime(device_t dev, struct timespec *ts);
sys/powerpc/powernv/opal_dev.c
268
opal_gettime(device_t dev, struct timespec *ts)
sys/powerpc/powernv/opal_dev.c
297
return (clock_ct_to_ts(&ct, ts));
sys/powerpc/powernv/opal_dev.c
301
opal_settime(device_t dev, struct timespec *ts)
sys/powerpc/powernv/opal_dev.c
308
clock_ts_to_ct(ts, &ct);
sys/powerpc/powernv/opal_dev.c
54
static int opal_gettime(device_t dev, struct timespec *ts);
sys/powerpc/powernv/opal_dev.c
55
static int opal_settime(device_t dev, struct timespec *ts);
sys/powerpc/ps3/ps3bus.c
75
static int ps3_gettime(device_t dev, struct timespec *ts);
sys/powerpc/ps3/ps3bus.c
76
static int ps3_settime(device_t dev, struct timespec *ts);
sys/powerpc/ps3/ps3bus.c
762
ps3_gettime(device_t dev, struct timespec *ts)
sys/powerpc/ps3/ps3bus.c
771
ts->tv_sec = rtc + Y2K;
sys/powerpc/ps3/ps3bus.c
772
ts->tv_nsec = 0;
sys/powerpc/ps3/ps3bus.c
777
ps3_settime(device_t dev, struct timespec *ts)
sys/powerpc/pseries/rtas_dev.c
103
rtas_gettime(device_t dev, struct timespec *ts) {
sys/powerpc/pseries/rtas_dev.c
127
return (clock_ct_to_ts(&ct, ts));
sys/powerpc/pseries/rtas_dev.c
131
rtas_settime(device_t dev, struct timespec *ts)
sys/powerpc/pseries/rtas_dev.c
141
clock_ts_to_ct(ts, &ct);
sys/powerpc/pseries/rtas_dev.c
51
static int rtas_gettime(device_t dev, struct timespec *ts);
sys/powerpc/pseries/rtas_dev.c
52
static int rtas_settime(device_t dev, struct timespec *ts);
sys/riscv/sifive/fe310_aon.c
179
feaon_rtc_settime(device_t dev, struct timespec *ts)
sys/riscv/sifive/fe310_aon.c
191
clock_dbgprint_ts(dev, CLOCK_DBG_WRITE, ts);
sys/riscv/sifive/fe310_aon.c
193
time = ts->tv_sec * FEAON_RTC_TIMEBASE_FREQ;
sys/riscv/sifive/fe310_aon.c
218
feaon_rtc_gettime(device_t dev, struct timespec *ts)
sys/riscv/sifive/fe310_aon.c
233
ts->tv_sec = time / FEAON_RTC_TIMEBASE_FREQ;
sys/riscv/sifive/fe310_aon.c
234
ts->tv_nsec = (time % FEAON_RTC_TIMEBASE_FREQ) *
sys/riscv/sifive/fe310_aon.c
237
clock_dbgprint_ts(dev, CLOCK_DBG_READ, ts);
sys/sys/clock.h
184
void clock_print_ts(const struct timespec *ts, int nsdig);
sys/sys/clock.h
196
void clock_dbgprint_ts(device_t dev, int rw, const struct timespec *ts);
sys/sys/mbuf.h
1827
mbuf_tstmp2timespec(struct mbuf *m, struct timespec *ts)
sys/sys/mbuf.h
1833
ts->tv_sec = m->m_pkthdr.rcv_tstmp / 1000000000;
sys/sys/mbuf.h
1834
ts->tv_nsec = m->m_pkthdr.rcv_tstmp % 1000000000;
sys/sys/syscallsubr.h
107
struct timespec *ts);
sys/sys/syscallsubr.h
332
struct timespec *ts);
sys/sys/syscallsubr.h
334
struct timespec *ts);
sys/sys/sysproto.h
1532
char ts_l_[PADL_(const struct timespec *)]; const struct timespec * ts; char ts_r_[PADR_(const struct timespec *)];
sys/sys/sysproto.h
1653
char ts_l_[PADL_(const struct timespec *)]; const struct timespec * ts; char ts_r_[PADR_(const struct timespec *)];
sys/sys/timeffc.h
157
void ffclock_reset_clock(struct timespec *ts);
sys/sys/timespec.h
39
#define TIMEVAL_TO_TIMESPEC(tv, ts) \
sys/sys/timespec.h
41
(ts)->tv_sec = (tv)->tv_sec; \
sys/sys/timespec.h
42
(ts)->tv_nsec = (tv)->tv_usec * 1000; \
sys/sys/timespec.h
44
#define TIMESPEC_TO_TIMEVAL(tv, ts) \
sys/sys/timespec.h
46
(tv)->tv_sec = (ts)->tv_sec; \
sys/sys/timespec.h
47
(tv)->tv_usec = (ts)->tv_nsec / 1000; \
sys/sys/timetc.h
89
void tc_setclock(struct timespec *ts);
sys/sys/turnstile.h
92
int turnstile_empty(struct turnstile *ts, int queue);
sys/sys/vdso.h
78
int __vdso_clock_gettime(clockid_t clock_id, struct timespec *ts);
sys/tests/ktest.c
313
struct timespec ts;
sys/tests/ktest.c
315
nanouptime(&ts);
sys/tests/ktest.c
316
nlattr_add(nw, KTEST_MSG_ATTR_TS, sizeof(ts), &ts);
sys/ufs/ffs/ffs_alloc.c
1119
struct timespec ts;
sys/ufs/ffs/ffs_alloc.c
1193
vfs_timestamp(&ts);
sys/ufs/ffs/ffs_alloc.c
1194
ip->i_din2->di_birthtime = ts.tv_sec;
sys/ufs/ffs/ffs_alloc.c
1195
ip->i_din2->di_birthnsec = ts.tv_nsec;
sys/ufs/ufs/ufs_vnops.c
149
struct timespec ts;
sys/ufs/ufs/ufs_vnops.c
167
vfs_timestamp(&ts);
sys/ufs/ufs/ufs_vnops.c
173
DIP_SET(ip, i_atime, ts.tv_sec);
sys/ufs/ufs/ufs_vnops.c
174
DIP_SET(ip, i_atimensec, ts.tv_nsec);
sys/ufs/ufs/ufs_vnops.c
178
DIP_SET(ip, i_mtime, ts.tv_sec);
sys/ufs/ufs/ufs_vnops.c
179
DIP_SET(ip, i_mtimensec, ts.tv_nsec);
sys/ufs/ufs/ufs_vnops.c
182
DIP_SET(ip, i_ctime, ts.tv_sec);
sys/ufs/ufs/ufs_vnops.c
183
DIP_SET(ip, i_ctimensec, ts.tv_nsec);
sys/x86/include/pvclock.h
136
struct timespec *ts);
sys/x86/include/pvclock.h
140
void pvclock_gettime(struct pvclock *pvc, struct timespec *ts);
sys/x86/isa/atrtc.c
562
atrtc_settime(device_t dev __unused, struct timespec *ts)
sys/x86/isa/atrtc.c
566
clock_ts_to_bcd(ts, &bct, false);
sys/x86/isa/atrtc.c
599
atrtc_gettime(device_t dev, struct timespec *ts)
sys/x86/isa/atrtc.c
635
return (clock_bcd_to_ts(&bct, ts, false));
sys/x86/x86/pvclock.c
119
pvclock_read_wall_clock(struct pvclock_wall_clock *wc, struct timespec *ts)
sys/x86/x86/pvclock.c
125
ts->tv_sec = wc->sec;
sys/x86/x86/pvclock.c
126
ts->tv_nsec = wc->nsec;
sys/x86/x86/pvclock.c
184
pvclock_get_wallclock(struct pvclock_wall_clock *wc, struct timespec *ts)
sys/x86/x86/pvclock.c
186
pvclock_read_wall_clock(wc, ts);
sys/x86/x86/pvclock.c
265
pvclock_gettime(struct pvclock *pvc, struct timespec *ts)
sys/x86/x86/pvclock.c
270
pvclock_read_wall_clock(pvc->get_wallclock(pvc->get_wallclock_arg), ts);
sys/x86/x86/pvclock.c
274
timespecadd(ts, &system_ts, ts);
sys/x86/x86/pvclock.c
63
struct timespec *ts);
tests/sys/aio/aio_kqueue_test.c
157
ts.tv_sec = 0;
tests/sys/aio/aio_kqueue_test.c
158
ts.tv_nsec = 1;
tests/sys/aio/aio_kqueue_test.c
160
&kq_returned, 1, &ts);
tests/sys/aio/aio_kqueue_test.c
61
struct timespec ts;
tests/sys/aio/aio_test.c
658
struct termios ts;
tests/sys/aio/aio_test.c
667
if (tcgetattr(write_fd, &ts) < 0) {
tests/sys/aio/aio_test.c
672
cfmakeraw(&ts);
tests/sys/aio/aio_test.c
673
if (tcsetattr(write_fd, TCSANOW, &ts) < 0) {
tests/sys/aio/lio_kqueue_test.c
153
ts.tv_sec = 0;
tests/sys/aio/lio_kqueue_test.c
154
ts.tv_nsec = 1;
tests/sys/aio/lio_kqueue_test.c
159
&kq_returned, 1, &ts);
tests/sys/aio/lio_kqueue_test.c
64
struct timespec ts;
tests/sys/capsicum/capmode.cc
244
struct timespec ts;
tests/sys/capsicum/capmode.cc
245
ts.tv_sec = 1;
tests/sys/capsicum/capmode.cc
246
ts.tv_nsec = 100;
tests/sys/capsicum/capmode.cc
247
EXPECT_FAIL_NOT_CAPMODE(recvmmsg(fd_socket, &mm, 1, MSG_DONTWAIT, &ts));
tests/sys/capsicum/capmode.cc
303
struct timespec ts;
tests/sys/capsicum/capmode.cc
304
EXPECT_OK(sched_rr_get_interval(0, &ts));
tests/sys/capsicum/capmode.cc
311
struct timespec ts;
tests/sys/capsicum/capmode.cc
312
EXPECT_OK(clock_getres(CLOCK_REALTIME, &ts));
tests/sys/capsicum/capmode.cc
313
EXPECT_OK(clock_gettime(CLOCK_REALTIME, &ts));
tests/sys/capsicum/capmode.cc
320
ts.tv_sec = 0;
tests/sys/capsicum/capmode.cc
321
ts.tv_nsec = 1;
tests/sys/capsicum/capmode.cc
322
EXPECT_OK(nanosleep(&ts, NULL));
tests/sys/capsicum/linux.cc
1271
struct timespec ts;
tests/sys/capsicum/linux.cc
1272
memset(&ts, 0, sizeof(ts));
tests/sys/capsicum/linux.cc
1277
EXPECT_OK(clock_gettime(child_clock, &ts));
tests/sys/capsicum/linux.cc
1279
self, child, child_clock, (long)ts.tv_sec, (long)ts.tv_nsec);
tests/sys/capsicum/linux.cc
1282
memset(&ts, 0, sizeof(ts));
tests/sys/capsicum/linux.cc
1283
EXPECT_OK(clock_gettime(child_clock, &ts));
tests/sys/capsicum/linux.cc
1285
self, child_clock, (long)ts.tv_sec, (long)ts.tv_nsec);
tests/sys/capsicum/mqueue.cc
74
struct timespec ts;
tests/sys/capsicum/mqueue.cc
75
ts.tv_sec = 1;
tests/sys/capsicum/mqueue.cc
76
ts.tv_nsec = 0;
tests/sys/capsicum/mqueue.cc
77
EXPECT_OK(mq_timedsend_(cap_write_mq, message, strlen(message) + 1, kPriority, &ts));
tests/sys/capsicum/mqueue.cc
78
EXPECT_NOTCAPABLE(mq_timedsend_(cap_read_mq, message, strlen(message) + 1, kPriority, &ts));
tests/sys/capsicum/mqueue.cc
90
EXPECT_NOTCAPABLE(mq_timedreceive_(cap_write_mq, buffer, mqa.mq_msgsize, &priority, &ts));
tests/sys/capsicum/mqueue.cc
91
EXPECT_OK(mq_timedreceive_(cap_read_mq, buffer, mqa.mq_msgsize, &priority, &ts));
tests/sys/capsicum/select.cc
131
struct timespec ts;
tests/sys/capsicum/select.cc
132
ts.tv_sec = 0;
tests/sys/capsicum/select.cc
133
ts.tv_nsec = 100000;
tests/sys/capsicum/select.cc
134
EXPECT_OK(ppoll(cap_fd, kCapCount + 1, &ts, NULL));
tests/sys/capsicum/select.cc
136
EXPECT_OK(ppoll(cap_fd, kCapCount + 2, &ts, NULL));
tests/sys/capsicum/select.cc
77
struct timespec ts;
tests/sys/capsicum/select.cc
78
ts.tv_sec = 0;
tests/sys/capsicum/select.cc
79
ts.tv_nsec = 100000;
tests/sys/capsicum/select.cc
84
ret = pselect(maxfd+1, &rset, &wset, NULL, &ts, NULL);
tests/sys/capsicum/select.cc
93
ret = pselect(maxfd+1, &rset, &wset, NULL, &ts, NULL);
tests/sys/file/path_test.c
110
struct timespec ts[2];
tests/sys/file/path_test.c
124
memset(ts, 0, sizeof(ts));
tests/sys/file/path_test.c
125
ATF_REQUIRE_ERRNO(EBADF, futimens(pathfd, ts) == -1);
tests/sys/file/path_test.c
397
struct timespec ts[2];
tests/sys/file/path_test.c
419
memset(ts, 0, sizeof(ts));
tests/sys/file/path_test.c
420
ATF_REQUIRE_MSG(utimensat(pathfd, "", ts, AT_EMPTY_PATH) == 0,
tests/sys/kern/listener_wakeup.c
226
struct timespec ts;
tests/sys/kern/listener_wakeup.c
263
clock_gettime(CLOCK_REALTIME, &ts);
tests/sys/kern/listener_wakeup.c
264
ts.tv_sec++;
tests/sys/kern/listener_wakeup.c
265
if ((error = pthread_timedjoin_np(tid, NULL, &ts)) != 0) {
tests/sys/kern/sigwait.c
122
struct timespec ts, timeout, now;
tests/sys/kern/sigwait.c
126
ATF_REQUIRE(clock_gettime(CLOCK_REALTIME, &ts) == 0);
tests/sys/kern/sigwait.c
129
timespecadd(&ts, &timeout, &ts);
tests/sys/kern/sigwait.c
141
ATF_REQUIRE_MSG(timespeccmp(&now, &ts, >=) == true,
tests/sys/kern/sigwait.c
144
(intmax_t)ts.tv_sec, ts.tv_nsec);
tests/sys/kern/sigwait.c
208
struct timespec ts;
tests/sys/kern/sigwait.c
213
ts = make_timespec(LONG_MAX, 0);
tests/sys/kern/sigwait.c
218
rv = sigtimedwait(&ss, NULL, &ts);
tests/sys/kern/sigwait.c
262
struct timespec ts;
tests/sys/kern/sigwait.c
267
ts = make_timespec(0, -1);
tests/sys/kern/sigwait.c
272
rv = sigtimedwait(&ss, NULL, &ts);
tests/sys/kern/sigwait.c
342
struct timespec ts;
tests/sys/kern/sigwait.c
360
ts = make_timespec(1, 0);
tests/sys/kern/sigwait.c
361
rv = sigtimedwait(&mask, NULL, &ts);
tests/sys/kern/socket_splice.c
476
struct timespec ts;
tests/sys/kern/socket_splice.c
490
memset(&ts, 0, sizeof(ts));
tests/sys/kern/socket_splice.c
491
nev = kevent(kq, NULL, 0, &kev, 1, &ts);
tests/sys/kern/socket_splice.c
502
nev = kevent(kq, NULL, 0, &kev, 1, &ts);
tests/sys/kern/timerfd.c
993
clock_settime_or_skip_test(clockid_t clockid, struct timespec const *ts)
tests/sys/kern/timerfd.c
995
int r = clock_settime(clockid, ts);
tests/sys/kern/unix_seqpacket_test.c
1323
struct timespec ts = {};
tests/sys/kern/unix_seqpacket_test.c
1332
ts.tv_nsec = nrand48(seed) % 20;
tests/sys/kern/unix_seqpacket_test.c
1333
(void)clock_nanosleep(CLOCK_MONOTONIC_FAST, 0, &ts, NULL);
tests/sys/netinet/ip_reass_test.c
123
struct timespec ts;
tests/sys/netinet/ip_reass_test.c
137
ts.tv_sec = 0;
tests/sys/netinet/ip_reass_test.c
138
ts.tv_nsec = 5000000; /* 5ms */
tests/sys/netinet/ip_reass_test.c
139
(void)nanosleep(&ts, NULL);
tests/sys/netlink/test_rtnl_route.c
228
struct timespec ts;
tests/sys/netlink/test_rtnl_route.c
279
clock_gettime(CLOCK_REALTIME_FAST, &ts);
tests/sys/netlink/test_rtnl_route.c
280
snl_add_msg_attr_u32(&nw, RTA_EXPIRES, ts.tv_sec + 1);
tests/sys/netmap/ctrl-api-test.c
2025
ckroff(ts, 40);
tools/build/cross-build/include/mac/sys/stat.h
40
utimensat(int fd, const char *file, const struct timespec *ts, int flag)
tools/regression/sockets/kqueue/kqueue.c
104
struct timespec ts;
tools/regression/sockets/kqueue/kqueue.c
118
ts.tv_sec = 0;
tools/regression/sockets/kqueue/kqueue.c
119
ts.tv_nsec = 0;
tools/regression/sockets/kqueue/kqueue.c
120
i = kevent(kq, NULL, 0, &ke, 1, &ts);
tools/regression/sockets/kqueue/kqueue.c
144
ts.tv_sec = 0;
tools/regression/sockets/kqueue/kqueue.c
145
ts.tv_nsec = 0;
tools/regression/sockets/kqueue/kqueue.c
146
i = kevent(kq, NULL, 0, &ke, 1, &ts);
tools/regression/sockets/kqueue/kqueue.c
169
ts.tv_sec = 0;
tools/regression/sockets/kqueue/kqueue.c
170
ts.tv_nsec = 0;
tools/regression/sockets/kqueue/kqueue.c
171
i = kevent(kq, NULL, 0, &ke, 1, &ts);
tools/regression/sockets/kqueue/kqueue.c
189
struct timespec ts;
tools/regression/sockets/kqueue/kqueue.c
203
ts.tv_sec = 0;
tools/regression/sockets/kqueue/kqueue.c
204
ts.tv_nsec = 0;
tools/regression/sockets/kqueue/kqueue.c
205
i = kevent(kq, NULL, 0, &ke, 1, &ts);
tools/regression/sockets/kqueue/kqueue.c
229
ts.tv_sec = 0;
tools/regression/sockets/kqueue/kqueue.c
230
ts.tv_nsec = 0;
tools/regression/sockets/kqueue/kqueue.c
231
i = kevent(kq, NULL, 0, &ke, 1, &ts);
tools/regression/sockets/udp_pingpong/udp_pingpong.c
106
#define timeval2timespec(tv, ts) \
tools/regression/sockets/udp_pingpong/udp_pingpong.c
108
SEC(ts) = (tv)->tv_sec; \
tools/regression/sockets/udp_pingpong/udp_pingpong.c
109
NSEC(ts) = (tv)->tv_usec * NSEC_IN_USEC; \
tools/regression/sockets/udp_pingpong/udp_pingpong.c
342
struct timespec ts;
tools/regression/sockets/udp_pingpong/udp_pingpong.c
364
*tp = tdata.ts;
tools/test/gpioevents/gpioevents.c
167
struct timespec ts;
tools/test/gpioevents/gpioevents.c
170
ts = sbttots(timestamp);
tools/test/gpioevents/gpioevents.c
173
printf("%s %jd.%09ld ", str, (intmax_t)ts.tv_sec, ts.tv_nsec);
tools/test/gpioevents/gpioevents.c
175
timespecadd(&utc_offset, &ts, &ts);
tools/test/gpioevents/gpioevents.c
177
gmtime(&ts.tv_sec));
tools/test/gpioevents/gpioevents.c
178
printf("%s %s.%09ld ", str, timebuf, ts.tv_nsec);
tools/tools/crypto/cryptostats.c
45
printt(const char* tag, struct cryptotstat *ts)
tools/tools/crypto/cryptostats.c
49
if (ts->count == 0)
tools/tools/crypto/cryptostats.c
51
avg = (1000000000LL*ts->acc.tv_sec + ts->acc.tv_nsec) / ts->count;
tools/tools/crypto/cryptostats.c
52
min = 1000000000LL*ts->min.tv_sec + ts->min.tv_nsec;
tools/tools/crypto/cryptostats.c
53
max = 1000000000LL*ts->max.tv_sec + ts->max.tv_nsec;
tools/tools/crypto/cryptostats.c
55
tag, avg, min, max, ts->count);
tools/tools/net80211/wesside/udps/udps.c
101
if (nanosleep(&ts, NULL) == -1) {
tools/tools/net80211/wesside/udps/udps.c
52
struct timespec ts;
tools/tools/net80211/wesside/udps/udps.c
75
ts.tv_sec = 0;
tools/tools/net80211/wesside/udps/udps.c
76
ts.tv_nsec = delay*1000;
tools/tools/net80211/wesside/wesside/wesside.c
1215
pkh.ts = tv;
tools/tools/netmap/bridge.c
105
ts->len = rs->len;
tools/tools/netmap/bridge.c
107
uint32_t pkt = ts->buf_idx;
tools/tools/netmap/bridge.c
108
ts->buf_idx = rs->buf_idx;
tools/tools/netmap/bridge.c
111
ts->flags |= NS_BUF_CHANGED;
tools/tools/netmap/bridge.c
115
char *txbuf = NETMAP_BUF(txring, ts->buf_idx);
tools/tools/netmap/bridge.c
116
nm_pkt_copy(rxbuf, txbuf, ts->len);
tools/tools/netmap/bridge.c
122
ts->flags = (ts->flags & ~NS_MOREFRAG) | (rs->flags & NS_MOREFRAG);
tools/tools/netmap/bridge.c
89
struct netmap_slot *ts = &txring->slot[k];
tools/tools/netmap/bridge.c
91
if (ts->buf_idx < 2 || rs->buf_idx < 2) {
tools/tools/netmap/bridge.c
93
j, rs->buf_idx, k, ts->buf_idx);
tools/tools/netmap/ctrs.h
58
struct timespec ts = {
tools/tools/netmap/ctrs.h
62
return ts;
tools/tools/netmap/lb.c
1058
gettimeofday(&counters_buf.ts, NULL);
tools/tools/netmap/lb.c
197
struct timeval ts;
tools/tools/netmap/lb.c
240
cur.t = counters_buf.ts;
tools/tools/netmap/lb.c
528
struct netmap_slot *ts = &ring->slot[mf->shadow_head];
tools/tools/netmap/lb.c
529
struct netmap_slot old_slot = *ts;
tools/tools/netmap/lb.c
531
ts->buf_idx = rs->buf_idx;
tools/tools/netmap/lb.c
532
ts->len = rs->len;
tools/tools/netmap/lb.c
533
ts->flags = rs->flags | NS_BUF_CHANGED;
tools/tools/netmap/lb.c
534
ts->ptr = rs->ptr;
tools/tools/netmap/lb.c
540
curmf, ts->flags, mf->shadow_head, ring->head, ring->tail);
tools/tools/netmap/lb.c
557
struct netmap_slot *ts = &ring->slot[scan];
tools/tools/netmap/lb.c
559
port->ctr.drop_bytes += ts->len;
tools/tools/netmap/nmreplay.c
199
struct timeval ts; /* time stamp */
tools/tools/netmap/pkt-gen.c
1363
wait_time(struct timespec ts)
tools/tools/netmap/pkt-gen.c
1368
w = timespec_sub(ts, cur);
tools/tools/netmap/pkt-gen.c
1391
struct timespec ts, now, last_print;
tools/tools/netmap/pkt-gen.c
1448
clock_gettime(CLOCK_REALTIME_PRECISE, &ts);
tools/tools/netmap/pkt-gen.c
1451
tp->sec = (uint32_t)ts.tv_sec;
tools/tools/netmap/pkt-gen.c
1452
tp->nsec = (uint32_t)ts.tv_nsec;
tools/tools/netmap/pkt-gen.c
1498
ts.tv_sec = (time_t)tp->sec;
tools/tools/netmap/pkt-gen.c
1499
ts.tv_nsec = (long)tp->nsec;
tools/tools/netmap/pkt-gen.c
1500
ts.tv_sec = now.tv_sec - ts.tv_sec;
tools/tools/netmap/pkt-gen.c
1501
ts.tv_nsec = now.tv_nsec - ts.tv_nsec;
tools/tools/netmap/pkt-gen.c
1502
if (ts.tv_nsec < 0) {
tools/tools/netmap/pkt-gen.c
1503
ts.tv_nsec += 1000000000;
tools/tools/netmap/pkt-gen.c
1504
ts.tv_sec--;
tools/tools/netmap/pkt-gen.c
1508
(int)ts.tv_sec, (int)ts.tv_nsec);
tools/tools/netmap/pkt-gen.c
1509
t_cur = ts.tv_sec * 1000000000UL + ts.tv_nsec;
tools/tools/netmap/pkt-gen.c
1525
ts.tv_sec = now.tv_sec - last_print.tv_sec;
tools/tools/netmap/pkt-gen.c
1526
ts.tv_nsec = now.tv_nsec - last_print.tv_nsec;
tools/tools/netmap/pkt-gen.c
1527
if (ts.tv_nsec < 0) {
tools/tools/netmap/pkt-gen.c
1528
ts.tv_nsec += 1000000000;
tools/tools/netmap/pkt-gen.c
1529
ts.tv_sec--;
tools/tools/netmap/pkt-gen.c
1531
if (ts.tv_sec >= 1) {
tools/tools/netmap/pkt-gen.c
1559
if (rx < m && ts.tv_sec <= 3 && !targ->cancel)
tools/tools/netrate/juggle/juggle.c
457
scale_timespec(struct timespec *ts, int p)
tools/tools/netrate/juggle/juggle.c
463
ts->tv_sec /= p;
tools/tools/netrate/juggle/juggle.c
464
ts->tv_nsec /= p;
tools/tools/netrate/netsend/netsend.c
100
wait_time(struct timespec ts, struct timespec *wakeup_ts, long long *waited)
tools/tools/netrate/netsend/netsend.c
112
if (timespec_ge(&curtime, &ts))
tools/tools/netrate/netsend/netsend.c
115
while (timespec_ge(&ts, &curtime)) {
tools/tools/so_splice/proxy.c
137
proxy_splice(struct proxy_softc *sc __unused, int cs, int ts)
tools/tools/so_splice/proxy.c
143
splice(cs, ts);
tools/tools/so_splice/proxy.c
144
splice(ts, cs);
tools/tools/so_splice/proxy.c
151
EV_SET(&kev[1], ts, EVFILT_READ, EV_ADD, 0, 0, NULL);
tools/tools/so_splice/proxy.c
289
int s, ts;
tools/tools/so_splice/proxy.c
300
ts = socket(sc->tss.ss_family, SOCK_STREAM, 0);
tools/tools/so_splice/proxy.c
301
if (ts == -1)
tools/tools/so_splice/proxy.c
303
nodelay(ts);
tools/tools/so_splice/proxy.c
304
if (connect(ts, (struct sockaddr *)&sc->tss,
tools/tools/so_splice/proxy.c
312
child = proxy(sc, ls[0], ts);
tools/tools/so_splice/proxy.c
323
child = proxy(sc, s, ts);
tools/tools/so_splice/proxy.c
62
proxy_copy(struct proxy_softc *sc, int cs, int ts)
tools/tools/so_splice/proxy.c
72
EV_SET(&kev[0], cs, EVFILT_READ, EV_ADD, 0, 0, (void *)(uintptr_t)ts);
tools/tools/so_splice/proxy.c
73
EV_SET(&kev[1], ts, EVFILT_READ, EV_ADD, 0, 0, (void *)(uintptr_t)cs);
tools/tools/syscall_timing/syscall_timing.c
144
struct timespec ts;
tools/tools/syscall_timing/syscall_timing.c
149
(void)clock_gettime(CLOCK_REALTIME, &ts);
usr.bin/ctlstat/ctlstat.c
431
struct timespec ts; \
usr.bin/ctlstat/ctlstat.c
443
bintime2timespec(&stats[i].field[iotype], &ts); \
usr.bin/ctlstat/ctlstat.c
444
us = ts.tv_sec * 1000000 + ts.tv_nsec / 1000; \
usr.bin/gzip/gzip.c
1429
unsigned char ts[4]; /* timestamp */
usr.bin/gzip/gzip.c
1431
rv = pread(fd, ts, sizeof ts, GZIP_TIMESTAMP);
usr.bin/gzip/gzip.c
1432
if (rv >= 0 && rv < (ssize_t)(sizeof ts))
usr.bin/gzip/gzip.c
1440
timestamp = le32dec(&ts[0]);
usr.bin/gzip/gzip.c
2084
print_list(int fd, off_t out, const char *outfile, time_t ts)
usr.bin/gzip/gzip.c
2129
char *date = ctime(&ts);
usr.bin/mail/util.c
319
struct timespec ts[2];
usr.bin/mail/util.c
321
(void)clock_gettime(CLOCK_REALTIME, &ts[0]);
usr.bin/mail/util.c
322
ts[0].tv_sec++;
usr.bin/mail/util.c
323
ts[1].tv_sec = 0;
usr.bin/mail/util.c
324
ts[1].tv_nsec = UTIME_OMIT;
usr.bin/mail/util.c
325
(void)utimensat(AT_FDCWD, name, ts, 0);
usr.bin/nfsstat/nfsstat.c
1127
struct timespec ts, lastts;
usr.bin/nfsstat/nfsstat.c
1144
clock_gettime(CLOCK_MONOTONIC, &ts);
usr.bin/nfsstat/nfsstat.c
1197
cur_secs = ts.tv_sec +
usr.bin/nfsstat/nfsstat.c
1198
((long double)ts.tv_nsec / 1000000000);
usr.bin/nfsstat/nfsstat.c
1253
lastts = ts;
usr.bin/procstat/procstat_kstack.c
101
if (ts == TS_FUNC || (kflag > 1 && ts == TS_OFF)) {
usr.bin/procstat/procstat_kstack.c
112
enum trace_state old_ts, ts;
usr.bin/procstat/procstat_kstack.c
116
ts = TS_FRAMENUM;
usr.bin/procstat/procstat_kstack.c
125
old_ts = ts;
usr.bin/procstat/procstat_kstack.c
126
ts = kstack_nextstate(old_ts);
usr.bin/procstat/procstat_kstack.c
129
if (ts == TS_FUNC) {
usr.bin/procstat/procstat_kstack.c
52
kstack_nextstate(enum trace_state ts)
usr.bin/procstat/procstat_kstack.c
55
switch (ts) {
usr.bin/procstat/procstat_kstack.c
79
enum trace_state old_ts, ts;
usr.bin/procstat/procstat_kstack.c
83
ts = TS_FRAMENUM;
usr.bin/procstat/procstat_kstack.c
89
old_ts = ts;
usr.bin/procstat/procstat_kstack.c
90
ts = kstack_nextstate(old_ts);
usr.bin/stat/stat.c
1006
ts.tv_nsec /= 10;
usr.bin/stat/stat.c
1012
l = snprintf(buf, blen, lfmt, (long long)ts.tv_sec, ts.tv_nsec);
usr.bin/stat/stat.c
603
struct timespec ts;
usr.bin/stat/stat.c
732
ts = *tsp; /* copy so we can muck with it */
usr.bin/stat/stat.c
733
small = (sizeof(ts.tv_sec) == 4);
usr.bin/stat/stat.c
734
data = ts.tv_sec;
usr.bin/stat/stat.c
735
tm = localtime(&ts.tv_sec);
usr.bin/stat/stat.c
737
ts.tv_sec = 0;
usr.bin/stat/stat.c
738
tm = localtime(&ts.tv_sec);
usr.bin/stat/stat.c
960
(long long)ts.tv_sec));
usr.bin/tail/forward.c
267
struct timespec ts;
usr.bin/tail/forward.c
270
ts.tv_sec = 0;
usr.bin/tail/forward.c
271
ts.tv_nsec = 0;
usr.bin/tail/forward.c
295
if (kevent(kq, ev, n, NULL, 0, &ts) < 0) {
usr.bin/tail/forward.c
311
struct timespec ts;
usr.bin/tail/forward.c
403
ts.tv_sec = 1;
usr.bin/tail/forward.c
404
ts.tv_nsec = 0;
usr.bin/tail/forward.c
412
n = kevent(kq, NULL, 0, ev, 1, Fflag ? &ts : NULL);
usr.bin/tip/libacu/courier.c
340
struct timespec ts;
usr.bin/tip/libacu/courier.c
342
ts.tv_sec = 0;
usr.bin/tip/libacu/courier.c
343
ts.tv_nsec = 50 * 1000000;
usr.bin/tip/libacu/courier.c
345
nanosleep(&ts, NULL);
usr.bin/tip/libacu/t3000.c
358
struct timespec ts;
usr.bin/tip/libacu/t3000.c
360
ts.tv_sec = 0;
usr.bin/tip/libacu/t3000.c
361
ts.tv_nsec = 50 * 1000000;
usr.bin/tip/libacu/t3000.c
363
nanosleep(&ts, NULL);
usr.bin/touch/touch.c
101
stime_arg1(optarg, ts);
usr.bin/touch/touch.c
120
ts[0].tv_sec += Aflag;
usr.bin/touch/touch.c
122
ts[1].tv_sec += Aflag;
usr.bin/touch/touch.c
136
stime_arg2(*argv++, len == 10, ts);
usr.bin/touch/touch.c
140
ts[1] = ts[0];
usr.bin/touch/touch.c
144
ts[0].tv_nsec = UTIME_OMIT;
usr.bin/touch/touch.c
146
ts[1].tv_nsec = UTIME_OMIT;
usr.bin/touch/touch.c
188
ts[0] = sb.st_atim;
usr.bin/touch/touch.c
189
ts[0].tv_sec += Aflag;
usr.bin/touch/touch.c
192
ts[1] = sb.st_mtim;
usr.bin/touch/touch.c
193
ts[1].tv_sec += Aflag;
usr.bin/touch/touch.c
197
if (!utimensat(AT_FDCWD, *argv, ts, atflag))
usr.bin/touch/touch.c
58
struct timespec ts[2];
usr.bin/touch/touch.c
67
ts[0].tv_sec = ts[1].tv_sec = 0;
usr.bin/touch/touch.c
68
ts[0].tv_nsec = ts[1].tv_nsec = UTIME_NOW;
usr.bin/touch/touch.c
83
stime_darg(optarg, ts);
usr.bin/touch/touch.c
97
stime_file(optarg, ts);
usr.bin/truss/syscalls.c
1893
struct timespec ts;
usr.bin/truss/syscalls.c
1895
if (get_struct(pid, args[sc->offset], &ts, sizeof(ts)) != -1)
usr.bin/truss/syscalls.c
1896
fprintf(fp, "{ %jd.%09ld }", (intmax_t)ts.tv_sec,
usr.bin/truss/syscalls.c
1897
ts.tv_nsec);
usr.bin/truss/syscalls.c
1903
struct timespec ts[2];
usr.bin/truss/syscalls.c
1907
if (get_struct(pid, args[sc->offset], &ts, sizeof(ts)) != -1) {
usr.bin/truss/syscalls.c
1910
for (i = 0; i < nitems(ts); i++) {
usr.bin/truss/syscalls.c
1913
switch (ts[i].tv_nsec) {
usr.bin/truss/syscalls.c
1922
(intmax_t)ts[i].tv_sec,
usr.bin/truss/syscalls.c
1923
ts[i].tv_nsec);
usr.bin/xinstall/xinstall.c
1414
metadata_log(const char *path, const char *type, struct timespec *ts,
usr.bin/xinstall/xinstall.c
1480
if (ts != NULL && dopreserve)
usr.bin/xinstall/xinstall.c
1482
(long long)ts[1].tv_sec, ts[1].tv_nsec);
usr.sbin/bhyve/amd64/task_switch.c
252
read_tss_descriptor(struct vcpu *vcpu, struct vm_task_switch *ts,
usr.sbin/bhyve/amd64/task_switch.c
263
if (ts->reason == TSR_IRET)
usr.sbin/bhyve/amd64/task_switch.c
264
sel_exception(vcpu, IDT_TS, sel, ts->ext);
usr.sbin/bhyve/amd64/task_switch.c
266
sel_exception(vcpu, IDT_GP, sel, ts->ext);
usr.sbin/bhyve/amd64/task_switch.c
270
sup_paging = ts->paging;
usr.sbin/bhyve/amd64/task_switch.c
308
validate_seg_desc(struct vcpu *vcpu, struct vm_task_switch *ts,
usr.sbin/bhyve/amd64/task_switch.c
344
sel_exception(vcpu, IDT_TS, sel, ts->ext);
usr.sbin/bhyve/amd64/task_switch.c
350
sel_exception(vcpu, IDT_TS, sel, ts->ext);
usr.sbin/bhyve/amd64/task_switch.c
358
sel_exception(vcpu, IDT_TS, sel, ts->ext);
usr.sbin/bhyve/amd64/task_switch.c
368
sup_paging = ts->paging;
usr.sbin/bhyve/amd64/task_switch.c
379
sel_exception(vcpu, IDT_TS, sel, ts->ext);
usr.sbin/bhyve/amd64/task_switch.c
391
sel_exception(vcpu, idtvec, sel, ts->ext);
usr.sbin/bhyve/amd64/task_switch.c
401
sel_exception(vcpu, IDT_TS, sel, ts->ext);
usr.sbin/bhyve/amd64/task_switch.c
409
sel_exception(vcpu, IDT_TS, sel, ts->ext);
usr.sbin/bhyve/amd64/task_switch.c
425
sel_exception(vcpu, IDT_TS, sel, ts->ext);
usr.sbin/bhyve/amd64/task_switch.c
479
tss32_restore(struct vmctx *ctx, struct vcpu *vcpu, struct vm_task_switch *ts,
usr.sbin/bhyve/amd64/task_switch.c
489
if (ts->reason != TSR_IRET && ts->reason != TSR_JMP) {
usr.sbin/bhyve/amd64/task_switch.c
502
if (ts->paging.paging_mode != PAGING_MODE_FLAT) {
usr.sbin/bhyve/amd64/task_switch.c
503
if (ts->paging.paging_mode == PAGING_MODE_PAE) {
usr.sbin/bhyve/amd64/task_switch.c
529
ts->paging.cr3 = tss->tss_cr3;
usr.sbin/bhyve/amd64/task_switch.c
562
error = validate_seg_desc(vcpu, ts, VM_REG_GUEST_LDTR, &seg_desc,
usr.sbin/bhyve/amd64/task_switch.c
577
error = validate_seg_desc(vcpu, ts, VM_REG_GUEST_CS, &seg_desc,
usr.sbin/bhyve/amd64/task_switch.c
582
error = validate_seg_desc(vcpu, ts, VM_REG_GUEST_SS, &seg_desc2,
usr.sbin/bhyve/amd64/task_switch.c
588
ts->paging.cpl = tss->tss_cs & SEL_RPL_MASK;
usr.sbin/bhyve/amd64/task_switch.c
590
error = validate_seg_desc(vcpu, ts, VM_REG_GUEST_DS, &seg_desc,
usr.sbin/bhyve/amd64/task_switch.c
596
error = validate_seg_desc(vcpu, ts, VM_REG_GUEST_ES, &seg_desc,
usr.sbin/bhyve/amd64/task_switch.c
602
error = validate_seg_desc(vcpu, ts, VM_REG_GUEST_FS, &seg_desc,
usr.sbin/bhyve/amd64/task_switch.c
608
error = validate_seg_desc(vcpu, ts, VM_REG_GUEST_GS, &seg_desc,
usr.sbin/bhyve/pci_hda.c
1219
struct timespec ts;
usr.sbin/bhyve/pci_hda.c
1222
err = clock_gettime(CLOCK_MONOTONIC, &ts);
usr.sbin/bhyve/pci_hda.c
1225
return (ts.tv_sec * 1000000000LL + ts.tv_nsec);
usr.sbin/bhyve/slirp/slirp-helper.c
73
struct timespec ts;
usr.sbin/bhyve/slirp/slirp-helper.c
76
error = clock_gettime(CLOCK_MONOTONIC, &ts);
usr.sbin/bhyve/slirp/slirp-helper.c
78
return ((int64_t)(ts.tv_sec * 1000000000L + ts.tv_nsec));
usr.sbin/bhyve/snapshot.c
629
struct timespec ts;
usr.sbin/bhyve/snapshot.c
635
ts.tv_sec = 0;
usr.sbin/bhyve/snapshot.c
636
ts.tv_nsec = 50 * 1000 * 1000; /* 50 ms sleep time */
usr.sbin/bhyve/snapshot.c
649
nanosleep(&ts, NULL);
usr.sbin/bluetooth/iwmbtfw/iwmbt_hw.h
92
#define IWMBT_TS2MSEC(ts) ((ts).tv_sec * 1000 + (ts).tv_nsec / 1000000)
usr.sbin/bluetooth/rtlbtfw/rtlbt_hw.h
77
#define RTLBT_TS2MSEC(ts) ((ts).tv_sec * 1000 + (ts).tv_nsec / 1000000)
usr.sbin/bsnmpd/modules/snmp_hostres/hostres_scalars.c
75
struct timespec ts;
usr.sbin/bsnmpd/modules/snmp_hostres/hostres_scalars.c
77
if (clock_gettime(CLOCK_UPTIME, &ts)) {
usr.sbin/bsnmpd/modules/snmp_hostres/hostres_scalars.c
82
uptime = ts.tv_sec * 100 + ts.tv_nsec / 1000000;
usr.sbin/camdd/camdd.c
1680
struct timespec ts, *kq_ts;
usr.sbin/camdd/camdd.c
1682
ts.tv_sec = 0;
usr.sbin/camdd/camdd.c
1683
ts.tv_nsec = 0;
usr.sbin/camdd/camdd.c
1782
kq_ts = &ts;
usr.sbin/cdcontrol/cdcontrol.c
528
unsigned char tm, ts, tf;
usr.sbin/cdcontrol/cdcontrol.c
604
ts = toc_buffer[tr1].addr.msf.second;
usr.sbin/cdcontrol/cdcontrol.c
608
&tm, &ts, &tf);
usr.sbin/cdcontrol/cdcontrol.c
611
&& ((s1 > ts)
usr.sbin/cdcontrol/cdcontrol.c
612
|| ((s1 == ts)
usr.sbin/cdcontrol/cdcontrol.c
624
s1 += ts;
usr.sbin/cdcontrol/cdcontrol.c
656
&tm, &ts, &tf);
usr.sbin/cdcontrol/cdcontrol.c
658
s2 = ts;
usr.sbin/cdcontrol/cdcontrol.c
670
ts = toc_buffer[tr2].addr.msf.second;
usr.sbin/cdcontrol/cdcontrol.c
674
&tm, &ts, &tf);
usr.sbin/cdcontrol/cdcontrol.c
681
s2 += ts;
usr.sbin/cdcontrol/cdcontrol.c
692
ts = toc_buffer[n].addr.msf.second;
usr.sbin/cdcontrol/cdcontrol.c
696
&tm, &ts, &tf);
usr.sbin/cdcontrol/cdcontrol.c
700
&& ((s2 > ts)
usr.sbin/cdcontrol/cdcontrol.c
701
|| ((s2 == ts)
usr.sbin/cdcontrol/cdcontrol.c
725
&tm, &ts, &tf);
usr.sbin/cdcontrol/cdcontrol.c
727
s2 = ts;
usr.sbin/ctladm/ctladm.c
334
struct timespec ts;
usr.sbin/ctladm/ctladm.c
340
bintime2timespec(&delta_bt, &ts);
usr.sbin/ctladm/ctladm.c
341
cmd_latency = ts.tv_sec * 1000;
usr.sbin/ctladm/ctladm.c
342
if (ts.tv_nsec > 0)
usr.sbin/ctladm/ctladm.c
343
cmd_latency += ts.tv_nsec / 1000000;
usr.sbin/fstyp/hammer_disk.h
1052
uint64_t ts; /* real-time when snapshot was made */
usr.sbin/gstat/gstat.c
392
char ts[100], ts2[100], g_name[4096];
usr.sbin/gstat/gstat.c
508
(void)snprintf(ts, sizeof(ts),
usr.sbin/gstat/gstat.c
608
printf("%s", ts); /* timestamp */
usr.sbin/ipfwpcap/ipfwpcap.c
291
(void) gettimeofday(&(phd.ts), NULL);
usr.sbin/jail/command.c
230
struct timespec ts;
usr.sbin/jail/command.c
238
clock_gettime(CLOCK_REALTIME, &ts);
usr.sbin/jail/command.c
239
ts.tv_sec = j->timeout.tv_sec - ts.tv_sec;
usr.sbin/jail/command.c
240
ts.tv_nsec = j->timeout.tv_nsec - ts.tv_nsec;
usr.sbin/jail/command.c
241
if (ts.tv_nsec < 0) {
usr.sbin/jail/command.c
242
ts.tv_sec--;
usr.sbin/jail/command.c
243
ts.tv_nsec += 1000000000;
usr.sbin/jail/command.c
245
if (ts.tv_sec < 0 ||
usr.sbin/jail/command.c
246
(ts.tv_sec == 0 && ts.tv_nsec == 0)) {
usr.sbin/jail/command.c
251
tsp = &ts;
usr.sbin/jail/command.c
254
ts.tv_sec = 0;
usr.sbin/jail/command.c
255
ts.tv_nsec = 0;
usr.sbin/jail/command.c
256
tsp = &ts;
usr.sbin/jail/config.c
765
struct cfstring *s, *ts;
usr.sbin/jail/config.c
807
TAILQ_FOREACH_SAFE(s, &p->val, tq, ts) {
usr.sbin/jail/jail.c
1017
const struct cfstring *s, *ts;
usr.sbin/jail/jail.c
1025
TAILQ_FOREACH_SAFE(s, &p->val, tq, ts) {
usr.sbin/jail/jail.c
1027
if (ts != NULL)
usr.sbin/makefs/zfs/fs.c
341
fs_populate_time(zfs_fs_t *fs, char *attrbuf, struct timespec *ts,
usr.sbin/makefs/zfs/fs.c
350
timebuf[0] = ts->tv_sec;
usr.sbin/makefs/zfs/fs.c
351
timebuf[1] = ts->tv_nsec;
usr.sbin/moused/moused/moused.c
1057
struct timespec ts;
usr.sbin/moused/moused/moused.c
1058
clock_gettime(CLOCK_REALTIME, &ts);
usr.sbin/moused/moused/moused.c
1059
b.ie.time.tv_sec = ts.tv_sec;
usr.sbin/moused/moused/moused.c
1060
b.ie.time.tv_usec = ts.tv_nsec / 1000;
usr.sbin/moused/moused/moused.c
1530
struct timespec ts;
usr.sbin/moused/moused/moused.c
1572
clock_gettime(CLOCK_MONOTONIC_FAST, &ts);
usr.sbin/moused/moused/moused.c
1587
e3b->mouse_button_state_ts = ts;
usr.sbin/moused/moused/moused.c
1592
bt->bstate[i].ts = ts;
usr.sbin/moused/moused/moused.c
1596
bt->zstate[i].ts = ts;
usr.sbin/moused/moused/moused.c
2697
struct timespec ts;
usr.sbin/moused/moused/moused.c
2714
ts = tssubms(&ts1, bt->clickthreshold);
usr.sbin/moused/moused/moused.c
2715
debug("ts: %jd %ld", (intmax_t)ts.tv_sec, ts.tv_nsec);
usr.sbin/moused/moused/moused.c
2726
(intmax_t)bt->bstate[i].ts.tv_sec,
usr.sbin/moused/moused/moused.c
2727
bt->bstate[i].ts.tv_nsec);
usr.sbin/moused/moused/moused.c
2728
if (tscmp(&ts, &bt->bstate[i].ts, >)) {
usr.sbin/moused/moused/moused.c
2733
bt->bstate[i].ts = ts1;
usr.sbin/moused/moused/moused.c
2736
bt->bstate[i].ts = ts1;
usr.sbin/moused/moused/moused.c
2741
if (tscmp(&ts2, &bt->bstate[i].ts, >)) {
usr.sbin/moused/moused/moused.c
2743
bt->bstate[i].ts = ts1;
usr.sbin/moused/moused/moused.c
2759
struct timespec ts;
usr.sbin/moused/moused/moused.c
2765
ts = tssubms(&ts1, e3b->button2timeout);
usr.sbin/moused/moused/moused.c
2766
return (tscmp(&ts, &e3b->mouse_button_state_ts, >));
usr.sbin/moused/moused/moused.c
296
struct timespec ts; /* timestamp on the last button event */
usr.sbin/rtadvctl/rtadvctl.c
421
struct timespec now, ts0, ts;
usr.sbin/rtadvctl/rtadvctl.c
471
clock_gettime(CLOCK_MONOTONIC_FAST, &ts);
usr.sbin/rtadvctl/rtadvctl.c
472
TS_SUB(&now, &ts, &ts0);
usr.sbin/rtadvctl/rtadvctl.c
615
ts.tv_sec = rat->rat_tm.tv_sec + ts0.tv_sec;
usr.sbin/rtadvctl/rtadvctl.c
616
printf("%s", ctime(&ts.tv_sec));
usr.sbin/rtadvctl/rtadvctl.c
622
ts.tv_sec = ifi_s->ifi_ra_lastsent.tv_sec + ts0.tv_sec;
usr.sbin/rtadvctl/rtadvctl.c
623
printf("%s", ctime(&ts.tv_sec));
usr.sbin/virtual_oss/virtual_oss/httpd.c
190
voss_httpd_send_rtp_sub(vclient_t *pvc, int fd, void *ptr, size_t len, uint32_t ts)
usr.sbin/virtual_oss/virtual_oss/httpd.c
230
pkt.rtp.header32[1] = htobe32(ts);
usr.sbin/virtual_oss/virtual_oss/httpd.c
245
voss_httpd_send_rtp(vclient_t *pvc, int fd, void *ptr, size_t len, uint32_t ts)
usr.sbin/virtual_oss/virtual_oss/httpd.c
251
voss_httpd_send_rtp_sub(pvc, fd, ptr, max, ts);
usr.sbin/virtual_oss/virtual_oss/httpd.c
257
voss_httpd_send_rtp_sub(pvc, fd, ptr, len, ts);
usr.sbin/virtual_oss/virtual_oss/httpd.c
552
pvc->profile->http.state[x].ts =
usr.sbin/virtual_oss/virtual_oss/httpd.c
67
uint64_t ts;
usr.sbin/virtual_oss/virtual_oss/httpd.c
717
uint64_t ts;
usr.sbin/virtual_oss/virtual_oss/httpd.c
735
ts = virtual_oss_timestamp();
usr.sbin/virtual_oss/virtual_oss/httpd.c
746
uint64_t delta = ts - pvc->profile->http.state[x].ts;
usr.sbin/virtual_oss/virtual_oss/httpd.c
769
pvc->profile->http.state[x].ts = ts;
usr.sbin/virtual_oss/virtual_oss/httpd.c
795
pvp->http.state[x].ts = 0;
usr.sbin/virtual_oss/virtual_oss/main.c
132
vclient_bufsize_consumed(vclient_t *pvc, uint64_t ts)
usr.sbin/virtual_oss/virtual_oss/main.c
138
delta = virtual_oss_timestamp() - ts;
usr.sbin/virtual_oss/virtual_oss/main.c
347
uint64_t ts;
usr.sbin/virtual_oss/virtual_oss/main.c
438
ts = virtual_oss_timestamp();
usr.sbin/virtual_oss/virtual_oss/main.c
442
pvc->tx_timestamp = ts;
usr.sbin/virtual_oss/virtual_oss/main.c
443
pvc->rx_timestamp = ts;
usr.sbin/virtual_oss/virtual_oss/virtual_oss.c
47
struct timespec ts;
usr.sbin/virtual_oss/virtual_oss/virtual_oss.c
50
clock_gettime(CLOCK_MONOTONIC, &ts);
usr.sbin/virtual_oss/virtual_oss/virtual_oss.c
52
nsec = ts.tv_sec * 1000000000ULL + ts.tv_nsec;
usr.sbin/watchdogd/watchdogd.c
639
struct timespec ts;
usr.sbin/watchdogd/watchdogd.c
744
pretimeout, timeout_sec, (long)ts.tv_sec);