Home
last modified time | relevance | path

Searched refs:ts2 (Results 1 – 15 of 15) sorted by relevance

/freebsd-14.2/contrib/kyua/utils/
H A Ddatetime_test.cpp420 ATF_REQUIRE(!(ts1 < ts2)); in ATF_TEST_CASE_BODY()
421 ATF_REQUIRE( ts1 <= ts2); in ATF_TEST_CASE_BODY()
422 ATF_REQUIRE(!(ts1 > ts2)); in ATF_TEST_CASE_BODY()
423 ATF_REQUIRE( ts1 >= ts2); in ATF_TEST_CASE_BODY()
431 ATF_REQUIRE( ts1 < ts2); in ATF_TEST_CASE_BODY()
432 ATF_REQUIRE( ts1 <= ts2); in ATF_TEST_CASE_BODY()
433 ATF_REQUIRE(!(ts1 > ts2)); in ATF_TEST_CASE_BODY()
442 ATF_REQUIRE(!(ts1 < ts2)); in ATF_TEST_CASE_BODY()
444 ATF_REQUIRE( ts1 > ts2); in ATF_TEST_CASE_BODY()
445 ATF_REQUIRE( ts1 >= ts2); in ATF_TEST_CASE_BODY()
[all …]
/freebsd-14.2/contrib/netbsd-tests/lib/libc/sys/
H A Dt_nanosleep.c71 struct timespec ts1, ts2, tsn; in ATF_TC_BODY() local
80 (void)memset(&ts2, 0, sizeof(struct timespec)); in ATF_TC_BODY()
84 ATF_REQUIRE(clock_gettime(CLOCK_MONOTONIC, &ts2) == 0); in ATF_TC_BODY()
89 if (timespeccmp(&ts2, &ts1, <=) != 0) { in ATF_TC_BODY()
97 (unsigned long long)ts2.tv_sec, ts2.tv_nsec); in ATF_TC_BODY()
/freebsd-14.2/lib/libthr/thread/
H A Dthr_join.c88 struct timespec ts, ts2, *tsp; in join_common() local
136 TIMESPEC_SUB(&ts2, abstime, &ts); in join_common()
137 if (ts2.tv_sec < 0) { in join_common()
141 tsp = &ts2; in join_common()
H A Dthr_mutex.c885 struct timespec ts1, ts2; in mutex_self_lock() local
897 TIMESPEC_SUB(&ts2, abstime, &ts1); in mutex_self_lock()
898 __sys_nanosleep(&ts2, NULL); in mutex_self_lock()
922 TIMESPEC_SUB(&ts2, abstime, &ts1); in mutex_self_lock()
923 __sys_nanosleep(&ts2, NULL); in mutex_self_lock()
/freebsd-14.2/sys/netsmb/
H A Dsmb_trantcp.c522 struct timespec ts1, ts2; in smb_nbst_connect() local
546 getnanotime(&ts2); in smb_nbst_connect()
547 timespecsub(&ts2, &ts1, &ts2); in smb_nbst_connect()
548 if (ts2.tv_sec == 0) { in smb_nbst_connect()
549 ts2.tv_sec = 1; in smb_nbst_connect()
550 ts2.tv_nsec = 0; in smb_nbst_connect()
552 timespecadd(&ts2, &ts2, &nbp->nbp_timo); in smb_nbst_connect()
553 timespecadd(&nbp->nbp_timo, &ts2, &nbp->nbp_timo); in smb_nbst_connect()
554 timespecadd(&nbp->nbp_timo, &ts2, &nbp->nbp_timo); /* * 4 */ in smb_nbst_connect()
/freebsd-14.2/sys/dev/qat/qat_common/
H A Dadf_clock.c61 struct timespec ts2; in measure_clock() local
80 nanotime(&ts2); in measure_clock()
82 delta = timespec_sub(ts2, ts1); in measure_clock()
/freebsd-14.2/crypto/openssl/crypto/
H A Do_time.c31 struct tm data, *ts2 = &data; in OPENSSL_gmtime() local
35 if (gmtime_r(timer, ts2) == NULL) in OPENSSL_gmtime()
37 memcpy(result, ts2, sizeof(struct tm)); in OPENSSL_gmtime()
/freebsd-14.2/sys/kern/
H A Dsched_ule.c2417 struct td_sched *ts2; in sched_fork_thread() local
2426 ts2 = td_get_sched(child); in sched_fork_thread()
2432 ts2->ts_cpu = ts->ts_cpu; in sched_fork_thread()
2433 ts2->ts_flags = 0; in sched_fork_thread()
2437 ts2->ts_ticks = ts->ts_ticks; in sched_fork_thread()
2438 ts2->ts_ltick = ts->ts_ltick; in sched_fork_thread()
2439 ts2->ts_ftick = ts->ts_ftick; in sched_fork_thread()
2447 ts2->ts_slptime = ts->ts_slptime; in sched_fork_thread()
2448 ts2->ts_runtime = ts->ts_runtime; in sched_fork_thread()
2450 ts2->ts_slice = tdq_slice(tdq) - sched_slice_min; in sched_fork_thread()
[all …]
H A Duipc_mqueue.c1690 struct timespec ts, ts2; in mqueue_send() local
1732 timespecsub(abs_timeout, &ts, &ts2); in mqueue_send()
1733 if (ts2.tv_sec < 0 || (ts2.tv_sec == 0 && ts2.tv_nsec <= 0)) { in mqueue_send()
1737 TIMESPEC_TO_TIMEVAL(&tv, &ts2); in mqueue_send()
1845 struct timespec ts, ts2; in mqueue_receive() local
1883 timespecsub(abs_timeout, &ts, &ts2); in mqueue_receive()
1884 if (ts2.tv_sec < 0 || (ts2.tv_sec == 0 && ts2.tv_nsec <= 0)) { in mqueue_receive()
1888 TIMESPEC_TO_TIMEVAL(&tv, &ts2); in mqueue_receive()
H A Dkern_timeout.c651 struct timespec ts2; in softclock_call_cc() local
727 ts2 = sbttots(sbt2); in softclock_call_cc()
730 c_func, c_arg, (intmax_t)ts2.tv_sec, ts2.tv_nsec); in softclock_call_cc()
H A Duipc_sem.c809 struct timespec ts1, ts2; in kern_sem_wait() local
844 getnanotime(&ts2); in kern_sem_wait()
845 timespecsub(&ts1, &ts2, &ts1); in kern_sem_wait()
/freebsd-14.2/usr.sbin/moused/
H A Dmoused.c2512 struct timespec ts2; in r_timestamp() local
2528 ts2.tv_sec = rodent.clickthreshold / 1000; in r_timestamp()
2529 ts2.tv_nsec = (rodent.clickthreshold % 1000) * 1000000; in r_timestamp()
2530 tssub(&ts1, &ts2, &ts); in r_timestamp()
2534 ts2.tv_sec = rodent.button2timeout / 1000; in r_timestamp()
2535 ts2.tv_nsec = (rodent.button2timeout % 1000) * 1000000; in r_timestamp()
2536 tssub(&ts1, &ts2, &ts3); in r_timestamp()
2578 struct timespec ts2; in r_timeout() local
2583 ts2.tv_sec = rodent.button2timeout / 1000; in r_timeout()
2584 ts2.tv_nsec = (rodent.button2timeout % 1000) * 1000000; in r_timeout()
[all …]
/freebsd-14.2/sys/dev/mlx5/mlx5_core/
H A Dmlx5_cmd.c830 ds = ent->ts2 - ent->ts1; in complete_command()
1021 ds = ent->ts2 - ent->ts1; in mlx5_cmd_invoke()
1214 ent->ts2 = ktime_get_ns(); in mlx5_cmd_comp_handler()
/freebsd-14.2/sys/dev/mlx5/
H A Ddriver.h881 u64 ts2; member
/freebsd-14.2/contrib/ncurses/
H A Daclocal.m42760 struct timespec ts1, ts2;
2764 ts2.tv_sec = 0;
2765 ts2.tv_nsec = 0;
2767 code = nanosleep(&ts1, &ts2); /* on failure errno is ENOSYS. */