Home
last modified time | relevance | path

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

12

/dragonfly/contrib/nvi2/vi/
HDvs_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 …]
HDvs_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 …]
/dragonfly/usr.sbin/rtadvd/
HDtimer_subr.h35 #define TS_CMP(tsp, usp, cmp) \ argument
36 (((tsp)->tv_sec == (usp)->tv_sec) ? \
37 ((tsp)->tv_nsec cmp (usp)->tv_nsec) : \
38 ((tsp)->tv_sec cmp (usp)->tv_sec))
39 #define TS_ADD(tsp, usp, vsp) \ argument
41 (vsp)->tv_sec = (tsp)->tv_sec + (usp)->tv_sec; \
42 (vsp)->tv_nsec = (tsp)->tv_nsec + (usp)->tv_nsec; \
48 #define TS_SUB(tsp, usp, vsp) \ argument
50 (vsp)->tv_sec = (tsp)->tv_sec - (usp)->tv_sec; \
51 (vsp)->tv_nsec = (tsp)->tv_nsec - (usp)->tv_nsec; \
/dragonfly/contrib/tcpdump/
HDprint-timed.c40 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()
/dragonfly/sys/vfs/smbfs/
HDsmbfs_subr.c110 smb_time_local2server(struct timespec *tsp, int tzoff, u_long *seconds) in smb_time_local2server() argument
112 *seconds = tsp->tv_sec - tzoff * 60 /*- tz.tz_minuteswest * 60 - in smb_time_local2server()
117 smb_time_server2local(u_long seconds, int tzoff, struct timespec *tsp) in smb_time_server2local() argument
119 tsp->tv_sec = seconds + tzoff * 60; in smb_time_server2local()
132 smb_time_NT2local(int64_t nsec, int tzoff, struct timespec *tsp) in smb_time_NT2local() argument
134 smb_time_server2local(nsec / 10000000 - DIFF1970TO1601, 0, tsp); in smb_time_NT2local()
138 smb_time_local2NT(struct timespec *tsp, int tzoff, int64_t *nsec) in smb_time_local2NT() argument
142 smb_time_local2server(tsp, 0, &seconds); in smb_time_local2NT()
147 smb_time_unix2dos(struct timespec *tsp, int tzoff, u_int16_t *ddp, in smb_time_unix2dos() argument
157 smb_time_local2server(tsp, tzoff, &t); in smb_time_unix2dos()
[all …]
HDsmbfs_subr.h180 void smb_time_local2server(struct timespec *tsp, int tzoff, u_long *seconds);
181 void smb_time_server2local(u_long seconds, int tzoff, struct timespec *tsp);
182 void smb_time_NT2local(int64_t nsec, int tzoff, struct timespec *tsp);
183 void smb_time_local2NT(struct timespec *tsp, int tzoff, int64_t *nsec);
184 void smb_time_unix2dos(struct timespec *tsp, int tzoff, u_int16_t *ddp,
186 void smb_dos2unixtime (u_int dd, u_int dt, u_int dh, int tzoff, struct timespec *tsp);
/dragonfly/sys/dev/sound/
HDclone.c73 struct timespec tsp; member
82 struct timespec tsp; member
110 snd_timestamp(struct timespec *tsp) in snd_timestamp() argument
116 tsp->tv_sec = time_second; in snd_timestamp()
117 tsp->tv_nsec = 0; in snd_timestamp()
120 getnanouptime(tsp); in snd_timestamp()
124 TIMEVAL_TO_TIMESPEC(&tv, tsp); in snd_timestamp()
127 nanouptime(tsp); in snd_timestamp()
131 getnanouptime(tsp); in snd_timestamp()
185 snd_timestamp(&c->tsp); in snd_clone_create()
[all …]
/dragonfly/sys/kern/
HDkern_clock.c293 static void getnanotime_nbt(struct timespec *nbt, struct timespec *tsp);
1391 getnanouptime(struct timespec *tsp) in getnanouptime() argument
1397 tsp->tv_sec = gd->gd_time_seconds; in getnanouptime()
1399 } while (tsp->tv_sec != gd->gd_time_seconds); in getnanouptime()
1402 tsp->tv_sec += delta / sys_cputimer->freq; in getnanouptime()
1405 tsp->tv_nsec = muldivu64(sys_cputimer->freq64_nsec, delta, 1L << 32); in getnanouptime()
1427 nanouptime(struct timespec *tsp) in nanouptime() argument
1433 tsp->tv_sec = gd->gd_time_seconds; in nanouptime()
1435 } while (tsp->tv_sec != gd->gd_time_seconds); in nanouptime()
1438 tsp->tv_sec += delta / sys_cputimer->freq; in nanouptime()
[all …]
HDsubr_fattime.c139 timespec2fattime(const struct timespec *tsp, int utc, uint16_t *ddp, in timespec2fattime() argument
145 t1 = tsp->tv_sec; in timespec2fattime()
150 *dhp = (tsp->tv_sec & 1) * 100 + tsp->tv_nsec / 10000000; in timespec2fattime()
221 struct timespec *tsp) in fattime2timespec() argument
226 tsp->tv_sec = (dt & 0x1f) << 1; in fattime2timespec()
227 tsp->tv_sec += ((dt & 0x7e0) >> 5) * 60; in fattime2timespec()
228 tsp->tv_sec += ((dt & 0xf800) >> 11) * 3600; in fattime2timespec()
229 tsp->tv_sec += dh / 100; in fattime2timespec()
230 tsp->tv_nsec = (dh % 100) * 10000000; in fattime2timespec()
251 tsp->tv_sec += DAY * day; in fattime2timespec()
[all …]
HDkern_event.c801 struct timespec *tsp, ats; in kern_kevent() local
814 tsp = tsp_in; in kern_kevent()
869 if (tsp != NULL) { in kern_kevent()
870 if (tsp->tv_sec || tsp->tv_nsec) { in kern_kevent()
872 timespecadd(tsp, &ats, tsp); /* tsp = target time */ in kern_kevent()
942 if (tsp == NULL) { in kern_kevent()
945 } else if (tsp->tv_sec == 0 && tsp->tv_nsec == 0) { in kern_kevent()
949 struct timespec atx = *tsp; in kern_kevent()
1057 struct timespec ts, *tsp; in sys_kevent() local
1067 tsp = &ts; in sys_kevent()
[all …]
/dragonfly/contrib/nvi2/cl/
HDcl_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 …]
/dragonfly/contrib/nvi2/ex/
HDex_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()
HDex_visual.c35 SCR *tsp; in ex_visual() local
135 tsp = sp; in ex_visual()
136 if (vi(&tsp)) in ex_visual()
/dragonfly/crypto/openssh/
HDdefines.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 …]
/dragonfly/contrib/dhcpcd/src/
HDcommon.h68 #define timespecclear(tsp) (tsp)->tv_sec = (time_t)((tsp)->tv_nsec = 0L) argument
69 #define timespecisset(tsp) ((tsp)->tv_sec || (tsp)->tv_nsec) argument
HDeloop.c461 eloop_timespec_diff(const struct timespec *tsp, const struct timespec *usp, in eloop_timespec_diff() argument
467 if (tsp->tv_sec < 0) /* time wreapped */ in eloop_timespec_diff()
468 tsecs = UTIME_MAX - (unsigned long long)(-tsp->tv_sec); in eloop_timespec_diff()
470 tsecs = (unsigned long long)tsp->tv_sec; in eloop_timespec_diff()
481 nsecs = tsp->tv_nsec - usp->tv_nsec; in eloop_timespec_diff()
1171 struct timespec ts, *tsp; in eloop_start() local
1214 tsp = &ts; in eloop_start()
1216 tsp = NULL; in eloop_start()
1224 error = eloop_run_kqueue(eloop, tsp); in eloop_start()
1226 error = eloop_run_epoll(eloop, tsp, signals); in eloop_start()
[all …]
/dragonfly/sys/sys/
HDtime.h77 #define timespecadd(tsp, usp, vsp) \ argument
79 (vsp)->tv_sec = (tsp)->tv_sec + (usp)->tv_sec; \
80 (vsp)->tv_nsec = (tsp)->tv_nsec + (usp)->tv_nsec; \
86 #define timespecsub(tsp, usp, vsp) \ argument
88 (vsp)->tv_sec = (tsp)->tv_sec - (usp)->tv_sec; \
89 (vsp)->tv_nsec = (tsp)->tv_nsec - (usp)->tv_nsec; \
227 void timespec2fattime(const struct timespec *tsp, int utc, uint16_t *ddp,
230 struct timespec *tsp);
/dragonfly/contrib/flex/src/
HDdfa.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 …]
/dragonfly/games/monop/
HDgetinp.c99 const char *sp, *tsp; in comp() local
103 for (sp = buf, tsp = s1; *sp; ) { in comp()
104 c = tolower((unsigned char)*tsp); in comp()
105 tsp++; in comp()
/dragonfly/usr.sbin/lpr/common_source/
HDcommon.c396 lpd_gettime(struct timespec *tsp, char *strp, size_t strsize) in lpd_gettime() argument
405 if (tsp == NULL) in lpd_gettime()
406 tsp = &local_ts; in lpd_gettime()
410 memset(tsp, 0, sizeof(struct timespec)); in lpd_gettime()
411 if (clock_gettime(CLOCK_REALTIME, tsp)) { in lpd_gettime()
413 memset(tsp, 0, sizeof(struct timespec)); in lpd_gettime()
415 tsp->tv_sec = btime.tv_sec; in lpd_gettime()
416 tsp->tv_nsec = btime.tv_usec * 1000; in lpd_gettime()
424 localtime(&tsp->tv_sec)); in lpd_gettime()
/dragonfly/lib/libthread_xu/thread/
HDthr_join.c73 struct timespec ts, ts2, *tsp; in join_common() local
115 tsp = &ts2; in join_common()
117 tsp = NULL; in join_common()
118 ret = _thr_umtx_wait(&pthread->state, state, tsp, in join_common()
HDthr_cond.c235 struct timespec ts, ts2, *tsp; in cond_wait_common() local
278 tsp = &ts2; in cond_wait_common()
280 tsp = NULL; in cond_wait_common()
286 ret = _thr_umtx_wait(&info.queued, 1, tsp, in cond_wait_common()
291 ret = _thr_umtx_wait(&info.queued, 1, tsp, in cond_wait_common()
/dragonfly/crypto/libressl/apps/openssl/
HDapps_posix.c126 #define timespecsub(tsp, usp, vsp) \ argument
128 (vsp)->tv_sec = (tsp)->tv_sec - (usp)->tv_sec; \
129 (vsp)->tv_nsec = (tsp)->tv_nsec - (usp)->tv_nsec; \
/dragonfly/usr.bin/stat/
HDstat.c629 const struct timespec *tsp; in format1() local
634 tsp = NULL; in format1()
753 tsp = &st->st_atimespec; in format1()
756 if (tsp == NULL) in format1()
757 tsp = &st->st_mtimespec; in format1()
760 if (tsp == NULL) in format1()
761 tsp = &st->st_ctimespec; in format1()
765 if (tsp == NULL) in format1()
766 tsp = &st->st_birthtimespec; in format1()
768 ts = *tsp; /* copy so we can muck with it */ in format1()
/dragonfly/lib/librecrypto/
HDdfly_config.txt101 #define timespecsub(tsp, usp, vsp) \
103 (vsp)->tv_sec = (tsp)->tv_sec - (usp)->tv_sec; \
104 (vsp)->tv_nsec = (tsp)->tv_nsec - (usp)->tv_nsec; \

12