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

123

/darwin-on-arm/xnu/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.c100 struct timeval *tv);
166 if (uap->tv) {
169 error = copyin(uap->tv, &user_atv, sizeof(user_atv));
174 error = copyin(uap->tv, &user_atv, sizeof(user_atv));
183 if (uap->tv) {
199 struct timeval *tv)
201 clock_set_calendar_microtime(tv->tv_sec, tv->tv_usec);
265 struct timeval tv; local
275 microtime(&tv);
198 setthetime( struct timeval *tv) argument
539 itimerfix( struct timeval *tv) argument
[all...]
H A Dkern_credential.c1228 struct timeval tv; local
1232 microuptime(&tv);
1255 kip->ki_guid_expiry = (elp->el_uguid_valid) ? tv.tv_sec + elp->el_uguid_valid : 0;
1260 kip->ki_ntsid_expiry = (elp->el_usid_valid) ? tv.tv_sec + elp->el_usid_valid : 0;
1286 (elp->el_uguid_valid) ? tv.tv_sec + elp->el_uguid_valid : 0,
1288 (elp->el_usid_valid) ? tv.tv_sec + elp->el_usid_valid : 0,
1312 kip->ki_guid_expiry = (elp->el_gguid_valid) ? tv.tv_sec + elp->el_gguid_valid : 0;
1317 kip->ki_ntsid_expiry = (elp->el_gsid_valid) ? tv.tv_sec + elp->el_gsid_valid : 0;
1343 (elp->el_gguid_valid) ? tv.tv_sec + elp->el_gguid_valid : 0,
1345 (elp->el_gsid_valid) ? tv
1426 struct timeval tv; local
1455 struct timeval tv; local
2633 struct timeval tv; local
2691 struct timeval tv; local
[all...]
H A Dkpi_socket.c292 const struct timeval *tv)
316 if (tv->tv_sec < 0 || tv->tv_sec > SHRT_MAX / hz ||
317 tv->tv_usec < 0 || tv->tv_usec >= 1000000) {
322 ts.tv_sec = tv->tv_sec;
323 ts.tv_nsec = (tv->tv_usec * NSEC_PER_USEC);
290 sock_connectwait( socket_t sock, const struct timeval *tv) argument
/darwin-on-arm/xnu/bsd/netinet/
H A Dtcp_timer.h238 #define TCPT_RANGESET(tv, value, tvmin, tvmax, addslop) do { \
239 (tv) = ((addslop) ? tcp_rexmt_slop : 0) + (value); \
240 if ((uint32_t)(tv) < (uint32_t)(tvmin)) \
241 (tv) = (tvmin); \
242 else if ((uint32_t)(tv) > (uint32_t)(tvmax)) \
243 (tv) = (tvmax); \
/darwin-on-arm/xnu/bsd/sys/
H A Dtime.h149 #define TIMEVAL_TO_TIMESPEC(tv, ts) { \
150 (ts)->tv_sec = (tv)->tv_sec; \
151 (ts)->tv_nsec = (tv)->tv_usec * 1000; \
153 #define TIMESPEC_TO_TIMEVAL(tv, ts) { \
154 (tv)->tv_sec = (ts)->tv_sec; \
155 (tv)->tv_usec = (ts)->tv_nsec / 1000; \
214 void microtime(struct timeval *tv);
215 void microuptime(struct timeval *tv);
H A Dsystm.h162 int hzto(struct timeval *tv);
185 void get_procrustime(struct time_value *tv);
189 void throttle_info_get_last_io_time(mount_t mp, struct timeval *tv);
/darwin-on-arm/xnu/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.c255 struct timeval tv; local
257 microuptime(&tv);
259 dq->dq_btime = tv.tv_sec +
270 if (tv.tv_sec > (time_t)dq->dq_btime) {
397 struct timeval tv; local
399 microuptime(&tv);
401 dq->dq_itime = tv.tv_sec + hfsmp->hfs_qfiles[type].qf_itime;
405 if (tv.tv_sec > (time_t)dq->dq_itime) {
460 struct timeval tv; local
462 microuptime(&tv);
818 struct timeval tv; local
879 struct timeval tv; local
[all...]
H A Dhfs_link.c680 struct timeval tv; local
756 microtime(&tv);
757 dcp->c_ctime = tv.tv_sec;
758 dcp->c_mtime = tv.tv_sec;
854 cp->c_ctime = tv.tv_sec;
907 struct timeval tv; local
991 microtime(&tv);
992 dcp->c_ctime = tv.tv_sec;
993 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;
303 struct timeval tv; local
377 microtime(&tv);
378 listp->hfl_duration = tv.tv_sec - hfsmp->hfc_timebase;
436 struct timeval tv; local
723 struct timeval tv; local
[all...]
H A Dhfs_vnops.c456 struct timeval tv; local
546 microuptime(&tv);
547 if (tv.tv_sec > (60*3)) {
924 struct timeval tv; local
926 microtime(&tv);
927 vap->va_access_time.tv_sec = tv.tv_sec;
2264 struct timeval tv; local
2325 microuptime(&tv);
2326 if ((cp->c_flag & C_ALWAYS_ZEROFILL) == 0 && !fullsync && tv.tv_sec < (long)cp->c_zftimeout) {
2418 microuptime(&tv);
2560 struct timeval tv; local
3016 struct timeval tv; local
5075 struct timeval tv; local
[all...]
/darwin-on-arm/xnu/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...]
H A Dbpf.c573 struct timeval tv; local
576 tv.tv_sec = d->bd_rtout / hz;
577 tv.tv_usec = (d->bd_rtout % hz) * tick;
579 clock_interval_to_deadline((uint64_t)tv.tv_sec * USEC_PER_SEC + tv.tv_usec,
1391 struct timeval tv; local
1394 tv.tv_sec = _tv.tv_sec;
1395 tv.tv_usec = _tv.tv_usec;
1401 if ((error = itimerfix(&tv)) == 0)
1402 d->bd_rtout = tvtohz(&tv)
1408 struct timeval tv; local
1427 struct user32_timeval tv; local
1437 struct user64_timeval tv; local
2152 struct timeval tv; local
[all...]
/darwin-on-arm/xnu/libkern/uuid/
H A Duuid.c62 struct timespec tv; local
64 nanotime(&tv);
66 return (tv.tv_sec * 10000000ULL) + (tv.tv_nsec / 100ULL) + 0x01B21DD213814000ULL;
/darwin-on-arm/xnu/tools/tests/libMicro/apple/
H A Dlmbench_select_file.c385 static struct timeval tv; local
391 tv.tv_sec = 0;
392 tv.tv_usec = 0;
399 select(ts->num, 0, &nosave, 0, &tv);
H A Dlmbench_select_tcp.c602 static struct timeval tv; local
608 tv.tv_sec = 0;
609 tv.tv_usec = 0;
616 select(ts->num, 0, &nosave, 0, &tv);
/darwin-on-arm/xnu/bsd/dev/random/YarrowCoreLib/src/
H A Dprng.c353 struct timeval tv; local
371 microuptime (&tv);
373 gettimeofday(&tv, NULL);
375 endTime = (int64_t)tv.tv_sec*1000000LL + (int64_t)tv.tv_usec + ticks;
398 gettimeofday(&tv, NULL);
400 microuptime (&tv);
401 curTime = (int64_t)tv.tv_sec*1000000LL + (int64_t)tv.tv_usec;
/darwin-on-arm/xnu/bsd/nfs/
H A Dkrpc_subr.c241 struct timeval tv; local
243 tv.tv_sec = 1;
244 tv.tv_usec = 0;
246 if ((error = sock_setsockopt(so, SOL_SOCKET, SO_RCVTIMEO, &tv, sizeof(tv))))
298 struct timeval tv; local
299 tv.tv_sec = 60;
300 tv.tv_usec = 0;
304 error = sock_connectwait(so, &tv);
/darwin-on-arm/xnu/tools/tests/kqueue_tests/
H A Dkqueue_timer_tests.c56 struct timeval tv; local
62 gettimeofday(&tv, NULL);
63 nowus = tv.tv_sec * (1000 * 1000LL) + tv.tv_usec;
216 struct timeval tv; local
/darwin-on-arm/xnu/tools/tests/libMicro/
H A Dselect.c181 struct timeval tv = {0, 0}; local
191 if (select(maxfd, my_iset, my_oset, NULL, &tv) != target) {
H A Dlibmicro.c1052 struct timeval tv; local
1054 (void) gettimeofday(&tv, NULL);
1056 return ((long long)tv.tv_sec * 1000000LL + (long long) tv.tv_usec);
1062 struct timeval tv; local
1064 (void) gettimeofday(&tv, NULL);
1066 return ((long long)tv.tv_sec * 1000000000LL +
1067 (long long) tv.tv_usec * 1000LL);
/darwin-on-arm/xnu/bsd/security/audit/
H A Daudit_bsd.c601 struct timeval tv, delta; local
604 microtime(&tv);
606 timersub(&tv, lasttime, &delta);
618 *lasttime = tv;
/darwin-on-arm/xnu/bsd/netkey/
H A Dkey.c661 struct timeval tv; local
699 microtime(&tv);
700 sp->lastused = tv.tv_sec;
725 struct timeval tv; local
780 microtime(&tv);
781 sp->lastused = tv.tv_sec;
2095 struct timeval tv; local
2248 microtime(&tv);
2249 newsp->created = tv.tv_sec;
2250 newsp->lastused = tv
3248 struct timeval tv; local
3347 struct timeval tv; local
3582 struct timeval tv; local
3917 struct timeval tv; local
5185 struct timeval tv; local
5837 struct timeval tv; local
7391 struct timeval tv; local
7454 struct timeval tv; local
7536 struct timeval tv; local
8795 struct timeval tv; local
[all...]
/darwin-on-arm/xnu/bsd/vfs/
H A Dvfs_cache.c892 struct timeval tv; local
919 microuptime(&tv);
941 vp->v_cred_timestamp = tv.tv_sec;
954 struct timeval tv; local
957 microuptime(&tv);
959 if ((tv.tv_sec - vp->v_cred_timestamp) > vp->v_mount->mnt_authcache_ttl)
985 struct timeval tv; local
1001 microuptime(&tv);
1097 if (ttl_enabled && ((tv.tv_sec - dp->v_cred_timestamp) > dp->v_mount->mnt_authcache_ttl))

Completed in 378 milliseconds

123