Home
last modified time | relevance | path

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

/freebsd/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()
434 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()
[all …]
/freebsd/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/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/sys/netsmb/
H A Dsmb_trantcp.c521 struct timespec ts1, ts2; in smb_nbst_connect() local
545 getnanotime(&ts2); in smb_nbst_connect()
546 timespecsub(&ts2, &ts1, &ts2); in smb_nbst_connect()
547 if (ts2.tv_sec == 0) { in smb_nbst_connect()
548 ts2.tv_sec = 1; in smb_nbst_connect()
549 ts2.tv_nsec = 0; in smb_nbst_connect()
551 timespecadd(&ts2, &ts2, &nbp->nbp_timo); in smb_nbst_connect()
552 timespecadd(&nbp->nbp_timo, &ts2, &nbp->nbp_timo); in smb_nbst_connect()
553 timespecadd(&nbp->nbp_timo, &ts2, &nbp->nbp_timo); /* * 4 */ in smb_nbst_connect()
/freebsd/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/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/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.c1694 struct timespec ts, ts2; in mqueue_send() local
1736 timespecsub(abs_timeout, &ts, &ts2); in mqueue_send()
1737 if (ts2.tv_sec < 0 || (ts2.tv_sec == 0 && ts2.tv_nsec <= 0)) { in mqueue_send()
1741 TIMESPEC_TO_TIMEVAL(&tv, &ts2); in mqueue_send()
1849 struct timespec ts, ts2; in mqueue_receive() local
1887 timespecsub(abs_timeout, &ts, &ts2); in mqueue_receive()
1888 if (ts2.tv_sec < 0 || (ts2.tv_sec == 0 && ts2.tv_nsec <= 0)) { in mqueue_receive()
1892 TIMESPEC_TO_TIMEVAL(&tv, &ts2); in mqueue_receive()
H A Dkern_timeout.c647 struct timespec ts2; in softclock_call_cc() local
722 ts2 = sbttots(sbt2); in softclock_call_cc()
725 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/usr.sbin/moused/
H A Dmoused.c2510 struct timespec ts2; in r_timestamp() local
2526 ts2.tv_sec = rodent.clickthreshold / 1000; in r_timestamp()
2527 ts2.tv_nsec = (rodent.clickthreshold % 1000) * 1000000; in r_timestamp()
2528 tssub(&ts1, &ts2, &ts); in r_timestamp()
2532 ts2.tv_sec = rodent.button2timeout / 1000; in r_timestamp()
2533 ts2.tv_nsec = (rodent.button2timeout % 1000) * 1000000; in r_timestamp()
2534 tssub(&ts1, &ts2, &ts3); in r_timestamp()
2576 struct timespec ts2; in r_timeout() local
2581 ts2.tv_sec = rodent.button2timeout / 1000; in r_timeout()
2582 ts2.tv_nsec = (rodent.button2timeout % 1000) * 1000000; in r_timeout()
[all …]
/freebsd/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/sys/dev/mlx5/
H A Ddriver.h881 u64 ts2; member
/freebsd/contrib/ncurses/
H A Daclocal.m42491 struct timespec ts1, ts2;
2495 ts2.tv_sec = 0;
2496 ts2.tv_nsec = 0;
2498 code = nanosleep(&ts1, &ts2); /* on failure errno is ENOSYS. */