Home
last modified time | relevance | path

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

/freebsd-12.1/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-12.1/lib/libthr/thread/
H A Dthr_join.c83 struct timespec ts, ts2, *tsp; in join_common() local
120 TIMESPEC_SUB(&ts2, abstime, &ts); in join_common()
121 if (ts2.tv_sec < 0) { in join_common()
125 tsp = &ts2; in join_common()
H A Dthr_mutex.c886 struct timespec ts1, ts2; in mutex_self_lock() local
898 TIMESPEC_SUB(&ts2, abstime, &ts1); in mutex_self_lock()
899 __sys_nanosleep(&ts2, NULL); in mutex_self_lock()
923 TIMESPEC_SUB(&ts2, abstime, &ts1); in mutex_self_lock()
924 __sys_nanosleep(&ts2, NULL); in mutex_self_lock()
/freebsd-12.1/sys/netsmb/
H A Dsmb_trantcp.c524 struct timespec ts1, ts2; in smb_nbst_connect() local
548 getnanotime(&ts2); in smb_nbst_connect()
549 timespecsub(&ts2, &ts1, &ts2); in smb_nbst_connect()
550 if (ts2.tv_sec == 0) { in smb_nbst_connect()
551 ts2.tv_sec = 1; in smb_nbst_connect()
552 ts2.tv_nsec = 0; in smb_nbst_connect()
554 timespecadd(&ts2, &ts2, &nbp->nbp_timo); in smb_nbst_connect()
555 timespecadd(&nbp->nbp_timo, &ts2, &nbp->nbp_timo); in smb_nbst_connect()
556 timespecadd(&nbp->nbp_timo, &ts2, &nbp->nbp_timo); /* * 4 */ in smb_nbst_connect()
/freebsd-12.1/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-12.1/contrib/gcc/
H A Dcfglayout.c383 tree ts1 = s1, ts2 = s2; in change_scope() local
386 while (ts1 != ts2) in change_scope()
388 gcc_assert (ts1 && ts2); in change_scope()
389 if (BLOCK_NUMBER (ts1) > BLOCK_NUMBER (ts2)) in change_scope()
391 else if (BLOCK_NUMBER (ts1) < BLOCK_NUMBER (ts2)) in change_scope()
392 ts2 = BLOCK_SUPERCONTEXT (ts2); in change_scope()
396 ts2 = BLOCK_SUPERCONTEXT (ts2); in change_scope()
/freebsd-12.1/sys/kern/
H A Dsched_ule.c2235 struct td_sched *ts2; in sched_fork_thread() local
2244 ts2 = td_get_sched(child); in sched_fork_thread()
2250 ts2->ts_cpu = ts->ts_cpu; in sched_fork_thread()
2251 ts2->ts_flags = 0; in sched_fork_thread()
2255 ts2->ts_ticks = ts->ts_ticks; in sched_fork_thread()
2256 ts2->ts_ltick = ts->ts_ltick; in sched_fork_thread()
2257 ts2->ts_ftick = ts->ts_ftick; in sched_fork_thread()
2265 ts2->ts_slptime = ts->ts_slptime; in sched_fork_thread()
2266 ts2->ts_runtime = ts->ts_runtime; in sched_fork_thread()
2268 ts2->ts_slice = tdq_slice(tdq) - sched_slice_min; in sched_fork_thread()
[all …]
H A Duipc_mqueue.c1698 struct timespec ts, ts2; in mqueue_send() local
1740 timespecsub(abs_timeout, &ts, &ts2); in mqueue_send()
1741 if (ts2.tv_sec < 0 || (ts2.tv_sec == 0 && ts2.tv_nsec <= 0)) { in mqueue_send()
1745 TIMESPEC_TO_TIMEVAL(&tv, &ts2); in mqueue_send()
1853 struct timespec ts, ts2; in mqueue_receive() local
1891 timespecsub(abs_timeout, &ts, &ts2); in mqueue_receive()
1892 if (ts2.tv_sec < 0 || (ts2.tv_sec == 0 && ts2.tv_nsec <= 0)) { in mqueue_receive()
1896 TIMESPEC_TO_TIMEVAL(&tv, &ts2); in mqueue_receive()
H A Dkern_timeout.c662 struct timespec ts2; in softclock_call_cc() local
739 ts2 = sbttots(sbt2); in softclock_call_cc()
742 c_func, c_arg, (intmax_t)ts2.tv_sec, ts2.tv_nsec); in softclock_call_cc()
H A Duipc_sem.c811 struct timespec ts1, ts2; in kern_sem_wait() local
845 getnanotime(&ts2); in kern_sem_wait()
846 timespecsub(&ts1, &ts2, &ts1); in kern_sem_wait()
/freebsd-12.1/usr.sbin/moused/
H A Dmoused.c2551 struct timespec ts2; in r_timestamp() local
2567 ts2.tv_sec = rodent.clickthreshold / 1000; in r_timestamp()
2568 ts2.tv_nsec = (rodent.clickthreshold % 1000) * 1000000; in r_timestamp()
2569 tssub(&ts1, &ts2, &ts); in r_timestamp()
2573 ts2.tv_sec = rodent.button2timeout / 1000; in r_timestamp()
2574 ts2.tv_nsec = (rodent.button2timeout % 1000) * 1000000; in r_timestamp()
2575 tssub(&ts1, &ts2, &ts3); in r_timestamp()
2617 struct timespec ts2; in r_timeout() local
2622 ts2.tv_sec = rodent.button2timeout / 1000; in r_timeout()
2623 ts2.tv_nsec = (rodent.button2timeout % 1000) * 1000000; in r_timeout()
[all …]
/freebsd-12.1/sys/dev/mlx5/mlx5_core/
H A Dmlx5_cmd.c822 ds = ent->ts2 - ent->ts1; in complete_command()
1013 ds = ent->ts2 - ent->ts1; in mlx5_cmd_invoke()
1201 ent->ts2 = ktime_get_ns(); in mlx5_cmd_comp_handler()
/freebsd-12.1/sys/dev/mlx5/
H A Ddriver.h853 u64 ts2; member
/freebsd-12.1/contrib/ncurses/
H A Daclocal.m41646 struct timespec ts1, ts2;
1650 ts2.tv_sec = 0;
1651 ts2.tv_nsec = 0;
1653 code = nanosleep(&ts1, &ts2); /* on failure errno is ENOSYS. */