Searched refs:now (Results 1 - 25 of 61) sorted by relevance

123

/darwin-on-arm/xnu/osfmk/kern/
H A Dclock.c235 uint64_t now; local
241 now = mach_absolute_time();
250 * If the delta has not yet passed, now is set to the start
255 if (now > clock_calend.adjstart) {
256 t32 = (uint32_t)(now - clock_calend.adjstart);
259 now -= clock_calend.adjoffset;
261 now = clock_calend.adjstart;
265 now += clock_calend.offset;
267 absolutetime_to_microtime(now, secs, microsecs);
290 uint64_t now; local
339 uint64_t now; local
566 uint64_t now, t64; local
707 uint64_t now, t64; local
806 uint64_t now = mach_absolute_time(); local
928 uint64_t now; local
[all...]
H A Dledger.c151 static uint32_t ledger_check_needblock(ledger_t l, uint64_t now);
491 ledger_refill(uint64_t now, ledger_t ledger, int entry) argument
518 elapsed = now - le->le_last_refill;
539 periods = (now - le->le_last_refill) / period;
548 * If we've completely refilled the pool, set the refill time to now.
553 le->le_last_refill = now;
568 uint64_t now; local
574 now = mach_absolute_time();
575 if ((now - le->le_last_refill) > le->le_refill_period)
576 ledger_refill(now, ledge
800 uint64_t now; local
871 ledger_check_needblock(ledger_t l, uint64_t now) argument
1010 uint64_t now = mach_absolute_time(); local
[all...]
/darwin-on-arm/xnu/osfmk/i386/
H A Drtclock_native.c60 uint64_t now)
64 if (deadline <= now)
67 delta = deadline - now;
82 rtc_lapic_set_timer(uint64_t deadline, uint64_t now) argument
90 * - time now is not relevant
92 count = deadline_to_decrementer(deadline, now);
93 set = now + count;
110 rtc_lapic_set_tsc_deadline_timer(uint64_t deadline, uint64_t now) argument
121 delta = deadline_to_decrementer(deadline, now);
122 set = now
58 deadline_to_decrementer( uint64_t deadline, uint64_t now) argument
[all...]
H A Drtclock.c37 * Timer, but local apic timers are now used for
406 uint64_t now = rtc_nanotime_read(); local
408 _absolutetime_to_microtime(now, secs, microsecs);
416 uint64_t now = rtc_nanotime_read(); local
418 _absolutetime_to_nanotime(now, secs, nanosecs);
429 uint64_t now = abstime + offset; local
432 remain = _absolutetime_to_microtime(now, secs, microsecs);
490 uint64_t now; local
496 now = 0;
499 now
[all...]
H A Dacpi.c173 uint64_t now; local
305 ml_get_timebase(&now);
331 my_tsc = (now >> 32) | (now << 32);
H A Detimer.c81 abstime = mach_absolute_time(); /* Get the time now */
222 uint64_t now = mach_absolute_time(); local
223 if (deadline > now) {
224 return MIN((deadline - now) >> 3, NSEC_PER_MSEC); /* Min of 12.5% and 1ms */
/darwin-on-arm/xnu/osfmk/arm/
H A Drtclock.c95 static uint64_t deadline_to_decrementer(uint64_t deadline, uint64_t now) argument
98 if (deadline <= now)
101 delta = deadline - now;
115 static uint64_t rtclock_internal_arm_timer(uint64_t deadline, uint64_t now) argument
121 uint64_t delta = deadline_to_decrementer(deadline, now);
124 set = now + delta;
152 uint64_t now; local
160 now = 0;
163 now = mach_absolute_time(); /* The time in nanoseconds */
164 pop = rtclock_internal_arm_timer(time, now);
197 uint64_t now; local
260 uint64_t now = pe_arm_get_timebase(NULL); local
267 uint64_t now = mach_absolute_time(); local
340 uint64_t now = abstime + offset; local
[all...]
H A Detimer.c127 uint64_t now; local
129 now = mach_absolute_time();
132 if (deadline < now) {
133 pp->rtcPop = now + decr;
159 abstime = mach_absolute_time(); /* Get the time now */
208 uint64_t now = mach_absolute_time(); local
209 if (deadline > now) {
210 return MIN((deadline - now) >> 3, NSEC_PER_MSEC); /* Min of 12.5% and 1ms */
/darwin-on-arm/xnu/osfmk/kperf/
H A Dtimetrigger.c67 kperf_timer_schedule( struct time_trigger *trigger, uint64_t now )
74 deadline = now + trigger->period;
138 uint64_t now = mach_absolute_time(); local
139 kperf_timer_schedule( trigger, now );
150 uint64_t now; local
162 now = mach_absolute_time();
166 kperf_timer_schedule( trigger, now );
177 uint64_t now = mach_absolute_time(); local
184 kperf_timer_schedule( &timerv[i], now );
/darwin-on-arm/xnu/bsd/net/classq/
H A Dclassq_sfb.c338 struct timespec now; local
354 nanouptime(&now);
355 net_timeradd(&now, &sp->sfb_hinterval, &sp->sfb_nextreset);
522 log(LOG_DEBUG, "%s: SFB qid=%d, set %d is now current, "
599 sfb_penalize(struct sfb *sp, struct pf_mtag *t, struct timespec *now) argument
607 net_timersub(now, &sp->sfb_pboxfreeze, &delta);
626 sfb_increment_bin(sp, bin, SFB_BINFT(sp, 0, n, w), now);
632 sfb_increment_bin(sp, bin, SFB_BINFT(sp, 1, n, w), now);
643 SFB_BINFT(sp, i, n, w), now);
652 *(&sp->sfb_pboxfreeze) = *now;
658 sfb_adjust_bin(struct sfb *sp, struct sfbbinstats *bin, struct timespec *ft, struct timespec *now, boolean_t inc) argument
683 sfb_decrement_bin(struct sfb *sp, struct sfbbinstats *bin, struct timespec *ft, struct timespec *now) argument
690 sfb_increment_bin(struct sfb *sp, struct sfbbinstats *bin, struct timespec *ft, struct timespec *now) argument
697 sfb_dq_update_bins(struct sfb *sp, struct pf_mtag *t, struct timespec *now) argument
838 sfb_drop_early(struct sfb *sp, struct pf_mtag *t, u_int16_t *pmin, struct timespec *now) argument
912 struct timespec now; local
1014 struct timespec now; local
[all...]
H A Dclassq_blue.c223 struct timeval now; local
227 microuptime(&now);
228 t = (now.tv_sec - bp->blue_last.tv_sec);
233 t = t * 1000000 + (now.tv_usec - bp->blue_last.tv_usec);
271 struct timeval now; local
275 microuptime(&now);
276 t = (now.tv_sec - bp->blue_last.tv_sec);
277 t = t * 1000000 + (now.tv_usec - bp->blue_last.tv_usec);
360 /* nothing for now */
H A Dclassq_rio.c359 struct timeval now; local
369 now.tv_sec = 0;
375 if (now.tv_sec == 0)
376 microuptime(&now);
377 t = (now.tv_sec - prec->last.tv_sec);
382 (now.tv_usec - prec->last.tv_usec);
519 /* nothing for now */
H A Dclassq_red.c339 struct timeval now; local
343 microuptime(&now);
344 t = (now.tv_sec - rp->red_last.tv_sec);
352 t = t * 1000000 + (now.tv_usec - rp->red_last.tv_usec);
456 * now the range of d is [1..600] in fixed-point. (when
519 /* nothing for now */
/darwin-on-arm/xnu/bsd/kern/
H A Dkern_clock.c197 struct timeval now; local
201 microtime(&now);
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)
H A Dsys_pipe.c299 struct timeval now; local
301 microtime(&now);
304 tpipe->st_atimespec.tv_sec = now.tv_sec;
305 tpipe->st_atimespec.tv_nsec = now.tv_usec * 1000;
309 tpipe->st_mtimespec.tv_sec = now.tv_sec;
310 tpipe->st_mtimespec.tv_nsec = now.tv_usec * 1000;
314 tpipe->st_ctimespec.tv_sec = now.tv_sec;
315 tpipe->st_ctimespec.tv_nsec = now.tv_usec * 1000;
431 * for now we'll create half-duplex pipes(refer returns section above).
785 * If the "write-side" has been blocked, wake it up now
1514 struct timeval now; local
1635 uint64_t old, now; local
[all...]
H A Dkern_time.c340 struct timeval now; local
342 microuptime(&now);
343 if (timercmp(&p->p_rtime, &now, <))
347 timevalsub(&aitv.it_value, &now);
/darwin-on-arm/xnu/bsd/net/pktsched/
H A Dpktsched_rmclass.c127 #define RMC_ZONE_NAME "pktsched_cbq_cl" /* zone name (CBQ for now) */
166 * now heuristics for setting the top-level variable (cutoff_) becomes:
821 struct timeval now; local
827 RM_GETTIME(now);
829 if (TV_LT(&cl->undertime_, &now)) {
843 if (TV_LT(&borrow->undertime_, &now)) {
877 * rmc_tl_satisfied(struct rm_ifdat *ifd, struct timeval *now) - Check all
882 rmc_tl_satisfied(struct rm_ifdat *ifd, struct timeval *now) argument
891 if (!rmc_satisfied(p, now)) {
908 rmc_satisfied(struct rm_class *cl, struct timeval *now) argument
941 rmc_under_limit(struct rm_class *cl, struct timeval *now) argument
1034 struct timeval now; local
1188 struct timeval now; local
[all...]
H A Dpktsched_rmclass.h120 #define RM_GETTIME(now) microuptime(&now)
/darwin-on-arm/xnu/bsd/nfs/
H A Dnfs_syscalls.c360 /* now check if there's more/other work to be done */
553 /* now give me my vnode, it gets returned to me with a reference */
563 * From now on we have to make sure not
888 struct timeval now; local
1007 microuptime(&now);
1008 cur_usec = (u_quad_t)now.tv_sec * 1000000 +
1009 (u_quad_t)now.tv_usec;
1210 microuptime(&now);
1211 cur_usec = (u_quad_t)now.tv_sec * 1000000 +
1212 (u_quad_t)now
1372 struct timeval now; local
1436 struct timeval now; local
1470 struct timeval now; local
[all...]
H A Dnfs_lock.c414 struct timeval now; local
432 microuptime(&now);
433 starttime = now.tv_sec;
434 lastmsg = now.tv_sec - ((nmp->nm_tprintf_delay) - (nmp->nm_tprintf_initial_delay));
476 microuptime(&now);
477 endtime = now.tv_sec + timeo;
478 while (now.tv_sec < endtime) {
535 microuptime(&now);
566 ((flags & R_RECOVER) && ((now.tv_sec - starttime) > 30))) {
598 microuptime(&now);
[all...]
H A Dnfs_socket.c467 struct timeval now; local
496 microuptime(&now);
497 nso->nso_timestamp = now.tv_sec;
516 if (!error) { /* bind now to check for failure */
690 struct timeval now; local
698 microuptime(&now);
699 NFS_SOCK_DBG(("nfs connect %s search %ld\n", vfs_statfs(nmp->nm_mountp)->f_mntfromname, now.tv_sec));
703 ((nss->nss_sockcnt < 4) && (now.tv_sec >= (nss->nss_last + 2)))) {
712 nss->nss_last = now.tv_sec;
752 nss->nss_last = now
947 struct timeval now, start; local
1500 struct timeval now; local
1654 struct timeval now; local
1859 struct timeval now; local
2120 struct timeval now; local
2157 struct timeval timeo, now; local
2246 struct timeval now; local
2848 struct timeval now; local
3664 struct timeval now; local
3929 struct timeval now; local
4502 struct timeval now; local
5301 struct timeval now; local
[all...]
/darwin-on-arm/xnu/bsd/net/
H A Dif_llreach.c43 * resolver entry which now refers to it. A record gets removed from the tree
201 * Nothing to do for now; the link-layer source tree might
222 u_int64_t now; local
225 now = net_uptime(); /* current approx. uptime */
236 return (expire >= now);
243 return ((expire >= now) && (now - tval) < lr->lr_reachable);
270 VERIFY(alen == IF_LLREACH_MAXLEN); /* for now */
293 struct timeval now; local
298 VERIFY(alen == IF_LLREACH_MAXLEN); /* for now */
[all...]
/darwin-on-arm/xnu/bsd/miscfs/devfs/
H A Ddevfs_vnops.c179 struct timeval now; local
182 microtime(&now);
183 dn_times_locked(dnp, &now, &now, &now, just_changed_flags);
420 struct timeval now; local
476 microtime(&now);
477 dn_times_locked(file_node, &now, &now, &now,
688 struct timeval now; local
1511 struct timeval now; local
[all...]
/darwin-on-arm/xnu/bsd/dev/random/YarrowCoreLib/src/
H A Dprng.c340 /* Cause the PRNG to reseed now regardless of entropy pool */
358 LONGLONG now; local
406 now = UnsignedWideToUInt64(uwide);
407 } while ( (now-start) < ticks) ;
410 } while ( (now-start) < ticks) ;
/darwin-on-arm/xnu/bsd/dev/dtrace/
H A Ddtrace_glue.c353 uint64_t now; local
361 now = mach_absolute_time();
362 wrapTC->deadline = now;
364 clock_deadline_for_periodic_event( wrapTC->when.cyt_interval, now, &(wrapTC->deadline) );
509 uint64_t now; local
524 now = mach_absolute_time();
525 wrapTC->deadline = now;
527 clock_deadline_for_periodic_event( wrapTC->when.cyt_interval, now, &(wrapTC->deadline) );
724 /* XXX called from dtrace_detach, so NOTREACHED for now. */
848 p += sizeof(void*); /* now w
[all...]

Completed in 130 milliseconds

123