Searched refs:tv (Results 1 - 25 of 66) sorted by relevance

123

/macosx-10.5.8/xnu-1228.15.4/bsd/netinet/
H A Dtcp_timer.h153 #define TCPT_RANGESET(tv, value, tvmin, tvmax) do { \
154 (tv) = (value); \
155 if ((u_long)(tv) < (u_long)(tvmin)) \
156 (tv) = (tvmin); \
157 else if ((u_long)(tv) > (u_long)(tvmax)) \
158 (tv) = (tvmax); \
/macosx-10.5.8/xnu-1228.15.4/bsd/kern/
H A Dkern_clock.c96 int tvtohz(struct timeval *tv);
195 hzto(struct timeval *tv) argument
211 sec = tv->tv_sec - now.tv_sec;
213 ticks = ((tv->tv_sec - now.tv_sec) * 1000 +
214 (tv->tv_usec - now.tv_usec) / 1000)
252 tvtohz(struct timeval *tv) argument
277 sec = tv->tv_sec;
278 usec = tv->tv_usec;
336 struct timeval *tv; local
347 tv
358 get_procrustime(time_value_t *tv) argument
[all...]
H A Dkern_time.c98 struct timeval *tv);
156 if (uap->tv) {
159 error = copyin(uap->tv, &user_atv, sizeof(struct user_timeval));
163 error = copyin(uap->tv, &atv, sizeof(struct timeval));
170 if (uap->tv) {
186 struct timeval *tv)
188 clock_set_calendar_microtime(tv->tv_sec, tv->tv_usec);
246 struct timeval tv; local
256 microtime(&tv);
185 setthetime( struct timeval *tv) argument
506 itimerfix( struct timeval *tv) argument
[all...]
H A Dkern_credential.c898 struct timeval tv; local
901 microuptime(&tv);
913 kip->ki_guid_expiry = tv.tv_sec + elp->el_uguid_valid;
918 kip->ki_ntsid_expiry = tv.tv_sec + elp->el_usid_valid;
931 tv.tv_sec + elp->el_uguid_valid,
933 tv.tv_sec + elp->el_usid_valid);
953 kip->ki_guid_expiry = tv.tv_sec + elp->el_gguid_valid;
958 kip->ki_ntsid_expiry = tv.tv_sec + elp->el_gsid_valid;
971 tv.tv_sec + elp->el_gguid_valid,
973 tv
1027 struct timeval tv; local
1049 struct timeval tv; local
1914 struct timeval tv; local
1965 struct timeval tv; local
[all...]
H A Dkpi_socket.c254 const struct timeval *tv)
278 if (tv->tv_sec < 0 || tv->tv_sec > SHRT_MAX / hz ||
279 tv->tv_usec < 0 || tv->tv_usec >= 1000000) {
284 ts.tv_sec = tv->tv_sec;
285 ts.tv_nsec = (tv->tv_usec * NSEC_PER_USEC);
252 sock_connectwait( socket_t sock, const struct timeval *tv) argument
/macosx-10.5.8/xnu-1228.15.4/bsd/sys/
H A Dtime.h164 #define TIMEVAL_TO_TIMESPEC(tv, ts) { \
165 (ts)->tv_sec = (tv)->tv_sec; \
166 (ts)->tv_nsec = (tv)->tv_usec * 1000; \
168 #define TIMESPEC_TO_TIMEVAL(tv, ts) { \
169 (tv)->tv_sec = (ts)->tv_sec; \
170 (tv)->tv_usec = (ts)->tv_nsec / 1000; \
229 void microtime(struct timeval *tv);
230 void microuptime(struct timeval *tv);
H A Dsystm.h166 int hzto(struct timeval *tv);
228 void get_procrustime(struct time_value *tv);
233 void throttle_info_get_last_io_time(mount_t mp, struct timeval *tv);
H A Dkpi_socket.h130 @param tv The amount of time to wait.
135 errno_t sock_connectwait(socket_t so, const struct timeval *tv);
/macosx-10.5.8/xnu-1228.15.4/bsd/hfs/
H A DMacOSStubs.c53 struct timeval tv; local
55 microtime(&tv);
57 return (tv.tv_sec + MAC_GMT_FACTOR);
H A Dhfs_quota.c244 struct timeval tv; local
246 microuptime(&tv);
248 dq->dq_btime = tv.tv_sec +
259 if (tv.tv_sec > dq->dq_btime) {
389 struct timeval tv; local
391 microuptime(&tv);
393 dq->dq_itime = tv.tv_sec +
404 if (tv.tv_sec > dq->dq_itime) {
685 struct timeval tv; local
707 microuptime(&tv);
746 struct timeval tv; local
[all...]
H A Dhfs_link.c641 struct timeval tv; local
718 microtime(&tv);
719 dcp->c_ctime = tv.tv_sec;
720 dcp->c_mtime = tv.tv_sec;
816 cp->c_ctime = tv.tv_sec;
875 struct timeval tv; local
959 microtime(&tv);
960 dcp->c_ctime = tv.tv_sec;
961 dcp->c_mtime = tv.tv_sec;
H A Dhfs_hotfiles.c165 struct timeval tv; local
195 microtime(&tv); /* Times are base on GMT time. */
210 hfsmp->hfc_timeout = SWAP_BE32 (hotfileinfo.timeleft) + tv.tv_sec ;
222 hfsmp->hfc_timebase = tv.tv_sec + 1;
246 hfsmp->hfc_timeout = tv.tv_sec + HFC_DEFAULT_DURATION;
250 hfsmp->hfc_timebase = tv.tv_sec + 1;
296 struct timeval tv; local
370 microtime(&tv);
371 listp->hfl_duration = tv.tv_sec - hfsmp->hfc_timebase;
430 struct timeval tv; local
706 struct timeval tv; local
[all...]
/macosx-10.5.8/xnu-1228.15.4/bsd/net/
H A Ddevtimer.c83 timeval_to_absolutetime(struct timeval tv) argument
88 clock_interval_to_absolutetime_interval(tv.tv_sec, NSEC_PER_SEC,
90 clock_interval_to_absolutetime_interval(tv.tv_usec, NSEC_PER_USEC,
265 struct timeval tv; local
267 tv = devtimer_current_time();
268 return (tv.tv_sec);
274 struct timeval tv; local
279 tv.tv_sec = sec;
280 tv.tv_usec = usec;
281 return (tv);
[all...]
/macosx-10.5.8/xnu-1228.15.4/bsd/ufs/ufs/
H A Dufs_inode.c99 struct timeval tv; local
129 microtime(&tv);
130 ffs_update(vp, &tv, &tv, 0);
H A Dufs_quota.c226 struct timeval tv; local
228 microtime(&tv);
230 dq->dq_btime = tv.tv_sec +
242 if (tv.tv_sec > dq->dq_btime) {
362 struct timeval tv; local
364 microtime(&tv);
366 dq->dq_itime = tv.tv_sec +
378 if (tv.tv_sec > dq->dq_itime) {
652 struct timeval tv; local
674 microtime(&tv);
713 struct timeval tv; local
[all...]
H A Dufs_attrlist.c166 struct timeval tv; local
168 microtime(&tv);
173 ul_p->ul_time = htonl(tv.tv_sec);
H A Dufs_vnops.c230 struct timeval tv; local
233 microtime(&tv);
234 ITIMES(ip, &tv, &tv);
254 struct timeval tv; local
256 microtime(&tv);
258 ITIMES(ip, &tv, &tv);
618 struct timeval tv; local
629 microtime(&tv);
743 struct timeval tv; local
1109 struct timeval tv; local
1653 struct timeval tv; local
1721 struct timeval tv; local
1982 struct timeval tv; local
[all...]
/macosx-10.5.8/xnu-1228.15.4/libkern/uuid/
H A Duuid.c78 struct timespec tv; local
80 nanotime(&tv);
82 return (tv.tv_sec * 10000000ULL) + (tv.tv_nsec / 100ULL) + 0x01B21DD213814000ULL;
/macosx-10.5.8/xnu-1228.15.4/bsd/ufs/ffs/
H A Dffs_inode.c115 struct timeval tv; local
138 microtime(&tv);
139 ip->i_ctime = tv.tv_sec;
191 struct timeval tv; local
208 microtime(&tv);
218 return (ffs_update(ovp, &tv, &tv, 1));
223 return (ffs_update(ovp, &tv, &tv, 0));
257 return (ffs_update(ovp, &tv,
[all...]
H A Dffs_vnops.c258 struct timeval tv; local
270 microtime(&tv);
272 return (ffs_update(vp, &tv, &tv, wait));
H A Dffs_alloc.c380 struct timeval tv; local
433 microtime(&tv);
434 if (++nextgennumber < (u_long)tv.tv_sec)
435 nextgennumber = tv.tv_sec;
758 struct timeval tv; local
799 microtime(&tv);
800 cgp->cg_time = tv.tv_sec;
854 struct timeval tv; local
886 microtime(&tv);
887 cgp->cg_time = tv
1232 struct timeval tv; local
1331 struct timeval tv; local
1520 struct timeval tv; local
[all...]
/macosx-10.5.8/xnu-1228.15.4/bsd/dev/random/YarrowCoreLib/src/
H A Dprng.c349 struct timeval tv; local
367 microuptime (&tv);
369 gettimeofday(&tv, NULL);
371 endTime = (int64_t)tv.tv_sec*1000000LL + (int64_t)tv.tv_usec + ticks;
394 gettimeofday(&tv, NULL);
396 microuptime (&tv);
397 curTime = (int64_t)tv.tv_sec*1000000LL + (int64_t)tv.tv_usec;
/macosx-10.5.8/xnu-1228.15.4/bsd/nfs/
H A Dkrpc_subr.c242 struct timeval tv; local
244 tv.tv_sec = 1;
245 tv.tv_usec = 0;
247 if ((error = sock_setsockopt(so, SOL_SOCKET, SO_RCVTIMEO, &tv, sizeof(tv))))
299 struct timeval tv; local
300 tv.tv_sec = 60;
301 tv.tv_usec = 0;
305 error = sock_connectwait(so, &tv);
/macosx-10.5.8/xnu-1228.15.4/bsd/miscfs/synthfs/
H A Dsynthfs_vnops.c508 struct timeval tv; local
590 microtime(&tv);
591 SYNTHFSTIMES(targetPar_sp, &tv, &tv);
592 SYNTHFSTIMES(sourcePar_sp, &tv, &tv);
693 struct timeval tv; local
698 microtime(&tv);
699 synthfs_update(vp, &tv, &tv,
1225 struct timeval tv; local
1274 struct timeval tv; local
[all...]
/macosx-10.5.8/xnu-1228.15.4/bsd/netinet6/
H A Dip6_input.c223 struct timeval tv; local
275 microtime(&tv);
276 ip6_flow_seq = random() ^ tv.tv_usec;
277 microtime(&tv);
278 ip6_desync_factor = (random() ^ tv.tv_usec) % MAX_TEMP_DESYNC_FACTOR;
1307 struct timeval tv; local
1309 microtime(&tv);
1310 *mp = sbcreatecontrol((caddr_t) &tv, sizeof(tv),

Completed in 151 milliseconds

123