/xnu-2422.115.4/libkern/libkern/ |
H A D | OSBase.h | 51 AbsoluteTime abstime) 53 return (*(uint64_t *)&abstime); 59 AbsoluteTime *abstime) 61 return ((uint64_t *)abstime); 50 __OSAbsoluteTime( AbsoluteTime abstime) argument 58 __OSAbsoluteTimePtr( AbsoluteTime *abstime) argument
|
/xnu-2422.115.4/bsd/kern/ |
H A D | kern_synch.c | 157 u_int64_t abstime, 198 if (abstime) 199 wait_result = lck_mtx_sleep_deadline(mtx, flags, chan, catch, abstime); 205 assert_wait_deadline(chan, catch, abstime); 247 ut->uu_timo = abstime? 1: 0; 324 u_int64_t abstime = 0; local 327 clock_interval_to_deadline(timo, NSEC_PER_SEC / hz, &abstime); 329 return _sleep((caddr_t)chan, pri, wmsg, abstime, continuation, mtx); 340 u_int64_t abstime = 0; local 343 nanoseconds_to_absolutetime((uint64_t)ts->tv_sec * NSEC_PER_SEC + ts->tv_nsec, &abstime ); 153 _sleep( caddr_t chan, int pri, const char *wmsg, u_int64_t abstime, int (*continuation)(int), lck_mtx_t *mtx) argument 351 msleep1( void *chan, lck_mtx_t *mtx, int pri, const char *wmsg, u_int64_t abstime) argument 368 u_int64_t abstime = 0; local 383 u_int64_t abstime = 0; local 391 tsleep1( void *chan, int pri, const char *wmsg, u_int64_t abstime, int (*continuation)(int)) argument [all...] |
H A D | kdebug.c | 2085 u_int64_t abstime; local 2128 nanoseconds_to_absolutetime(ns, &abstime ); 2129 clock_absolutetime_interval_to_deadline( abstime, &abstime ); 2131 abstime = 0; 2140 if (abstime) { 2145 wait_result = lck_spin_sleep_deadline(kdw_spin_lock, 0, &kde_waiter, THREAD_ABORTSAFE, abstime); 2477 u_int64_t abstime; local 2482 nanoseconds_to_absolutetime(ns, &abstime ); 2483 clock_absolutetime_interval_to_deadline( abstime, 2550 u_int64_t abstime; local [all...] |
/xnu-2422.115.4/iokit/IOKit/ |
H A D | IOTimerEventSource.h | 67 /*! @var abstime time to wake up next, see enable. */ 68 AbsoluteTime abstime; member in class:IOTimerEventSource 171 @param abstime Time to wake up in scheduler quantums, whatever that is? 177 @param abstime Time to wake up in milliseconds. 183 @param abstime Time to wake up in microseconds. 189 @param abstime Time to wake up in some unit. 190 @param scale_factor Define the unit of abstime, default to nanoseconds. 192 virtual IOReturn wakeAtTime(UInt32 abstime, 196 virtual IOReturn wakeAtTime(mach_timespec_t abstime) 202 @discussion Starts the timer, which will expire at abstime [all...] |
H A D | IOInterruptEventSource.h | 201 @param abstime Time at which interrupt is expected. */ 202 IOReturn warmCPU(uint64_t abstime);
|
/xnu-2422.115.4/osfmk/i386/ |
H A D | rtclock.c | 95 _absolutetime_to_microtime(uint64_t abstime, clock_sec_t *secs, clock_usec_t *microsecs) argument 98 *secs = abstime / (uint64_t)NSEC_PER_SEC; 99 remain = (uint32_t)(abstime % (uint64_t)NSEC_PER_SEC); 105 _absolutetime_to_nanotime(uint64_t abstime, clock_sec_t *secs, clock_usec_t *nanosecs) argument 107 *secs = abstime / (uint64_t)NSEC_PER_SEC; 108 *nanosecs = (clock_usec_t)(abstime % (uint64_t)NSEC_PER_SEC); 407 uint64_t abstime, 413 uint64_t now = abstime + offset; 420 commpage_set_timestamp(abstime - remain, *secs); 511 uint64_t abstime, 406 clock_gettimeofday_set_commpage( uint64_t abstime, uint64_t epoch, uint64_t offset, clock_sec_t *secs, clock_usec_t *microsecs) argument 510 absolutetime_to_microtime( uint64_t abstime, clock_sec_t *secs, clock_usec_t *microsecs) argument 519 absolutetime_to_nanotime( uint64_t abstime, clock_sec_t *secs, clock_nsec_t *nanosecs) argument 537 absolutetime_to_nanoseconds( uint64_t abstime, uint64_t *result) argument [all...] |
H A D | i386_timer.c | 73 uint64_t abstime; local 84 abstime = mach_absolute_time(); /* Get the time now */ 89 if ((timer_processed = ((mytimer->deadline <= abstime) || 90 (abstime >= (mytimer->queue.earliest_soft_deadline))))) { 97 latency = (int64_t) (abstime - MAX(mytimer->deadline, 103 TCOAL_DEBUG(0xEEEE0000, abstime, mytimer->queue.earliest_soft_deadline, abstime - mytimer->queue.earliest_soft_deadline, 0, 0); 114 mytimer->deadline = timer_queue_expire(&mytimer->queue, abstime); 118 abstime = mach_absolute_time(); 119 mytimer->when_set = abstime; 219 uint64_t abstime; local 240 uint64_t abstime; local [all...] |
H A D | machine_routines.c | 604 uint64_t abstime; local 618 nanoseconds_to_absolutetime(default_timeout_ns, &abstime); 619 LockTimeOut = (uint32_t) abstime; 620 LockTimeOutTSC = (uint32_t) tmrCvt(abstime, tscFCvtn2t); 625 nanoseconds_to_absolutetime(mtxspin*NSEC_PER_USEC, &abstime); 627 nanoseconds_to_absolutetime(10*NSEC_PER_USEC, &abstime); 629 MutexSpin = (unsigned int)abstime;
|
/xnu-2422.115.4/osfmk/kern/ |
H A D | clock.h | 114 uint64_t abstime, 126 uint64_t abstime, 162 uint64_t abstime, 168 uint64_t abstime, 188 uint64_t *abstime); 219 uint64_t abstime, 226 uint64_t abstime,
|
H A D | clock.c | 190 uint64_t abstime; local 192 nanoseconds_to_absolutetime(calend_adjperiod, &abstime); 193 calend_adjinterval = (uint32_t)abstime; 195 nanoseconds_to_absolutetime(NSEC_PER_SEC / 100, &abstime); 196 hz_tick_interval = (uint32_t)abstime; 243 * returns mach_absolute_time if abstime 250 uint64_t *abstime) 259 if (abstime) 260 *abstime = now; 864 uint64_t abstime; local 247 clock_get_calendar_absolute_and_microtime( clock_sec_t *secs, clock_usec_t *microsecs, uint64_t *abstime) argument 887 uint64_t abstime; local 895 clock_absolutetime_interval_to_deadline( uint64_t abstime, uint64_t *result) argument 910 clock_deadline_for_periodic_event( uint64_t interval, uint64_t abstime, uint64_t *deadline) argument [all...] |
H A D | sched_average.c | 132 uint64_t abstime, index; local 250 abstime = mach_absolute_time(); 252 if (abstime >= avg->deadline) { 256 ninvokes += (abstime - avg->deadline) / period_abs; 262 avg->deadline = abstime + period_abs;
|
H A D | syscall_subr.c | 460 uint64_t abstime; local 463 interval, NSEC_PER_MSEC, &abstime); 464 thread_depress_abstime(abstime); 526 uint64_t total_computation, abstime; local 528 abstime = mach_absolute_time(); 529 total_computation = abstime - self->computation_epoch; 540 self->computation_epoch = abstime; 544 abstime += (total_computation >> sched_poll_yield_shift); 545 if (!timer_call_enter(&self->depress_timer, abstime, TIMER_CALL_USER_CRITICAL))
|
H A D | sched_fixedpriority.c | 308 uint64_t abstime; local 312 sched_fixedpriority_quantum_ms, NSEC_PER_MSEC, &abstime); 313 assert((abstime >> 32) == 0 && (uint32_t)abstime != 0); 314 sched_fixedpriority_quantum = (uint32_t)abstime; 328 fairshare_minimum_blocked_time_ms, NSEC_PER_MSEC, &abstime); 330 assert((abstime >> 32) == 0 && (uint32_t)abstime != 0); 331 fairshare_minimum_blocked_time = (uint32_t)abstime; 356 uint64_t abstime local [all...] |
H A D | sched_proto.c | 229 uint64_t abstime; local 233 proto_quantum_us, NSEC_PER_USEC, &abstime); 234 assert((abstime >> 32) == 0 && (uint32_t)abstime != 0); 235 proto_quantum = (uint32_t)abstime; 260 uint64_t abstime = mach_absolute_time(); local 282 sched_proto_tick_deadline = abstime; 284 clock_deadline_for_periodic_event(sched_one_second_interval, abstime,
|
H A D | sched_grrr.c | 256 uint64_t abstime; local 260 grrr_quantum_us, NSEC_PER_USEC, &abstime); 261 assert((abstime >> 32) == 0 && (uint32_t)abstime != 0); 262 grrr_quantum = (uint32_t)abstime; 287 uint64_t abstime = mach_absolute_time(); local 297 sched_grrr_tick_deadline = abstime; 299 clock_deadline_for_periodic_event(10*sched_one_second_interval, abstime,
|
H A D | sched_prim.c | 602 uint64_t abstime; local 604 clock_interval_to_absolutetime_interval(1, NSEC_PER_SEC, &abstime); 605 sched_one_second_interval = abstime; 640 uint64_t abstime; local 645 std_quantum_us, NSEC_PER_USEC, &abstime); 646 assert((abstime >> 32) == 0 && (uint32_t)abstime != 0); 647 std_quantum = (uint32_t)abstime; 650 clock_interval_to_absolutetime_interval(250, NSEC_PER_USEC, &abstime); 651 assert((abstime >> 3 735 uint64_t abstime; local 1189 uint64_t abstime; local [all...] |
H A D | sync_sema.c | 127 uint64_t abstime; local 129 nanoseconds_to_absolutetime((uint64_t)sec * NSEC_PER_SEC + nsec, &abstime); 130 clock_absolutetime_interval_to_deadline(abstime, &abstime); 132 return (abstime);
|
H A D | thread.c | 1650 int64_t abstime = 0; local 1667 ledger_get_limit(thread->t_threadledger, thread_ledgers.cpu_time, &abstime); 1669 if ((abstime == LEDGER_LIMIT_INFINITY) || (*interval_ns == 0)) { 1680 absolutetime_to_nanoseconds(abstime, &limittime); 1710 uint64_t abstime = 0; local 1756 nanoseconds_to_absolutetime(limittime, &abstime); 1757 ledger_set_limit(l, thread_ledgers.cpu_time, abstime, cpumon_ustackshots_trigger_pct); 2038 uint64_t abstime = mach_absolute_time(); local 2044 (abstime - timer->tstamp); /* XXX need interrupts off to prevent missed time? */
|
/xnu-2422.115.4/bsd/net/pktsched/ |
H A D | pktsched.c | 113 pktsched_abs_to_nsecs(u_int64_t abstime) argument 117 absolutetime_to_nanoseconds(abstime, &nsecs); 124 u_int64_t abstime; local 126 nanoseconds_to_absolutetime(nsecs, &abstime); 127 return (abstime);
|
/xnu-2422.115.4/iokit/Kernel/ |
H A D | IOTimerEventSource.cpp | 114 if (doit && me->enabled && AbsoluteTime_to_scalar(&me->abstime)) 236 AbsoluteTime_to_scalar(&abstime) = 0; 247 if (kIOReturnSuccess != wakeAtTime(abstime)) 353 if ( enabled && AbsoluteTime_to_scalar(&abstime) && workLoop ) 354 wakeAtTime(abstime); 362 abstime = inAbstime; 363 if ( enabled && AbsoluteTime_to_scalar(&inAbstime) && AbsoluteTime_to_scalar(&abstime) && workLoop )
|
H A D | IOInterruptEventSource.cpp | 295 (uint64_t abstime) 298 return ml_interrupt_prewarm(abstime); 294 warmCPU(uint64_t abstime) argument
|
/xnu-2422.115.4/osfmk/i386/commpage/ |
H A D | commpage.h | 141 extern void commpage_set_timestamp(uint64_t abstime, uint64_t secs);
|
H A D | commpage.c | 557 uint64_t abstime, 572 p32->gtod_ns_base = abstime; 573 p64->gtod_ns_base = abstime; 556 commpage_set_timestamp( uint64_t abstime, uint64_t secs ) argument
|
/xnu-2422.115.4/bsd/sys/ |
H A D | time.h | 196 void microtime_with_abstime(struct timeval *tv, uint64_t *abstime);
|
H A D | user.h | 146 u_int64_t abstime; member in struct:uthread::__anon31::_select_data
|