/freebsd/contrib/nvi/vi/ |
H A D | vs_split.c | 308 for (; tsp != NULL; tsp = TAILQ_NEXT(tsp, q)) in vs_insert() 398 tsp->t_rows = tsp->t_minrows = tsp->rows - 1; in vs_discard() 399 tsp->t_maxrows = tsp->rows - 1; in vs_discard() 401 tsp->defscroll = tsp->t_maxrows / 2; in vs_discard() 403 *(_HMAP(tsp) + (tsp->t_rows - 1)) = *_TMAP(tsp); in vs_discard() 404 _TMAP(tsp) = _HMAP(tsp) + (tsp->t_rows - 1); in vs_discard() 462 tsp != NULL; tsp = TAILQ_NEXT(tsp, q)) { in vs_join() 497 tsp != NULL; tsp = TAILQ_NEXT(tsp, q)) { in vs_join() 532 tsp != NULL; tsp = TAILQ_NEXT(tsp, q)) { in vs_join() 536 if (tsp->roff + tsp->rows != sp->roff) in vs_join() [all …]
|
H A D | vs_refresh.c | 67 SCR *tsp; in vs_refresh() local 80 TAILQ_FOREACH(tsp, gp->dq, q) in vs_refresh() 81 if (tsp != sp) 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() 132 TAILQ_FOREACH(tsp, gp->dq, q) in vs_refresh() 133 if (F_ISSET(tsp, SC_STATUS)) { in vs_refresh() [all …]
|
/freebsd/sys/sys/ |
H A D | timeffc.h | 207 void ffclock_nanotime(struct timespec *tsp); 215 void ffclock_nanouptime(struct timespec *tsp); 237 void fbclock_nanotime(struct timespec *tsp); 273 ffclock_nanotime(tsp); in nanotime_fromclock() 275 fbclock_nanotime(tsp); in nanotime_fromclock() 303 ffclock_getnanotime(tsp); in getnanotime_fromclock() 305 fbclock_getnanotime(tsp); in getnanotime_fromclock() 333 ffclock_nanouptime(tsp); in nanouptime_fromclock() 335 fbclock_nanouptime(tsp); in nanouptime_fromclock() 363 ffclock_getnanouptime(tsp); in getnanouptime_fromclock() [all …]
|
H A D | time.h | 400 #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; \ 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); 556 void getnanouptime(struct timespec *tsp); [all …]
|
/freebsd/usr.sbin/rtadvd/ |
H A D | timer_subr.h | 36 #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/sys/fs/smbfs/ |
H A D | smbfs_subr.c | 54 *seconds = tsp->tv_sec - tzoff * 60 /*- tz_minuteswest * 60 - in smb_time_local2server() 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() 94 tt = *tsp; in smb_time_unix2dos() 95 smb_time_local2server(tsp, tzoff, &t); in smb_time_unix2dos() 102 struct timespec *tsp) in smb_dos2unixtime() argument 105 fattime2timespec(dd, dt, dh, 1, tsp); in smb_dos2unixtime() [all …]
|
H A D | smbfs_subr.h | 173 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/contrib/libfido2/openbsd-compat/ |
H A D | time.h | 35 #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/contrib/tcpdump/ |
H A D | print-timed.c | 40 struct tsp { struct 115 const struct tsp *tsp = (const struct tsp *)bp; in timed_print() local 120 tsp_type = GET_U_1(tsp->tsp_type); in timed_print() 123 ND_PRINT(" vers %u", GET_U_1(tsp->tsp_vers)); in timed_print() 125 ND_PRINT(" seq %u", GET_BE_U_2(tsp->tsp_seq)); in timed_print() 129 ND_PRINT(" hopcnt %u", GET_U_1(tsp->tsp_hopcnt)); in timed_print() 135 sec = GET_BE_S_4(tsp->tsp_time.tv_sec); in timed_print() 136 usec = GET_BE_S_4(tsp->tsp_time.tv_usec); in timed_print() 152 nd_printjnp(ndo, tsp->tsp_name, sizeof(tsp->tsp_name)); in timed_print()
|
/freebsd/usr.sbin/rtsold/ |
H A D | rtsold.h | 130 #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 D | ex_screen.c | 100 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 D | cl_funcs.c | 349 SCR* tsp; in cl_discard() local 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() 555 if (tsp->coff + tsp->cols + 1 == psp->coff) in cl_refresh() [all …]
|
/freebsd/sys/kern/ |
H A D | subr_fattime.c | 137 timespec2fattime(const struct timespec *tsp, int utc, uint16_t *ddp, in timespec2fattime() argument 143 t1 = tsp->tv_sec; in timespec2fattime() 148 *dhp = (tsp->tv_sec & 1) * 100 + tsp->tv_nsec / 10000000; in timespec2fattime() 219 struct timespec *tsp) in fattime2timespec() argument 224 tsp->tv_sec = (dt & 0x1f) << 1; in fattime2timespec() 225 tsp->tv_sec += ((dt & 0x7e0) >> 5) * 60; in fattime2timespec() 226 tsp->tv_sec += ((dt & 0xf800) >> 11) * 3600; in fattime2timespec() 227 tsp->tv_sec += dh / 100; in fattime2timespec() 228 tsp->tv_nsec = (dh % 100) * 10000000; in fattime2timespec() 249 tsp->tv_sec += DAY * day; in fattime2timespec() [all …]
|
H A D | kern_ffclock.c | 253 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 D | kern_tc.c | 304 bintime2timespec(&bt, tsp); in fbclock_nanouptime() 329 bintime2timespec(&bt, tsp); in fbclock_nanotime() 354 bintime2timespec(&bt, tsp); in fbclock_getnanouptime() 401 bintime2timespec(&bt, tsp); in nanouptime() 421 nanotime(struct timespec *tsp) in nanotime() argument 426 bintime2timespec(&bt, tsp); in nanotime() 451 bintime2timespec(&bt, tsp); in getnanouptime() 1029 bintime2timespec(&bt, tsp); in dtrace_getnanouptime() 1866 timespecadd(tsp, osp, tsp); in pps_event() 1867 if (tsp->tv_nsec < 0) { in pps_event() [all …]
|
H A D | kern_thr.c | 495 struct timespec ts, *tsp; in sys_thr_suspend() local 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) in kern_thr_suspend() argument 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()
|
/freebsd/crypto/openssh/ |
H A D | defines.h | 531 #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/sys/compat/linux/ |
H A D | linux_misc.c | 2085 tsp = &ts; in linux_pselect6() 2087 tsp = NULL; in linux_pselect6() 2166 tsp = &ts; in linux_pselect6_time64() 2168 tsp = NULL; in linux_pselect6_time64() 2189 tsp = &uts; in linux_ppoll() 2191 tsp = NULL; in linux_ppoll() 2238 timespecsub(tsp, &ts1, tsp); in linux_common_ppoll() 2262 tsp = &uts; in linux_ppoll_time64() 2264 tsp = NULL; in linux_ppoll_time64() 2557 tsp = &ts; in linux_poll() [all …]
|
/freebsd/contrib/flex/src/ |
H A D | dfa.c | 231 int stkpos, ns, tsp; in epsclosure() local 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() 936 tsp = trans1[ns]; in symfollowset() 965 nset[++numstates] = tsp; in symfollowset() [all …]
|
/freebsd/lib/libthr/thread/ |
H A D | thr_umtx.h | 68 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 D | thr_join.c | 88 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 D | thr_umtx.c | 279 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 D | msm8916-samsung-gt510.dts | 35 reg_tsp_1p8v: regulator-tsp-1p8v { 48 reg_tsp_3p3v: regulator-tsp-3p3v { 100 tsp_en_default: tsp-en-default-state { 107 tsp_int_rst_default: tsp-int-rst-default-state {
|
/freebsd/usr.sbin/lpr/common_source/ |
H A D | common.c | 455 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 D | systime.c | 139 struct timespec * tsp in get_ostime() argument 146 rc = clock_gettime(CLOCK_REALTIME, tsp); in get_ostime() 148 rc = getclock(TIMEOFDAY, tsp); in get_ostime() 153 tsp->tv_sec = tv.tv_sec; in get_ostime() 154 tsp->tv_nsec = tv.tv_usec * 1000; in get_ostime() 163 ticks = (long)((tsp->tv_nsec * 1e-9) / sys_tick); in get_ostime() 164 tsp->tv_nsec = (long)(ticks * 1e9 * sys_tick); in get_ostime()
|