| /freebsd-11-stable/contrib/netbsd-tests/lib/libc/sys/ |
| HD | t_nanosleep.c | 71 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-11-stable/lib/libthr/thread/ |
| HD | thr_join.c | 80 struct timespec ts, ts2, *tsp; in join_common() local 117 TIMESPEC_SUB(&ts2, abstime, &ts); in join_common() 118 if (ts2.tv_sec < 0) { in join_common() 122 tsp = &ts2; in join_common()
|
| HD | thr_mutex.c | 883 struct timespec ts1, ts2; in mutex_self_lock() local 895 TIMESPEC_SUB(&ts2, abstime, &ts1); in mutex_self_lock() 896 __sys_nanosleep(&ts2, NULL); in mutex_self_lock() 920 TIMESPEC_SUB(&ts2, abstime, &ts1); in mutex_self_lock() 921 __sys_nanosleep(&ts2, NULL); in mutex_self_lock()
|
| /freebsd-11-stable/sys/netsmb/ |
| HD | smb_trantcp.c | 522 struct timespec ts1, ts2; in smb_nbst_connect() local 546 getnanotime(&ts2); in smb_nbst_connect() 547 timespecsub(&ts2, &ts1); 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 nbp->nbp_timo = ts2; in smb_nbst_connect() 553 timespecadd(&nbp->nbp_timo, &ts2); in smb_nbst_connect() 554 timespecadd(&nbp->nbp_timo, &ts2); in smb_nbst_connect() 555 timespecadd(&nbp->nbp_timo, &ts2); /* * 4 */ in smb_nbst_connect()
|
| /freebsd-11-stable/contrib/gcc/ |
| HD | cfglayout.c | 383 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-11-stable/sys/kern/ |
| HD | uipc_mqueue.c | 1690 struct timespec ts, ts2; in mqueue_send() local 1731 ts2 = *abs_timeout; in mqueue_send() 1733 timespecsub(&ts2, &ts); in mqueue_send() 1734 if (ts2.tv_sec < 0 || (ts2.tv_sec == 0 && ts2.tv_nsec <= 0)) { in mqueue_send() 1738 TIMESPEC_TO_TIMEVAL(&tv, &ts2); in mqueue_send() 1846 struct timespec ts, ts2; in mqueue_receive() local 1883 ts2 = *abs_timeout; in mqueue_receive() 1885 timespecsub(&ts2, &ts); in mqueue_receive() 1886 if (ts2.tv_sec < 0 || (ts2.tv_sec == 0 && ts2.tv_nsec <= 0)) { in mqueue_receive() 1890 TIMESPEC_TO_TIMEVAL(&tv, &ts2); in mqueue_receive()
|
| HD | sched_ule.c | 2253 struct td_sched *ts2; in sched_fork_thread() local 2262 ts2 = td_get_sched(child); in sched_fork_thread() 2267 ts2->ts_cpu = ts->ts_cpu; in sched_fork_thread() 2268 ts2->ts_flags = 0; in sched_fork_thread() 2272 ts2->ts_ticks = ts->ts_ticks; in sched_fork_thread() 2273 ts2->ts_ltick = ts->ts_ltick; in sched_fork_thread() 2274 ts2->ts_ftick = ts->ts_ftick; in sched_fork_thread() 2282 ts2->ts_slptime = ts->ts_slptime; in sched_fork_thread() 2283 ts2->ts_runtime = ts->ts_runtime; in sched_fork_thread() 2285 ts2->ts_slice = tdq_slice(tdq) - sched_slice_min; in sched_fork_thread() [all …]
|
| HD | kern_timeout.c | 660 struct timespec ts2; in softclock_call_cc() local 737 ts2 = sbttots(sbt2); in softclock_call_cc() 740 c_func, c_arg, (intmax_t)ts2.tv_sec, ts2.tv_nsec); in softclock_call_cc()
|
| HD | uipc_sem.c | 797 struct timespec ts1, ts2; in kern_sem_wait() local 830 getnanotime(&ts2); in kern_sem_wait() 831 timespecsub(&ts1, &ts2); in kern_sem_wait()
|
| /freebsd-11-stable/usr.sbin/moused/ |
| HD | moused.c | 2551 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-11-stable/sys/dev/mlx5/mlx5_core/ |
| HD | mlx5_cmd.c | 822 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-11-stable/sys/dev/mlx5/ |
| HD | driver.h | 832 u64 ts2; member
|
| /freebsd-11-stable/contrib/ncurses/ |
| HD | aclocal.m4 | 1646 struct timespec ts1, ts2; 1650 ts2.tv_sec = 0; 1651 ts2.tv_nsec = 0; 1653 code = nanosleep(&ts1, &ts2); /* on failure errno is ENOSYS. */
|