Home
last modified time | relevance | path

Searched refs:tsp (Results 1 – 25 of 95) sorted by relevance

1234

/freebsd/contrib/nvi/vi/
H A Dvs_split.c296 SCR *tsp; in vs_insert() local
301 TAILQ_FOREACH(tsp, gp->dq, q) in vs_insert()
302 if (tsp->roff >= sp->roff) in vs_insert()
308 for (; tsp != NULL; tsp = TAILQ_NEXT(tsp, q)) in vs_insert()
309 if (tsp->roff != sp->roff || tsp->coff > sp->coff) in vs_insert()
316 if (tsp == NULL) { in vs_insert()
318 } else if (tsp->roff < sp->roff || in vs_insert()
319 (tsp->roff == sp->roff && tsp->coff < sp->coff)) { in vs_insert()
320 TAILQ_INSERT_AFTER(gp->dq, tsp, sp, q); in vs_insert()
322 TAILQ_INSERT_BEFORE(tsp, sp, q); in vs_insert()
[all …]
H A Dvs_refresh.c67 SCR *tsp; in vs_refresh() local
80 TAILQ_FOREACH(tsp, gp->dq, q) in vs_refresh()
81 if (tsp != sp) in vs_refresh()
82 F_SET(tsp, SC_SCR_REDRAW | SC_STATUS); in vs_refresh()
97 TAILQ_FOREACH(tsp, gp->dq, q) in vs_refresh()
98 if (tsp != sp && !F_ISSET(tsp, SC_EXIT | SC_EXIT_FORCE) && in vs_refresh()
99 (F_ISSET(tsp, pub_paint) || in vs_refresh()
100 F_ISSET(VIP(tsp), priv_paint))) { in vs_refresh()
101 (void)vs_paint(tsp, in vs_refresh()
102 (F_ISSET(VIP(tsp), VIP_CUR_INVALID) ? in vs_refresh()
[all …]
/freebsd/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, int whichclock) in nanotime_fromclock() argument
[all …]
H A Dtime.h400 #define timespecadd(tsp, usp, vsp) \ argument
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) \ argument
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 && \ argument
419 (tsp)->tv_nsec >= 0 && (tsp)->tv_nsec < 1000000000L)
539 void nanouptime(struct timespec *tsp);
552 void nanotime(struct timespec *tsp);
[all …]
/freebsd/sys/fs/smbfs/
H A Dsmbfs_subr.c52 smb_time_local2server(struct timespec *tsp, int tzoff, u_long *seconds) in smb_time_local2server() argument
54 *seconds = tsp->tv_sec - tzoff * 60 /*- tz_minuteswest * 60 - in smb_time_local2server()
59 smb_time_server2local(u_long seconds, int tzoff, struct timespec *tsp) in smb_time_server2local() argument
61 tsp->tv_sec = seconds + tzoff * 60; in smb_time_server2local()
73 smb_time_NT2local(int64_t nsec, int tzoff, struct timespec *tsp) in smb_time_NT2local() argument
75 smb_time_server2local(nsec / 10000000 - DIFF1970TO1601, 0, tsp); in smb_time_NT2local()
79 smb_time_local2NT(struct timespec *tsp, int tzoff, int64_t *nsec) in smb_time_local2NT() argument
83 smb_time_local2server(tsp, 0, &seconds); in smb_time_local2NT()
88 smb_time_unix2dos(struct timespec *tsp, int tzoff, u_int16_t *ddp, in smb_time_unix2dos() argument
94 tt = *tsp; in smb_time_unix2dos()
[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/usr.sbin/rtadvd/
H A Dtimer_subr.h36 #define TS_CMP(tsp, usp, cmp) \ argument
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) \ argument
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) \ argument
51 (vsp)->tv_sec = (tsp)->tv_sec - (usp)->tv_sec; \
52 (vsp)->tv_nsec = (tsp)->tv_nsec - (usp)->tv_nsec; \
/freebsd/contrib/tcpdump/
H A Dprint-timed.c38 struct tsp { struct
113 const struct tsp *tsp = (const struct tsp *)bp; in timed_print() local
118 tsp_type = GET_U_1(tsp->tsp_type); in timed_print()
121 ND_PRINT(" vers %u", GET_U_1(tsp->tsp_vers)); in timed_print()
123 ND_PRINT(" seq %u", GET_BE_U_2(tsp->tsp_seq)); in timed_print()
127 ND_PRINT(" hopcnt %u", GET_U_1(tsp->tsp_hopcnt)); in timed_print()
133 sec = GET_BE_S_4(tsp->tsp_time.tv_sec); in timed_print()
134 usec = GET_BE_S_4(tsp->tsp_time.tv_usec); in timed_print()
150 nd_printjnp(ndo, tsp->tsp_name, sizeof(tsp->tsp_name)); in timed_print()
/freebsd/contrib/libfido2/openbsd-compat/
H A Dtime.h35 #define timespecadd(tsp, usp, vsp) \ argument
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) \ argument
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) \ argument
56 (((tsp)->tv_sec == (usp)->tv_sec) ? \
57 ((tsp)->tv_nsec cmp (usp)->tv_nsec) : \
58 ((tsp)->tv_sec cmp (usp)->tv_sec))
/freebsd/usr.sbin/rtsold/
H A Drtsold.h130 #define TS_CMP(tsp, usp, cmp) \ argument
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) \ argument
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) \ argument
145 (vsp)->tv_sec = (tsp)->tv_sec - (usp)->tv_sec; \
146 (vsp)->tv_nsec = (tsp)->tv_nsec - (usp)->tv_nsec; \
/freebsd/contrib/nvi/ex/
H A Dex_screen.c100 SCR *tsp; in ex_sdisplay() local
104 if ((tsp = TAILQ_FIRST(gp->hq)) == NULL) { in ex_sdisplay()
110 for (cnt = 1; tsp != NULL && !INTERRUPTED(sp); in ex_sdisplay()
111 tsp = TAILQ_NEXT(tsp, q)) { in ex_sdisplay()
112 col += len = strlen(tsp->frp->name) + sep; in ex_sdisplay()
121 (void)ex_puts(sp, tsp->frp->name); in ex_sdisplay()
/freebsd/contrib/nvi/cl/
H A Dcl_funcs.c349 SCR* tsp; in cl_discard() local
365 for (; (tsp = *acquirep) != NULL; ++acquirep) { in cl_discard()
366 clp = CLP(tsp); in cl_discard()
369 if (CLSP(tsp)) in cl_discard()
370 delwin(CLSP(tsp)); in cl_discard()
371 tsp->cl_private = subwin(stdscr, tsp->rows, tsp->cols, in cl_discard()
372 tsp->roff, tsp->coff); in cl_discard()
523 SCR *psp, *tsp; in cl_refresh() local
549 for (tsp = TAILQ_NEXT(psp, q); tsp != NULL; in cl_refresh()
550 tsp = TAILQ_NEXT(tsp, q)) in cl_refresh()
[all …]
/freebsd/sys/kern/
H A Dsubr_fattime.c138 timespec2fattime(const struct timespec *tsp, int utc, uint16_t *ddp, in timespec2fattime()
144 t1 = tsp->tv_sec; in timespec2fattime()
149 *dhp = (tsp->tv_sec & 1) * 100 + tsp->tv_nsec / 10000000; in timespec2fattime()
217 struct timespec *tsp)
222 tsp->tv_sec = (dt & 0x1f) << 1; in fattime2timespec()
223 tsp->tv_sec += ((dt & 0x7e0) >> 5) * 60; in fattime2timespec()
224 tsp->tv_sec += ((dt & 0xf800) >> 11) * 3600; in fattime2timespec()
225 tsp->tv_sec += dh / 100; in fattime2timespec()
226 tsp in fattime2timespec()
137 timespec2fattime(const struct timespec * tsp,int utc,uint16_t * ddp,uint16_t * dtp,uint8_t * dhp) timespec2fattime() argument
219 fattime2timespec(unsigned dd,unsigned dt,unsigned dh,int utc,struct timespec * tsp) fattime2timespec() argument
[all...]
H A Dkern_ffclock.c253 ffclock_nanotime(struct timespec *tsp) in ffclock_nanotime() argument
258 bintime2timespec(&bt, tsp); in ffclock_nanotime()
279 ffclock_getnanotime(struct timespec *tsp) in ffclock_getnanotime() argument
285 bintime2timespec(&bt, tsp); in ffclock_getnanotime()
306 ffclock_nanouptime(struct timespec *tsp) in ffclock_nanouptime() argument
311 bintime2timespec(&bt, tsp); in ffclock_nanouptime()
332 ffclock_getnanouptime(struct timespec *tsp) in ffclock_getnanouptime() argument
338 bintime2timespec(&bt, tsp); in ffclock_getnanouptime()
359 ffclock_nanodifftime(ffcounter ffdelta, struct timespec *tsp) in ffclock_nanodifftime() argument
364 bintime2timespec(&bt, tsp); in ffclock_nanodifftime()
H A Dkern_tc.c156 void dtrace_getnanotime(struct timespec *tsp);
157 void dtrace_getnanouptime(struct timespec *tsp);
299 fbclock_nanouptime(struct timespec *tsp) in fbclock_nanouptime() argument
304 bintime2timespec(&bt, tsp); in fbclock_nanouptime()
324 fbclock_nanotime(struct timespec *tsp) in fbclock_nanotime() argument
329 bintime2timespec(&bt, tsp); in fbclock_nanotime()
349 fbclock_getnanouptime(struct timespec *tsp) in fbclock_getnanouptime() argument
354 bintime2timespec(&bt, tsp); in fbclock_getnanouptime()
374 fbclock_getnanotime(struct timespec *tsp) in fbclock_getnanotime() argument
377 GETTHMEMBER(tsp, th_nanotime); in fbclock_getnanotime()
[all …]
H A Dkern_thr.c495 struct timespec ts, *tsp; in sys_thr_suspend()
498 tsp = NULL; in sys_thr_suspend()
503 tsp = &ts; in sys_thr_suspend()
506 return (kern_thr_suspend(td, tsp)); in sys_thr_suspend()
510 kern_thr_suspend(struct thread *td, struct timespec *tsp)
522 if (tsp != NULL) { in kern_thr_suspend()
523 if (tsp->tv_sec == 0 && tsp->tv_nsec == 0) in kern_thr_suspend()
526 TIMESPEC_TO_TIMEVAL(&tv, tsp); in kern_thr_suspend()
496 struct timespec ts, *tsp; sys_thr_suspend() local
511 kern_thr_suspend(struct thread * td,struct timespec * tsp) kern_thr_suspend() argument
/freebsd/crypto/openssh/
H A Ddefines.h531 #define timespeccmp(tsp, usp, cmp) \ argument
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 argument
542 #define timespeccmp(tsp, usp, cmp) \ argument
543 (((tsp)->tv_sec == (usp)->tv_sec) ? \
544 ((tsp)->tv_nsec cmp (usp)->tv_nsec) : \
545 ((tsp)->tv_sec cmp (usp)->tv_sec))
548 #define timespecadd(tsp, usp, vsp) \ argument
[all …]
/freebsd/contrib/flex/src/
H A Ddfa.c231 int stkpos, ns, tsp; in epsclosure() local
309 tsp = trans1[ns] + MARKER_DIFFERENCE; in epsclosure()
311 if (tsp != NO_TRANSITION) { in epsclosure()
312 if (!IS_MARKED (tsp)) in epsclosure()
313 STACK_STATE (tsp); in epsclosure()
315 tsp = trans2[ns]; in epsclosure()
317 if (tsp != NO_TRANSITION in epsclosure()
318 && !IS_MARKED (tsp)) in epsclosure()
319 STACK_STATE (tsp); in epsclosure()
929 int ns, tsp, sym, i, j, lenccl, ch, numstates, ccllist; in symfollowset() local
[all …]
/freebsd/sys/compat/linux/
H A Dlinux_misc.c2104 struct timespec ts, *tsp; in linux_pselect6() local
2107 if (args->tsp != NULL) { in linux_pselect6()
2108 error = linux_get_timespec(&ts, args->tsp); in linux_pselect6()
2111 tsp = &ts; in linux_pselect6()
2113 tsp = NULL; in linux_pselect6()
2116 args->writefds, args->exceptfds, tsp, args->sig); in linux_pselect6()
2118 if (args->tsp != NULL) in linux_pselect6()
2119 linux_put_timespec(&ts, args->tsp); in linux_pselect6()
2125 l_fd_set *writefds, l_fd_set *exceptfds, struct timespec *tsp, in linux_common_pselect6() argument
2150 if (tsp != NULL) { in linux_common_pselect6()
[all …]
/freebsd/lib/libthr/thread/
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) in _thr_rwlock_rdlock() argument
229 return (__thr_rwlock_rdlock(rwlock, flags, tsp)); in _thr_rwlock_rdlock()
233 _thr_rwlock_wrlock(struct urwlock *rwlock, struct timespec *tsp) in _thr_rwlock_wrlock() argument
238 return (__thr_rwlock_wrlock(rwlock, tsp)); in _thr_rwlock_wrlock()
H A Dthr_join.c88 struct timespec ts, ts2, *tsp; in join_common() local
141 tsp = &ts2; in join_common()
143 tsp = NULL; in join_common()
144 ret = _thr_umtx_wait(&pthread->tid, tid, tsp); in join_common()
H A Dthr_umtx.c279 const struct timespec *tsp) in __thr_rwlock_rdlock() argument
284 if (tsp == NULL) { in __thr_rwlock_rdlock()
288 timeout._timeout = *tsp; in __thr_rwlock_rdlock()
299 __thr_rwlock_wrlock(struct urwlock *rwlock, const struct timespec *tsp) in __thr_rwlock_wrlock() argument
304 if (tsp == NULL) { in __thr_rwlock_wrlock()
308 timeout._timeout = *tsp; in __thr_rwlock_wrlock()
/freebsd/sys/contrib/device-tree/src/arm64/qcom/
H A Dmsm8916-samsung-gt510.dts56 reg_tsp_1p8v: regulator-tsp-1p8v {
69 reg_tsp_3p3v: regulator-tsp-3p3v {
212 tsp_en_default: tsp-en-default-state {
219 tsp_int_rst_default: tsp-int-rst-default-state {
/freebsd/usr.sbin/lpr/common_source/
H A Dcommon.c455 lpd_gettime(struct timespec *tsp, char *strp, size_t strsize) in lpd_gettime() argument
464 if (tsp == NULL) in lpd_gettime()
465 tsp = &local_ts; in lpd_gettime()
469 memset(tsp, 0, sizeof(struct timespec)); in lpd_gettime()
470 if (clock_gettime(CLOCK_REALTIME, tsp)) { in lpd_gettime()
472 memset(tsp, 0, sizeof(struct timespec)); in lpd_gettime()
474 tsp->tv_sec = btime.tv_sec; in lpd_gettime()
475 tsp->tv_nsec = btime.tv_usec * 1000; in lpd_gettime()
483 localtime(&tsp->tv_sec)); in lpd_gettime()
/freebsd/contrib/ntp/libntp/
H A Dsystime.c138 struct timespec * tsp in get_ostime()
145 rc = clock_gettime(CLOCK_REALTIME, tsp); in get_ostime()
147 rc = getclock(TIMEOFDAY, tsp); in get_ostime()
152 tsp->tv_sec = tv.tv_sec; in get_ostime()
153 tsp->tv_nsec = tv.tv_usec * 1000; in get_ostime()
162 ticks = (long)((tsp->tv_nsec * 1e-9) / sys_tick); in get_ostime()
163 tsp->tv_nsec = (long)(ticks * 1e9 * sys_tick); in get_ostime()
139 get_ostime(struct timespec * tsp) get_ostime() argument

1234