bin/cp/utils.c
280
struct stat ts;
bin/cp/utils.c
295
if (fdval ? fstat(fd, &ts) :
bin/cp/utils.c
296
(islink ? lstat(to.p_path, &ts) : stat(to.p_path, &ts)))
bin/cp/utils.c
300
ts.st_mode &= S_ISUID | S_ISGID | S_ISVTX |
bin/cp/utils.c
309
if (!gotstat || fs->st_uid != ts.st_uid || fs->st_gid != ts.st_gid)
bin/cp/utils.c
320
if (!gotstat || fs->st_mode != ts.st_mode)
bin/cp/utils.c
329
if (!gotstat || fs->st_flags != ts.st_flags)
bin/ed/ed.h
119
char *ts; \
bin/ed/ed.h
122
if ((ts = (char *) realloc((b), ti += max((i), MINBUFSZ))) == NULL) { \
bin/ed/ed.h
129
if ((ts = (char *) malloc(ti += max((i), MINBUFSZ))) == NULL) { \
bin/ed/ed.h
137
(b) = ts; \
bin/ed/ed.h
145
char *ts; \
bin/ed/ed.h
147
if ((ts = (char *) realloc((b), ti += max((i), MINBUFSZ))) == NULL) { \
bin/ed/ed.h
154
(b) = ts; \
bin/ed/glbl.c
151
line_t **ts;
bin/ed/glbl.c
156
if ((ts = (line_t **) realloc(active_list,
bin/ed/glbl.c
165
if ((ts = (line_t **) malloc((ti += MINBUFSZ) *
bin/ed/glbl.c
175
active_list = ts;
crypto/libressl/crypto/conf/conf_api.c
110
STACK_OF(CONF_VALUE) *ts;
crypto/libressl/crypto/conf/conf_api.c
112
ts = (STACK_OF(CONF_VALUE) *)section->value;
crypto/libressl/crypto/conf/conf_api.c
115
if (!sk_CONF_VALUE_push(ts, value)) {
crypto/libressl/crypto/conf/conf_api.c
121
(void)sk_CONF_VALUE_delete_ptr(ts, v);
crypto/libressl/crypto/ocsp/ocsp_prn.c
94
table2string(long s, const OCSP_TBLSTR *ts, int len)
crypto/libressl/crypto/ocsp/ocsp_prn.c
98
for (p = ts; p < ts + len; p++)
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
517
#define TIMEVAL_TO_TIMESPEC(tv, ts) { \
crypto/openssh/defines.h
518
(ts)->tv_sec = (tv)->tv_sec; \
crypto/openssh/defines.h
519
(ts)->tv_nsec = (tv)->tv_usec * 1000; \
crypto/openssh/defines.h
524
#define TIMESPEC_TO_TIMEVAL(tv, ts) { \
crypto/openssh/defines.h
525
(tv)->tv_sec = (ts)->tv_sec; \
crypto/openssh/defines.h
526
(tv)->tv_usec = (ts)->tv_nsec / 1000; \
crypto/openssh/krl.c
810
format_timestamp(u_int64_t timestamp, char *ts, size_t nts)
crypto/openssh/krl.c
818
strlcpy(ts, "<INVALID>", nts);
crypto/openssh/krl.c
820
*ts = '\0';
crypto/openssh/krl.c
821
strftime(ts, nts, "%Y%m%dT%H%M%S", tm);
crypto/openssh/misc.c
1693
ms_to_timespec(struct timespec *ts, int ms)
crypto/openssh/misc.c
1697
ts->tv_sec = ms / 1000;
crypto/openssh/misc.c
1698
ts->tv_nsec = (ms % 1000) * 1000 * 1000;
crypto/openssh/misc.c
1702
monotime_ts(struct timespec *ts)
crypto/openssh/misc.c
1711
if (clock_gettime(CLOCK_BOOTTIME, ts) == 0)
crypto/openssh/misc.c
1715
if (clock_gettime(CLOCK_MONOTONIC, ts) == 0)
crypto/openssh/misc.c
1720
if (clock_gettime(CLOCK_REALTIME, ts) == 0)
crypto/openssh/misc.c
1728
ts->tv_sec = tv.tv_sec;
crypto/openssh/misc.c
1729
ts->tv_nsec = (long)tv.tv_usec * 1000;
crypto/openssh/misc.c
1735
struct timespec ts;
crypto/openssh/misc.c
1737
monotime_ts(&ts);
crypto/openssh/misc.c
1738
tv->tv_sec = ts.tv_sec;
crypto/openssh/misc.c
1739
tv->tv_usec = ts.tv_nsec / 1000;
crypto/openssh/misc.c
1745
struct timespec ts;
crypto/openssh/misc.c
1747
monotime_ts(&ts);
crypto/openssh/misc.c
1748
return ts.tv_sec;
crypto/openssh/misc.c
1754
struct timespec ts;
crypto/openssh/misc.c
1756
monotime_ts(&ts);
crypto/openssh/misc.c
1757
return ts.tv_sec + ((double)ts.tv_nsec / 1000000000);
crypto/openssh/misc.c
1776
struct timespec ts, rm;
crypto/openssh/misc.c
1811
TIMEVAL_TO_TIMESPEC(&bw->bwend, &ts);
crypto/openssh/misc.c
1812
while (nanosleep(&ts, &rm) == -1) {
crypto/openssh/misc.c
1815
ts = rm;
crypto/openssh/sftp-server.c
977
static struct timespec ts[2];
crypto/openssh/sftp-server.c
979
ts[0].tv_sec = a->atime;
crypto/openssh/sftp-server.c
980
ts[0].tv_nsec = 0;
crypto/openssh/sftp-server.c
981
ts[1].tv_sec = a->mtime;
crypto/openssh/sftp-server.c
982
ts[1].tv_nsec = 0;
crypto/openssh/sftp-server.c
983
return ts;
games/bs/bs.c
1003
ts.x = x; ts.y = y; ts.dir = d*2; ts.hits++;
games/bs/bs.c
1010
x = ts.x + xincr[ts.dir];
games/bs/bs.c
1011
y = ts.y + yincr[ts.dir];
games/bs/bs.c
1014
ts.x = x; ts.y = y; ts.hits++;
games/bs/bs.c
1022
d = ts.dir + 4;
games/bs/bs.c
1023
x = ts.x + ts.hits * xincr[d];
games/bs/bs.c
1024
y = ts.y + ts.hits * yincr[d];
games/bs/bs.c
1027
ts.x = x; ts.y = y; ts.dir = d; ts.hits++;
games/bs/bs.c
1035
x = ts.x + xincr[ts.dir];
games/bs/bs.c
1036
y = ts.y + yincr[ts.dir];
games/bs/bs.c
1039
ts.x = x; ts.y = y; ts.hits++;
games/bs/bs.c
952
static ship_t ts;
games/bs/bs.c
964
ts.x = x; ts.y = y;
games/bs/bs.c
965
ts.hits = 1;
games/bs/bs.c
977
x = ts.x + xincr[d*2]; y = ts.y + yincr[d*2];
games/bs/bs.c
994
x = ts.x + xincr[d*2];
games/bs/bs.c
995
y = ts.y + yincr[d*2];
games/grdc/grdc.c
232
struct timespec ts;
games/grdc/grdc.c
237
ts.tv_sec = 0;
games/grdc/grdc.c
238
ts.tv_nsec = 1000000 * msecs;
games/grdc/grdc.c
240
ts.tv_sec = msecs / 1000;
games/grdc/grdc.c
241
ts.tv_nsec = 1000000 * (msecs % 1000);
games/grdc/grdc.c
244
rv = ppoll(&pfd, 1, &ts, NULL);
games/tetris/input.c
105
struct timespec ts;
games/tetris/input.c
108
ts.tv_sec = 0;
games/tetris/input.c
109
ts.tv_nsec = fallrate;
games/tetris/input.c
110
while (TS_POS(&ts))
games/tetris/input.c
111
if (rwait(&ts) && read(STDIN_FILENO, &c, 1) != 1)
games/tetris/input.c
53
#define TS_POS(ts) \
games/tetris/input.c
54
((ts)->tv_sec > 0 || ((ts)->tv_sec == 0 && (ts)->tv_nsec > 0))
include/time.h
191
int timespec_get(struct timespec *ts, int base);
lib/libc/isc/ev_timers.c
156
struct timespec ts;
lib/libc/isc/ev_timers.c
158
ts.tv_sec = tv.tv_sec;
lib/libc/isc/ev_timers.c
159
ts.tv_nsec = tv.tv_usec * 1000;
lib/libc/isc/ev_timers.c
160
return (ts);
lib/libc/isc/ev_timers.c
164
evTimeVal(struct timespec ts) {
lib/libc/isc/ev_timers.c
167
tv.tv_sec = ts.tv_sec;
lib/libc/isc/ev_timers.c
168
tv.tv_usec = ts.tv_nsec / 1000;
lib/libc/rpc/clnt_dg.c
301
struct timespec ts;
lib/libc/rpc/clnt_dg.c
417
TIMEVAL_TO_TIMESPEC(&tv, &ts);
lib/libc/rpc/clnt_dg.c
419
n = _kevent(cu->cu_kq, &cu->cu_kin, kin_len, &kv, 1, &ts);
lib/libc/stdio/xprintf_time.c
66
struct timespec *ts;
lib/libc/stdio/xprintf_time.c
78
ts = *((struct timespec **)arg[0]);
lib/libc/stdio/xprintf_time.c
79
t = ts->tv_sec;
lib/libc/stdio/xprintf_time.c
80
nsec = ts->tv_nsec;
lib/libc/stdtime/localtime.c
533
struct state *ts;
lib/libc/stdtime/localtime.c
536
ts = malloc(sizeof(*ts));
lib/libc/stdtime/localtime.c
537
if (ts == NULL)
lib/libc/stdtime/localtime.c
540
result = tzparse(&u->buf[1], ts, FALSE);
lib/libc/stdtime/localtime.c
541
if (result == 0 && ts->typecnt == 2 &&
lib/libc/stdtime/localtime.c
542
sp->charcnt + ts->charcnt <= TZ_MAX_CHARS) {
lib/libc/stdtime/localtime.c
544
ts->ttis[i].tt_abbrind +=
lib/libc/stdtime/localtime.c
546
for (i = 0; i < ts->charcnt; ++i)
lib/libc/stdtime/localtime.c
548
ts->chars[i];
lib/libc/stdtime/localtime.c
550
while (i < ts->timecnt &&
lib/libc/stdtime/localtime.c
551
ts->ats[i] <=
lib/libc/stdtime/localtime.c
554
while (i < ts->timecnt &&
lib/libc/stdtime/localtime.c
557
ts->ats[i];
lib/libc/stdtime/localtime.c
560
ts->types[i];
lib/libc/stdtime/localtime.c
564
sp->ttis[sp->typecnt++] = ts->ttis[0];
lib/libc/stdtime/localtime.c
565
sp->ttis[sp->typecnt++] = ts->ttis[1];
lib/libc/stdtime/localtime.c
567
free(ts);
lib/libc/stdtime/timespec_get.c
39
timespec_get(struct timespec *ts, int base)
lib/libc/stdtime/timespec_get.c
43
if (clock_gettime(CLOCK_REALTIME, ts))
lib/libc/upmap/ukp_clock.c
102
res = __sys_clock_gettime(clock_id, ts);
lib/libc/upmap/ukp_clock.c
106
res = __sys_clock_gettime(clock_id, ts);
lib/libc/upmap/ukp_clock.c
53
extern int __sys_clock_gettime(clockid_t clock_id, struct timespec *ts);
lib/libc/upmap/ukp_clock.c
54
int __clock_gettime(clockid_t clock_id, struct timespec *ts);
lib/libc/upmap/ukp_clock.c
63
__clock_gettime(clockid_t clock_id, struct timespec *ts)
lib/libc/upmap/ukp_clock.c
81
*ts = ts_uptime[w & 1];
lib/libc/upmap/ukp_clock.c
92
*ts = ts_realtime[w & 1];
lib/libc/upmap/ukp_clock.c
98
ts->tv_nsec = 0;
lib/libc/upmap/ukp_gettimeofday.c
65
struct timespec ts;
lib/libc/upmap/ukp_gettimeofday.c
79
ts = ts_realtime[w & 1];
lib/libc/upmap/ukp_gettimeofday.c
85
tv->tv_sec = ts.tv_sec;
lib/libc/upmap/ukp_gettimeofday.c
86
tv->tv_usec = ts.tv_nsec / 1000;
lib/libevtr/evtr.c
1014
fmt.eh.ts = ts;
lib/libevtr/evtr.c
1141
evtr_dump_string(evtr_t evtr, uint64_t ts, const char *str, int ns)
lib/libevtr/evtr.c
1158
s.eh.ts = ts;
lib/libevtr/evtr.c
1176
uint64_t ts;
lib/libevtr/evtr.c
1184
return (const char *)(uintptr_t)evtr_dump_string(ctx->evtr, ctx->ts, s,
lib/libevtr/evtr.c
1217
kev.eh.ts = ev->ts;
lib/libevtr/evtr.c
1221
kev.file = evtr_dump_string(evtr, kev.eh.ts, ev->file,
lib/libevtr/evtr.c
1225
kev.func = evtr_dump_string(evtr, kev.eh.ts, ev->func,
lib/libevtr/evtr.c
1229
kev.fmt = evtr_dump_fmt(evtr, kev.eh.ts, ev);
lib/libevtr/evtr.c
1234
.ts = ev->ts,
lib/libevtr/evtr.c
1618
ev->ts = evh->eh.ts;
lib/libevtr/evtr.c
1658
.ts = ev->ts,
lib/libevtr/evtr.c
879
tdcr.ts = ev->ts;
lib/libevtr/evtr.c
95
uint64_t ts; /* XXX: this should only be part of probe */
lib/libevtr/evtr.c
987
evtr_dump_fmt(evtr_t evtr, uint64_t ts, const evtr_event_t ev)
lib/libevtr/evtr.h
92
uint64_t ts; /* timestamp. Must be nondecreasing */
lib/libhammer/libhammer.h
69
u_int64_t ts;
lib/libhammer/snapshot.c
106
sip->ts = snapdata->ts;
lib/libssh/openbsd-compat/bsd-misc.c
276
struct timespec ts;
lib/libssh/openbsd-compat/bsd-misc.c
278
ts.tv_sec = useconds / 1000000;
lib/libssh/openbsd-compat/bsd-misc.c
279
ts.tv_nsec = (useconds % 1000000) * 1000;
lib/libssh/openbsd-compat/bsd-misc.c
280
return nanosleep(&ts, NULL);
lib/libtcplay/io.c
118
struct timespec ts = { .tv_sec = 0, .tv_nsec = 10000000 }; /* 10 ms */
lib/libtcplay/io.c
147
nanosleep(&ts, NULL);
lib/libthread_xu/thread/thr_cond.c
235
struct timespec ts, ts2, *tsp;
lib/libthread_xu/thread/thr_cond.c
276
clock_gettime(cv->c_clockid, &ts);
lib/libthread_xu/thread/thr_cond.c
277
timespecsub(abstime, &ts, &ts2);
lib/libthread_xu/thread/thr_join.c
109
clock_gettime(CLOCK_REALTIME, &ts);
lib/libthread_xu/thread/thr_join.c
110
timespecsub(abstime, &ts, &ts2);
lib/libthread_xu/thread/thr_join.c
73
struct timespec ts, ts2, *tsp;
lib/libthread_xu/thread/thr_mutex.c
409
struct timespec ts, ts2;
lib/libthread_xu/thread/thr_mutex.c
433
clock_gettime(CLOCK_REALTIME, &ts);
lib/libthread_xu/thread/thr_mutex.c
434
timespecsub(abstime, &ts, &ts2);
lib/libthread_xu/thread/thr_sem.c
340
struct timespec ts, ts2;
lib/libthread_xu/thread/thr_sem.c
371
clock_gettime(CLOCK_REALTIME, &ts);
lib/libthread_xu/thread/thr_sem.c
372
timespecsub(abstime, &ts, &ts2);
lib/libthread_xu/thread/thr_syscalls.c
455
__ppoll(struct pollfd *fds, unsigned int nfds, const struct timespec *ts,
lib/libthread_xu/thread/thr_syscalls.c
463
ret = __sys_ppoll(fds, nfds, ts, mask);
lib/libthread_xu/thread/thr_umtx.c
140
struct timespec ts, ts2, ts3;
lib/libthread_xu/thread/thr_umtx.c
149
clock_gettime(CLOCK_REALTIME, &ts);
lib/libthread_xu/thread/thr_umtx.c
150
timespecadd(&ts, timeout, &ts);
lib/libthread_xu/thread/thr_umtx.c
167
timespecsub(&ts, &ts3, &ts2);
lib/libthread_xu/thread/thr_umtx.c
184
struct timespec ts, ts2, ts3;
lib/libthread_xu/thread/thr_umtx.c
222
clock_gettime(clockid, &ts);
lib/libthread_xu/thread/thr_umtx.c
223
timespecadd(&ts, timeout, &ts);
lib/libthread_xu/thread/thr_umtx.c
247
timespecsub(&ts, &ts3, &ts2);
lib/libusb/libusb10_io.c
304
struct timespec ts;
lib/libusb/libusb10_io.c
315
err = clock_gettime(CLOCK_MONOTONIC, &ts);
lib/libusb/libusb10_io.c
323
ts.tv_sec += tv->tv_sec;
lib/libusb/libusb10_io.c
324
ts.tv_nsec += tv->tv_usec * 1000;
lib/libusb/libusb10_io.c
325
if (ts.tv_nsec >= 1000000000) {
lib/libusb/libusb10_io.c
326
ts.tv_nsec -= 1000000000;
lib/libusb/libusb10_io.c
327
ts.tv_sec++;
lib/libusb/libusb10_io.c
330
&ctx->ctx_lock, &ts);
sbin/hammer/cmd_cleanup.c
679
snap->ts = (uint64_t)t * 1000000ULL;
sbin/hammer/cmd_cleanup.c
963
t = snap->ts / 1000000ULL;
sbin/hammer/cmd_snapshot.c
467
snapshot.snaps[0].ts = time(NULL) * 1000000ULL;
sbin/hammer/cmd_snapshot.c
544
t = snap->ts / 1000000ULL;
sbin/hammer/cmd_softprune.c
367
ct = snap->ts / 1000000ULL;
sbin/hammer/cmd_stats.c
238
loaddelay(struct timespec *ts, const char *arg)
sbin/hammer/cmd_stats.c
245
ts->tv_sec = (int)d;
sbin/hammer/cmd_stats.c
246
ts->tv_nsec = (int)(modf(d, &d) * 1000000000.0);
sbin/hammer/cmd_stats.c
42
static void loaddelay(struct timespec *ts, const char *arg);
sbin/routed/defs.h
272
time_t ts; /* timestamp on network stats */
sbin/routed/if.c
556
ifp->int_data.ts = now.tv_sec;
sbin/routed/if.c
594
ifp->int_data.ts = 0;
sbin/routed/if.c
727
ifs0.int_data.ts = now.tv_sec;
sbin/routed/if.c
941
} else if (now.tv_sec>(ifp->int_data.ts
sbin/routed/if.c
946
now.tv_sec-ifp->int_data.ts);
sbin/routed/if.c
960
if (now.tv_sec < ifp->int_data.ts+CHECK_BAD_INTERVAL)
sbin/routed/if.c
969
if (ifp->int_data.ts == 0) {
sbin/routed/trace.c
156
fprintf(ftrace, "-- %s --\n", ts(now.tv_sec));
sbin/routed/trace.c
595
fprintf(ftrace, "%s ", ts(rts->rts_time));
sbin/routed/trace.c
812
RT->rt_poison_metric, ts(RT->rt_poison_time));
sbin/svc/execute.c
251
struct timespec ts;
sbin/svc/execute.c
269
clock_gettime(CLOCK_MONOTONIC_FAST, &ts);
sbin/svc/execute.c
279
setstate_stopped(cmd, &ts);
sbin/svc/execute.c
317
setstate_stopped(cmd, &ts);
sbin/svc/execute.c
331
setstate_stopped(cmd, &ts);
sbin/svc/execute.c
334
dt = (int)(ts.tv_sec - LastStop);
sbin/svc/execute.c
387
nextstop = ts.tv_sec;
sbin/svc/execute.c
392
nextstop = ts.tv_sec - 1;
sbin/svc/execute.c
402
dt = (int)(ts.tv_sec - nextstop);
sbin/svc/execute.c
427
struct timespec ts;
sbin/svc/execute.c
455
clock_gettime(CLOCK_MONOTONIC_FAST, &ts);
sbin/svc/execute.c
475
LastStart = ts.tv_sec;
sbin/svc/execute.c
477
setstate_stopped(InitCmd, &ts);
sbin/svc/execute.c
49
static void setstate_stopped(command_t *cmd, struct timespec *ts);
sbin/svc/execute.c
499
struct timespec ts;
sbin/svc/execute.c
527
clock_gettime(CLOCK_MONOTONIC_FAST, &ts);
sbin/svc/execute.c
528
LastStop = ts.tv_sec;
sbin/svc/execute.c
809
setstate_stopped(command_t *cmd, struct timespec *ts)
sbin/svc/execute.c
813
LastStop = ts->tv_sec;
sbin/sysctl/sysctl.c
380
struct timespec *ts = (struct timespec*)p;
sbin/sysctl/sysctl.c
384
if (l2 != sizeof(*ts))
sbin/sysctl/sysctl.c
385
err(1, "S_timespec %zu != %zu", l2, sizeof(*ts));
sbin/sysctl/sysctl.c
387
ts->tv_sec, ts->tv_nsec);
sbin/sysctl/sysctl.c
388
tv_sec = ts->tv_sec;
share/examples/scsi_target/scsi_target.c
352
struct timespec ts, *tptr;
share/examples/scsi_target/scsi_target.c
367
ts.tv_sec = 0;
share/examples/scsi_target/scsi_target.c
368
ts.tv_nsec = 0;
share/examples/scsi_target/scsi_target.c
476
tptr = &ts;
sys/dev/acpica/acpi_hpet.c
622
struct timespec ts;
sys/dev/acpica/acpi_hpet.c
639
TIMEVAL_TO_TIMESPEC(&b2, &ts);
sys/dev/acpica/acpi_hpet.c
644
device_printf(sc->dev, "time per call: %ld ns\n", ts.tv_nsec / 1000);
sys/dev/apple/smc/smc_sysctl.c
705
uint32_t ts;
sys/dev/apple/smc/smc_sysctl.c
710
ts = be32dec(buf);
sys/dev/apple/smc/smc_sysctl.c
711
error = sysctl_handle_32(oidp, &ts, 0, req);
sys/dev/apple/smc/smc_sysctl.c
719
be32enc(buf, ts);
sys/dev/disk/iscsi/initiator/iscsi.c
333
(long)pq->ts.tv_sec);\
sys/dev/disk/iscsi/initiator/iscsi.c
674
(long)pq->ts.sec, pq->ts.frac, pq->flags);\
sys/dev/disk/iscsi/initiator/iscsivar.h
189
struct timeval ts;
sys/dev/disk/iscsi/initiator/iscsivar.h
510
getmicrouptime(&pq->ts);
sys/dev/disk/isp/isp.c
5197
uint8_t ts = completion_status & 0xff;
sys/dev/disk/isp/isp.c
5204
} else if (ts != RQCS_ABORTED && ts != RQCS_RESET_OCCURRED) {
sys/dev/disk/isp/isp.c
5205
isp_prt(isp, ISP_LOGERR, "cannot find handle 0x%x (status 0x%x)", sp->req_handle, ts);
sys/dev/disk/isp/isp_freebsd.c
4286
int bus, tgt, ts, error, lim;
sys/dev/disk/isp/isp_freebsd.c
4353
ts = ccb->ccb_h.timeout;
sys/dev/disk/isp/isp_freebsd.c
4354
if (ts == CAM_TIME_DEFAULT) {
sys/dev/disk/isp/isp_freebsd.c
4355
ts = 60*1000;
sys/dev/disk/isp/isp_freebsd.c
4357
ts = isp_mstohz(ts);
sys/dev/disk/isp/isp_freebsd.c
4359
callout_reset(&PISP_PCMD(ccb)->wdog, ts, isp_watchdog, ccb);
sys/dev/drm/drm_vblank.c
1511
struct timespec64 ts;
sys/dev/drm/drm_vblank.c
1519
ts = ktime_to_timespec64(now);
sys/dev/drm/drm_vblank.c
1520
reply->tval_sec = (u32)ts.tv_sec;
sys/dev/drm/drm_vblank.c
1521
reply->tval_usec = ts.tv_nsec / 1000;
sys/dev/drm/i915/i915_gpu_error.c
648
struct timespec64 ts;
sys/dev/drm/i915/i915_gpu_error.c
662
ts = ktime_to_timespec64(error->time);
sys/dev/drm/i915/i915_gpu_error.c
664
(s64)ts.tv_sec, ts.tv_nsec / NSEC_PER_USEC);
sys/dev/drm/i915/i915_gpu_error.c
665
ts = ktime_to_timespec64(error->boottime);
sys/dev/drm/i915/i915_gpu_error.c
667
(s64)ts.tv_sec, ts.tv_nsec / NSEC_PER_USEC);
sys/dev/drm/i915/i915_gpu_error.c
668
ts = ktime_to_timespec64(error->uptime);
sys/dev/drm/i915/i915_gpu_error.c
670
(s64)ts.tv_sec, ts.tv_nsec / NSEC_PER_USEC);
sys/dev/drm/include/linux/jiffies.h
55
timespec_to_jiffies(const struct timespec *ts)
sys/dev/drm/include/linux/jiffies.h
59
result = ((unsigned long)hz * ts->tv_sec) + (ts->tv_nsec / NSEC_PER_SEC);
sys/dev/drm/include/linux/ktime.h
89
struct timespec ts;
sys/dev/drm/include/linux/ktime.h
91
nanouptime(&ts);
sys/dev/drm/include/linux/ktime.h
92
return (ts.tv_sec * NSEC_PER_SEC) + ts.tv_nsec;
sys/dev/drm/include/linux/ktime.h
97
struct timespec ts;
sys/dev/drm/include/linux/ktime.h
98
nanouptime(&ts);
sys/dev/drm/include/linux/ktime.h
99
return (ts.tv_sec);
sys/dev/drm/include/linux/sched.h
216
struct timespec ts;
sys/dev/drm/include/linux/sched.h
218
getnanouptime(&ts);
sys/dev/drm/include/linux/sched.h
219
return (ts.tv_sec * NSEC_PER_SEC) + ts.tv_nsec;
sys/dev/drm/include/linux/sched.h
312
sched_setscheduler_nocheck(struct task_struct *ts,
sys/dev/drm/include/linux/sched/task.h
33
get_task_struct(struct task_struct *ts)
sys/dev/drm/include/linux/sched/task.h
35
atomic_inc(&ts->usage_counter);
sys/dev/drm/include/linux/sched/task.h
39
put_task_struct(struct task_struct *ts)
sys/dev/drm/include/linux/sched/task.h
41
if (atomic_dec_and_test(&ts->usage_counter))
sys/dev/drm/include/linux/time.h
102
struct timespec ts;
sys/dev/drm/include/linux/time.h
106
ts.tv_sec = 0;
sys/dev/drm/include/linux/time.h
107
ts.tv_nsec = 0;
sys/dev/drm/include/linux/time.h
108
return (ts);
sys/dev/drm/include/linux/time.h
111
ts.tv_sec = nsec / NSEC_PER_SEC;
sys/dev/drm/include/linux/time.h
114
ts.tv_sec--;
sys/dev/drm/include/linux/time.h
117
ts.tv_nsec = rem;
sys/dev/drm/include/linux/time.h
118
return (ts);
sys/dev/drm/include/linux/time.h
122
timespec_valid(const struct timespec *ts)
sys/dev/drm/include/linux/time.h
124
if (ts->tv_sec < 0 || ts->tv_sec > 100000000 ||
sys/dev/drm/include/linux/time.h
125
ts->tv_nsec < 0 || ts->tv_nsec >= 1000000000)
sys/dev/drm/include/linux/time.h
73
#define getrawmonotonic(ts) nanouptime(ts)
sys/dev/drm/include/linux/time.h
78
struct timespec ts;
sys/dev/drm/include/linux/time.h
80
timespecsub(&lhs, &rhs, &ts);
sys/dev/drm/include/linux/time.h
82
return ts;
sys/dev/drm/include/linux/time.h
86
set_normalized_timespec(struct timespec *ts, time_t sec, int64_t nsec)
sys/dev/drm/include/linux/time.h
89
ts->tv_sec = sec;
sys/dev/drm/include/linux/time.h
90
ts->tv_nsec = nsec;
sys/dev/drm/include/linux/time.h
94
timespec_to_ns(const struct timespec *ts)
sys/dev/drm/include/linux/time.h
96
return ((ts->tv_sec * NSEC_PER_SEC) + ts->tv_nsec);
sys/dev/drm/include/linux/timekeeping.h
32
struct timespec ts;
sys/dev/drm/include/linux/timekeeping.h
34
nanouptime(&ts);
sys/dev/drm/include/linux/timekeeping.h
36
return (ts.tv_sec * NSEC_PER_SEC) + ts.tv_nsec;
sys/dev/drm/linux_hrtimer.c
92
struct timespec ts;
sys/dev/drm/linux_hrtimer.c
96
nanouptime(&ts);
sys/dev/drm/linux_hrtimer.c
97
curtime = ts.tv_sec * 1000000000 + ts.tv_nsec;
sys/dev/drm/linux_kthread.c
100
return ts->kt_exitvalue;
sys/dev/drm/linux_kthread.c
104
kthread_park(struct task_struct *ts)
sys/dev/drm/linux_kthread.c
106
set_bit(KTHREAD_SHOULD_PARK, &ts->kt_flags);
sys/dev/drm/linux_kthread.c
107
wake_up_process(ts);
sys/dev/drm/linux_kthread.c
109
return ts->kt_exitvalue;
sys/dev/drm/linux_kthread.c
113
kthread_unpark(struct task_struct *ts)
sys/dev/drm/linux_kthread.c
115
clear_bit(KTHREAD_SHOULD_PARK, &ts->kt_flags);
sys/dev/drm/linux_kthread.c
116
lwkt_schedule(ts->dfly_td);
sys/dev/drm/linux_kthread.c
117
wake_up_process(ts);
sys/dev/drm/linux_kthread.c
89
kthread_stop(struct task_struct *ts)
sys/dev/drm/linux_kthread.c
91
set_bit(KTHREAD_SHOULD_STOP, &ts->kt_flags);
sys/dev/drm/linux_kthread.c
93
kthread_unpark(ts);
sys/dev/drm/linux_kthread.c
94
wake_up_process(ts);
sys/dev/drm/linux_kthread.c
98
lwkt_free_thread(ts->dfly_td);
sys/dev/drm/linux_tasklet.c
142
if (te->ts == t) \
sys/dev/drm/linux_tasklet.c
147
te->ts = t; \
sys/dev/drm/linux_tasklet.c
45
struct tasklet_struct *ts;
sys/dev/drm/linux_tasklet.c
69
struct tasklet_struct *t = te->ts; \
sys/dev/misc/musycc/musycc.c
1046
u_int32_t ts, chan;
sys/dev/misc/musycc/musycc.c
1060
ts = parse_ts(name + 2, &nbit);
sys/dev/misc/musycc/musycc.c
1061
if (ts == 0)
sys/dev/misc/musycc/musycc.c
1063
chan = ffs(ts) - 1;
sys/dev/misc/musycc/musycc.c
1069
else if (ts & 1)
sys/dev/misc/musycc/musycc.c
1084
sch->ts = ts;
sys/dev/misc/musycc/musycc.c
1216
if (sch->ts & (1 << i)) {
sys/dev/misc/musycc/musycc.c
1229
if (sch->ts & (1 << i))
sys/dev/misc/musycc/musycc.c
1236
ch, sch->ts, nts, nbuf);
sys/dev/misc/musycc/musycc.c
1353
if (sch->ts & (1 << i)) {
sys/dev/misc/musycc/musycc.c
166
u_int32_t ts;
sys/dev/misc/musycc/musycc.c
455
ksprintf(s + strlen(s), " ts %08x", scp->ts);
sys/dev/misc/syscons/scterm-sc.c
648
tcp = scp->ts;
sys/dev/misc/syscons/scterm-sc.c
681
term_stat *tcp = scp->ts;
sys/dev/misc/syscons/scterm-sc.c
715
term_stat *tcp = scp->ts;
sys/dev/misc/syscons/scterm-sc.c
730
term_stat *tcp = scp->ts;
sys/dev/misc/syscons/scvidctl.c
365
(*scp->tsw->te_term)(scp, scp->ts);
sys/dev/misc/syscons/scvidctl.c
367
scp->ts = NULL;
sys/dev/misc/syscons/syscons.c
1925
save = scp->ts;
sys/dev/misc/syscons/syscons.c
1927
scp->ts = kernel_console_ts;
sys/dev/misc/syscons/syscons.c
1930
scp->ts = save;
sys/dev/misc/syscons/syscons.c
3490
(*scp->tsw->te_term)(scp, &scp->ts);
sys/dev/misc/syscons/syscons.c
3491
if (scp->ts != NULL)
sys/dev/misc/syscons/syscons.c
3492
kfree(scp->ts, M_SYSCONS);
sys/dev/misc/syscons/syscons.c
3696
scp->ts = NULL;
sys/dev/misc/syscons/syscons.c
3750
error = (*sw->te_init)(scp, &scp->ts, SC_TE_WARM_INIT);
sys/dev/misc/syscons/syscons.c
3767
(*scp->tsw->te_term)(scp, &scp->ts);
sys/dev/misc/syscons/syscons.c
3768
if (scp->ts != NULL)
sys/dev/misc/syscons/syscons.c
3769
kfree(scp->ts, M_SYSCONS);
sys/dev/misc/syscons/syscons.c
3771
scp->ts = p;
sys/dev/misc/syscons/syscons.c
568
kernel_console_ts = sc_console->ts;
sys/dev/misc/syscons/syscons.c
569
sc_console->ts = kmalloc(sc_console->tsw->te_size,
sys/dev/misc/syscons/syscons.c
571
bcopy(kernel_console_ts, sc_console->ts, sc_console->tsw->te_size);
sys/dev/misc/syscons/syscons.h
285
void *ts;
sys/dev/netif/ath/ath/if_ath.c
4189
ath_tx_update_stats(struct ath_softc *sc, struct ath_tx_status *ts,
sys/dev/netif/ath/ath/if_ath.c
4196
if (ts->ts_status == 0) {
sys/dev/netif/ath/ath/if_ath.c
4197
u_int8_t txant = ts->ts_antenna;
sys/dev/netif/ath/ath/if_ath.c
4200
if (ts->ts_finaltsi != 0)
sys/dev/netif/ath/ath/if_ath.c
4208
if (ts->ts_status & HAL_TXERR_XRETRY)
sys/dev/netif/ath/ath/if_ath.c
4210
if (ts->ts_status & HAL_TXERR_FIFO)
sys/dev/netif/ath/ath/if_ath.c
4212
if (ts->ts_status & HAL_TXERR_FILT)
sys/dev/netif/ath/ath/if_ath.c
4214
if (ts->ts_status & HAL_TXERR_XTXOP)
sys/dev/netif/ath/ath/if_ath.c
4216
if (ts->ts_status & HAL_TXERR_TIMER_EXPIRED)
sys/dev/netif/ath/ath/if_ath.c
4223
if (ts->ts_flags & HAL_TX_DESC_CFG_ERR)
sys/dev/netif/ath/ath/if_ath.c
4233
if (ts->ts_flags & HAL_TX_DATA_UNDERRUN)
sys/dev/netif/ath/ath/if_ath.c
4235
if (ts->ts_flags & HAL_TX_DELIM_UNDERRUN)
sys/dev/netif/ath/ath/if_ath.c
4238
sr = ts->ts_shortretry;
sys/dev/netif/ath/ath/if_ath.c
4239
lr = ts->ts_longretry;
sys/dev/netif/ath/ath/if_ath.c
4253
struct ath_tx_status *ts = &bf->bf_status.ds_txstat;
sys/dev/netif/ath/ath/if_ath.c
4260
ts->ts_status : HAL_TXERR_XRETRY;
sys/dev/netif/ath/ath/if_ath.c
4312
struct ath_rc_series *rc, struct ath_tx_status *ts, int frmlen,
sys/dev/netif/ath/ath/if_ath.c
4324
if ((ts->ts_status & HAL_TXERR_FILT) == 0) {
sys/dev/netif/ath/ath/if_ath.c
4326
ath_rate_tx_complete(sc, an, rc, ts, frmlen, nframes, nbad);
sys/dev/netif/ath/ath/if_ath.c
4340
struct ath_tx_status *ts, struct ath_buf *bf)
sys/dev/netif/ath/ath/if_ath.c
4350
ath_tx_update_stats(sc, ts, bf);
sys/dev/netif/ath/ath/if_ath.c
4362
if ((ts->ts_status & HAL_TXERR_FILT) == 0 &&
sys/dev/netif/ath/ath/if_ath.c
4369
bf->bf_state.bfs_rc, ts,
sys/dev/netif/ath/ath/if_ath.c
4371
(ts->ts_status == 0 ? 0 : 1));
sys/dev/netif/ath/ath/if_ath.c
4391
struct ath_tx_status *ts;
sys/dev/netif/ath/ath/if_ath.c
4421
ts = &bf->bf_status.ds_txstat;
sys/dev/netif/ath/ath/if_ath.c
4423
status = ath_hal_txprocdesc(ah, ds, ts);
sys/dev/netif/ath/ath/if_ath.c
4494
txq->axq_qnum, bf, ds, ni, ts->ts_status);
sys/dev/netif/ath/ath/if_ath.c
4500
if (ni != NULL && ts->ts_status == 0 &&
sys/dev/netif/ath/ath/if_ath.c
4503
sc->sc_stats.ast_tx_rssi = ts->ts_rssi;
sys/dev/netif/ath/ath/if_ath.c
4505
ts->ts_rssi);
sys/dev/netif/ath/ath/if_ath.c
4512
ath_tx_process_buf_completion(sc, txq, ts, bf);
sys/dev/netif/ath/ath/if_ath_debug.c
144
const struct ath_tx_status *ts =
sys/dev/netif/ath/ath/if_ath_debug.c
171
!done ? "" : (ts->ts_status == 0) ? " *" : " !");
sys/dev/netif/ath/ath/if_ath_debug.c
207
const struct ath_tx_status *ts = &first_bf->bf_status.ds_txstat;
sys/dev/netif/ath/ath/if_ath_debug.c
225
!done ? "" : (ts->ts_status == 0) ? " *" : " !");
sys/dev/netif/ath/ath/if_ath_misc.h
64
struct ath_tx_status *ts, int frmlen, int nframes, int nbad);
sys/dev/netif/ath/ath/if_ath_misc.h
90
struct ath_txq *txq, struct ath_tx_status *ts, struct ath_buf *bf);
sys/dev/netif/ath/ath/if_ath_tdma.c
379
const struct ieee80211_tdma_state *ts = vap->iv_tdma;
sys/dev/netif/ath/ath/if_ath_tdma.c
381
ath_tdma_bintvalsetup(sc, ts);
sys/dev/netif/ath/ath/if_ath_tdma.c
388
ts->tdma_slot, ts->tdma_slotcnt, ts->tdma_slotlen,
sys/dev/netif/ath/ath/if_ath_tx.c
4284
struct ath_tx_status *ts = &bf->bf_status.ds_txstat;
sys/dev/netif/ath/ath/if_ath_tx.c
4299
if ((ts->ts_status & HAL_TXERR_FILT) ||
sys/dev/netif/ath/ath/if_ath_tx.c
4300
(ts->ts_status != 0 && atid->isfiltered)) {
sys/dev/netif/ath/ath/if_ath_tx.c
4305
ts->ts_status);
sys/dev/netif/ath/ath/if_ath_tx.c
4349
ts, bf->bf_state.bfs_pktlen,
sys/dev/netif/ath/ath/if_ath_tx.c
4350
1, (ts->ts_status == 0) ? 0 : 1);
sys/dev/netif/ath/ath/if_ath_tx.c
4921
struct ath_tx_status ts;
sys/dev/netif/ath/ath/if_ath_tx.c
4944
ts = bf_first->bf_status.ds_txstat;
sys/dev/netif/ath/ath/if_ath_tx.c
4987
if ((ts.ts_status & HAL_TXERR_FILT) ||
sys/dev/netif/ath/ath/if_ath_tx.c
4988
(ts.ts_status != 0 && atid->isfiltered)) {
sys/dev/netif/ath/ath/if_ath_tx.c
5036
if (ts.ts_status & HAL_TXERR_XRETRY) {
sys/dev/netif/ath/ath/if_ath_tx.c
5038
if (ts.ts_status != 0) {
sys/dev/netif/ath/ath/if_ath_tx.c
5050
seq_st = ts.ts_seqnum;
sys/dev/netif/ath/ath/if_ath_tx.c
5051
hasba = !! (ts.ts_flags & HAL_TX_BA);
sys/dev/netif/ath/ath/if_ath_tx.c
5052
tx_ok = (ts.ts_status == 0);
sys/dev/netif/ath/ath/if_ath_tx.c
5054
ba[0] = ts.ts_ba_low;
sys/dev/netif/ath/ath/if_ath_tx.c
5055
ba[1] = ts.ts_ba_high;
sys/dev/netif/ath/ath/if_ath_tx.c
5068
__func__, tap->txa_start, tx_ok, ts.ts_status, ts.ts_flags,
sys/dev/netif/ath/ath/if_ath_tx.c
5082
if (tid != ts.ts_tid) {
sys/dev/netif/ath/ath/if_ath_tx.c
5084
__func__, tid, ts.ts_tid);
sys/dev/netif/ath/ath/if_ath_tx.c
5181
ath_tx_update_ratectrl(sc, ni, rc, &ts, pktlen, nframes,
sys/dev/netif/ath/ath/if_ath_tx.c
5254
struct ath_tx_status ts;
sys/dev/netif/ath/ath/if_ath_tx.c
5261
ts = bf->bf_status.ds_txstat;
sys/dev/netif/ath/ath/if_ath_tx.c
5273
1, (ts.ts_status == 0) ? 0 : 1);
sys/dev/netif/ath/ath/if_ath_tx.c
5333
if ((ts.ts_status & HAL_TXERR_FILT) ||
sys/dev/netif/ath/ath/if_ath_tx.c
5334
(ts.ts_status != 0 && atid->isfiltered)) {
sys/dev/netif/ath/ath/if_ath_tx.c
5388
if (fail == 0 && ts->ts_status & HAL_TXERR_XRETRY) {
sys/dev/netif/ath/ath/if_ath_tx.c
5390
if (fail == 0 && ts.ts_status != 0) {
sys/dev/netif/ath/ath/if_ath_tx_edma.c
614
struct ath_tx_status ts;
sys/dev/netif/ath/ath/if_ath_tx_edma.c
627
bzero(&ts, sizeof(ts));
sys/dev/netif/ath/ath/if_ath_tx_edma.c
633
status = ath_hal_txprocdesc(ah, NULL, (void *) &ts);
sys/dev/netif/ath/ath/if_ath_tx_edma.c
641
if (ts.ts_queue_id != sc->sc_bhalq)
sys/dev/netif/ath/ath/if_ath_tx_edma.c
642
ath_printtxstatbuf(sc, NULL, txstatus, ts.ts_queue_id,
sys/dev/netif/ath/ath/if_ath_tx_edma.c
681
if (ts.ts_queue_id == sc->sc_bhalq)
sys/dev/netif/ath/ath/if_ath_tx_edma.c
684
txq = &sc->sc_txq[ts.ts_queue_id];
sys/dev/netif/ath/ath/if_ath_tx_edma.c
697
ts.ts_queue_id);
sys/dev/netif/ath/ath/if_ath_tx_edma.c
704
ts.ts_queue_id, bf,
sys/dev/netif/ath/ath/if_ath_tx_edma.c
712
if (ts.ts_desc_id != bf->bf_descid) {
sys/dev/netif/ath/ath/if_ath_tx_edma.c
717
ts.ts_queue_id,
sys/dev/netif/ath/ath/if_ath_tx_edma.c
718
ts.ts_desc_id,
sys/dev/netif/ath/ath/if_ath_tx_edma.c
779
if (ts.ts_finaltsi < 4) {
sys/dev/netif/ath/ath/if_ath_tx_edma.c
780
ts.ts_rate =
sys/dev/netif/ath/ath/if_ath_tx_edma.c
781
bf->bf_state.bfs_rc[ts.ts_finaltsi].ratecode;
sys/dev/netif/ath/ath/if_ath_tx_edma.c
782
switch (ts.ts_finaltsi) {
sys/dev/netif/ath/ath/if_ath_tx_edma.c
783
case 3: ts.ts_longretry +=
sys/dev/netif/ath/ath/if_ath_tx_edma.c
785
case 2: ts.ts_longretry +=
sys/dev/netif/ath/ath/if_ath_tx_edma.c
787
case 1: ts.ts_longretry +=
sys/dev/netif/ath/ath/if_ath_tx_edma.c
793
ts.ts_finaltsi);
sys/dev/netif/ath/ath/if_ath_tx_edma.c
794
ts.ts_rate = bf->bf_state.bfs_rc[0].ratecode;
sys/dev/netif/ath/ath/if_ath_tx_edma.c
808
memcpy(&bf->bf_status, &ts, sizeof(ts));
sys/dev/netif/ath/ath/if_ath_tx_edma.c
814
if (ni != NULL && ts.ts_status == 0 &&
sys/dev/netif/ath/ath/if_ath_tx_edma.c
817
sc->sc_stats.ast_tx_rssi = ts.ts_rssi;
sys/dev/netif/ath/ath/if_ath_tx_edma.c
819
ts.ts_rssi);
sys/dev/netif/ath/ath/if_ath_tx_edma.c
823
ath_tx_process_buf_completion(sc, txq, &ts, bf);
sys/dev/netif/ath/ath_hal/ar5210/ar5210_xmit.c
591
struct ath_desc *ds, struct ath_tx_status *ts)
sys/dev/netif/ath/ath_hal/ar5210/ar5210_xmit.c
599
ts->ts_seqnum = ads->ds_status1 & AR_SeqNum;
sys/dev/netif/ath/ath_hal/ar5210/ar5210_xmit.c
600
ts->ts_tstamp = MS(ads->ds_status0, AR_SendTimestamp);
sys/dev/netif/ath/ath_hal/ar5210/ar5210_xmit.c
601
ts->ts_status = 0;
sys/dev/netif/ath/ath_hal/ar5210/ar5210_xmit.c
604
ts->ts_status |= HAL_TXERR_XRETRY;
sys/dev/netif/ath/ath_hal/ar5210/ar5210_xmit.c
606
ts->ts_status |= HAL_TXERR_FILT;
sys/dev/netif/ath/ath_hal/ar5210/ar5210_xmit.c
608
ts->ts_status |= HAL_TXERR_FIFO;
sys/dev/netif/ath/ath_hal/ar5210/ar5210_xmit.c
610
ts->ts_rate = MS(ads->ds_ctl0, AR_XmitRate);
sys/dev/netif/ath/ath_hal/ar5210/ar5210_xmit.c
611
ts->ts_rssi = MS(ads->ds_status1, AR_AckSigStrength);
sys/dev/netif/ath/ath_hal/ar5210/ar5210_xmit.c
612
ts->ts_shortretry = MS(ads->ds_status0, AR_ShortRetryCnt);
sys/dev/netif/ath/ath_hal/ar5210/ar5210_xmit.c
613
ts->ts_longretry = MS(ads->ds_status0, AR_LongRetryCnt);
sys/dev/netif/ath/ath_hal/ar5210/ar5210_xmit.c
614
ts->ts_antenna = 0; /* NB: don't know */
sys/dev/netif/ath/ath_hal/ar5210/ar5210_xmit.c
615
ts->ts_finaltsi = 0;
sys/dev/netif/ath/ath_hal/ar5211/ar5211_xmit.c
621
struct ath_desc *ds, struct ath_tx_status *ts)
sys/dev/netif/ath/ath_hal/ar5211/ar5211_xmit.c
629
ts->ts_seqnum = MS(ads->ds_status1, AR_SeqNum);
sys/dev/netif/ath/ath_hal/ar5211/ar5211_xmit.c
630
ts->ts_tstamp = MS(ads->ds_status0, AR_SendTimestamp);
sys/dev/netif/ath/ath_hal/ar5211/ar5211_xmit.c
631
ts->ts_status = 0;
sys/dev/netif/ath/ath_hal/ar5211/ar5211_xmit.c
634
ts->ts_status |= HAL_TXERR_XRETRY;
sys/dev/netif/ath/ath_hal/ar5211/ar5211_xmit.c
636
ts->ts_status |= HAL_TXERR_FILT;
sys/dev/netif/ath/ath_hal/ar5211/ar5211_xmit.c
638
ts->ts_status |= HAL_TXERR_FIFO;
sys/dev/netif/ath/ath_hal/ar5211/ar5211_xmit.c
640
ts->ts_rate = MS(ads->ds_ctl0, AR_XmitRate);
sys/dev/netif/ath/ath_hal/ar5211/ar5211_xmit.c
641
ts->ts_rssi = MS(ads->ds_status1, AR_AckSigStrength);
sys/dev/netif/ath/ath_hal/ar5211/ar5211_xmit.c
642
ts->ts_shortretry = MS(ads->ds_status0, AR_ShortRetryCnt);
sys/dev/netif/ath/ath_hal/ar5211/ar5211_xmit.c
643
ts->ts_longretry = MS(ads->ds_status0, AR_LongRetryCnt);
sys/dev/netif/ath/ath_hal/ar5211/ar5211_xmit.c
644
ts->ts_virtcol = MS(ads->ds_status0, AR_VirtCollCnt);
sys/dev/netif/ath/ath_hal/ar5211/ar5211_xmit.c
645
ts->ts_antenna = 0; /* NB: don't know */
sys/dev/netif/ath/ath_hal/ar5211/ar5211_xmit.c
646
ts->ts_finaltsi = 0;
sys/dev/netif/ath/ath_hal/ar5211/ar5211_xmit.c
651
if (ts->ts_shortretry > 0)
sys/dev/netif/ath/ath_hal/ar5211/ar5211_xmit.c
652
ts->ts_shortretry++;
sys/dev/netif/ath/ath_hal/ar5211/ar5211_xmit.c
653
if (ts->ts_longretry > 0)
sys/dev/netif/ath/ath_hal/ar5211/ar5211_xmit.c
654
ts->ts_longretry++;
sys/dev/netif/ath/ath_hal/ar5212/ar5212_xmit.c
878
struct ath_desc *ds, struct ath_tx_status *ts)
sys/dev/netif/ath/ath_hal/ar5212/ar5212_xmit.c
893
ts->ts_seqnum = MS(ads->ds_txstatus1, AR_SeqNum);
sys/dev/netif/ath/ath_hal/ar5212/ar5212_xmit.c
894
ts->ts_tstamp = MS(ads->ds_txstatus0, AR_SendTimestamp);
sys/dev/netif/ath/ath_hal/ar5212/ar5212_xmit.c
895
ts->ts_status = 0;
sys/dev/netif/ath/ath_hal/ar5212/ar5212_xmit.c
898
ts->ts_status |= HAL_TXERR_XRETRY;
sys/dev/netif/ath/ath_hal/ar5212/ar5212_xmit.c
900
ts->ts_status |= HAL_TXERR_FILT;
sys/dev/netif/ath/ath_hal/ar5212/ar5212_xmit.c
902
ts->ts_status |= HAL_TXERR_FIFO;
sys/dev/netif/ath/ath_hal/ar5212/ar5212_xmit.c
908
ts->ts_finaltsi = MS(ads->ds_txstatus1, AR_FinalTSIndex);
sys/dev/netif/ath/ath_hal/ar5212/ar5212_xmit.c
909
switch (ts->ts_finaltsi) {
sys/dev/netif/ath/ath_hal/ar5212/ar5212_xmit.c
911
ts->ts_rate = MS(ads->ds_ctl3, AR_XmitRate0);
sys/dev/netif/ath/ath_hal/ar5212/ar5212_xmit.c
914
ts->ts_rate = MS(ads->ds_ctl3, AR_XmitRate1);
sys/dev/netif/ath/ath_hal/ar5212/ar5212_xmit.c
917
ts->ts_rate = MS(ads->ds_ctl3, AR_XmitRate2);
sys/dev/netif/ath/ath_hal/ar5212/ar5212_xmit.c
920
ts->ts_rate = MS(ads->ds_ctl3, AR_XmitRate3);
sys/dev/netif/ath/ath_hal/ar5212/ar5212_xmit.c
923
ts->ts_rssi = MS(ads->ds_txstatus1, AR_AckSigStrength);
sys/dev/netif/ath/ath_hal/ar5212/ar5212_xmit.c
924
ts->ts_shortretry = MS(ads->ds_txstatus0, AR_RTSFailCnt);
sys/dev/netif/ath/ath_hal/ar5212/ar5212_xmit.c
925
ts->ts_longretry = MS(ads->ds_txstatus0, AR_DataFailCnt);
sys/dev/netif/ath/ath_hal/ar5212/ar5212_xmit.c
937
switch (ts->ts_finaltsi) {
sys/dev/netif/ath/ath_hal/ar5212/ar5212_xmit.c
938
case 3: ts->ts_longretry += MS(ads->ds_ctl2, AR_XmitDataTries2);
sys/dev/netif/ath/ath_hal/ar5212/ar5212_xmit.c
939
case 2: ts->ts_longretry += MS(ads->ds_ctl2, AR_XmitDataTries1);
sys/dev/netif/ath/ath_hal/ar5212/ar5212_xmit.c
940
case 1: ts->ts_longretry += MS(ads->ds_ctl2, AR_XmitDataTries0);
sys/dev/netif/ath/ath_hal/ar5212/ar5212_xmit.c
942
ts->ts_virtcol = MS(ads->ds_txstatus0, AR_VirtCollCnt);
sys/dev/netif/ath/ath_hal/ar5212/ar5212_xmit.c
943
ts->ts_antenna = (ads->ds_txstatus1 & AR_XmitAtenna ? 2 : 1);
sys/dev/netif/ath/ath_hal/ar5416/ar5416_xmit.c
713
struct ath_desc *ds, struct ath_tx_status *ts)
sys/dev/netif/ath/ath_hal/ar5416/ar5416_xmit.c
728
ts->ts_seqnum = MS(ds_txstatus[9], AR_SeqNum);
sys/dev/netif/ath/ath_hal/ar5416/ar5416_xmit.c
729
ts->ts_tstamp = AR_SendTimestamp(ds_txstatus);
sys/dev/netif/ath/ath_hal/ar5416/ar5416_xmit.c
730
ts->ts_tid = MS(ds_txstatus[9], AR_TxTid);
sys/dev/netif/ath/ath_hal/ar5416/ar5416_xmit.c
732
ts->ts_status = 0;
sys/dev/netif/ath/ath_hal/ar5416/ar5416_xmit.c
734
ts->ts_status |= HAL_TXERR_XRETRY;
sys/dev/netif/ath/ath_hal/ar5416/ar5416_xmit.c
736
ts->ts_status |= HAL_TXERR_FILT;
sys/dev/netif/ath/ath_hal/ar5416/ar5416_xmit.c
738
ts->ts_status |= HAL_TXERR_FIFO;
sys/dev/netif/ath/ath_hal/ar5416/ar5416_xmit.c
740
ts->ts_status |= HAL_TXERR_XTXOP;
sys/dev/netif/ath/ath_hal/ar5416/ar5416_xmit.c
742
ts->ts_status |= HAL_TXERR_TIMER_EXPIRED;
sys/dev/netif/ath/ath_hal/ar5416/ar5416_xmit.c
744
ts->ts_flags = 0;
sys/dev/netif/ath/ath_hal/ar5416/ar5416_xmit.c
746
ts->ts_flags |= HAL_TX_BA;
sys/dev/netif/ath/ath_hal/ar5416/ar5416_xmit.c
747
ts->ts_ba_low = AR_BaBitmapLow(ds_txstatus);
sys/dev/netif/ath/ath_hal/ar5416/ar5416_xmit.c
748
ts->ts_ba_high = AR_BaBitmapHigh(ds_txstatus);
sys/dev/netif/ath/ath_hal/ar5416/ar5416_xmit.c
751
ts->ts_flags |= HAL_TX_AGGR;
sys/dev/netif/ath/ath_hal/ar5416/ar5416_xmit.c
753
ts->ts_flags |= HAL_TX_DESC_CFG_ERR;
sys/dev/netif/ath/ath_hal/ar5416/ar5416_xmit.c
755
ts->ts_flags |= HAL_TX_DATA_UNDERRUN;
sys/dev/netif/ath/ath_hal/ar5416/ar5416_xmit.c
757
ts->ts_flags |= HAL_TX_DELIM_UNDERRUN;
sys/dev/netif/ath/ath_hal/ar5416/ar5416_xmit.c
763
ts->ts_finaltsi = MS(ds_txstatus[9], AR_FinalTxIdx);
sys/dev/netif/ath/ath_hal/ar5416/ar5416_xmit.c
764
switch (ts->ts_finaltsi) {
sys/dev/netif/ath/ath_hal/ar5416/ar5416_xmit.c
766
ts->ts_rate = MS(ads->ds_ctl3, AR_XmitRate0);
sys/dev/netif/ath/ath_hal/ar5416/ar5416_xmit.c
769
ts->ts_rate = MS(ads->ds_ctl3, AR_XmitRate1);
sys/dev/netif/ath/ath_hal/ar5416/ar5416_xmit.c
772
ts->ts_rate = MS(ads->ds_ctl3, AR_XmitRate2);
sys/dev/netif/ath/ath_hal/ar5416/ar5416_xmit.c
775
ts->ts_rate = MS(ads->ds_ctl3, AR_XmitRate3);
sys/dev/netif/ath/ath_hal/ar5416/ar5416_xmit.c
779
ts->ts_rssi = MS(ds_txstatus[5], AR_TxRSSICombined);
sys/dev/netif/ath/ath_hal/ar5416/ar5416_xmit.c
780
ts->ts_rssi_ctl[0] = MS(ds_txstatus[0], AR_TxRSSIAnt00);
sys/dev/netif/ath/ath_hal/ar5416/ar5416_xmit.c
781
ts->ts_rssi_ctl[1] = MS(ds_txstatus[0], AR_TxRSSIAnt01);
sys/dev/netif/ath/ath_hal/ar5416/ar5416_xmit.c
782
ts->ts_rssi_ctl[2] = MS(ds_txstatus[0], AR_TxRSSIAnt02);
sys/dev/netif/ath/ath_hal/ar5416/ar5416_xmit.c
783
ts->ts_rssi_ext[0] = MS(ds_txstatus[5], AR_TxRSSIAnt10);
sys/dev/netif/ath/ath_hal/ar5416/ar5416_xmit.c
784
ts->ts_rssi_ext[1] = MS(ds_txstatus[5], AR_TxRSSIAnt11);
sys/dev/netif/ath/ath_hal/ar5416/ar5416_xmit.c
785
ts->ts_rssi_ext[2] = MS(ds_txstatus[5], AR_TxRSSIAnt12);
sys/dev/netif/ath/ath_hal/ar5416/ar5416_xmit.c
786
ts->ts_evm0 = AR_TxEVM0(ds_txstatus);
sys/dev/netif/ath/ath_hal/ar5416/ar5416_xmit.c
787
ts->ts_evm1 = AR_TxEVM1(ds_txstatus);
sys/dev/netif/ath/ath_hal/ar5416/ar5416_xmit.c
788
ts->ts_evm2 = AR_TxEVM2(ds_txstatus);
sys/dev/netif/ath/ath_hal/ar5416/ar5416_xmit.c
790
ts->ts_shortretry = MS(ds_txstatus[1], AR_RTSFailCnt);
sys/dev/netif/ath/ath_hal/ar5416/ar5416_xmit.c
791
ts->ts_longretry = MS(ds_txstatus[1], AR_DataFailCnt);
sys/dev/netif/ath/ath_hal/ar5416/ar5416_xmit.c
803
switch (ts->ts_finaltsi) {
sys/dev/netif/ath/ath_hal/ar5416/ar5416_xmit.c
804
case 3: ts->ts_longretry += MS(ads->ds_ctl2, AR_XmitDataTries2);
sys/dev/netif/ath/ath_hal/ar5416/ar5416_xmit.c
805
case 2: ts->ts_longretry += MS(ads->ds_ctl2, AR_XmitDataTries1);
sys/dev/netif/ath/ath_hal/ar5416/ar5416_xmit.c
806
case 1: ts->ts_longretry += MS(ads->ds_ctl2, AR_XmitDataTries0);
sys/dev/netif/ath/ath_hal/ar5416/ar5416_xmit.c
813
ts->ts_virtcol = MS(ads->ds_ctl1, AR_VirtRetryCnt);
sys/dev/netif/ath/ath_hal/ar5416/ar5416_xmit.c
814
ts->ts_antenna = 0; /* We don't switch antennas on Owl*/
sys/dev/netif/ath/ath_hal/ar5416/ar5416_xmit.c
817
if ((ts->ts_status & HAL_TXERR_FIFO) ||
sys/dev/netif/ath/ath_hal/ar5416/ar5416_xmit.c
818
(ts->ts_flags & (HAL_TX_DATA_UNDERRUN | HAL_TX_DELIM_UNDERRUN)))
sys/dev/netif/ath/ath_rate/amrr/amrr.c
162
const struct ath_rc_series *rc, const struct ath_tx_status *ts,
sys/dev/netif/ath/ath_rate/amrr/amrr.c
166
int sr = ts->ts_shortretry;
sys/dev/netif/ath/ath_rate/amrr/amrr.c
167
int lr = ts->ts_longretry;
sys/dev/netif/ath/ath_rate/onoe/onoe.c
169
const struct ath_rc_series *rc, const struct ath_tx_status *ts,
sys/dev/netif/ath/ath_rate/onoe/onoe.c
174
if (ts->ts_status == 0)
sys/dev/netif/ath/ath_rate/onoe/onoe.c
178
on->on_tx_retr += ts->ts_shortretry
sys/dev/netif/ath/ath_rate/onoe/onoe.c
179
+ ts->ts_longretry;
sys/dev/netif/ath/ath_rate/sample/sample.c
862
const struct ath_rc_series *rc, const struct ath_tx_status *ts,
sys/dev/netif/ath/ath_rate/sample/sample.c
869
int status = ts->ts_status;
sys/dev/netif/ath/ath_rate/sample/sample.c
872
final_rix = rt->rateCodeToIndex[ts->ts_rate];
sys/dev/netif/ath/ath_rate/sample/sample.c
873
short_tries = ts->ts_shortretry;
sys/dev/netif/ath/ath_rate/sample/sample.c
874
long_tries = ts->ts_longretry + 1;
sys/dev/netif/ath/ath_rate/sample/sample.c
899
if (!mrr || ts->ts_finaltsi == 0) {
sys/dev/netif/ath/ath_rate/sample/sample.c
903
__func__, ts->ts_rate, ts->ts_finaltsi, final_rix);
sys/dev/netif/ath/ath_rate/sample/sample.c
904
badrate(sc, 0, ts->ts_rate, long_tries, status);
sys/dev/netif/ath/ath_rate/sample/sample.c
927
int finalTSIdx = ts->ts_finaltsi;
sys/dev/netif/bwn/bwn/if_bwn_phy_g.c
2208
struct timespec ts;
sys/dev/netif/bwn/bwn/if_bwn_phy_g.c
2303
nanouptime(&ts);
sys/dev/netif/bwn/bwn/if_bwn_phy_g.c
2305
(ts.tv_nsec / 1000000 + ts.tv_sec * 1000) - BWN_LO_TXCTL_EXPIRE))
sys/dev/netif/bwn/bwn/if_bwnvar.h
54
struct timespec ts; \
sys/dev/netif/bwn/bwn/if_bwnvar.h
55
nanouptime(&ts); \
sys/dev/netif/bwn/bwn/if_bwnvar.h
56
(v) = ts.tv_nsec / 1000000 + ts.tv_sec * 1000; \
sys/dev/netif/mn/if_mn.c
155
u_int32_t ts[M32_TS];
sys/dev/netif/mn/if_mn.c
176
static void mn_fmt_ts(char *p, u_int32_t ts);
sys/dev/netif/mn/if_mn.c
212
u_int32_t ts;
sys/dev/netif/mn/if_mn.c
449
u_int32_t ts, chan;
sys/dev/netif/mn/if_mn.c
458
ts = mn_parse_ts(name + 2, &nbit);
sys/dev/netif/mn/if_mn.c
459
kprintf("%d bits %x\n", nbit, ts);
sys/dev/netif/mn/if_mn.c
460
if (sc->framing == E1 && (ts & 1))
sys/dev/netif/mn/if_mn.c
464
if (ts == 0)
sys/dev/netif/mn/if_mn.c
467
chan = ffs(ts) - 1;
sys/dev/netif/mn/if_mn.c
474
sc->ch[chan]->ts = ts;
sys/dev/netif/mn/if_mn.c
544
mn_fmt_ts(char *p, u_int32_t ts)
sys/dev/netif/mn/if_mn.c
550
ts &= 0xffffffff;
sys/dev/netif/mn/if_mn.c
552
if (!(ts & (1 << j)))
sys/dev/netif/mn/if_mn.c
557
if (!(ts & (1 << (j+1))))
sys/dev/netif/mn/if_mn.c
560
if (!(ts & (1 << (j+1))))
sys/dev/netif/mn/if_mn.c
670
if (sch->ts & (1 << i)) {
sys/dev/netif/mn/if_mn.c
671
sc->m32_mem.ts[i] = 0x00ff00ff |
sys/dev/netif/mn/if_mn.c
766
if (sc->ch[chan]->ts & (1 << i))
sys/dev/netif/mn/if_mn.c
767
sc->m32_mem.ts[i] = 0x20002000;
sys/dev/netif/mn/if_mn.c
838
j, sc->ch[j]->state, sc->ch[j]->ts);
sys/dev/netif/mn/if_mn.c
973
sc->m32_mem.ts[i] = 0x20002000;
sys/dev/raid/ips/ips.c
609
uint32_t ts;
sys/dev/raid/ips/ips.c
611
ts = time_uptime + command->timeout;
sys/dev/raid/ips/ips.c
614
(ts > time_uptime))
sys/dev/raid/twe/twe.c
523
union twe_statrequest *ts = (union twe_statrequest *)addr;
sys/dev/raid/twe/twe.c
600
switch (ts->ts_item) {
sys/dev/raid/twe/twe.c
608
bcopy(&sc->twe_qstat[ts->ts_item], &ts->ts_qstat, sizeof(struct twe_qstat));
sys/dev/raid/tws/tws.h
164
struct timespec ts;
sys/dev/video/bktr/bktr_core.c
766
struct timeval *ts;
sys/dev/video/bktr/bktr_core.c
770
ts =(struct timeval *)bktr->bigbuf +
sys/dev/video/bktr/bktr_core.c
775
microtime(ts);
sys/dev/virtual/vmware/vmxnet3/if_vmx.c
1873
struct vmxnet3_txq_shared *ts;
sys/dev/virtual/vmware/vmxnet3/if_vmx.c
1897
ts = sc->vmx_txq[0].vxtxq_ts;
sys/dev/virtual/vmware/vmxnet3/if_vmx.c
1898
if (ts->stopped != 0)
sys/dev/virtual/vmware/vmxnet3/if_vmx.c
1899
device_printf(dev, "Tx queue error %#x\n", ts->error);
sys/kern/init_main.c
484
struct timespec ts;
sys/kern/init_main.c
496
nanotime(&ts);
sys/kern/init_main.c
497
skrandom(ts.tv_sec ^ ts.tv_nsec);
sys/kern/kern_clock.c
1207
tstohz_high(struct timespec *ts)
sys/kern/kern_clock.c
1212
sec = ts->tv_sec;
sys/kern/kern_clock.c
1213
nsec = ts->tv_nsec;
sys/kern/kern_clock.c
1265
tstohz_low(struct timespec *ts)
sys/kern/kern_clock.c
1270
sec = ts->tv_sec;
sys/kern/kern_clock.c
1272
ticks = (int)(sec * hz + (u_long)ts->tv_nsec / nstick);
sys/kern/kern_clock.c
1453
struct timespec ts;
sys/kern/kern_clock.c
1461
ts = ticktime2;
sys/kern/kern_clock.c
1464
ts = ticktime2;
sys/kern/kern_clock.c
1467
ts = ticktime0;
sys/kern/kern_clock.c
1470
ts = ticktime0;
sys/kern/kern_clock.c
1475
tvp->tv_sec = ts.tv_sec;
sys/kern/kern_clock.c
1476
tvp->tv_usec = ts.tv_nsec / 1000;
sys/kern/kern_clock.c
1482
struct timespec ts;
sys/kern/kern_clock.c
1490
ts = ticktime2;
sys/kern/kern_clock.c
1493
ts = ticktime2;
sys/kern/kern_clock.c
1496
ts = ticktime0;
sys/kern/kern_clock.c
1499
ts = ticktime0;
sys/kern/kern_clock.c
1504
*tsp = ts;
sys/kern/kern_clock.c
1717
struct timespec ts;
sys/kern/kern_clock.c
1760
ts.tv_sec = gd->gd_time_seconds;
sys/kern/kern_clock.c
1762
} while (ts.tv_sec != gd->gd_time_seconds);
sys/kern/kern_clock.c
1765
ts.tv_sec += delta / sys_cputimer->freq;
sys/kern/kern_clock.c
1768
ts.tv_nsec = muldivu64(sys_cputimer->freq64_nsec, delta, 1L << 32);
sys/kern/kern_clock.c
1772
ts.tv_sec += bt->tv_sec;
sys/kern/kern_clock.c
1773
ts.tv_nsec += bt->tv_nsec;
sys/kern/kern_clock.c
1774
while (ts.tv_nsec >= 1000000000) {
sys/kern/kern_clock.c
1775
ts.tv_nsec -= 1000000000;
sys/kern/kern_clock.c
1776
++ts.tv_sec;
sys/kern/kern_clock.c
1780
*tsp = ts;
sys/kern/kern_clock.c
497
set_timeofday(struct timespec *ts)
sys/kern/kern_clock.c
510
nbt->tv_sec = ts->tv_sec - nbt->tv_sec;
sys/kern/kern_clock.c
511
nbt->tv_nsec = ts->tv_nsec - nbt->tv_nsec;
sys/kern/kern_event.c
1057
struct timespec ts, *tsp;
sys/kern/kern_event.c
1064
error = copyin(uap->timeout, &ts, sizeof(ts));
sys/kern/kern_event.c
1067
tsp = &ts;
sys/kern/kern_p1003_1b.c
339
struct timespec ts;
sys/kern/kern_p1003_1b.c
347
lp, &ts);
sys/kern/kern_p1003_1b.c
349
e = copyout(&ts, uap->interval, sizeof(ts));
sys/kern/kern_shutdown.c
222
struct timespec ts;
sys/kern/kern_shutdown.c
224
getnanouptime(&ts);
sys/kern/kern_shutdown.c
227
if (ts.tv_sec >= 86400) {
sys/kern/kern_shutdown.c
228
kprintf("%ldd", ts.tv_sec / 86400);
sys/kern/kern_shutdown.c
229
ts.tv_sec %= 86400;
sys/kern/kern_shutdown.c
232
if (f || ts.tv_sec >= 3600) {
sys/kern/kern_shutdown.c
233
kprintf("%ldh", ts.tv_sec / 3600);
sys/kern/kern_shutdown.c
234
ts.tv_sec %= 3600;
sys/kern/kern_shutdown.c
237
if (f || ts.tv_sec >= 60) {
sys/kern/kern_shutdown.c
238
kprintf("%ldm", ts.tv_sec / 60);
sys/kern/kern_shutdown.c
239
ts.tv_sec %= 60;
sys/kern/kern_shutdown.c
242
kprintf("%lds\n", ts.tv_sec);
sys/kern/kern_sig.c
1738
struct timespec rts, ets, ts;
sys/kern/kern_sig.c
1801
timespecsub(&ets, &rts, &ts);
sys/kern/kern_sig.c
1802
hz = tstohz_high(&ts);
sys/kern/kern_sig.c
1865
struct timespec ts;
sys/kern/kern_sig.c
1872
error = copyin(uap->timeout, &ts, sizeof(ts));
sys/kern/kern_sig.c
1875
timeout = &ts;
sys/kern/kern_time.c
1047
itimespecfix(struct timespec *ts)
sys/kern/kern_time.c
1049
if (ts->tv_sec < 0 || ts->tv_nsec < 0 || ts->tv_nsec >= 1000000000ULL)
sys/kern/kern_time.c
1051
if (ts->tv_sec == 0 && ts->tv_nsec != 0 && ts->tv_nsec < nstick)
sys/kern/kern_time.c
1052
ts->tv_nsec = nstick;
sys/kern/kern_time.c
111
struct timespec ts;
sys/kern/kern_time.c
159
ts.tv_sec = tv->tv_sec;
sys/kern/kern_time.c
160
ts.tv_nsec = tv->tv_usec * 1000;
sys/kern/kern_time.c
161
set_timeofday(&ts);
sys/kern/kern_time.c
317
kern_clock_getres(clockid_t clock_id, struct timespec *ts)
sys/kern/kern_time.c
319
ts->tv_sec = 0;
sys/kern/kern_time.c
335
ts->tv_nsec = 999999999 / sys_cputimer->freq + 1;
sys/kern/kern_time.c
340
ts->tv_nsec = howmany(1000000000, hz);
sys/kern/kern_time.c
343
ts->tv_sec = 1;
sys/kern/kern_time.c
344
ts->tv_nsec = 0;
sys/kern/kern_time.c
348
ts->tv_nsec = 1000;
sys/kern/kern_time.c
355
ts->tv_nsec = 1000;
sys/kern/kern_time.c
368
struct timespec ts;
sys/kern/kern_time.c
370
error = kern_clock_getres(uap->clock_id, &ts);
sys/kern/kern_time.c
372
error = copyout(&ts, uap->tp, sizeof(ts));
sys/kern/kern_uuid.c
102
struct timespec ts;
sys/kern/kern_uuid.c
105
nanotime(&ts);
sys/kern/kern_uuid.c
106
time += ts.tv_sec * 10000000LL; /* 100 ns increments */
sys/kern/kern_uuid.c
107
time += ts.tv_nsec / 100; /* 100 ns increments */
sys/kern/subr_fattime.c
266
struct timespec ts;
sys/kern/subr_fattime.c
275
ts.tv_sec = random();
sys/kern/subr_fattime.c
276
} while (ts.tv_sec < T1980 * 86400);
sys/kern/subr_fattime.c
277
ts.tv_nsec = random() % 1000000000;
sys/kern/subr_fattime.c
279
printf("%10d.%03ld -- ", ts.tv_sec, ts.tv_nsec / 1000000);
sys/kern/subr_fattime.c
281
gmtime_r(&ts.tv_sec, &tm);
sys/kern/subr_fattime.c
285
a = ts.tv_sec + ts.tv_nsec * 1e-9;
sys/kern/subr_fattime.c
287
timet2fattime(&ts, &d, &t, &p);
sys/kern/subr_fattime.c
297
ts.tv_sec = ts.tv_nsec = 0;
sys/kern/subr_fattime.c
298
fattime2timet(d, t, p, &ts);
sys/kern/subr_fattime.c
299
printf("%10d.%03ld == ", ts.tv_sec, ts.tv_nsec / 1000000);
sys/kern/subr_fattime.c
300
gmtime_r(&ts.tv_sec, &tm);
sys/kern/subr_fattime.c
303
a -= ts.tv_sec + ts.tv_nsec * 1e-9;
sys/kern/sys_generic.c
111
struct timespec *ts, int *res);
sys/kern/sys_generic.c
112
static int dopoll(int nfds, struct pollfd *fds, struct timespec *ts,
sys/kern/sys_generic.c
1131
dotimeout_only(struct timespec *ts)
sys/kern/sys_generic.c
1133
return(nanosleep1(ts, NULL));
sys/kern/sys_generic.c
1145
struct timespec *ts, int *res)
sys/kern/sys_generic.c
1157
if (nd == 0 && ts)
sys/kern/sys_generic.c
1158
return (dotimeout_only(ts));
sys/kern/sys_generic.c
1196
select_copyin, select_copyout, ts,
sys/kern/sys_generic.c
1236
struct timespec ts, *tsp;
sys/kern/sys_generic.c
1242
ts.tv_sec = uap->timeout / 1000;
sys/kern/sys_generic.c
1243
ts.tv_nsec = (uap->timeout % 1000) * 1000 * 1000;
sys/kern/sys_generic.c
1244
tsp = &ts;
sys/kern/sys_generic.c
1271
if (uap->ts != NULL) {
sys/kern/sys_generic.c
1272
error = copyin(uap->ts, &kts, sizeof (kts));
sys/kern/sys_generic.c
1620
dopoll(int nfds, struct pollfd *fds, struct timespec *ts, int *res, int flags)
sys/kern/sys_generic.c
1633
if (nfds == 0 && ts)
sys/kern/sys_generic.c
1634
return (dotimeout_only(ts));
sys/kern/sys_generic.c
1657
poll_copyin, poll_copyout, ts, flags);
sys/kern/sys_generic.c
1690
socket_wait(struct socket *so, struct timespec *ts, int *res)
sys/kern/sys_generic.c
1719
socket_wait_copyout, ts, 0);
sys/kern/sys_generic.c
842
if (uap->ts != NULL) {
sys/kern/sys_generic.c
843
error = copyin(uap->ts, &kts, sizeof (kts));
sys/kern/sys_mqueue.c
224
tstohz(const struct timespec *ts)
sys/kern/sys_mqueue.c
232
TIMESPEC_TO_TIMEVAL(&tv, ts);
sys/kern/sys_mqueue.c
241
abstimeout2timo(struct timespec *ts, int *timo)
sys/kern/sys_mqueue.c
246
error = itimespecfix(ts);
sys/kern/sys_mqueue.c
251
timespecsub(ts, &tsd, ts);
sys/kern/sys_mqueue.c
252
if (ts->tv_sec < 0 || (ts->tv_sec == 0 && ts->tv_nsec <= 0)) {
sys/kern/sys_mqueue.c
255
*timo = tstohz(ts);
sys/kern/sys_mqueue.c
625
unsigned *msg_prio, struct timespec *ts, ssize_t *mlen)
sys/kern/sys_mqueue.c
661
if (ts) {
sys/kern/sys_mqueue.c
662
error = abstimeout2timo(ts, &t);
sys/kern/sys_mqueue.c
759
struct timespec ts, *tsp;
sys/kern/sys_mqueue.c
763
error = copyin(uap->abs_timeout, &ts, sizeof(ts));
sys/kern/sys_mqueue.c
766
tsp = &ts;
sys/kern/sys_mqueue.c
784
unsigned msg_prio, struct timespec *ts)
sys/kern/sys_mqueue.c
845
if (ts) {
sys/kern/sys_mqueue.c
846
error = abstimeout2timo(ts, &t);
sys/kern/sys_mqueue.c
938
struct timespec ts, *tsp;
sys/kern/sys_mqueue.c
94
static int tstohz(const struct timespec *ts);
sys/kern/sys_mqueue.c
943
error = copyin(uap->abs_timeout, &ts, sizeof(ts));
sys/kern/sys_mqueue.c
946
tsp = &ts;
sys/kern/vfs_jops.c
299
struct timespec ts;
sys/kern/vfs_jops.c
300
getnanotime(&ts);
sys/kern/vfs_jops.c
301
jo->transid = ((int64_t)ts.tv_sec << 30) | ts.tv_nsec;
sys/kern/vfs_syscalls.c
3689
getutimens(const struct timespec *ts, struct timespec *newts, int *nullflag)
sys/kern/vfs_syscalls.c
3696
if (ts == NULL) {
sys/kern/vfs_syscalls.c
3703
newts[0] = ts[0];
sys/kern/vfs_syscalls.c
3704
newts[1] = ts[1];
sys/kern/vfs_syscalls.c
3732
const struct timespec *ts, int nullflag)
sys/kern/vfs_syscalls.c
3738
vattr->va_atime = ts[0];
sys/kern/vfs_syscalls.c
3739
vattr->va_mtime = ts[1];
sys/kern/vfs_syscalls.c
3750
struct timespec ts[2];
sys/kern/vfs_syscalls.c
3754
if ((error = getutimes(tptr, ts)) != 0)
sys/kern/vfs_syscalls.c
3757
error = kern_utimensat(nd, tptr ? ts : NULL, 0);
sys/kern/vfs_syscalls.c
3815
kern_futimens(int fd, struct timespec *ts)
sys/kern/vfs_syscalls.c
3826
error = getutimens(ts, newts, &nullflag);
sys/kern/vfs_syscalls.c
3868
struct timespec ts[2];
sys/kern/vfs_syscalls.c
3871
if (uap->ts) {
sys/kern/vfs_syscalls.c
3872
error = copyin(uap->ts, ts, sizeof(ts));
sys/kern/vfs_syscalls.c
3876
error = kern_futimens(uap->fd, uap->ts ? ts : NULL);
sys/kern/vfs_syscalls.c
3883
struct timespec ts[2];
sys/kern/vfs_syscalls.c
3887
if ((error = getutimes(tptr, ts)) != 0)
sys/kern/vfs_syscalls.c
3890
error = kern_futimens(fd, tptr ? ts : NULL);
sys/kern/vfs_syscalls.c
3922
struct timespec ts[2];
sys/kern/vfs_syscalls.c
3932
if ((error = getutimes(tv, ts)) != 0)
sys/kern/vfs_syscalls.c
3939
error = kern_utimensat(&nd, uap->tptr ? ts : NULL, 0);
sys/kern/vfs_syscalls.c
3946
kern_utimensat(struct nlookupdata *nd, const struct timespec *ts, int flags)
sys/kern/vfs_syscalls.c
3957
error = getutimens(ts, newts, &nullflag);
sys/kern/vfs_syscalls.c
3987
struct timespec ts[2];
sys/kern/vfs_syscalls.c
3993
if (uap->ts) {
sys/kern/vfs_syscalls.c
3994
error = copyin(uap->ts, ts, sizeof(ts));
sys/kern/vfs_syscalls.c
4003
error = kern_utimensat(&nd, uap->ts ? ts : NULL, uap->flags);
sys/net/netmap/netmap.c
1475
microtime(&na->rx_rings[i].ring->ts);
sys/net/netmap/netmap.c
1772
microtime(&kring->ring->ts);
sys/net/netmap/netmap.h
231
struct timeval ts; /* time of last *sync() */
sys/net/netmap/netmap_user.h
119
struct timeval ts;
sys/net/netmap/netmap_user.h
286
d->hdr.ts = ring->ts;
sys/net/netmap/netmap_user.h
311
hdr->ts = ring->ts;
sys/net/pf/pf_osfp.c
224
u_int32_t ts;
sys/net/pf/pf_osfp.c
225
memcpy(&ts, &optp[2], sizeof(ts));
sys/net/pf/pf_osfp.c
226
if (ts == 0)
sys/netgraph7/netflow/netflow.c
587
struct timespec ts;
sys/netgraph7/netflow/netflow.c
596
getnanotime(&ts);
sys/netgraph7/netflow/netflow.c
597
header->unix_secs = htonl(ts.tv_sec);
sys/netgraph7/netflow/netflow.c
598
header->unix_nsecs = htonl(ts.tv_nsec);
sys/netgraph7/ng_source.c
873
struct ng_source_embed_info *ts;
sys/netgraph7/ng_source.c
912
ts = &sc->embed_timestamp;
sys/netgraph7/ng_source.c
913
if (ts->flags & NGM_SOURCE_EMBED_ENABLE) {
sys/netgraph7/ng_source.c
918
ng_source_packet_mod(sc, m, ts->offset, sizeof (now),
sys/netgraph7/ng_source.c
919
(caddr_t)&now, ts->flags);
sys/netproto/802_11/wlan/ieee80211_ddb.c
333
_db_show_tdma(const char *sep, const struct ieee80211_tdma_state *ts, int showprocs)
sys/netproto/802_11/wlan/ieee80211_ddb.c
335
db_printf("%stdma %p:\n", sep, ts);
sys/netproto/802_11/wlan/ieee80211_ddb.c
337
ts->tdma_version, ts->tdma_slot, ts->tdma_bintval, ts->tdma_peer);
sys/netproto/802_11/wlan/ieee80211_ddb.c
339
ts->tdma_slotlen, ts->tdma_slotcnt);
sys/netproto/802_11/wlan/ieee80211_ddb.c
341
ts->tdma_inuse[0], ts->tdma_active[0], ts->tdma_count);
sys/netproto/802_11/wlan/ieee80211_ddb.c
343
DB_PRINTSYM(sep, " tdma_newstate", ts->tdma_newstate);
sys/netproto/802_11/wlan/ieee80211_ddb.c
344
DB_PRINTSYM(sep, " tdma_recv_mgmt", ts->tdma_recv_mgmt);
sys/netproto/802_11/wlan/ieee80211_ddb.c
345
DB_PRINTSYM(sep, " tdma_opdetach", ts->tdma_opdetach);
sys/netproto/802_11/wlan/ieee80211_scan_sta.c
1019
const struct ieee80211_tdma_state *ts = vap->iv_tdma;
sys/netproto/802_11/wlan/ieee80211_scan_sta.c
1023
else if (tdma->tdma_version != ts->tdma_version)
sys/netproto/802_11/wlan/ieee80211_tdma.c
148
struct ieee80211_tdma_state *ts;
sys/netproto/802_11/wlan/ieee80211_tdma.c
154
ts = (struct ieee80211_tdma_state *) kmalloc(
sys/netproto/802_11/wlan/ieee80211_tdma.c
158
ts = (struct ieee80211_tdma_state *) IEEE80211_MALLOC(
sys/netproto/802_11/wlan/ieee80211_tdma.c
162
if (ts == NULL) {
sys/netproto/802_11/wlan/ieee80211_tdma.c
169
ts->tdma_version = TDMA_VERSION;
sys/netproto/802_11/wlan/ieee80211_tdma.c
170
ts->tdma_slotlen = TDMA_SLOTLEN_DEFAULT;
sys/netproto/802_11/wlan/ieee80211_tdma.c
171
ts->tdma_slotcnt = TDMA_SLOTCNT_DEFAULT;
sys/netproto/802_11/wlan/ieee80211_tdma.c
172
ts->tdma_bintval = TDMA_BINTVAL_DEFAULT;
sys/netproto/802_11/wlan/ieee80211_tdma.c
173
ts->tdma_slot = 1; /* passive operation */
sys/netproto/802_11/wlan/ieee80211_tdma.c
189
ts->tdma_opdetach = vap->iv_opdetach;
sys/netproto/802_11/wlan/ieee80211_tdma.c
191
ts->tdma_newstate = vap->iv_newstate;
sys/netproto/802_11/wlan/ieee80211_tdma.c
194
ts->tdma_recv_mgmt = vap->iv_recv_mgmt;
sys/netproto/802_11/wlan/ieee80211_tdma.c
197
vap->iv_tdma = ts;
sys/netproto/802_11/wlan/ieee80211_tdma.c
203
struct ieee80211_tdma_state *ts = vap->iv_tdma;
sys/netproto/802_11/wlan/ieee80211_tdma.c
205
if (ts == NULL) {
sys/netproto/802_11/wlan/ieee80211_tdma.c
209
ts->tdma_opdetach(vap);
sys/netproto/802_11/wlan/ieee80211_tdma.c
231
struct ieee80211_tdma_state *ts = vap->iv_tdma;
sys/netproto/802_11/wlan/ieee80211_tdma.c
247
ts->tdma_slot != 0) {
sys/netproto/802_11/wlan/ieee80211_tdma.c
270
status = ts->tdma_newstate(vap, nstate, arg);
sys/netproto/802_11/wlan/ieee80211_tdma.c
275
ts->tdma_slot != 0 &&
sys/netproto/802_11/wlan/ieee80211_tdma.c
285
2 * vap->iv_bmissthreshold * ts->tdma_bintval *
sys/netproto/802_11/wlan/ieee80211_tdma.c
286
((ts->tdma_slotcnt * ts->tdma_slotlen) / 1024));
sys/netproto/802_11/wlan/ieee80211_tdma.c
297
struct ieee80211_tdma_state *ts = vap->iv_tdma;
sys/netproto/802_11/wlan/ieee80211_tdma.c
312
if (ts->tdma_peer != NULL) { /* XXX? can this be null? */
sys/netproto/802_11/wlan/ieee80211_tdma.c
314
ts->tdma_peer = NULL;
sys/netproto/802_11/wlan/ieee80211_tdma.c
324
ts->tdma_inuse = 0; /* clear slot usage */
sys/netproto/802_11/wlan/ieee80211_tdma.c
335
struct ieee80211_tdma_state *ts = vap->iv_tdma;
sys/netproto/802_11/wlan/ieee80211_tdma.c
402
ts->tdma_recv_mgmt(ni, m0, subtype, rxs, rssi, nf);
sys/netproto/802_11/wlan/ieee80211_tdma.c
416
struct ieee80211_tdma_state *ts = vap->iv_tdma;
sys/netproto/802_11/wlan/ieee80211_tdma.c
423
if (tdma->tdma_slotcnt != ts->tdma_slotcnt) {
sys/netproto/802_11/wlan/ieee80211_tdma.c
425
if (ppsratecheck(&ts->tdma_lastprint, &ts->tdma_fails, 1))
sys/netproto/802_11/wlan/ieee80211_tdma.c
433
if (slotlen != ts->tdma_slotlen) {
sys/netproto/802_11/wlan/ieee80211_tdma.c
435
if (ppsratecheck(&ts->tdma_lastprint, &ts->tdma_fails, 1))
sys/netproto/802_11/wlan/ieee80211_tdma.c
442
if (tdma->tdma_bintval != ts->tdma_bintval) {
sys/netproto/802_11/wlan/ieee80211_tdma.c
444
if (ppsratecheck(&ts->tdma_lastprint, &ts->tdma_fails, 1))
sys/netproto/802_11/wlan/ieee80211_tdma.c
451
slot = ts->tdma_slot;
sys/netproto/802_11/wlan/ieee80211_tdma.c
466
if (slot != ts->tdma_slot)
sys/netproto/802_11/wlan/ieee80211_tdma.c
469
if (ni != ts->tdma_peer) {
sys/netproto/802_11/wlan/ieee80211_tdma.c
483
ts->tdma_slotcnt = tdma->tdma_slotcnt;
sys/netproto/802_11/wlan/ieee80211_tdma.c
485
ts->tdma_slotlen = slotlen;
sys/netproto/802_11/wlan/ieee80211_tdma.c
487
ts->tdma_slot = slot;
sys/netproto/802_11/wlan/ieee80211_tdma.c
489
ts->tdma_bintval = tdma->tdma_bintval;
sys/netproto/802_11/wlan/ieee80211_tdma.c
495
__func__, ts->tdma_slot, ts->tdma_slotcnt,
sys/netproto/802_11/wlan/ieee80211_tdma.c
496
ts->tdma_slotlen, ts->tdma_bintval);
sys/netproto/802_11/wlan/ieee80211_tdma.c
510
if (ts->tdma_peer != ni) {
sys/netproto/802_11/wlan/ieee80211_tdma.c
511
if (ts->tdma_peer != NULL)
sys/netproto/802_11/wlan/ieee80211_tdma.c
515
ts->tdma_peer = ni;
sys/netproto/802_11/wlan/ieee80211_tdma.c
528
struct ieee80211_tdma_state *ts = vap->iv_tdma;
sys/netproto/802_11/wlan/ieee80211_tdma.c
542
if (tdma->tdma_version != ts->tdma_version) {
sys/netproto/802_11/wlan/ieee80211_tdma.c
546
tdma->tdma_version, ts->tdma_version);
sys/netproto/802_11/wlan/ieee80211_tdma.c
566
if (tdma->tdma_slot != ts->tdma_slot &&
sys/netproto/802_11/wlan/ieee80211_tdma.c
567
isclr(ts->tdma_inuse, tdma->tdma_slot)) {
sys/netproto/802_11/wlan/ieee80211_tdma.c
570
setbit(ts->tdma_inuse, tdma->tdma_slot);
sys/netproto/802_11/wlan/ieee80211_tdma.c
572
if (ts->tdma_slot == 0)
sys/netproto/802_11/wlan/ieee80211_tdma.c
575
setbit(ts->tdma_active, tdma->tdma_slot);
sys/netproto/802_11/wlan/ieee80211_tdma.c
576
if (tdma->tdma_slot == ts->tdma_slot-1) {
sys/netproto/802_11/wlan/ieee80211_tdma.c
588
} else if (tdma->tdma_slot == ts->tdma_slot+1) {
sys/netproto/802_11/wlan/ieee80211_tdma.c
610
} else if (tdma->tdma_slot == ts->tdma_slot &&
sys/netproto/802_11/wlan/ieee80211_tdma.c
623
setbit(ts->tdma_inuse, tdma->tdma_slot);
sys/netproto/802_11/wlan/ieee80211_tdma.c
634
struct ieee80211_tdma_state *ts = vap->iv_tdma;
sys/netproto/802_11/wlan/ieee80211_tdma.c
638
return ts->tdma_slot;
sys/netproto/802_11/wlan/ieee80211_tdma.c
652
struct ieee80211_tdma_state *ts = vap->iv_tdma;
sys/netproto/802_11/wlan/ieee80211_tdma.c
657
setbit(ts->tdma_inuse, tdma->tdma_slot);
sys/netproto/802_11/wlan/ieee80211_tdma.c
691
const struct ieee80211_tdma_state *ts = vap->iv_tdma;
sys/netproto/802_11/wlan/ieee80211_tdma.c
699
*frm++ = ts->tdma_slot;
sys/netproto/802_11/wlan/ieee80211_tdma.c
700
*frm++ = ts->tdma_slotcnt;
sys/netproto/802_11/wlan/ieee80211_tdma.c
702
slotlen = ts->tdma_slotlen / 100; /* 100us units */
sys/netproto/802_11/wlan/ieee80211_tdma.c
704
*frm++ = ts->tdma_bintval;
sys/netproto/802_11/wlan/ieee80211_tdma.c
705
*frm++ = ts->tdma_inuse[0];
sys/netproto/802_11/wlan/ieee80211_tdma.c
719
struct ieee80211_tdma_state *ts = vap->iv_tdma;
sys/netproto/802_11/wlan/ieee80211_tdma.c
728
if (ts->tdma_slot != 0) /* only on master */
sys/netproto/802_11/wlan/ieee80211_tdma.c
730
if (ts->tdma_count <= 0) {
sys/netproto/802_11/wlan/ieee80211_tdma.c
738
ts->tdma_inuse[0] = ts->tdma_active[0];
sys/netproto/802_11/wlan/ieee80211_tdma.c
739
ts->tdma_active[0] = 0x01;
sys/netproto/802_11/wlan/ieee80211_tdma.c
744
ts->tdma_count = vap->iv_bmissthreshold-1;
sys/netproto/802_11/wlan/ieee80211_tdma.c
746
ts->tdma_count--;
sys/netproto/802_11/wlan/ieee80211_tdma.c
752
struct ieee80211_tdma_state *ts = vap->iv_tdma;
sys/netproto/802_11/wlan/ieee80211_tdma.c
759
ireq->i_val = ts->tdma_slot;
sys/netproto/802_11/wlan/ieee80211_tdma.c
762
ireq->i_val = ts->tdma_slotcnt;
sys/netproto/802_11/wlan/ieee80211_tdma.c
765
ireq->i_val = ts->tdma_slotlen;
sys/netproto/802_11/wlan/ieee80211_tdma.c
768
ireq->i_val = ts->tdma_bintval;
sys/netproto/802_11/wlan/ieee80211_tdma.c
780
struct ieee80211_tdma_state *ts = vap->iv_tdma;
sys/netproto/802_11/wlan/ieee80211_tdma.c
787
if (!(0 <= ireq->i_val && ireq->i_val <= ts->tdma_slotcnt))
sys/netproto/802_11/wlan/ieee80211_tdma.c
789
if (ireq->i_val != ts->tdma_slot) {
sys/netproto/802_11/wlan/ieee80211_tdma.c
790
ts->tdma_slot = ireq->i_val;
sys/netproto/802_11/wlan/ieee80211_tdma.c
797
if (ireq->i_val != ts->tdma_slotcnt) {
sys/netproto/802_11/wlan/ieee80211_tdma.c
798
ts->tdma_slotcnt = ireq->i_val;
sys/netproto/802_11/wlan/ieee80211_tdma.c
811
if (ireq->i_val != ts->tdma_slotlen) {
sys/netproto/802_11/wlan/ieee80211_tdma.c
812
ts->tdma_slotlen = ireq->i_val;
sys/netproto/802_11/wlan/ieee80211_tdma.c
819
if (ireq->i_val != ts->tdma_bintval) {
sys/netproto/802_11/wlan/ieee80211_tdma.c
820
ts->tdma_bintval = ireq->i_val;
sys/netproto/smb/smb_iod.c
554
struct timespec ts, tstimeout;
sys/netproto/smb/smb_iod.c
578
getnanotime(&ts);
sys/netproto/smb/smb_iod.c
579
timespecsub(&ts, &tstimeout, &ts);
sys/netproto/smb/smb_iod.c
580
if (timespeccmp(&ts, &rqp->sr_timesent, >)) {
sys/platform/pc64/isa/clock.c
1080
struct timespec ts;
sys/platform/pc64/isa/clock.c
1083
ts.tv_sec = base;
sys/platform/pc64/isa/clock.c
1084
ts.tv_nsec = 0;
sys/platform/pc64/isa/clock.c
1085
set_timeofday(&ts);
sys/platform/pc64/isa/clock.c
1131
ts.tv_sec = sec;
sys/platform/pc64/isa/clock.c
1132
ts.tv_nsec = 0;
sys/platform/pc64/isa/clock.c
1133
set_timeofday(&ts);
sys/platform/vkernel64/include/cothread.h
65
void cothread_sleep(cothread_t cotd, struct timespec *ts);
sys/platform/vkernel64/include/cothread.h
66
void cothread_wakeup(cothread_t cotd, struct timespec *ts);
sys/platform/vkernel64/platform/cothread.c
186
cothread_sleep(cothread_t cotd, struct timespec *ts)
sys/platform/vkernel64/platform/cothread.c
188
nanosleep(ts, NULL);
sys/platform/vkernel64/platform/cothread.c
192
cothread_wakeup(cothread_t cotd, struct timespec *ts)
sys/platform/vkernel64/platform/cothread.c
194
ts->tv_sec = 0;
sys/platform/vkernel64/platform/cothread.c
195
ts->tv_nsec = 0;
sys/platform/vkernel64/platform/kqueue.c
108
struct timespec ts = { 0, 0 };
sys/platform/vkernel64/platform/kqueue.c
117
if (kevent(KQueueFd, &kev, 1, NULL, 0, &ts) < 0)
sys/platform/vkernel64/platform/kqueue.c
142
struct timespec ts = { 0, 0 };
sys/platform/vkernel64/platform/kqueue.c
149
if (kevent(KQueueFd, &kev, 1, NULL, 0, &ts) < 0)
sys/platform/vkernel64/platform/kqueue.c
160
struct timespec ts = { 0, 0 };
sys/platform/vkernel64/platform/kqueue.c
165
if (kevent(KQueueFd, &kev, 1, NULL, 0, &ts) < 0)
sys/platform/vkernel64/platform/kqueue.c
180
struct timespec ts;
sys/platform/vkernel64/platform/kqueue.c
185
ts.tv_sec = 0;
sys/platform/vkernel64/platform/kqueue.c
186
ts.tv_nsec = 0;
sys/platform/vkernel64/platform/kqueue.c
188
n = kevent(KQueueFd, NULL, 0, kevary, 8, &ts);
sys/platform/vkernel64/platform/systimer.c
156
struct timespec ts;
sys/platform/vkernel64/platform/systimer.c
160
clock_gettime(CLOCK_MONOTONIC_PRECISE, &ts);
sys/platform/vkernel64/platform/systimer.c
162
clock_gettime(CLOCK_MONOTONIC_FAST, &ts);
sys/platform/vkernel64/platform/systimer.c
163
count = ts.tv_nsec / 1000;
sys/platform/vkernel64/platform/systimer.c
164
count += (uint64_t)ts.tv_sec * 1000000;
sys/platform/vkernel64/platform/systimer.c
329
struct timespec ts;
sys/platform/vkernel64/platform/systimer.c
333
ts.tv_sec = tv.tv_sec;
sys/platform/vkernel64/platform/systimer.c
334
ts.tv_nsec = tv.tv_usec * 1000;
sys/platform/vkernel64/platform/systimer.c
335
set_timeofday(&ts);
sys/sys/kern_syscall.h
145
int kern_futimens(int fd, struct timespec *ts);
sys/sys/kern_syscall.h
169
int kern_utimensat(struct nlookupdata *nd, const struct timespec *ts, int flag);
sys/sys/socketvar.h
432
int socket_wait (struct socket *so, struct timespec *ts, int *res);
sys/sys/sysproto.h
1182
const struct timespec * ts; char ts_[PAD_(const struct timespec *)];
sys/sys/sysproto.h
1376
const struct timespec * ts; char ts_[PAD_(const struct timespec *)];
sys/sys/sysproto.h
1381
const struct timespec * ts; char ts_[PAD_(const struct timespec *)];
sys/sys/sysproto.h
1396
const struct timespec * ts; char ts_[PAD_(const struct timespec *)];
sys/sys/time.h
180
int itimespecfix(struct timespec *ts);
sys/sys/time.h
185
void nanouptime(struct timespec *ts);
sys/sys/time.h
186
void nanotime(struct timespec *ts);
sys/sys/time.h
188
void set_timeofday(struct timespec *ts);
sys/sys/time.h
48
#define TIMEVAL_TO_TIMESPEC(tv, ts) \
sys/sys/time.h
50
(ts)->tv_sec = (tv)->tv_sec; \
sys/sys/time.h
51
(ts)->tv_nsec = (tv)->tv_usec * 1000; \
sys/sys/time.h
53
#define TIMESPEC_TO_TIMEVAL(tv, ts) \
sys/sys/time.h
55
(tv)->tv_sec = (ts)->tv_sec; \
sys/sys/time.h
56
(tv)->tv_usec = (ts)->tv_nsec / 1000; \
sys/sys/timespec.h
41
#define TIMEVAL_TO_TIMESPEC(tv, ts) \
sys/sys/timespec.h
43
(ts)->tv_sec = (tv)->tv_sec; \
sys/sys/timespec.h
44
(ts)->tv_nsec = (tv)->tv_usec * 1000; \
sys/sys/timespec.h
46
#define TIMESPEC_TO_TIMEVAL(tv, ts) \
sys/sys/timespec.h
48
(tv)->tv_sec = (ts)->tv_sec; \
sys/sys/timespec.h
49
(tv)->tv_usec = (ts)->tv_nsec / 1000; \
sys/vfs/ext2fs/ext2_alloc.c
387
struct timespec ts;
sys/vfs/ext2fs/ext2_alloc.c
452
vfs_timestamp(&ts);
sys/vfs/ext2fs/ext2_alloc.c
453
ip->i_birthtime = ts.tv_sec;
sys/vfs/ext2fs/ext2_alloc.c
454
ip->i_birthnsec = ts.tv_nsec;
sys/vfs/ext2fs/ext2_vnops.c
128
struct timespec ts;
sys/vfs/ext2fs/ext2_vnops.c
138
vfs_timestamp(&ts);
sys/vfs/ext2fs/ext2_vnops.c
140
ip->i_atime = ts.tv_sec;
sys/vfs/ext2fs/ext2_vnops.c
141
ip->i_atimensec = ts.tv_nsec;
sys/vfs/ext2fs/ext2_vnops.c
144
ip->i_mtime = ts.tv_sec;
sys/vfs/ext2fs/ext2_vnops.c
145
ip->i_mtimensec = ts.tv_nsec;
sys/vfs/ext2fs/ext2_vnops.c
149
ip->i_ctime = ts.tv_sec;
sys/vfs/ext2fs/ext2_vnops.c
150
ip->i_ctimensec = ts.tv_nsec;
sys/vfs/hammer/hammer.h
1064
void hammer_time_to_timespec(uint64_t xtime, struct timespec *ts);
sys/vfs/hammer/hammer.h
1065
uint64_t hammer_timespec_to_time(struct timespec *ts);
sys/vfs/hammer/hammer.h
1119
int hammer_btree_chkts(hammer_tid_t ts, hammer_base_elm_t key);
sys/vfs/hammer/hammer_disk.h
1049
uint64_t ts; /* real-time when snapshot was made */
sys/vfs/hammer/hammer_inode.c
1702
struct timespec ts;
sys/vfs/hammer/hammer_inode.c
1717
vfs_timestamp(&ts);
sys/vfs/hammer/hammer_inode.c
1721
(unsigned long)ts.tv_sec * 1000000ULL +
sys/vfs/hammer/hammer_inode.c
1722
ts.tv_nsec / 1000;
sys/vfs/hammer/hammer_subs.c
795
hammer_time_to_timespec(uint64_t xtime, struct timespec *ts)
sys/vfs/hammer/hammer_subs.c
797
ts->tv_sec = (unsigned long)(xtime / 1000000);
sys/vfs/hammer/hammer_subs.c
798
ts->tv_nsec = (unsigned int)(xtime % 1000000) * 1000L;
sys/vfs/hammer/hammer_subs.c
802
hammer_timespec_to_time(struct timespec *ts)
sys/vfs/hammer/hammer_subs.c
806
xtime = (unsigned)(ts->tv_nsec / 1000) +
sys/vfs/hammer/hammer_subs.c
807
(unsigned long)ts->tv_sec * 1000000ULL;
sys/vfs/hammer/hammer_transaction.c
101
struct timespec ts;
sys/vfs/hammer/hammer_transaction.c
114
vfs_timestamp(&ts);
sys/vfs/hammer/hammer_transaction.c
115
trans->time = (unsigned long)ts.tv_sec * 1000000ULL +
sys/vfs/hammer/hammer_transaction.c
116
ts.tv_nsec / 1000;
sys/vfs/hammer/hammer_transaction.c
117
trans->time32 = (uint32_t)ts.tv_sec;
sys/vfs/hammer/hammer_transaction.c
48
struct timespec ts;
sys/vfs/hammer/hammer_transaction.c
59
vfs_timestamp(&ts);
sys/vfs/hammer/hammer_transaction.c
60
trans->time = (unsigned long)ts.tv_sec * 1000000ULL +
sys/vfs/hammer/hammer_transaction.c
61
ts.tv_nsec / 1000;
sys/vfs/hammer/hammer_transaction.c
62
trans->time32 = (uint32_t)ts.tv_sec;
sys/vfs/hammer/hammer_transaction.c
73
struct timespec ts;
sys/vfs/hammer/hammer_transaction.c
84
vfs_timestamp(&ts);
sys/vfs/hammer/hammer_transaction.c
85
trans->time = (unsigned long)ts.tv_sec * 1000000ULL +
sys/vfs/hammer/hammer_transaction.c
86
ts.tv_nsec / 1000;
sys/vfs/hammer/hammer_transaction.c
87
trans->time32 = (uint32_t)ts.tv_sec;
sys/vfs/hammer2/hammer2.h
1467
void hammer2_time_to_timespec(uint64_t xtime, struct timespec *ts);
sys/vfs/hammer2/hammer2.h
1468
uint64_t hammer2_timespec_to_time(const struct timespec *ts);
sys/vfs/hammer2/hammer2_subr.c
134
hammer2_time_to_timespec(uint64_t xtime, struct timespec *ts)
sys/vfs/hammer2/hammer2_subr.c
136
ts->tv_sec = (unsigned long)(xtime / 1000000);
sys/vfs/hammer2/hammer2_subr.c
137
ts->tv_nsec = (unsigned int)(xtime % 1000000) * 1000L;
sys/vfs/hammer2/hammer2_subr.c
141
hammer2_timespec_to_time(const struct timespec *ts)
sys/vfs/hammer2/hammer2_subr.c
145
xtime = (unsigned)(ts->tv_nsec / 1000) +
sys/vfs/hammer2/hammer2_subr.c
146
(unsigned long)ts->tv_sec * 1000000ULL;
sys/vfs/hammer2/hammer2_subr.c
310
struct timespec ts;
sys/vfs/hammer2/hammer2_subr.c
312
vfs_timestamp(&ts);
sys/vfs/hammer2/hammer2_subr.c
313
*timep = (unsigned long)ts.tv_sec * 1000000 + ts.tv_nsec / 1000;
sys/vfs/msdosfs/msdosfs_denode.c
434
struct timespec ts;
sys/vfs/msdosfs/msdosfs_denode.c
444
vfs_timestamp(&ts);
sys/vfs/msdosfs/msdosfs_denode.c
445
DETIMES(dep, &ts, &ts, &ts);
sys/vfs/msdosfs/msdosfs_vnops.c
118
struct timespec ts;
sys/vfs/msdosfs/msdosfs_vnops.c
1335
struct timespec ts;
sys/vfs/msdosfs/msdosfs_vnops.c
1358
vfs_timestamp(&ts);
sys/vfs/msdosfs/msdosfs_vnops.c
1359
DETIMES(&ndirent, &ts, &ts, &ts);
sys/vfs/msdosfs/msdosfs_vnops.c
154
vfs_timestamp(&ts);
sys/vfs/msdosfs/msdosfs_vnops.c
155
DETIMES(&ndirent, &ts, &ts, &ts);
sys/vfs/msdosfs/msdosfs_vnops.c
183
struct timespec ts;
sys/vfs/msdosfs/msdosfs_vnops.c
186
vfs_timestamp(&ts);
sys/vfs/msdosfs/msdosfs_vnops.c
187
DETIMES(dep, &ts, &ts, &ts);
sys/vfs/msdosfs/msdosfs_vnops.c
214
struct timespec ts;
sys/vfs/msdosfs/msdosfs_vnops.c
218
vfs_timestamp(&ts);
sys/vfs/msdosfs/msdosfs_vnops.c
219
DETIMES(dep, &ts, &ts, &ts);
sys/vfs/nfs/nfs_vnops.c
3709
struct timespec ts;
sys/vfs/nfs/nfs_vnops.c
3715
getnanotime(&ts);
sys/vfs/nfs/nfs_vnops.c
3717
np->n_atim = ts;
sys/vfs/nfs/nfs_vnops.c
3719
np->n_mtim = ts;
sys/vfs/tmpfs/tmpfs_subr.c
101
struct timespec ts;
sys/vfs/tmpfs/tmpfs_subr.c
118
vfs_timestamp(&ts);
sys/vfs/tmpfs/tmpfs_subr.c
120
= ts.tv_sec;
sys/vfs/tmpfs/tmpfs_subr.c
122
= ts.tv_nsec;
sys/vfs/ufs/ufs_vnops.c
135
struct timespec ts;
sys/vfs/ufs/ufs_vnops.c
146
vfs_timestamp(&ts);
sys/vfs/ufs/ufs_vnops.c
148
ip->i_atime = (uint32_t)ts.tv_sec;
sys/vfs/ufs/ufs_vnops.c
149
ip->i_atime_ext = ts.tv_sec >> 32;
sys/vfs/ufs/ufs_vnops.c
150
ip->i_atimensec = ts.tv_nsec;
sys/vfs/ufs/ufs_vnops.c
153
ip->i_ctime = (uint32_t)ts.tv_sec;
sys/vfs/ufs/ufs_vnops.c
154
ip->i_ctime_ext = ts.tv_sec >> 32;
sys/vfs/ufs/ufs_vnops.c
155
ip->i_ctimensec = ts.tv_nsec;
sys/vfs/ufs/ufs_vnops.c
168
ip->i_mtime = (uint32_t)ts.tv_sec;
sys/vfs/ufs/ufs_vnops.c
169
ip->i_mtime_ext = ts.tv_sec >> 32;
sys/vfs/ufs/ufs_vnops.c
170
ip->i_mtimensec = ts.tv_nsec;
test/debug/bufqueues.c
236
loaddelay(struct timespec *ts, const char *arg)
test/debug/bufqueues.c
243
ts->tv_sec = (int)d;
test/debug/bufqueues.c
244
ts->tv_nsec = (int)(modf(d, &d) * 1000000000.0);
test/debug/bufqueues.c
94
static void loaddelay(struct timespec *ts, const char *arg);
test/sysperf/syscall2.c
22
struct timespec ts, ts2;
test/sysperf/syscall5.c
14
struct timespec ts;
test/sysperf/syscall5.c
22
clock_gettime(CLOCK_REALTIME, &ts);
test/sysperf/syscall5.c
29
clock_gettime(CLOCK_REALTIME, &ts);
test/sysperf/syscall7.c
14
struct timespec ts;
test/sysperf/syscall7.c
22
clock_gettime(CLOCK_REALTIME_FAST, &ts);
test/sysperf/syscall7.c
29
clock_gettime(CLOCK_REALTIME_FAST, &ts);
tools/regression/lib/libc-regex/testregex.c
1073
#define TABS(n) &ts[7-((n)&7)]
tools/regression/lib/libc-regex/testregex.c
1075
static char ts[] = "\t\t\t\t\t\t\t";
tools/tools/net80211/wesside/udps/udps.c
103
if (nanosleep(&ts, NULL) == -1) {
tools/tools/net80211/wesside/udps/udps.c
54
struct timespec ts;
tools/tools/net80211/wesside/udps/udps.c
77
ts.tv_sec = 0;
tools/tools/net80211/wesside/udps/udps.c
78
ts.tv_nsec = delay*1000;
tools/tools/net80211/wesside/wesside/wesside.c
1224
pkh.ts = tv;
usr.bin/diff/diffreg.c
1466
print_time(const struct timespec *ts)
usr.bin/diff/diffreg.c
1472
localtime_r(&ts->tv_sec, &tm);
usr.bin/diff/diffreg.c
1476
snprintf(tbuf, sizeof(tbuf), "%s.%.9ld %s", buf1, ts->tv_nsec, buf2);
usr.bin/dsynth/build.c
1276
struct timespec ts;
usr.bin/dsynth/build.c
1299
clock_gettime(CLOCK_REALTIME, &ts);
usr.bin/dsynth/build.c
1300
ts.tv_sec += 1;
usr.bin/dsynth/build.c
1301
ts.tv_nsec = 0;
usr.bin/dsynth/build.c
1302
pthread_cond_timedwait(&WorkerCond, &WorkerMutex, &ts);
usr.bin/evtranalyze/evtranalyze.c
1037
last_ts = ev.ts;
usr.bin/evtranalyze/evtranalyze.c
1044
(uintmax_t)(ev.ts - last_ts), ev.cpu,
usr.bin/evtranalyze/evtranalyze.c
1049
(ev.ts - last_ts) / freq, ev.cpu,
usr.bin/evtranalyze/evtranalyze.c
1059
last_ts = ev.ts;
usr.bin/evtranalyze/evtranalyze.c
1143
"integer variable; ignored\n", ev->ts, ev->cpu,
usr.bin/evtranalyze/evtranalyze.c
1149
(double)ev->ts, (double)ev->stmt.val->num);
usr.bin/evtranalyze/evtranalyze.c
1189
uintmax_t ts;
usr.bin/evtranalyze/evtranalyze.c
1201
cd->ts = ev->ts;
usr.bin/evtranalyze/evtranalyze.c
1275
"with a data constructor; ignored\n", ev->ts, ev->cpu,
usr.bin/evtranalyze/evtranalyze.c
1302
if (cd->ts >= ev->ts) {
usr.bin/evtranalyze/evtranalyze.c
1312
(double)(ev->ts - cd->ts));
usr.bin/evtranalyze/evtranalyze.c
1313
vector_push(ctx->durations, ev->ts - cd->ts);
usr.bin/evtranalyze/evtranalyze.c
1315
ctx->completed_duration_sum += ev->ts - cd->ts;
usr.bin/evtranalyze/evtranalyze.c
1322
ev->ts, ev->cpu, ctx->varname);
usr.bin/evtranalyze/evtranalyze.c
1413
last_ts = ev.ts;
usr.bin/evtranalyze/evtranalyze.c
1417
last_ts = ev.ts;
usr.bin/evtranalyze/evtranalyze.c
1456
c->firstlast.start = ev.ts;
usr.bin/evtranalyze/evtranalyze.c
1458
c->firstlast.end = ev.ts;
usr.bin/evtranalyze/evtranalyze.c
486
uint64_t ts; /* time cpu switched to td */
usr.bin/evtranalyze/evtranalyze.c
543
w = (ev->ts - c->ts) * ctx->xscale;
usr.bin/evtranalyze/evtranalyze.c
544
x = (ev->ts - ctx->firstlast.start) * ctx->xscale;
usr.bin/evtranalyze/evtranalyze.c
560
if (!c->ts)
usr.bin/evtranalyze/evtranalyze.c
563
w = (ev->ts - c->ts) * ctx->xscale;
usr.bin/evtranalyze/evtranalyze.c
564
x = (ev->ts - ctx->firstlast.start) * ctx->xscale;
usr.bin/evtranalyze/evtranalyze.c
567
(uintmax_t)ev->ts,
usr.bin/evtranalyze/evtranalyze.c
668
(uintmax_t)ev->ts);
usr.bin/evtranalyze/evtranalyze.c
669
if ((ev->ts > ctx->interval.end) ||
usr.bin/evtranalyze/evtranalyze.c
670
(ev->ts < ctx->interval.start))
usr.bin/evtranalyze/evtranalyze.c
677
c->firstlast.start = ev->ts;
usr.bin/evtranalyze/evtranalyze.c
679
c->firstlast.end = ev->ts;
usr.bin/evtranalyze/evtranalyze.c
693
tdi->runtime += ev->ts - c->ts;
usr.bin/evtranalyze/evtranalyze.c
699
c->ts = ev->ts;
usr.bin/evtranalyze/evtranalyze.c
722
cpus[i].ts = 0;
usr.bin/evtranalyze/evtranalyze.c
785
assert(!ctx->firstlast.end || (ev->ts >= ctx->firstlast.start));
usr.bin/evtranalyze/evtranalyze.c
787
(uintmax_t)ctx->interval.end, (uintmax_t)ev->ts);
usr.bin/evtranalyze/evtranalyze.c
788
if ((ev->ts > ctx->interval.end) ||
usr.bin/evtranalyze/evtranalyze.c
789
(ev->ts < ctx->interval.start))
usr.bin/evtranalyze/evtranalyze.c
804
c->ts = ev->ts;
usr.bin/evtranalyze/evtranalyze.c
836
cpus[i].ts = 0;
usr.bin/evtranalyze/evtranalyze.c
848
parse_interval(const char *_str, struct ts_interval *ts,
usr.bin/evtranalyze/evtranalyze.c
856
&ts->start,
usr.bin/evtranalyze/evtranalyze.c
857
&ts->end) == 2)
usr.bin/evtranalyze/evtranalyze.c
868
ts->start = s * freq;
usr.bin/evtranalyze/evtranalyze.c
869
ts->end = e * freq;
usr.bin/gzip/gzip.c
1337
unsigned char ts[4]; /* timestamp */
usr.bin/gzip/gzip.c
1339
rv = pread(fd, ts, sizeof ts, GZIP_TIMESTAMP);
usr.bin/gzip/gzip.c
1340
if (rv >= 0 && rv < (ssize_t)(sizeof ts))
usr.bin/gzip/gzip.c
1347
timestamp = ts[3] << 24 | ts[2] << 16 | ts[1] << 8 | ts[0];
usr.bin/gzip/gzip.c
1912
print_list(int fd, off_t out, const char *outfile, time_t ts)
usr.bin/gzip/gzip.c
1968
char *date = ctime(&ts);
usr.bin/kcollect/kcollect.c
751
time_t ts;
usr.bin/kcollect/kcollect.c
759
ts = timegm(&tm);
usr.bin/kcollect/kcollect.c
761
return (int)ts;
usr.bin/ktrdump/ktrdump.c
1003
if ((bestn < 0) || (ts < *last_timestamp))
usr.bin/ktrdump/ktrdump.c
1010
*last_timestamp = ts;
usr.bin/ktrdump/ktrdump.c
364
ev.ts = 0;
usr.bin/ktrdump/ktrdump.c
657
ev.ts = entry->ktr_timestamp;
usr.bin/ktrdump/ktrdump.c
987
u_int64_t ts;
usr.bin/ktrdump/ktrdump.c
991
ts = 0;
usr.bin/ktrdump/ktrdump.c
998
if (ts == 0 || (ts >= ent->ktr_timestamp)) {
usr.bin/ktrdump/ktrdump.c
999
ts = ent->ktr_timestamp;
usr.bin/stat/stat.c
1045
ts.tv_nsec /= 10;
usr.bin/stat/stat.c
1051
l = snprintf(buf, blen, lfmt, (long long)ts.tv_sec, ts.tv_nsec);
usr.bin/stat/stat.c
630
struct timespec ts;
usr.bin/stat/stat.c
768
ts = *tsp; /* copy so we can muck with it */
usr.bin/stat/stat.c
769
small = (sizeof(ts.tv_sec) == 4);
usr.bin/stat/stat.c
770
data = ts.tv_sec;
usr.bin/stat/stat.c
771
tm = localtime(&ts.tv_sec);
usr.bin/stat/stat.c
773
ts.tv_sec = 0;
usr.bin/stat/stat.c
774
tm = localtime(&ts.tv_sec);
usr.bin/stat/stat.c
999
(long long)ts.tv_sec));
usr.bin/tail/forward.c
276
struct timespec ts;
usr.bin/tail/forward.c
279
ts.tv_sec = 0;
usr.bin/tail/forward.c
280
ts.tv_nsec = 0;
usr.bin/tail/forward.c
305
if (kevent(kq, ev, n, NULL, 0, &ts) < 0)
usr.bin/tail/forward.c
319
struct timespec ts;
usr.bin/tail/forward.c
409
ts.tv_sec = 1;
usr.bin/tail/forward.c
410
ts.tv_nsec = 0;
usr.bin/tail/forward.c
419
Fflag ? &ts : NULL);
usr.bin/top/screen.c
190
struct ttysize ts;
usr.bin/top/screen.c
192
if (ioctl (1, TIOCGSIZE, &ts) != -1)
usr.bin/top/screen.c
194
if (ts.ts_lines != 0)
usr.bin/top/screen.c
196
screen_length = ts.ts_lines;
usr.bin/top/screen.c
198
if (ts.ts_cols != 0)
usr.bin/top/screen.c
200
screen_width = ts.ts_cols - 1;
usr.bin/unzip/unzip.c
587
struct timespec ts[2];
usr.bin/unzip/unzip.c
626
ts[0].tv_sec = 0;
usr.bin/unzip/unzip.c
627
ts[0].tv_nsec = UTIME_NOW;
usr.bin/unzip/unzip.c
628
ts[1] = mtime;
usr.bin/unzip/unzip.c
639
if (utimensat(AT_FDCWD, *path, ts, AT_SYMLINK_NOFOLLOW) != 0)
usr.bin/unzip/unzip.c
658
if (futimens(fd, ts) != 0)
usr.bin/vmstat/vmstat.c
404
struct timespec ts;
usr.bin/vmstat/vmstat.c
406
clock_gettime(CLOCK_UPTIME, &ts);
usr.bin/vmstat/vmstat.c
408
return ts.tv_sec;
usr.sbin/cdcontrol/cdcontrol.c
515
unsigned char tm, ts, tf;
usr.sbin/cdcontrol/cdcontrol.c
591
ts = toc_buffer[tr1].addr.msf.second;
usr.sbin/cdcontrol/cdcontrol.c
595
&tm, &ts, &tf);
usr.sbin/cdcontrol/cdcontrol.c
598
&& ((s1 > ts)
usr.sbin/cdcontrol/cdcontrol.c
599
|| ((s1 == ts)
usr.sbin/cdcontrol/cdcontrol.c
611
s1 += ts;
usr.sbin/cdcontrol/cdcontrol.c
643
&tm, &ts, &tf);
usr.sbin/cdcontrol/cdcontrol.c
645
s2 = ts;
usr.sbin/cdcontrol/cdcontrol.c
657
ts = toc_buffer[tr2].addr.msf.second;
usr.sbin/cdcontrol/cdcontrol.c
661
&tm, &ts, &tf);
usr.sbin/cdcontrol/cdcontrol.c
668
s2 += ts;
usr.sbin/cdcontrol/cdcontrol.c
679
ts = toc_buffer[n].addr.msf.second;
usr.sbin/cdcontrol/cdcontrol.c
683
&tm, &ts, &tf);
usr.sbin/cdcontrol/cdcontrol.c
687
&& ((s2 > ts)
usr.sbin/cdcontrol/cdcontrol.c
688
|| ((s2 == ts)
usr.sbin/cdcontrol/cdcontrol.c
712
&tm, &ts, &tf);
usr.sbin/cdcontrol/cdcontrol.c
714
s2 = ts;
usr.sbin/daemon/daemon.c
433
struct timespec ts = { secs, nsecs };
usr.sbin/daemon/daemon.c
435
while (!terminate && nanosleep(&ts, &ts) == -1) {
usr.sbin/dntpd/convert.c
105
tv_to_ts(struct timeval *tv, struct timespec *ts)
usr.sbin/dntpd/convert.c
107
ts->tv_sec = tv->tv_sec;
usr.sbin/dntpd/convert.c
108
ts->tv_nsec = tv->tv_usec * 1000;
usr.sbin/dntpd/convert.c
112
ts_to_tv(struct timespec *ts, struct timeval *tv)
usr.sbin/dntpd/convert.c
114
tv->tv_sec = ts->tv_sec;
usr.sbin/dntpd/convert.c
115
tv->tv_usec = ts->tv_nsec / 1000;
usr.sbin/dntpd/defs.h
93
void tv_to_ts(struct timeval *tv, struct timespec *ts);
usr.sbin/dntpd/defs.h
94
void ts_to_tv(struct timespec *ts, struct timeval *tv);
usr.sbin/dntpd/system.c
100
ts_to_tv(&ts, tvp);
usr.sbin/dntpd/system.c
90
struct timespec ts;
usr.sbin/dntpd/system.c
94
ts_size = sizeof(ts);
usr.sbin/dntpd/system.c
95
error = sysctlbyname("kern.basetime", &ts, &ts_size, NULL, 0);
usr.sbin/makefs/hammer2/hammer2.h
1512
void hammer2_time_to_timespec(uint64_t xtime, struct timespec *ts);
usr.sbin/makefs/hammer2/hammer2.h
1513
uint64_t hammer2_timespec_to_time(const struct timespec *ts);
usr.sbin/makefs/hammer2/hammer2_subr.c
140
hammer2_time_to_timespec(uint64_t xtime, struct timespec *ts)
usr.sbin/makefs/hammer2/hammer2_subr.c
142
ts->tv_sec = (unsigned long)(xtime / 1000000);
usr.sbin/makefs/hammer2/hammer2_subr.c
143
ts->tv_nsec = (unsigned int)(xtime % 1000000) * 1000L;
usr.sbin/makefs/hammer2/hammer2_subr.c
147
hammer2_timespec_to_time(const struct timespec *ts)
usr.sbin/makefs/hammer2/hammer2_subr.c
151
xtime = (unsigned)(ts->tv_nsec / 1000) +
usr.sbin/makefs/hammer2/hammer2_subr.c
152
(unsigned long)ts->tv_sec * 1000000ULL;
usr.sbin/makefs/hammer2/hammer2_subr.c
328
struct timeval ts;
usr.sbin/makefs/hammer2/hammer2_subr.c
331
error = gettimeofday(&ts, NULL);
usr.sbin/makefs/hammer2/hammer2_subr.c
333
*timep = (unsigned long)ts.tv_sec * 1000000 + ts.tv_usec;
usr.sbin/makefs/hammer2/hammer2_subr.c
339
struct timespec *ts;
usr.sbin/makefs/hammer2/hammer2_subr.c
349
ts = is_mtime ? &st->st_mtim : &st->st_ctim;
usr.sbin/makefs/hammer2/hammer2_subr.c
351
*timep = (uint64_t)ts->tv_sec * 1000000 + ts->tv_nsec / 1000;
usr.sbin/nvmmctl/nvmmctl.c
145
char ram[4+1], *ts;
usr.sbin/nvmmctl/nvmmctl.c
167
ts = asctime(localtime(&machinfo.time));
usr.sbin/nvmmctl/nvmmctl.c
168
ts[strlen(ts) - 1] = '\0';
usr.sbin/nvmmctl/nvmmctl.c
175
machinfo.pid, ts);
usr.sbin/pfctl/pfctl_table.c
387
print_tstats(const struct pfr_tstats *ts, int debug)
usr.sbin/pfctl/pfctl_table.c
389
time_t rtime = ts->pfrts_tzero;
usr.sbin/pfctl/pfctl_table.c
392
if (!debug && !(ts->pfrts_flags & PFR_TFLAG_ACTIVE))
usr.sbin/pfctl/pfctl_table.c
394
print_table(&ts->pfrts_t, 1, debug);
usr.sbin/pfctl/pfctl_table.c
395
printf("\tAddresses: %d\n", ts->pfrts_cnt);
usr.sbin/pfctl/pfctl_table.c
398
ts->pfrts_refcnt[PFR_REFCNT_ANCHOR],
usr.sbin/pfctl/pfctl_table.c
399
ts->pfrts_refcnt[PFR_REFCNT_RULE]);
usr.sbin/pfctl/pfctl_table.c
401
(unsigned long long)ts->pfrts_nomatch,
usr.sbin/pfctl/pfctl_table.c
402
(unsigned long long)ts->pfrts_match);
usr.sbin/pfctl/pfctl_table.c
407
(unsigned long long)ts->pfrts_packets[dir][op],
usr.sbin/pfctl/pfctl_table.c
408
(unsigned long long)ts->pfrts_bytes[dir][op]);
usr.sbin/pflogd/pflogd.c
458
sh.ts.tv_sec = (bpf_int32)h->ts.tv_sec;
usr.sbin/pflogd/pflogd.c
459
sh.ts.tv_usec = (bpf_int32)h->ts.tv_usec;
usr.sbin/pflogd/pflogd.c
566
sh.ts.tv_sec = (bpf_int32)h->ts.tv_sec;
usr.sbin/pflogd/pflogd.c
567
sh.ts.tv_usec = (bpf_int32)h->ts.tv_usec;
usr.sbin/powerd/powerd.c
781
struct timespec cur, ts;
usr.sbin/powerd/powerd.c
786
timespecsub(&cur, &BatLifePrevT, &ts);
usr.sbin/powerd/powerd.c
787
if (ts.tv_sec < BatLifePollIntvl)
usr.sbin/powerd/powerd.c
842
timespecsub(&cur, &BatShutdownStartT, &ts);
usr.sbin/powerd/powerd.c
843
if (ts.tv_sec > BatShutdownLinger)
usr.sbin/rtadvctl/rtadvctl.c
419
struct timespec now, ts0, ts;
usr.sbin/rtadvctl/rtadvctl.c
469
clock_gettime(CLOCK_MONOTONIC_FAST, &ts);
usr.sbin/rtadvctl/rtadvctl.c
470
TS_SUB(&now, &ts, &ts0);
usr.sbin/rtadvctl/rtadvctl.c
613
ts.tv_sec = rat->rat_tm.tv_sec + ts0.tv_sec;
usr.sbin/rtadvctl/rtadvctl.c
614
printf("%s", ctime(&ts.tv_sec));
usr.sbin/rtadvctl/rtadvctl.c
620
ts.tv_sec = ifi_s->ifi_ra_lastsent.tv_sec + ts0.tv_sec;
usr.sbin/rtadvctl/rtadvctl.c
621
printf("%s", ctime(&ts.tv_sec));