/freebsd/sys/dev/qat/qat_common/ |
H A D | adf_clock.c | 86 delta_us = delta.tv_sec * USEC_PER_SEC + temp; in measure_clock() 111 delta_us = delta.tv_sec * USEC_PER_SEC + temp; in measure_clock() 123 delta.tv_sec * NSEC_PER_SEC + delta.tv_nsec + (NSEC_PER_USEC / 2); in measure_clock() 176 return (uint64_t)(ts->tv_sec * (1000)) + (ts->tv_nsec / NSEC_PER_MSEC); in timespec_to_ms()
|
/freebsd/lib/libthr/thread/ |
H A D | thr_umtx.c | 185 if (timeout && (timeout->tv_sec < 0 || (timeout->tv_sec == 0 && in _thr_umtx_wait() 197 if (timeout && (timeout->tv_sec < 0 || (timeout->tv_sec == 0 && in _thr_umtx_wait_uint() 249 if (timeout && (timeout->tv_sec < 0 || (timeout->tv_sec == 0 && in _thr_ucond_wait()
|
/freebsd/tools/test/stress2/misc/ |
H A D | pthread5.sh | 72 ts.tv_sec = tp.tv_sec; 74 ts.tv_sec += 30;
|
/freebsd/tests/sys/netinet/libalias/ |
H A D | perf.c | 44 (((tv).tv_sec == (uv).tv_sec) \ 46 : ((tv).tv_sec cmp (uv).tv_sec)) 49 (((n).tv_sec - (o).tv_sec)*1000000l + \ 139 timeout.tv_sec += max_seconds; in main()
|
/freebsd/contrib/netbsd-tests/lib/libpthread/ |
H A D | t_rwlock.c | 102 to.tv_sec++; in ATF_TC_BODY() 111 to.tv_sec++; in ATF_TC_BODY() 116 to.tv_sec++; in ATF_TC_BODY()
|
/freebsd/contrib/llvm-project/libcxx/src/ |
H A D | condition_variable.cpp | 45 typedef decltype(ts.tv_sec) ts_sec; in __do_timed_wait() 48 ts.tv_sec = static_cast<ts_sec>(s.count()); in __do_timed_wait() 51 ts.tv_sec = ts_sec_max; in __do_timed_wait()
|
/freebsd/sys/netinet/ |
H A D | sctp_timer.c | 527 tv.tv_sec = cur_rto / 1000000; in sctp_mark_all_for_resend() 538 min_wait.tv_sec = min_wait.tv_usec = 0; in sctp_mark_all_for_resend() 589 (uint32_t)chk->sent_rcv_time.tv_sec, in sctp_mark_all_for_resend() 593 if ((chk->sent_rcv_time.tv_sec > min_wait.tv_sec) && (window_probe == 0)) { in sctp_mark_all_for_resend() 606 } else if ((chk->sent_rcv_time.tv_sec == min_wait.tv_sec) && in sctp_mark_all_for_resend() 855 if (net->last_sent_time.tv_sec) { in sctp_t3rxt_timer() 856 ms_goneby = (uint32_t)(now.tv_sec - net->last_sent_time.tv_sec) * 1000; in sctp_t3rxt_timer() 1447 if ((net->last_sent_time.tv_sec > 0) || in sctp_heartbeat_timer() 1540 if (asoc->time_last_rcvd.tv_sec > in sctp_autoclose_timer() 1541 asoc->time_last_sent.tv_sec) { in sctp_autoclose_timer() [all …]
|
/freebsd/sys/net/altq/ |
H A D | altq_rio.c | 152 if ((xxs = (a)->tv_sec - (b)->tv_sec) != 0) { \ 332 now.tv_sec = 0; in rio_addq() 338 if (now.tv_sec == 0) in rio_addq() 340 t = (now.tv_sec - prec->last.tv_sec); in rio_addq()
|
/freebsd/contrib/xz/src/common/ |
H A D | mythread.h | 323 condtime->tv_sec = (time_t)(timeout_ms / 1000); in mythread_condtime_set() 332 condtime->tv_sec += now.tv_sec; in mythread_condtime_set() 340 condtime->tv_sec += now.tv_sec; in mythread_condtime_set() 347 ++condtime->tv_sec; in mythread_condtime_set()
|
/freebsd/sys/dev/qlxgbe/ |
H A D | ql_os.h | 98 t.tv_sec = ms / 1000; in qla_ms_to_hz() 115 t.tv_sec = sec; in qla_sec_to_hz() 127 return ((uint64_t)(((uint64_t)tv.tv_sec) * 1000000 + tv.tv_usec)); in qla_get_usec_timestamp()
|
/freebsd/contrib/blocklist/port/ |
H A D | clock_gettime.c | 14 ts->tv_sec = tv.tv_sec; in clock_gettime()
|
/freebsd/sys/compat/linux/ |
H A D | linux_misc.c | 146 ts.tv_sec++; in linux_sysinfo() 248 utv.tv_sec = ltv.tv_sec; in linux_select() 290 ltv.tv_sec = utv.tv_sec; in linux_select() 538 tv[0].tv_sec = ltv[0].tv_sec; in linux_utimes() 540 tv[1].tv_sec = ltv[1].tv_sec; in linux_utimes() 559 times->tv_sec = l_times->tv_sec; in linux_utimensat_lts_to_ts() 649 times->tv_sec = l_times->tv_sec; in linux_utimensat_lts64_to_ts() 705 tv[0].tv_sec = ltv[0].tv_sec; in linux_futimesat() 707 tv[1].tv_sec = ltv[1].tv_sec; in linux_futimesat() 976 (bip)->it_interval.tv_sec = (lip)->it_interval.tv_sec; \ [all …]
|
/freebsd/sys/kern/ |
H A D | kern_ntptime.c | 263 ntvp->time.tv_sec = atv.tv_sec; in ntp_gettime1() 763 u_sec = tsp->tv_sec; in hardpps() 770 if (u_sec == pps_tf[0].tv_sec && v_nsec < NANOSECOND - MAXFREQ) in hardpps() 774 pps_tf[0].tv_sec = u_sec; in hardpps() 838 u_sec = pps_tf[0].tv_sec - pps_lastsec; in hardpps() 854 pps_lastsec = pps_tf[0].tv_sec; in hardpps() 964 ltw = (int64_t)delta->tv_sec * 1000000 + delta->tv_usec; in kern_adjtime() 972 atv.tv_sec = ltr / 1000000; in kern_adjtime() 976 atv.tv_sec--; in kern_adjtime()
|
/freebsd/contrib/ntp/libparse/ |
H A D | clk_rawdcf.c | 609 delta.tv_sec = ref->tv.tv_sec - offset - base->tv.tv_sec; in calc_usecdiff() 613 delta.tv_sec -= 1; in calc_usecdiff() 625 delta_usec = 1000000 * (int32_t)delta.tv_sec + delta.tv_usec; in calc_usecdiff() 644 if (t != NULL && t->tminute.tv.tv_sec != 0) { in snt_rawdcf() 659 parseio->parse_dtime.parse_time.tv.tv_sec++; in snt_rawdcf() 701 if (t->timeout.tv.tv_sec != 0) in inp_rawdcf()
|
/freebsd/usr.bin/last/ |
H A D | last.c | 238 if (t > ut->ut_tv.tv_sec) in wtmp() 239 t = ut->ut_tv.tv_sec; in wtmp() 273 currentout = -bp->ut_tv.tv_sec; in doentry() 320 (bp->ut_tv.tv_sec < snaptime && in doentry() 325 tt->logout = bp->ut_tv.tv_sec; in doentry() 346 t = bp->ut_tv.tv_sec; in printentry() 386 delta = tt->logout - bp->ut_tv.tv_sec; in printentry()
|
/freebsd/sys/fs/fuse/ |
H A D | fuse_internal.h | 168 if (attr_valid >= INT_MAX || attr_valid + now.tv_sec + 2 >= INT_MAX) { in fuse_validity_2_bintime() 171 duration.tv_sec = attr_valid; in fuse_validity_2_bintime() 191 feo->entry_valid + now.tv_sec + 2 >= INT_MAX) { in fuse_validity_2_timespec() 192 timeout->tv_sec = INT_MAX; in fuse_validity_2_timespec() 194 duration.tv_sec = feo->entry_valid; in fuse_validity_2_timespec()
|
/freebsd/contrib/openbsm/compat/ |
H A D | clock_gettime.h | 49 ts->tv_sec = tv.tv_sec; in clock_gettime()
|
/freebsd/tools/test/ppsapi/ |
H A D | ppsapitest.c | 22 printf("%jd .%09ld %u", (intmax_t)tsa->tv_sec, tsa->tv_nsec, sa); in Chew() 23 printf(" %jd .%09ld %u\n", (intmax_t)tsc->tv_sec, tsc->tv_nsec, sc); in Chew() 154 to.tv_sec = 0; in main() 163 to.tv_sec = 0; in main()
|
/freebsd/tools/tools/kttcp/sys/ |
H A D | kttcp.c | 91 (vvp)->tv_sec = (tvp)->tv_sec - (uvp)->tv_sec; \ 94 (vvp)->tv_sec--; \
|
/freebsd/tests/sys/audit/ |
H A D | utils.c | 152 endtime.tv_sec += 30; in check_auditpipe() 158 timeout.tv_sec = MIN(timeout.tv_sec, 9); in check_auditpipe() 159 if (timeout.tv_sec < 0) { in check_auditpipe()
|
/freebsd/contrib/libpcap/testprogs/ |
H A D | findalldevstest-perf.c | 92 (double)ktime.tv_sec + ((double)ktime.tv_usec / 1000000.0), in main() 93 (double)utime.tv_sec + ((double)utime.tv_usec / 1000000.0), in main() 94 (double)tottime.tv_sec + ((double)tottime.tv_usec / 1000000.0)); in main()
|
/freebsd/usr.sbin/lastlogin/ |
H A D | lastlogin.c | 73 t1 = ((const struct utmpx *)u1)->ut_tv.tv_sec; in utcmp_time() 74 t2 = ((const struct utmpx *)u2)->ut_tv.tv_sec; in utcmp_time() 156 time_t t = u->ut_tv.tv_sec; in output()
|
/freebsd/lib/libc/gen/ |
H A D | utime.c | 42 tv[0].tv_sec = times->actime; in utime() 43 tv[1].tv_sec = times->modtime; in utime()
|
/freebsd/usr.bin/gprof/ |
H A D | hertz.c | 48 tim.it_interval.tv_sec = 0; in hertz() 50 tim.it_value.tv_sec = 0; in hertz()
|
/freebsd/crypto/openssl/crypto/bio/ |
H A D | bss_dgram.c | 212 data->socket_timeout.tv_sec = timeout / 1000; in dgram_adjust_rcv_timeout() 231 timeleft.tv_sec--; in dgram_adjust_rcv_timeout() 235 if (timeleft.tv_sec < timenow.tv_sec) { in dgram_adjust_rcv_timeout() 236 timeleft.tv_sec = 0; in dgram_adjust_rcv_timeout() 239 timeleft.tv_sec -= timenow.tv_sec; in dgram_adjust_rcv_timeout() 246 if ((data->socket_timeout.tv_sec == 0 in dgram_adjust_rcv_timeout() 248 || (data->socket_timeout.tv_sec > timeleft.tv_sec) in dgram_adjust_rcv_timeout() 249 || (data->socket_timeout.tv_sec == timeleft.tv_sec in dgram_adjust_rcv_timeout() 615 tv->tv_sec = timeout / 1000; in dgram_ctrl() 666 tv->tv_sec = timeout / 1000; in dgram_ctrl() [all …]
|