Home
last modified time | relevance | path

Searched refs:ticks (Results 1 – 13 of 13) sorted by relevance

/xnu-11215/bsd/kern/
H A Dkern_clock.c221 long ticks; in hzto() local
240 ticks = sec * hz; in hzto()
242 ticks = 0x7fffffff; in hzto()
245 return (int)ticks; in hzto()
277 unsigned long ticks; in tvtohz() local
315 ticks = 1; in tvtohz()
320 ticks = sec * hz in tvtohz()
323 ticks = LONG_MAX; in tvtohz()
325 if (ticks > INT_MAX) { in tvtohz()
326 ticks = INT_MAX; in tvtohz()
[all …]
/xnu-11215/libkern/libkern/
H A DOSBase.h83 #define ADD_ABSOLUTETIME_TICKS(t1, ticks) \ argument
85 (int32_t)(ticks))
/xnu-11215/tests/
H A Dkevent_continuous_time.c23 #define tick_to_ns(ticks) (((ticks) * tb_info.numer) / (tb_info.denom)) argument
24 #define tick_to_ms(ticks) (tick_to_ns(ticks)/one_mil) argument
H A Dmach_continuous_time.c27 #define to_ns(ticks) (((ticks) * tb_info.numer) / (tb_info.denom)) argument
28 #define to_ms(ticks) (to_ns(ticks)/one_mil) argument
H A Dmach_eventlink.c74 uint64_t ticks = mach_absolute_time(); in test_eventlink_wait_with_timeout() local
83 KERN_CLOCK_MACH_ABSOLUTE_TIME, ticks + 5000); in test_eventlink_wait_with_timeout()
/xnu-11215/iokit/IOKit/
H A DIOTimerEventSource.h217 virtual IOReturn setTimeoutTicks(UInt32 ticks);
254 virtual IOReturn wakeAtTimeTicks(UInt32 ticks);
/xnu-11215/osfmk/kern/
H A Dpriority.c652 uint32_t ticks, delta; in update_priority() local
654 ticks = sched_tick - thread->sched_stamp; in update_priority()
655 assert(ticks != 0); in update_priority()
657 thread->sched_stamp += ticks; in update_priority()
661 ticks *= sched_decay_usage_age_factor; in update_priority()
668 if (ticks < SCHED_DECAY_TICKS) { in update_priority()
694 const struct shift_data *shiftp = &sched_decay_shifts[ticks]; in update_priority()
H A Dprocessor.c736 natural_t ticks[static CPU_STATE_MAX]) in processor_cpu_load_info()
742 ticks[CPU_STATE_USER] += (uint32_t)(usage.ru_metrics[RCT_LVL_USER].rm_time_mach / in processor_cpu_load_info()
744 ticks[CPU_STATE_SYSTEM] += (uint32_t)( in processor_cpu_load_info()
746 ticks[CPU_STATE_IDLE] += (uint32_t)(idle_time / hz_tick_interval); in processor_cpu_load_info()
H A Dprocessor.h617 natural_t ticks[static CPU_STATE_MAX]);
H A Dhost.c498 #define GET_TICKS_VALUE(state, ticks) \ in host_statistics() argument
499 MACRO_BEGIN cpu_load_info->cpu_ticks[(state)] += (uint32_t)(ticks / hz_tick_interval); \ in host_statistics()
/xnu-11215/iokit/Kernel/
H A DIOTimerEventSource.cpp423 IOTimerEventSource::setTimeoutTicks(UInt32 ticks) in setTimeoutTicks() argument
425 return setTimeout(ticks, kTickScale); in setTimeoutTicks()
488 IOTimerEventSource::wakeAtTimeTicks(UInt32 ticks) in wakeAtTimeTicks() argument
490 return wakeAtTime(ticks, kTickScale); in wakeAtTimeTicks()
/xnu-11215/bsd/sys/
H A Dsystm.h188 void timeout(void (*)(void *), void *arg, int ticks);
189 void timeout_with_leeway(void (*)(void *), void *arg, int ticks, int leeway_ticks);
/xnu-11215/tools/lldbmacros/
H A DREADME.md295 …order to have your expression be evaluated before passing to command use `back ticks`. For example: