Searched refs:tsp (Results 1 - 25 of 73) sorted by relevance

123

/freebsd-current/usr.sbin/rtadvd/
H A Dtimer_subr.h36 #define TS_CMP(tsp, usp, cmp) \
37 (((tsp)->tv_sec == (usp)->tv_sec) ? \
38 ((tsp)->tv_nsec cmp (usp)->tv_nsec) : \
39 ((tsp)->tv_sec cmp (usp)->tv_sec))
40 #define TS_ADD(tsp, usp, vsp) \
42 (vsp)->tv_sec = (tsp)->tv_sec + (usp)->tv_sec; \
43 (vsp)->tv_nsec = (tsp)->tv_nsec + (usp)->tv_nsec; \
49 #define TS_SUB(tsp, usp, vsp) \
51 (vsp)->tv_sec = (tsp)->tv_sec - (usp)->tv_sec; \
52 (vsp)->tv_nsec = (tsp)
[all...]
/freebsd-current/contrib/libfido2/openbsd-compat/
H A Dtime.h35 #define timespecadd(tsp, usp, vsp) \
37 (vsp)->tv_sec = (tsp)->tv_sec + (usp)->tv_sec; \
38 (vsp)->tv_nsec = (tsp)->tv_nsec + (usp)->tv_nsec; \
45 #define timespecsub(tsp, usp, vsp) \
47 (vsp)->tv_sec = (tsp)->tv_sec - (usp)->tv_sec; \
48 (vsp)->tv_nsec = (tsp)->tv_nsec - (usp)->tv_nsec; \
55 #define timespeccmp(tsp, usp, cmp) \
56 (((tsp)->tv_sec == (usp)->tv_sec) ? \
57 ((tsp)->tv_nsec cmp (usp)->tv_nsec) : \
58 ((tsp)
[all...]
/freebsd-current/contrib/tcpdump/
H A Dprint-timed.c40 struct tsp { struct
115 const struct tsp *tsp = (const struct tsp *)bp; local
120 tsp_type = GET_U_1(tsp->tsp_type);
123 ND_PRINT(" vers %u", GET_U_1(tsp->tsp_vers));
125 ND_PRINT(" seq %u", GET_BE_U_2(tsp->tsp_seq));
129 ND_PRINT(" hopcnt %u", GET_U_1(tsp->tsp_hopcnt));
135 sec = GET_BE_S_4(tsp->tsp_time.tv_sec);
136 usec = GET_BE_S_4(tsp
[all...]
/freebsd-current/contrib/nvi/vi/
H A Dvs_split.c296 SCR *tsp; local
301 TAILQ_FOREACH(tsp, gp->dq, q)
302 if (tsp->roff >= sp->roff)
308 for (; tsp != NULL; tsp = TAILQ_NEXT(tsp, q))
309 if (tsp->roff != sp->roff || tsp->coff > sp->coff)
316 if (tsp == NULL) {
318 } else if (tsp
336 SCR *tsp, **lp, *list[100]; local
453 SCR **lp, *tsp; local
[all...]
H A Dvs_refresh.c67 SCR *tsp; local
80 TAILQ_FOREACH(tsp, gp->dq, q)
81 if (tsp != sp)
82 F_SET(tsp, SC_SCR_REDRAW | SC_STATUS);
97 TAILQ_FOREACH(tsp, gp->dq, q)
98 if (tsp != sp && !F_ISSET(tsp, SC_EXIT | SC_EXIT_FORCE) &&
99 (F_ISSET(tsp, pub_paint) ||
100 F_ISSET(VIP(tsp), priv_paint))) {
101 (void)vs_paint(tsp,
[all...]
/freebsd-current/sys/fs/smbfs/
H A Dsmbfs_subr.c52 smb_time_local2server(struct timespec *tsp, int tzoff, u_long *seconds) argument
54 *seconds = tsp->tv_sec - tzoff * 60 /*- tz_minuteswest * 60 -
59 smb_time_server2local(u_long seconds, int tzoff, struct timespec *tsp) argument
61 tsp->tv_sec = seconds + tzoff * 60;
73 smb_time_NT2local(int64_t nsec, int tzoff, struct timespec *tsp) argument
75 smb_time_server2local(nsec / 10000000 - DIFF1970TO1601, 0, tsp);
79 smb_time_local2NT(struct timespec *tsp, int tzoff, int64_t *nsec) argument
83 smb_time_local2server(tsp, 0, &seconds);
88 smb_time_unix2dos(struct timespec *tsp, int tzoff, u_int16_t *ddp, argument
94 tt = *tsp;
101 smb_dos2unixtime(u_int dd, u_int dt, u_int dh, int tzoff, struct timespec *tsp) argument
[all...]
H A Dsmbfs_subr.h173 void smb_time_local2server(struct timespec *tsp, int tzoff, u_long *seconds);
174 void smb_time_server2local(u_long seconds, int tzoff, struct timespec *tsp);
175 void smb_time_NT2local(int64_t nsec, int tzoff, struct timespec *tsp);
176 void smb_time_local2NT(struct timespec *tsp, int tzoff, int64_t *nsec);
177 void smb_time_unix2dos(struct timespec *tsp, int tzoff, u_int16_t *ddp,
179 void smb_dos2unixtime (u_int dd, u_int dt, u_int dh, int tzoff, struct timespec *tsp);
/freebsd-current/contrib/nvi/ex/
H A Dex_screen.c100 SCR *tsp; local
104 if ((tsp = TAILQ_FIRST(gp->hq)) == NULL) {
110 for (cnt = 1; tsp != NULL && !INTERRUPTED(sp);
111 tsp = TAILQ_NEXT(tsp, q)) {
112 col += len = strlen(tsp->frp->name) + sep;
121 (void)ex_puts(sp, tsp->frp->name);
H A Dex_visual.c35 SCR *tsp; local
135 tsp = sp;
136 if (vi(&tsp))
/freebsd-current/sys/sys/
H A Dtimeffc.h207 void ffclock_nanotime(struct timespec *tsp);
211 void ffclock_getnanotime(struct timespec *tsp);
215 void ffclock_nanouptime(struct timespec *tsp);
219 void ffclock_getnanouptime(struct timespec *tsp);
227 void ffclock_nanodifftime(ffcounter ffdelta, struct timespec *tsp);
237 void fbclock_nanotime(struct timespec *tsp);
241 void fbclock_getnanotime(struct timespec *tsp);
245 void fbclock_nanouptime(struct timespec *tsp);
249 void fbclock_getnanouptime(struct timespec *tsp);
269 nanotime_fromclock(struct timespec *tsp, in argument
299 getnanotime_fromclock(struct timespec *tsp, int whichclock) argument
329 nanouptime_fromclock(struct timespec *tsp, int whichclock) argument
359 getnanouptime_fromclock(struct timespec *tsp, int whichclock) argument
[all...]
H A Dclock.h172 void timespec2fattime(const struct timespec *tsp, int utc, u_int16_t *ddp,
175 struct timespec *tsp);
H A Dtime.h400 #define timespecadd(tsp, usp, vsp) \
402 (vsp)->tv_sec = (tsp)->tv_sec + (usp)->tv_sec; \
403 (vsp)->tv_nsec = (tsp)->tv_nsec + (usp)->tv_nsec; \
409 #define timespecsub(tsp, usp, vsp) \
411 (vsp)->tv_sec = (tsp)->tv_sec - (usp)->tv_sec; \
412 (vsp)->tv_nsec = (tsp)->tv_nsec - (usp)->tv_nsec; \
418 #define timespecvalid_interval(tsp) ((tsp)->tv_sec >= 0 && \
419 (tsp)->tv_nsec >= 0 && (tsp)
[all...]
/freebsd-current/usr.sbin/rtsold/
H A Drtsold.h130 #define TS_CMP(tsp, usp, cmp) \
131 (((tsp)->tv_sec == (usp)->tv_sec) ? \
132 ((tsp)->tv_nsec cmp (usp)->tv_nsec) : \
133 ((tsp)->tv_sec cmp (usp)->tv_sec))
134 #define TS_ADD(tsp, usp, vsp) \
136 (vsp)->tv_sec = (tsp)->tv_sec + (usp)->tv_sec; \
137 (vsp)->tv_nsec = (tsp)->tv_nsec + (usp)->tv_nsec; \
143 #define TS_SUB(tsp, usp, vsp) \
145 (vsp)->tv_sec = (tsp)->tv_sec - (usp)->tv_sec; \
146 (vsp)->tv_nsec = (tsp)
[all...]
/freebsd-current/sys/kern/
H A Dsubr_fattime.c138 timespec2fattime(const struct timespec *tsp, int utc, uint16_t *ddp, argument
144 t1 = tsp->tv_sec;
149 *dhp = (tsp->tv_sec & 1) * 100 + tsp->tv_nsec / 10000000;
217 struct timespec *tsp)
222 tsp->tv_sec = (dt & 0x1f) << 1;
223 tsp->tv_sec += ((dt & 0x7e0) >> 5) * 60;
224 tsp->tv_sec += ((dt & 0xf800) >> 11) * 3600;
225 tsp->tv_sec += dh / 100;
226 tsp
216 fattime2timespec(unsigned dd, unsigned dt, unsigned dh, int utc, struct timespec *tsp) argument
[all...]
H A Dkern_ffclock.c253 ffclock_nanotime(struct timespec *tsp) argument
258 bintime2timespec(&bt, tsp);
279 ffclock_getnanotime(struct timespec *tsp) argument
285 bintime2timespec(&bt, tsp);
306 ffclock_nanouptime(struct timespec *tsp) argument
311 bintime2timespec(&bt, tsp);
332 ffclock_getnanouptime(struct timespec *tsp) argument
338 bintime2timespec(&bt, tsp);
359 ffclock_nanodifftime(ffcounter ffdelta, struct timespec *tsp) argument
364 bintime2timespec(&bt, tsp);
[all...]
H A Dkern_tc.c156 void dtrace_getnanotime(struct timespec *tsp);
157 void dtrace_getnanouptime(struct timespec *tsp);
299 fbclock_nanouptime(struct timespec *tsp) argument
304 bintime2timespec(&bt, tsp);
324 fbclock_nanotime(struct timespec *tsp) argument
329 bintime2timespec(&bt, tsp);
349 fbclock_getnanouptime(struct timespec *tsp) argument
354 bintime2timespec(&bt, tsp);
374 fbclock_getnanotime(struct timespec *tsp) argument
377 GETTHMEMBER(tsp, th_nanotim
396 nanouptime(struct timespec *tsp) argument
421 nanotime(struct timespec *tsp) argument
446 getnanouptime(struct timespec *tsp) argument
471 getnanotime(struct timespec *tsp) argument
928 nanouptime(struct timespec *tsp) argument
949 nanotime(struct timespec *tsp) argument
970 getnanouptime(struct timespec *tsp) argument
991 getnanotime(struct timespec *tsp) argument
1012 dtrace_getnanotime(struct timespec *tsp) argument
1024 dtrace_getnanouptime(struct timespec *tsp) argument
1784 struct timespec *tsp, *osp; local
[all...]
/freebsd-current/lib/libthr/thread/
H A Dthr_join.c88 struct timespec ts, ts2, *tsp; local
141 tsp = &ts2;
143 tsp = NULL;
144 ret = _thr_umtx_wait(&pthread->tid, tid, tsp);
H A Dthr_umtx.h68 const struct timespec *tsp) __hidden;
70 const struct timespec *tsp) __hidden;
224 _thr_rwlock_rdlock(struct urwlock *rwlock, int flags, struct timespec *tsp) argument
229 return (__thr_rwlock_rdlock(rwlock, flags, tsp));
233 _thr_rwlock_wrlock(struct urwlock *rwlock, struct timespec *tsp) argument
238 return (__thr_rwlock_wrlock(rwlock, tsp));
H A Dthr_umtx.c279 const struct timespec *tsp)
284 if (tsp == NULL) {
288 timeout._timeout = *tsp;
299 __thr_rwlock_wrlock(struct urwlock *rwlock, const struct timespec *tsp) argument
304 if (tsp == NULL) {
308 timeout._timeout = *tsp;
278 __thr_rwlock_rdlock(struct urwlock *rwlock, int flags, const struct timespec *tsp) argument
/freebsd-current/contrib/nvi/cl/
H A Dcl_funcs.c349 SCR* tsp; local
365 for (; (tsp = *acquirep) != NULL; ++acquirep) {
366 clp = CLP(tsp);
369 if (CLSP(tsp))
370 delwin(CLSP(tsp));
371 tsp->cl_private = subwin(stdscr, tsp->rows, tsp->cols,
372 tsp->roff, tsp
523 SCR *psp, *tsp; local
[all...]
/freebsd-current/crypto/openssh/openbsd-compat/
H A Dbsd-poll.c102 struct timespec ts, *tsp = NULL; local
108 tsp = &ts;
111 return ppoll(fds, nfds, tsp, NULL);
/freebsd-current/crypto/openssh/
H A Ddefines.h531 #define timespeccmp(tsp, usp, cmp) \
532 (((tsp)->tv_sec == (usp)->tv_sec) ? \
533 ((tsp)->tv_nsec cmp (usp)->tv_nsec) : \
534 ((tsp)->tv_sec cmp (usp)->tv_sec))
539 #define timespecclear(tsp) (tsp)->tv_sec = (tsp)->tv_nsec = 0
542 #define timespeccmp(tsp, usp, cmp) \
543 (((tsp)->tv_sec == (usp)->tv_sec) ? \
544 ((tsp)
[all...]
/freebsd-current/include/protocols/
H A Dtimed.h42 struct tsp { struct
/freebsd-current/contrib/flex/src/
H A Ddfa.c231 int stkpos, ns, tsp; local
309 tsp = trans1[ns] + MARKER_DIFFERENCE;
311 if (tsp != NO_TRANSITION) {
312 if (!IS_MARKED (tsp))
313 STACK_STATE (tsp);
315 tsp = trans2[ns];
317 if (tsp != NO_TRANSITION
318 && !IS_MARKED (tsp))
319 STACK_STATE (tsp);
929 int ns, tsp, sy local
[all...]
/freebsd-current/contrib/ntp/libntp/
H A Dsystime.c139 struct timespec * tsp
146 rc = clock_gettime(CLOCK_REALTIME, tsp);
148 rc = getclock(TIMEOFDAY, tsp);
153 tsp->tv_sec = tv.tv_sec;
154 tsp->tv_nsec = tv.tv_usec * 1000;
163 ticks = (long)((tsp->tv_nsec * 1e-9) / sys_tick);
164 tsp->tv_nsec = (long)(ticks * 1e9 * sys_tick);

Completed in 213 milliseconds

123