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

123

/freebsd-10.0-release/contrib/tcpdump/
H A Dprint-timed.c50 struct tsp *tsp = (struct tsp *)bp; local
54 if (endof(tsp->tsp_type) > snapend) {
58 if (tsp->tsp_type < TSPTYPENUMBER)
59 printf("TSP_%s", tsptype[tsp->tsp_type]);
61 printf("(tsp_type %#x)", tsp->tsp_type);
63 if (endof(tsp->tsp_vers) > snapend) {
67 printf(" vers %d", tsp->tsp_vers);
69 if (endof(tsp
[all...]
H A Dtimed.h52 struct tsp { struct
/freebsd-10.0-release/usr.sbin/timed/timedc/
H A Dextern.h35 struct tsp;
40 void bytehostorder(struct tsp *);
41 void bytenetorder(struct tsp *);
H A Dcmds.c70 void bytenetorder(struct tsp *);
71 void bytehostorder(struct tsp *);
270 struct tsp msg;
303 if (sendto(sock, &msg, sizeof(struct tsp), 0,
317 cc = recvfrom(sock, &msg, sizeof(struct tsp), 0,
328 if (cc < (sizeof(struct tsp) - MAXHOSTNAMELEN + 32)) {
331 cc, sizeof(struct tsp) - MAXHOSTNAMELEN + 32,
373 struct tsp msg;
404 if (sendto(sock, &msg, sizeof(struct tsp), 0,
426 struct tsp ms
[all...]
/freebsd-10.0-release/usr.sbin/rtadvd/
H A Dtimer_subr.h35 #define TS_CMP(tsp, usp, cmp) \
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) \
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) \
50 (vsp)->tv_sec = (tsp)->tv_sec - (usp)->tv_sec; \
51 (vsp)->tv_nsec = (tsp)
[all...]
/freebsd-10.0-release/usr.sbin/timed/timed/
H A Dextern.h38 struct tsp;
44 struct tsp *readmsg(int,
46 struct tsp *acksend(struct tsp *,
50 void adj_msg_time(struct tsp *, struct timeval *);
51 void bytehostorder(struct tsp *);
52 void bytenetorder(struct tsp *);
53 void byteorder(struct tsp *);
58 void doquit(struct tsp *);
73 void newslave(struct tsp *);
[all...]
H A Dacksend.c40 struct tsp *answer;
47 static struct tsp msg;
54 if (sendto(sock, (char *)&msg, sizeof(struct tsp), 0,
74 struct tsp *
75 acksend(struct tsp *message, struct sockaddr_in *addr, char *name,
100 if (sendto(sock, (char *)message, sizeof(struct tsp),
H A Dbyteorder.c45 bytenetorder(struct tsp *ptr)
64 bytehostorder(struct tsp *ptr)
H A Dcandidate.c49 struct tsp *resp, msg;
51 struct tsp *answer;
80 if (sendto(sock, (char *)&msg, sizeof(struct tsp), 0,
H A Dreadmsg.c52 struct tsp msgin;
54 struct tsp info;
71 struct tsp *
201 if ((n = recvfrom(sock, (char *)&msgin, sizeof(struct tsp), 0,
211 if (n < (ssize_t)(sizeof(struct tsp) - MAXHOSTNAMELEN + 32)) {
214 n, sizeof(struct tsp) - MAXHOSTNAMELEN + 32,
403 struct tsp resp;
444 print(struct tsp *msg, struct sockaddr_in *addr)
/freebsd-10.0-release/contrib/nvi/vi/
H A Dvs_split.c300 SCR *tsp; local
305 TAILQ_FOREACH(tsp, gp->dq, q)
306 if (tsp->roff >= sp->roff)
312 for (; tsp != NULL; tsp = TAILQ_NEXT(tsp, q))
313 if (tsp->roff != sp->roff || tsp->coff > sp->coff)
320 if (tsp == NULL) {
322 } else if (tsp
340 SCR *tsp, **lp, *list[100]; local
457 SCR **lp, *tsp; local
[all...]
/freebsd-10.0-release/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;
74 smb_time_NT2local(int64_t nsec, int tzoff, struct timespec *tsp) argument
76 smb_time_server2local(nsec / 10000000 - DIFF1970TO1601, 0, tsp);
80 smb_time_local2NT(struct timespec *tsp, int tzoff, int64_t *nsec) argument
84 smb_time_local2server(tsp, 0, &seconds);
89 smb_time_unix2dos(struct timespec *tsp, int tzoff, u_int16_t *ddp, argument
95 tt = *tsp;
102 smb_dos2unixtime(u_int dd, u_int dt, u_int dh, int tzoff, struct timespec *tsp) argument
[all...]
/freebsd-10.0-release/usr.sbin/rtsold/
H A Drtsold.h127 #define TS_CMP(tsp, usp, cmp) \
128 (((tsp)->tv_sec == (usp)->tv_sec) ? \
129 ((tsp)->tv_nsec cmp (usp)->tv_nsec) : \
130 ((tsp)->tv_sec cmp (usp)->tv_sec))
131 #define TS_ADD(tsp, usp, vsp) \
133 (vsp)->tv_sec = (tsp)->tv_sec + (usp)->tv_sec; \
134 (vsp)->tv_nsec = (tsp)->tv_nsec + (usp)->tv_nsec; \
140 #define TS_SUB(tsp, usp, vsp) \
142 (vsp)->tv_sec = (tsp)->tv_sec - (usp)->tv_sec; \
143 (vsp)->tv_nsec = (tsp)
[all...]
/freebsd-10.0-release/contrib/nvi/ex/
H A Dex_screen.c104 SCR *tsp; local
108 if ((tsp = TAILQ_FIRST(gp->hq)) == NULL) {
114 for (cnt = 1; tsp != NULL && !INTERRUPTED(sp);
115 tsp = TAILQ_NEXT(tsp, q)) {
116 col += len = strlen(tsp->frp->name) + sep;
125 (void)ex_puts(sp, tsp->frp->name);
H A Dex_visual.c39 SCR *tsp; local
139 tsp = sp;
140 if (vi(&tsp))
/freebsd-10.0-release/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.h93 void timespec2fattime(struct timespec *tsp, int utc, u_int16_t *ddp, u_int16_t *dtp, u_int8_t *dhp);
94 void fattime2timespec(unsigned dd, unsigned dt, unsigned dh, int utc, struct timespec *tsp);
/freebsd-10.0-release/sys/dev/sound/
H A Dclone.c73 struct timespec tsp; member in struct:snd_clone_entry
82 struct timespec tsp; member in struct:snd_clone
110 snd_timestamp(struct timespec *tsp) argument
116 tsp->tv_sec = time_second;
117 tsp->tv_nsec = 0;
120 getnanouptime(tsp);
124 TIMEVAL_TO_TIMESPEC(&tv, tsp);
127 nanouptime(tsp);
131 getnanouptime(tsp);
189 snd_timestamp(&c->tsp);
297 snd_clone_gettime(struct snd_clone *c, struct timespec *tsp) argument
328 snd_clone_getdevtime(struct cdev *dev, struct timespec *tsp) argument
[all...]
/freebsd-10.0-release/sys/kern/
H A Dsubr_fattime.c138 timespec2fattime(struct timespec *tsp, int utc, uint16_t *ddp, uint16_t *dtp, uint8_t *dhp) argument
143 t1 = tsp->tv_sec;
148 *dhp = (tsp->tv_sec & 1) * 100 + tsp->tv_nsec / 10000000;
218 fattime2timespec(unsigned dd, unsigned dt, unsigned dh, int utc, struct timespec *tsp) argument
223 tsp->tv_sec = (dt & 0x1f) << 1;
224 tsp->tv_sec += ((dt & 0x7e0) >> 5) * 60;
225 tsp->tv_sec += ((dt & 0xf800) >> 11) * 3600;
226 tsp->tv_sec += dh / 100;
227 tsp
[all...]
H A Dkern_ffclock.c249 ffclock_nanotime(struct timespec *tsp) argument
254 bintime2timespec(&bt, tsp);
275 ffclock_getnanotime(struct timespec *tsp) argument
281 bintime2timespec(&bt, tsp);
302 ffclock_nanouptime(struct timespec *tsp) argument
307 bintime2timespec(&bt, tsp);
328 ffclock_getnanouptime(struct timespec *tsp) argument
334 bintime2timespec(&bt, tsp);
355 ffclock_nanodifftime(ffcounter ffdelta, struct timespec *tsp) argument
360 bintime2timespec(&bt, tsp);
[all...]
/freebsd-10.0-release/lib/libthr/thread/
H A Dthr_join.c80 struct timespec ts, ts2, *tsp; local
122 tsp = &ts2;
124 tsp = NULL;
125 ret = _thr_umtx_wait(&pthread->tid, tid, tsp);
H A Dthr_umtx.c262 const struct timespec *tsp)
267 if (tsp == NULL) {
271 timeout._timeout = *tsp;
281 __thr_rwlock_wrlock(struct urwlock *rwlock, const struct timespec *tsp) argument
286 if (tsp == NULL) {
290 timeout._timeout = *tsp;
261 __thr_rwlock_rdlock(struct urwlock *rwlock, int flags, const struct timespec *tsp) argument
H A Dthr_umtx.h65 const struct timespec *tsp) __hidden;
67 const struct timespec *tsp) __hidden;
192 _thr_rwlock_rdlock(struct urwlock *rwlock, int flags, struct timespec *tsp) argument
196 return (__thr_rwlock_rdlock(rwlock, flags, tsp));
200 _thr_rwlock_wrlock(struct urwlock *rwlock, struct timespec *tsp) argument
204 return (__thr_rwlock_wrlock(rwlock, tsp));
/freebsd-10.0-release/contrib/nvi/cl/
H A Dcl_funcs.c353 SCR* tsp; local
369 for (; (tsp = *acquirep) != NULL; ++acquirep) {
370 clp = CLP(tsp);
373 if (CLSP(tsp))
374 delwin(CLSP(tsp));
375 tsp->cl_private = subwin(stdscr, tsp->rows, tsp->cols,
376 tsp->roff, tsp
527 SCR *psp, *tsp; local
[all...]
/freebsd-10.0-release/include/protocols/
H A Dtimed.h44 struct tsp { struct

Completed in 271 milliseconds

123