/src/sys/compat/sys/ |
time_types.h | 76 timeval50_to_timeval(const struct timeval50 *ts50, struct timeval *ts) 78 memset(ts, 0, sizeof(*ts)); 79 ts->tv_sec = ts50->tv_sec; 80 ts->tv_usec = (suseconds_t)ts50->tv_usec; 84 timeval_to_timeval50(const struct timeval *ts, struct timeval50 *ts50) 87 ts50->tv_sec = (long)ts->tv_sec; 88 ts50->tv_usec = ts->tv_usec; 92 timespec50_to_timespec(const struct timespec50 *ts50, struct timespec *ts) 94 memset(ts, 0, sizeof(*ts)) [all...] |
/src/sys/external/bsd/drm2/include/linux/ |
time.h | 62 getrawmonotonic(struct timespec *ts) 64 getnanouptime(ts); 74 timespec_valid(const struct timespec *ts) 76 if (ts->tv_sec < 0) 78 if (1000000000L <= ts->tv_nsec) 86 struct timespec ts; local in function:ns_to_timespec 88 ts.tv_sec = (nsec / 1000000000L); 89 ts.tv_nsec = (nsec % 1000000000L); 90 if (ts.tv_nsec < 0) { 91 ts.tv_sec -= 1 107 struct timespec ts; local in function:ns_to_timeval [all...] |
ktime.h | 114 timespec_to_ktime(struct timespec ts) 117 return ns_to_ktime(1000000000*(int64_t)ts.tv_sec + ts.tv_nsec); 124 struct timespec ts; local in function:ktime_get 126 nanouptime(&ts); 128 return timespec_to_ktime(ts); 134 struct timespec ts; local in function:ktime_get_real 136 nanotime(&ts); 138 return timespec_to_ktime(ts); 176 struct timespec ts; local in function:ktime_get_monotonic_offset 186 struct timespec ts = ktime_to_timespec(kt); local in function:ktime_mono_to_real [all...] |
/src/sys/external/bsd/drm2/include/linux/sched/ |
clock.h | 44 struct timespec ts; local in function:local_clock 46 nanouptime(&ts); 48 return ts.tv_sec*1000000000ull + ts.tv_nsec;
|
/src/lib/libc/gen/ |
usleep.c | 49 struct timespec ts; local in function:__weak_alias 54 ts.tv_sec = (useconds / 1000000); 55 ts.tv_nsec = (useconds % 1000000) * 1000; 57 nanosleep(&ts, NULL);
|
timespec_get.c | 43 timespec_get(struct timespec *ts, int base) 46 _DIAGASSERT(ts != NULL); 50 if (clock_gettime(CLOCK_REALTIME, ts) == -1) 54 if (clock_gettime(CLOCK_MONOTONIC, ts) == -1)
|
timespec_getres.c | 41 timespec_getres(struct timespec *ts, int base) 44 _DIAGASSERT(ts != NULL); 48 if (clock_getres(CLOCK_REALTIME, ts) == -1) 52 if (clock_getres(CLOCK_MONOTONIC, ts) == -1)
|
/src/sys/kern/ |
subr_time.c | 68 struct timespec now, ts; local in function:tshzto 70 ts = *tsp; /* Don't modify original tsp. */ 72 timespecsub(&ts, &now, &ts); 73 return tstohz(&ts); 79 struct timespec now, ts; local in function:tshztoup 81 ts = *tsp; /* Don't modify original tsp. */ 83 timespecsub(&ts, &now, &ts); 84 return tstohz(&ts); [all...] |
kern_turnstile.c | 116 turnstile_ctor(turnstile_t *ts) 119 memset(ts, 0, sizeof(*ts)); 120 sleepq_init(&ts->ts_sleepq[TS_READER_Q]); 121 sleepq_init(&ts->ts_sleepq[TS_WRITER_Q]); 130 turnstile_remove(turnstile_t *ts, lwp_t *l, int q) 134 KASSERT(l->l_ts == ts); 140 if ((nts = ts->ts_free) != NULL) { 141 KASSERT(TS_ALL_WAITERS(ts) > 1); 143 ts->ts_free = nts->ts_free 167 turnstile_t *ts; local in function:turnstile_lookup 225 turnstile_t *ts; local in function:turnstile_lendpri 528 turnstile_t *ts; local in function:turnstile_print [all...] |
/src/tests/lib/libc/gen/ |
t_timespec_get.c | 43 struct timespec ts, ts2; local in function:ATF_TC_BODY 45 ATF_REQUIRE_EQ(timespec_getres(&ts, TIME_MONOTONIC), TIME_MONOTONIC); 48 ATF_REQUIRE_EQ(ts.tv_sec, ts2.tv_sec); 49 ATF_REQUIRE_EQ(ts.tv_nsec, ts2.tv_nsec); 51 ATF_REQUIRE_EQ(timespec_getres(&ts, TIME_UTC), TIME_UTC); 54 ATF_REQUIRE_EQ(ts.tv_sec, ts2.tv_sec); 55 ATF_REQUIRE_EQ(ts.tv_nsec, ts2.tv_nsec); 58 ATF_REQUIRE_EQ(timespec_getres(&ts, INT_MAX), 0); 69 struct timespec ts, ts2; local in function:ATF_TC_BODY 71 ATF_REQUIRE_EQ(timespec_get(&ts, TIME_UTC), TIME_UTC) 97 struct timespec ts, ts2; local in function:ATF_TC_BODY [all...] |
/src/tests/kernel/ |
t_timeleft.c | 57 struct timespec ts; member in struct:info 61 timeleft__lwp_park(struct timespec *ts) 64 ts, 0, ts, NULL) == -1); 69 timeleft_pselect(struct timespec *ts) 71 ATF_REQUIRE_ERRNO(EINTR, pselect(1, NULL, NULL, NULL, ts, NULL)); 79 (*i->fun)(&i->ts); 86 const struct timespec ts = { 5, 0 }; local in function:tester 88 struct info i = { fun, ts }; 97 printf("Orig time %ju.%lu\n", (intmax_t)ts.tv_sec, ts.tv_nsec) [all...] |
/src/tests/lib/libc/string/ |
t_bm.c | 74 size_t ts; local in function:ATF_TC_BODY 79 for (ts = 0; ts < sizeof(testcases)/sizeof(t_testcase); ts++) { 80 ATF_CHECK((pattern = bm_comp((const u_char *)testcases[ts].pattern, 81 strlen(testcases[ts].pattern), (const u_char *)testcases[ts].freq))); 83 ATF_REQUIRE((text = strdup(testcases[ts].text))); 86 if (testcases[ts].match == -1) 89 ATF_CHECK_EQ(testcases[ts].match [all...] |
/src/bin/ksh/ |
tty.c | 17 get_tty(fd, ts) 19 TTY_state *ts; 24 ret = tcgetattr(fd, ts); 27 ret = ioctl(fd, TCGETA, ts); 29 ret = ioctl(fd, TIOCGETP, &ts->sgttyb); 31 if (ioctl(fd, TIOCGATC, &ts->lchars) < 0) 34 if (ioctl(fd, TIOCGETC, &ts->tchars) < 0) 37 if (ioctl(fd, TIOCGLTC, &ts->ltchars) < 0) 47 set_tty(fd, ts, flags) 49 TTY_state *ts; [all...] |
/src/lib/libc/sys/ |
sigtimedwait.c | 51 struct timespec ts; local in function:sigtimedwait 54 ts = *timeout; 55 return __sigtimedwait(set, info, &ts);
|
epoll.c | 59 struct timespec ts, *tsp; local in function:epoll_pwait 62 ts.tv_sec = timeout / 1000; 63 ts.tv_nsec = (timeout % 1000) * 1000000; 64 tsp = &ts;
|
/src/lib/libcurses/ |
pause.c | 51 struct timespec ts; local in function:napms 54 ts.tv_sec = ms / 1000; 55 ts.tv_nsec = (ms % 1000) * 1000000; 56 (void)nanosleep(&ts, NULL);
|
/src/tests/kernel/kqueue/ |
t_timer.c | 45 check_timespec(struct timespec *ts, time_t seconds) 58 if (ts->tv_sec < seconds - 1 || 59 (ts->tv_sec == seconds - 1 && ts->tv_nsec < 500000000)) 61 else if (ts->tv_sec > upper || 62 (ts->tv_sec == upper && ts->tv_nsec >= 500000000)) 66 ts->tv_sec, ts->tv_nsec, (result ? "" : "not "), 90 struct timespec ots, ts; local in function:ATF_TC_BODY 166 struct timespec ts = { 0, 0 }; local in function:ATF_TC_BODY 196 struct timespec ts = { 0, 0 }; local in function:ATF_TC_BODY 278 struct timespec ts, ots; local in function:ATF_TC_BODY 313 struct timespec ts, ots; local in function:do_test_timer_units [all...] |
/src/sys/external/gpl2/dts/dist/arch/arm/boot/dts/ |
socfpga_cyclone5_mcvevk.dts | 61 compatible = "st,stmpe-ts"; 62 ts,sample-time = <4>; 63 ts,mod-12b = <1>; 64 ts,ref-sel = <0>; 65 ts,adc-freq = <1>; 66 ts,ave-ctrl = <1>; 67 ts,touch-det-delay = <3>; 68 ts,settling = <4>; 69 ts,fraction-z = <7>; 70 ts,i-drive = <1> [all...] |
/src/distrib/utils/embedded/files/ |
resize_disklabel | 45 local disk rawpart ts rs oldsize newsize 56 ts=$((${DLSIZE} - ${PART1START})) 59 if [ "$ts" = "$rs" ]; then 64 newsize=$(($ts / 2048)) 66 /sbin/fdisk -f -u -1 -s 169/${PART1START}/${ts} ${disk} 71 local disk part rawpart ts rs oldsize newsize 77 ts=$(get_total_sectors $disk) 80 if [ "$ts" = "$rs" ]; then 85 newsize=$(($ts / 2048))
|
/src/lib/libc/compat/sys/ |
compat___lwp_park50.c | 53 ___lwp_park50(const struct timespec *ts, lwpid_t unpark, const void *hint, 57 if (ts) 58 ts1 = *ts;
|
compat__lwp_park.c | 59 struct timespec ts, *tsp; variable in typeref:struct:timespec 62 timespec50_to_timespec(ts50, tsp = &ts);
|
/src/tests/lib/libc/sys/ |
t_lwp_ctl.c | 50 struct timespec ts; local in function:ATF_TC_BODY 58 ts.tv_nsec = 10*1000000; 59 ts.tv_sec = 0; 61 ATF_REQUIRE(nanosleep(&ts, 0) != -1);
|
t_sigtimedwait.c | 52 struct timespec ts, before, after, len; local in function:ATF_TC_BODY 57 ts.tv_sec = 0; 58 ts.tv_nsec = 0; 60 r = sigtimedwait(&block, &info, &ts); 107 struct timespec ts; local in function:ATF_TC_BODY 112 ts.tv_sec = 5; 113 ts.tv_nsec = 0; 114 r = sigtimedwait(&block, &info, &ts);
|
t_nanosleep.c | 105 struct timespec ts; local in function:ATF_TC_BODY 107 ts.tv_sec = 1; 108 ts.tv_nsec = -1; 110 ATF_REQUIRE_ERRNO(EINVAL, nanosleep(&ts, NULL) == -1); 112 ts.tv_sec = 1; 113 ts.tv_nsec = 1000000000; 115 ATF_REQUIRE_ERRNO(EINVAL, nanosleep(&ts, NULL) == -1); 117 ts.tv_sec = -1; 118 ts.tv_nsec = 0; 120 ATF_REQUIRE_ERRNO(0, nanosleep(&ts, NULL) == 0) [all...] |
/src/sys/compat/common/ |
kern_time_60.c | 59 syscallarg(const struct timespec *) ts; 66 struct timespec ts, *tsp; local in function:compat_60_sys__lwp_park 68 if (SCARG(uap, ts) == NULL) 71 error = copyin(SCARG(uap, ts), &ts, sizeof(ts)); 74 tsp = &ts;
|