| /xnu-8019.80.24/osfmk/i386/ |
| H A D | pmCPU.c | 61 …NSEC_PER_USEC, 32 * NSEC_PER_USEC, 64 * NSEC_PER_USEC, 128 * NSEC_PER_USEC, 256 * NSEC_PER_USEC, 5…
|
| H A D | machine_routines.c | 868 default_timeout_ns = slto * NSEC_PER_USEC; in ml_init_lock_timeout() 875 LockTimeOutUsec = (uint32_t) (default_timeout_ns / NSEC_PER_USEC); in ml_init_lock_timeout() 887 default_timeout_ns = slto * NSEC_PER_USEC; in ml_init_lock_timeout() 898 default_timeout_ns = slto * NSEC_PER_USEC; in ml_init_lock_timeout() 904 nanoseconds_to_absolutetime((uint64_t)slto * NSEC_PER_USEC, &abstime); in ml_init_lock_timeout() 909 nanoseconds_to_absolutetime((uint64_t)slto * NSEC_PER_USEC, &abstime); in ml_init_lock_timeout() 914 nanoseconds_to_absolutetime((uint64_t)slto * NSEC_PER_USEC, &abstime); in ml_init_lock_timeout() 922 nanoseconds_to_absolutetime(mtxspin * NSEC_PER_USEC, &abstime); in ml_init_lock_timeout() 924 nanoseconds_to_absolutetime(10 * NSEC_PER_USEC, &abstime); in ml_init_lock_timeout() 995 nanoseconds_to_absolutetime(threshold_us * NSEC_PER_USEC, &delay_spin_threshold); in ml_init_delay_spin_threshold()
|
| H A D | rtclock_native.c | 185 rtc_decrementer_min = 1 * NSEC_PER_USEC; /* 1 usec */ in rtc_timer_init() 192 rtc_decrementer_min = 1 * NSEC_PER_USEC; /* 1 usec */ in rtc_timer_init()
|
| H A D | i386_timer.c | 432 .idle_entry_timer_processing_hdeadline_threshold_ns = 5000ULL * NSEC_PER_USEC, 433 .interrupt_timer_coalescing_ilat_threshold_ns = 30ULL * NSEC_PER_USEC,
|
| H A D | rtclock.c | 102 *microsecs = remain / NSEC_PER_USEC; in _absolutetime_to_microtime()
|
| /xnu-8019.80.24/osfmk/x86_64/ |
| H A D | loose_ends.c | 308 uint64_t trace_phy_read_delay = 50 * NSEC_PER_USEC; 309 uint64_t trace_phy_write_delay = 50 * NSEC_PER_USEC; 380 (eabs - sabs) / NSEC_PER_USEC); in ml_phys_read_data() 531 paddr, data, (eabs - sabs) / NSEC_PER_USEC); in ml_phys_write_data() 663 ioport, (eabs - sabs) / NSEC_PER_USEC); in ml_port_io_read() 735 ioport, size, val, (eabs - sabs) / NSEC_PER_USEC); in ml_port_io_write()
|
| /xnu-8019.80.24/osfmk/arm/ |
| H A D | arm_timer.c | 265 .idle_entry_timer_processing_hdeadline_threshold_ns = 5000ULL * NSEC_PER_USEC, 266 .interrupt_timer_coalescing_ilat_threshold_ns = 30ULL * NSEC_PER_USEC,
|
| H A D | machine_routines.c | 155 lto_timeout_ns = slto * NSEC_PER_USEC; in ml_init_lock_timeout() 164 os_atomic_store(&LockTimeOutUsec, (uint32_t)(lto_timeout_ns / NSEC_PER_USEC), relaxed); in ml_init_lock_timeout() 172 nanoseconds_to_absolutetime(mtxspin * NSEC_PER_USEC, &mtx_abstime); in ml_init_lock_timeout()
|
| /xnu-8019.80.24/libsyscall/wrappers/ |
| H A D | mach_get_times.c | 81 tp->tv_nsec = tv.tv_usec * NSEC_PER_USEC; in mach_get_times()
|
| /xnu-8019.80.24/osfmk/mach/ |
| H A D | clock_types.h | 84 #define NSEC_PER_USEC 1000ull /* nanoseconds per microsecond */ macro
|
| /xnu-8019.80.24/osfmk/kperf/ |
| H A D | kptimer.c | 116 [KTPL_FG] = 20 * NSEC_PER_USEC, /* The minimum timer period in xnu, period. */ 121 [KTPL_FG] = 50 * NSEC_PER_USEC, 126 [KTPL_FG] = 100 * NSEC_PER_USEC,
|
| /xnu-8019.80.24/tests/ |
| H A D | kqueue_timer_tests.c | 121 expected = abs_to_nanos((uint64_t)time) / NSEC_PER_USEC; in test_absolute_kevent() 158 expected = abs_to_nanos((uint64_t)time) / NSEC_PER_USEC; in test_oneshot_kevent()
|
| /xnu-8019.80.24/osfmk/arm64/ |
| H A D | machine_routines.c | 123 #define kDeferredIPITimerDefault (64 * NSEC_PER_USEC) /* in nanoseconds */ 588 lto_timeout_ns = slto * NSEC_PER_USEC; in ml_init_lock_timeout() 596 os_atomic_store(&LockTimeOutUsec, lto_timeout_ns / NSEC_PER_USEC, relaxed); in ml_init_lock_timeout() 599 nanoseconds_to_absolutetime(slto * NSEC_PER_USEC, <o_abstime); in ml_init_lock_timeout() 611 nanoseconds_to_absolutetime(mtxspin * NSEC_PER_USEC, &mtx_abstime); in ml_init_lock_timeout() 629 nanoseconds_to_absolutetime(maxwfeus * NSEC_PER_USEC, &ml_wfe_hint_max_interval); in ml_init_lock_timeout()
|
| H A D | loose_ends.c | 367 (eabs - sabs) / NSEC_PER_USEC); in ml_phys_read_data() 541 (eabs - sabs) / NSEC_PER_USEC); in ml_phys_write_data()
|
| /xnu-8019.80.24/osfmk/kern/ |
| H A D | test_lock.c | 36 nanoseconds_to_absolutetime(ns * NSEC_PER_USEC, &t); in sane_us2abs()
|
| H A D | cpu_quiesce.c | 141 NSEC_PER_USEC, &abstime); in cpu_quiescent_counter_set_min_interval_us()
|
| H A D | machine.c | 591 (eabs - sabs) / NSEC_PER_USEC); in ml_io_read() 712 size, (void *)vaddr, (void *)paddr, val, (eabs - sabs) / NSEC_PER_USEC); in ml_io_write()
|
| H A D | sfi.c | 451 clock_interval_to_absolutetime_interval((uint32_t)window_usecs, NSEC_PER_USEC, &interval); in sfi_set_window() 623 clock_interval_to_absolutetime_interval((uint32_t)offtime_usecs, NSEC_PER_USEC, &interval); in sfi_set_class_offtime()
|
| H A D | sched_proto.c | 250 proto_quantum_us, NSEC_PER_USEC, &abstime); in sched_proto_timebase_init()
|
| H A D | syscall_subr.c | 229 scale_factor = NSEC_PER_USEC; in thread_switch()
|
| /xnu-8019.80.24/bsd/net/ |
| H A D | devtimer.c | 90 clock_interval_to_absolutetime_interval(tv.tv_usec, NSEC_PER_USEC, in timeval_to_absolutetime()
|
| H A D | dlil.h | 101 *(nsp) = (tvp)->tv_nsec / NSEC_PER_USEC; \
|
| /xnu-8019.80.24/tools/tests/zero-to-n/ |
| H A D | zero-to-n.c | 234 uint64_t sleep_at_time = ctime + nanos_to_abs(arc4random_uniform(sleep_us * NSEC_PER_USEC) + 1); in churn_thread() 242 sleep_at_time = ctime + nanos_to_abs(arc4random_uniform(sleep_us * NSEC_PER_USEC) + 1); in churn_thread() 1038 g_iteration_sleeptime_us += threads_per_core * (g_each_spin_duration_ns / NSEC_PER_USEC); in main() 1041 g_iteration_sleeptime_us += g_one_long_spin_length_ns / NSEC_PER_USEC; in main()
|
| /xnu-8019.80.24/pexpert/arm/ |
| H A D | pe_serial.c | 536 …nanoseconds_to_absolutetime(DOCKCHANNEL_WR_MAX_STALL_US * NSEC_PER_USEC, &dockchannel_stall_grace); in dockchannel_init() 1007 nanoseconds_to_absolutetime(1500 * NSEC_PER_USEC, &timeout_interval); in serial_interrupt_deadline()
|
| /xnu-8019.80.24/bsd/skywalk/mem/ |
| H A D | skmem.c | 474 delay = (10 * NSEC_PER_USEC); /* "immediately", 10 usec */ in skmem_dispatch()
|