Searched refs:ts (Results 1 - 25 of 364) sorted by relevance

1234567891011>>

/src/sys/compat/sys/
H A Dtime_types.h76 timeval50_to_timeval(const struct timeval50 *ts50, struct timeval *ts) argument
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) argument
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) argument
94 memset(ts,
100 timespec_to_timespec50(const struct timespec * ts,struct timespec50 * ts50) argument
108 itimerval50_to_itimerval(const struct itimerval50 * ts50,struct itimerval * ts) argument
116 itimerval_to_itimerval50(const struct itimerval * ts,struct itimerval50 * ts50) argument
124 itimerspec50_to_itimerspec(const struct itimerspec50 * ts50,struct itimerspec * ts) argument
133 itimerspec_to_itimerspec50(const struct itimerspec * ts,struct itimerspec50 * ts50) argument
[all...]
/src/sys/external/bsd/drm2/include/linux/
H A Dtime.h62 getrawmonotonic(struct timespec *ts) argument
64 getnanouptime(ts);
74 timespec_valid(const struct timespec *ts) argument
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
99 timespec_to_ns(const struct timespec * ts) argument
107 struct timespec ts; local in function:ns_to_timeval
133 set_normalized_timespec(struct timespec * ts,time_t sec,int64_t nsec) argument
[all...]
H A Dktime.h114 timespec_to_ktime(struct timespec ts) argument
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
227 ktime_get_ts64(struct timespec64 * ts) argument
[all...]
/src/sys/external/bsd/drm2/include/linux/sched/
H A Dclock.h44 struct timespec ts; local in function:local_clock
46 nanouptime(&ts);
48 return ts.tv_sec*1000000000ull + ts.tv_nsec;
/src/lib/libc/gen/
H A Dtimespec_get.c43 timespec_get(struct timespec *ts, int base) argument
46 _DIAGASSERT(ts != NULL);
50 if (clock_gettime(CLOCK_REALTIME, ts) == -1)
54 if (clock_gettime(CLOCK_MONOTONIC, ts) == -1)
H A Dtimespec_getres.c41 timespec_getres(struct timespec *ts, int base) argument
44 _DIAGASSERT(ts != NULL);
48 if (clock_getres(CLOCK_REALTIME, ts) == -1)
52 if (clock_getres(CLOCK_MONOTONIC, ts) == -1)
H A Dusleep.c49 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);
/src/sys/kern/
H A Dsubr_time.c68 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);
88 inittimeleft(struct timespec * ts,struct timespec * sleepts) argument
100 gettimeleft(struct timespec * ts,struct timespec * sleepts) argument
124 clock_timeleft(clockid_t clockid,struct timespec * ts,struct timespec * sleepts) argument
135 clock_gettime1(clockid_t clock_id,struct timespec * ts) argument
203 ts2timo(clockid_t clock_id,int flags,struct timespec * ts,int * timo,struct timespec * start) argument
[all...]
H A Dkern_turnstile.c116 turnstile_ctor(turnstile_t *ts) argument
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) argument
134 KASSERT(l->l_ts == ts);
140 if ((nts = ts->ts_free) != NULL) {
141 KASSERT(TS_ALL_WAITERS(ts) > 1);
143 ts
167 turnstile_t *ts; local in function:turnstile_lookup
225 turnstile_t *ts; local in function:turnstile_lendpri
312 turnstile_unlendpri(turnstile_t * ts) argument
370 turnstile_block(turnstile_t * ts,int q,wchan_t obj,syncobj_t * sobj) argument
444 turnstile_wakeup(turnstile_t * ts,int q,int count,lwp_t * nl) argument
528 turnstile_t *ts; local in function:turnstile_print
[all...]
/src/tests/lib/libc/gen/
H A Dt_timespec_get.c43 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_UT
97 struct timespec ts, ts2; local in function:ATF_TC_BODY
[all...]
/src/tests/kernel/
H A Dt_timeleft.c57 struct timespec ts; member in struct:info
61 timeleft__lwp_park(struct timespec *ts) argument
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
[all...]
/src/tests/lib/libc/string/
H A Dt_bm.c74 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]
[all...]
/src/bin/ksh/
H A Dtty.c17 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/
H A Dsigtimedwait.c51 struct timespec ts; local in function:sigtimedwait
54 ts = *timeout;
55 return __sigtimedwait(set, info, &ts);
H A Depoll.c59 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/
H A Dpause.c51 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/
H A Dt_timer.c45 check_timespec(struct timespec *ts, time_t seconds) argument
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/
H A Dsocfpga_cyclone5_mcvevk.dts61 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,
[all...]
/src/distrib/utils/embedded/files/
H A Dresize_disklabel45 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/
H A Dcompat___lwp_park50.c53 ___lwp_park50(const struct timespec *ts, lwpid_t unpark, const void *hint,
57 if (ts)
58 ts1 = *ts;
H A Dcompat__lwp_park.c59 struct timespec ts, *tsp; variable in typeref:struct:timespec
62 timespec50_to_timespec(ts50, tsp = &ts);
/src/tests/lib/libc/sys/
H A Dt_lwp_ctl.c50 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);
H A Dt_nanosleep.c105 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, NUL
[all...]
/src/sys/compat/common/
H A Dkern_time_60.c59 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;
/src/usr.bin/xlint/lint2/
H A Demit2.c57 tspec_t ts = tp->t_tspec; local in function:outtype
58 if (ts == INT && tp->t_is_enum)
59 ts = ENUM;
60 if (!ch_isupper(tt[ts]))
61 errx(1, "internal error: outtype(%d)", ts);
66 if (ss[ts] != ' ')
67 outchar(ss[ts]);
68 if (ts == FUNC && tp->t_args != NULL && !tp->t_proto)
71 outchar(tt[ts]);
73 if (ts
[all...]

Completed in 13 milliseconds

1234567891011>>