Home
last modified time | relevance | path

Searched refs:tv_sec (Results 151 – 175 of 1304) sorted by relevance

12345678910>>...53

/freebsd/sys/dev/qat/qat_common/
H A Dadf_clock.c86 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 Dthr_umtx.c185 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 Dpthread5.sh72 ts.tv_sec = tp.tv_sec;
74 ts.tv_sec += 30;
/freebsd/tests/sys/netinet/libalias/
H A Dperf.c44 (((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 Dt_rwlock.c102 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 Dcondition_variable.cpp45 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 Dsctp_timer.c527 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 Daltq_rio.c152 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 Dmythread.h323 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 Dql_os.h98 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 Dclock_gettime.c14 ts->tv_sec = tv.tv_sec; in clock_gettime()
/freebsd/sys/compat/linux/
H A Dlinux_misc.c146 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 Dkern_ntptime.c263 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 Dclk_rawdcf.c609 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 Dlast.c238 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 Dfuse_internal.h168 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 Dclock_gettime.h49 ts->tv_sec = tv.tv_sec; in clock_gettime()
/freebsd/tools/test/ppsapi/
H A Dppsapitest.c22 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 Dkttcp.c91 (vvp)->tv_sec = (tvp)->tv_sec - (uvp)->tv_sec; \
94 (vvp)->tv_sec--; \
/freebsd/tests/sys/audit/
H A Dutils.c152 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 Dfindalldevstest-perf.c92 (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 Dlastlogin.c73 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 Dutime.c42 tv[0].tv_sec = times->actime; in utime()
43 tv[1].tv_sec = times->modtime; in utime()
/freebsd/usr.bin/gprof/
H A Dhertz.c48 tim.it_interval.tv_sec = 0; in hertz()
50 tim.it_value.tv_sec = 0; in hertz()
/freebsd/crypto/openssl/crypto/bio/
H A Dbss_dgram.c212 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 …]

12345678910>>...53