Searched refs:abstime (Results 1 - 25 of 46) sorted by relevance

12

/darwin-on-arm/xnu/libkern/libkern/
H A DOSBase.h51 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
/darwin-on-arm/xnu/bsd/kern/
H A Dkern_synch.c157 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 Dkdebug.c1617 u_int64_t abstime; local
1660 nanoseconds_to_absolutetime(ns, &abstime );
1661 clock_absolutetime_interval_to_deadline( abstime, &abstime );
1663 abstime = 0;
1672 if (abstime) {
1677 wait_result = lck_spin_sleep_deadline(kdw_spin_lock, 0, &kde_waiter, THREAD_ABORTSAFE, abstime);
2005 u_int64_t abstime; local
2010 nanoseconds_to_absolutetime(ns, &abstime );
2011 clock_absolutetime_interval_to_deadline( abstime,
[all...]
/darwin-on-arm/xnu/osfmk/arm/
H A Drtclock.c206 _absolutetime_to_microtime(uint64_t abstime, clock_sec_t *secs, clock_usec_t *microsecs) argument
209 *secs = abstime / (uint64_t)NSEC_PER_SEC;
210 remain = (uint32_t)(abstime % (uint64_t)NSEC_PER_SEC);
216 _absolutetime_to_nanotime(uint64_t abstime, clock_sec_t *secs, clock_usec_t *nanosecs) argument
218 *secs = abstime / (uint64_t)NSEC_PER_SEC;
219 *nanosecs = (clock_usec_t)(abstime % (uint64_t)NSEC_PER_SEC);
229 absolutetime_to_microtime(uint64_t abstime, clock_sec_t *secs, clock_usec_t *microsecs) argument
231 _absolutetime_to_microtime(abstime, secs, microsecs);
235 absolutetime_to_nanotime(uint64_t abstime, clock_sec_t* secs, clock_nsec_t *nanosecs) argument
237 _absolutetime_to_nanotime(abstime, sec
247 absolutetime_to_nanoseconds(uint64_t abstime, uint64_t* result) argument
336 clock_gettimeofday_set_commpage(uint64_t abstime, uint64_t epoch, uint64_t offset, clock_sec_t * secs, clock_usec_t * microsecs) argument
[all...]
H A Detimer.c150 uint64_t abstime; local
159 abstime = mach_absolute_time(); /* Get the time now */
165 if (mytimer->deadline <= abstime) {
167 mytimer->deadline = timer_queue_expire(&mytimer->queue, abstime);
H A Dmachine_routines.c235 uint64_t abstime; local
247 nanoseconds_to_absolutetime(default_timeout_ns, &abstime);
248 LockTimeOut = (uint32_t) abstime;
253 nanoseconds_to_absolutetime(mtxspin * NSEC_PER_USEC, &abstime);
255 nanoseconds_to_absolutetime(10 * NSEC_PER_USEC, &abstime);
258 MutexSpin = (unsigned int) abstime;
/darwin-on-arm/xnu/osfmk/i386/
H A Drtclock.c95 _absolutetime_to_microtime(uint64_t abstime, clock_sec_t *secs, clock_usec_t *microsecs) argument
102 : "A" (abstime), "r" (NSEC_PER_SEC));
108 *secs = abstime / (uint64_t)NSEC_PER_SEC;
109 remain = (uint32_t)(abstime % (uint64_t)NSEC_PER_SEC);
118 _absolutetime_to_nanotime(uint64_t abstime, clock_sec_t *secs, clock_usec_t *nanosecs) argument
124 : "A" (abstime), "r" (NSEC_PER_SEC));
126 *secs = abstime / (uint64_t)NSEC_PER_SEC;
127 *nanosecs = (clock_usec_t)(abstime % (uint64_t)NSEC_PER_SEC);
423 uint64_t abstime,
429 uint64_t now = abstime
422 clock_gettimeofday_set_commpage( uint64_t abstime, uint64_t epoch, uint64_t offset, clock_sec_t *secs, clock_usec_t *microsecs) argument
526 absolutetime_to_microtime( uint64_t abstime, clock_sec_t *secs, clock_usec_t *microsecs) argument
535 absolutetime_to_nanotime( uint64_t abstime, clock_sec_t *secs, clock_nsec_t *nanosecs) argument
553 absolutetime_to_nanoseconds( uint64_t abstime, uint64_t *result) argument
[all...]
H A Detimer.c71 uint64_t abstime; local
81 abstime = mach_absolute_time(); /* Get the time now */
85 if (mytimer->deadline <= abstime) {
92 latency = (int32_t) (abstime - MAX(mytimer->deadline,
101 mytimer->deadline = timer_queue_expire(&mytimer->queue, abstime);
105 abstime = mach_absolute_time();
106 mytimer->when_set = abstime;
110 if ((pmdeadline = pmCPUGetDeadline(pp)) && (pmdeadline <= abstime)) {
202 uint64_t abstime; local
208 abstime
[all...]
H A Dmachine_routines.c535 uint64_t abstime; local
545 nanoseconds_to_absolutetime(default_timeout_ns, &abstime);
546 LockTimeOut = (uint32_t) abstime;
547 LockTimeOutTSC = (uint32_t) tmrCvt(abstime, tscFCvtn2t);
552 nanoseconds_to_absolutetime(mtxspin*NSEC_PER_USEC, &abstime);
554 nanoseconds_to_absolutetime(10*NSEC_PER_USEC, &abstime);
556 MutexSpin = (unsigned int)abstime;
/darwin-on-arm/xnu/iokit/IOKit/
H A DIOTimerEventSource.h67 /*! @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 DIOInterruptEventSource.h201 @param abstime Time at which interrupt is expected. */
202 IOReturn warmCPU(uint64_t abstime);
/darwin-on-arm/xnu/osfmk/kern/
H A Dclock.c190 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;
844 uint64_t abstime; local
846 clock_interval_to_absolutetime_interval(interval, scale_factor, &abstime);
848 _clock_delay_until_deadline(abstime, mach_absolute_time() + abstime);
867 uint64_t abstime; local
875 clock_absolutetime_interval_to_deadline( uint64_t abstime, uint64_t *result) argument
890 clock_deadline_for_periodic_event( uint64_t interval, uint64_t abstime, uint64_t *deadline) argument
[all...]
H A Dclock.h114 uint64_t abstime,
126 uint64_t abstime,
162 uint64_t abstime,
168 uint64_t abstime,
214 uint64_t abstime,
221 uint64_t abstime,
H A Dsched_average.c121 uint64_t abstime; local
201 abstime = mach_absolute_time();
203 if (abstime >= avg->deadline) {
205 avg->deadline = abstime + avg->period * sched_one_second_interval;
H A Dsyscall_subr.c371 uint64_t abstime; local
374 interval, 1000*NSEC_PER_USEC, &abstime);
375 thread_depress_abstime(abstime);
437 uint64_t total_computation, abstime; local
439 abstime = mach_absolute_time();
440 total_computation = abstime - self->computation_epoch;
451 self->computation_epoch = abstime;
455 abstime += (total_computation >> sched_poll_yield_shift);
456 if (!timer_call_enter(&self->depress_timer, abstime, TIMER_CALL_CRITICAL))
H A Dsched_fixedpriority.c308 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 Dsched_proto.c229 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 Dsched_grrr.c256 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 Dsched_prim.c586 uint64_t abstime; local
588 clock_interval_to_absolutetime_interval(1, NSEC_PER_SEC, &abstime);
589 sched_one_second_interval = abstime;
624 uint64_t abstime; local
629 std_quantum_us, NSEC_PER_USEC, &abstime);
630 assert((abstime >> 32) == 0 && (uint32_t)abstime != 0);
631 std_quantum = (uint32_t)abstime;
634 clock_interval_to_absolutetime_interval(250, NSEC_PER_USEC, &abstime);
635 assert((abstime >> 3
719 uint64_t abstime; local
4287 uint64_t abstime = mach_absolute_time(); local
[all...]
H A Dsync_sema.c127 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);
/darwin-on-arm/xnu/bsd/net/pktsched/
H A Dpktsched.c113 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);
/darwin-on-arm/xnu/iokit/Kernel/
H A DIOTimerEventSource.cpp115 if (doit && me->enabled && AbsoluteTime_to_scalar(&me->abstime))
237 AbsoluteTime_to_scalar(&abstime) = 0;
248 if (kIOReturnSuccess != wakeAtTime(abstime))
354 if ( enabled && AbsoluteTime_to_scalar(&abstime) && workLoop )
355 wakeAtTime(abstime);
363 abstime = inAbstime;
364 if ( enabled && AbsoluteTime_to_scalar(&inAbstime) && AbsoluteTime_to_scalar(&abstime) && workLoop )
H A DIOInterruptEventSource.cpp295 (uint64_t abstime)
298 return ml_interrupt_prewarm(abstime);
294 warmCPU(uint64_t abstime) argument
/darwin-on-arm/xnu/osfmk/i386/commpage/
H A Dcommpage.h153 extern void commpage_set_timestamp(uint64_t abstime, uint64_t secs);
H A Dcommpage.c557 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

Completed in 79 milliseconds

12