| /xnu-11215.61.5/osfmk/i386/ |
| H A D | pmCPU.c | 59 …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 | 974 default_timeout_ns = slto * NSEC_PER_USEC; in ml_init_lock_timeout() 981 LockTimeOutUsec = (uint32_t) (default_timeout_ns / NSEC_PER_USEC); in ml_init_lock_timeout() 993 default_timeout_ns = slto * NSEC_PER_USEC; in ml_init_lock_timeout() 1004 default_timeout_ns = slto * NSEC_PER_USEC; in ml_init_lock_timeout() 1010 nanoseconds_to_absolutetime((uint64_t)slto * NSEC_PER_USEC, &abstime); in ml_init_lock_timeout() 1015 nanoseconds_to_absolutetime((uint64_t)slto * NSEC_PER_USEC, &abstime); in ml_init_lock_timeout() 1020 nanoseconds_to_absolutetime((uint64_t)slto * NSEC_PER_USEC, &abstime); in ml_init_lock_timeout() 1028 nanoseconds_to_absolutetime(mtxspin * NSEC_PER_USEC, &abstime); in ml_init_lock_timeout() 1030 nanoseconds_to_absolutetime(10 * NSEC_PER_USEC, &abstime); in ml_init_lock_timeout() 1094 nanoseconds_to_absolutetime(threshold_us * NSEC_PER_USEC, &delay_spin_threshold); in ml_init_delay_spin_threshold()
|
| H A D | rtclock_native.c | 187 rtc_decrementer_min = 1 * NSEC_PER_USEC; /* 1 usec */ in rtc_timer_init() 194 rtc_decrementer_min = 1 * NSEC_PER_USEC; /* 1 usec */ in rtc_timer_init()
|
| H A D | i386_timer.c | 441 .idle_entry_timer_processing_hdeadline_threshold_ns = 5000ULL * NSEC_PER_USEC, 442 .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-11215.61.5/tests/sched/sched_test_harness/shadow_headers/ |
| H A D | sched_prim.c | 287 std_quantum_us, NSEC_PER_USEC, &abstime); in sched_timeshare_timebase_init() 292 clock_interval_to_absolutetime_interval(250, NSEC_PER_USEC, &abstime); in sched_timeshare_timebase_init() 298 bg_quantum_us, NSEC_PER_USEC, &abstime); in sched_timeshare_timebase_init() 304 NSEC_PER_USEC, &abstime); in sched_timeshare_timebase_init()
|
| /xnu-11215.61.5/osfmk/kern/ |
| H A D | timer_call.c | 100 #define TIMER_LONGTERM_SCAN_LIMIT (100ULL * NSEC_PER_USEC) /* 100 us */ 101 #define TIMER_LONGTERM_SCAN_INTERVAL (100ULL * NSEC_PER_USEC) /* 100 us */ 126 #define MAX_TIMER_SCAN_LIMIT (30000ULL * NSEC_PER_USEC) /* 30 ms */ 127 #define MIN_TIMER_SCAN_LIMIT ( 50ULL * NSEC_PER_USEC) /* 50 us */ 128 #define MAX_TIMER_SCAN_INTERVAL ( 2000ULL * NSEC_PER_USEC) /* 2 ms */ 129 #define MIN_TIMER_SCAN_INTERVAL ( 20ULL * NSEC_PER_USEC) /* 20 us */ 258 nanoseconds_to_absolutetime(timer_scan_limit_us * NSEC_PER_USEC, &timer_scan_limit_abs); in timer_call_init_abstime() 259 nanoseconds_to_absolutetime(timer_scan_interval_us * NSEC_PER_USEC, &timer_scan_interval_abs); in timer_call_init_abstime() 1652 return timer_scan_limit_us * NSEC_PER_USEC; in timer_sysctl_get() 1654 return timer_scan_interval_us * NSEC_PER_USEC; in timer_sysctl_get() [all …]
|
| H A D | machine.c | 739 nanoseconds_to_absolutetime(NSEC_PER_USEC * read_timeout_us, &read_timeout_abs); in io_increase_timeouts() 740 nanoseconds_to_absolutetime(NSEC_PER_USEC * write_timeout_us, &write_timeout_abs); in io_increase_timeouts() 1594 nanoseconds_to_absolutetime(NSEC_PER_USEC * READ_TIMEOUT1_US, &read_timeout1_abs); in ml_io_timeout_test() 1595 nanoseconds_to_absolutetime(NSEC_PER_USEC * WRITE_TIMEOUT1_US, &write_timeout1_abs); in ml_io_timeout_test() 1596 nanoseconds_to_absolutetime(NSEC_PER_USEC * READ_TIMEOUT2_US, &read_timeout2_abs); in ml_io_timeout_test() 1597 nanoseconds_to_absolutetime(NSEC_PER_USEC * WRITE_TIMEOUT2_US, &write_timeout2_abs); in ml_io_timeout_test()
|
| H A D | test_lock.c | 34 nanoseconds_to_absolutetime(us * NSEC_PER_USEC, &t); in sane_us2abs() 476 } while (delta < (what + 50) * NSEC_PER_USEC); in smr_sleepable_stress_worker()
|
| H A D | sfi.c | 455 clock_interval_to_absolutetime_interval((uint32_t)window_usecs, NSEC_PER_USEC, &interval); in sfi_set_window() 625 clock_interval_to_absolutetime_interval((uint32_t)offtime_usecs, NSEC_PER_USEC, &interval); in sfi_set_class_offtime()
|
| /xnu-11215.61.5/osfmk/arm/ |
| H A D | arm_timer.c | 278 .idle_entry_timer_processing_hdeadline_threshold_ns = 5000ULL * NSEC_PER_USEC, 279 .interrupt_timer_coalescing_ilat_threshold_ns = 30ULL * NSEC_PER_USEC,
|
| /xnu-11215.61.5/libsyscall/wrappers/ |
| H A D | mach_get_times.c | 81 tp->tv_nsec = tv.tv_usec * NSEC_PER_USEC; in mach_get_times()
|
| /xnu-11215.61.5/tests/sched/sched_test_harness/ |
| H A D | sched_runqueue_harness.c | 28 timestamp * _timebase_info.numer / _timebase_info.denom / NSEC_PER_USEC); in set_mock_time() 42 increment_mock_time((us * NSEC_PER_USEC) * _timebase_info.denom / _timebase_info.numer); in increment_mock_time_us()
|
| /xnu-11215.61.5/osfmk/mach/ |
| H A D | clock_types.h | 84 #define NSEC_PER_USEC 1000ull /* nanoseconds per microsecond */ macro
|
| /xnu-11215.61.5/bsd/skywalk/mem/ |
| H A D | skmem_slab.c | 244 (boff * NSEC_PER_USEC), &boff_total)) { in skmem_slab_alloc_locked() 267 (boff_total / NSEC_PER_USEC), retries, in skmem_slab_alloc_locked() 285 boff, (boff_total / NSEC_PER_USEC), retries); in skmem_slab_alloc_locked() 288 delay((uint32_t)boff * NSEC_PER_USEC); in skmem_slab_alloc_locked()
|
| /xnu-11215.61.5/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-11215.61.5/bsd/net/ |
| H A D | devtimer.c | 88 clock_interval_to_absolutetime_interval(tv.tv_usec, NSEC_PER_USEC, in timeval_to_absolutetime()
|
| /xnu-11215.61.5/osfmk/arm64/ |
| H A D | machine_routines.c | 149 #define kDeferredIPITimerDefault (64 * NSEC_PER_USEC) /* in nanoseconds */ 687 lto_timeout_ns = slto * NSEC_PER_USEC; in ml_init_lock_timeout() 695 os_atomic_store(&LockTimeOutUsec, lto_timeout_ns / NSEC_PER_USEC, relaxed); in ml_init_lock_timeout() 698 nanoseconds_to_absolutetime(slto * NSEC_PER_USEC, <o_abstime); in ml_init_lock_timeout() 710 nanoseconds_to_absolutetime(mtxspin * NSEC_PER_USEC, &mtx_abstime); in ml_init_lock_timeout() 728 nanoseconds_to_absolutetime(maxwfeus * NSEC_PER_USEC, &ml_wfe_hint_max_interval); in ml_init_lock_timeout()
|
| /xnu-11215.61.5/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,
|
| /xnu-11215.61.5/osfmk/x86_64/ |
| H A D | loose_ends.c | 304 uint64_t trace_phy_read_delay = 50 * NSEC_PER_USEC; 305 uint64_t trace_phy_write_delay = 50 * NSEC_PER_USEC;
|
| /xnu-11215.61.5/pexpert/arm/ |
| H A D | pe_serial.c | 607 …nanoseconds_to_absolutetime(DOCKCHANNEL_WR_MAX_STALL_US * NSEC_PER_USEC, &dockchannel_stall_grace); in dockchannel_init() 966 nanoseconds_to_absolutetime(1500 * NSEC_PER_USEC, &timeout_interval); in serial_interrupt_deadline()
|
| /xnu-11215.61.5/tools/tests/zero-to-n/ |
| H A D | zero-to-n.c | 349 uint64_t sleep_at_time = ctime + nanos_to_abs(arc4random_uniform(sleep_us * NSEC_PER_USEC) + 1); in churn_thread() 357 sleep_at_time = ctime + nanos_to_abs(arc4random_uniform(sleep_us * NSEC_PER_USEC) + 1); in churn_thread() 1199 g_iteration_sleeptime_us += threads_per_core * (g_each_spin_duration_ns / NSEC_PER_USEC); in main() 1202 g_iteration_sleeptime_us += g_one_long_spin_length_ns / NSEC_PER_USEC; in main()
|
| /xnu-11215.61.5/tests/sched/ |
| H A D | overloaded_runqueue.c | 240 INTERRUPT_DISABLE_TIMEOUT_NS = 500 * NSEC_PER_USEC; // 500 microseconds
|
| /xnu-11215.61.5/pexpert/arm/hwtrace/ |
| H A D | hwtrace.c | 306 nanoseconds_to_absolutetime(command_buffer->delay_us * NSEC_PER_USEC, &deadline); in pe_run_debug_command()
|
| /xnu-11215.61.5/osfmk/ipc/ |
| H A D | ipc_mqueue.c | 499 clock_interval_to_deadline(send_timeout, 1000 * NSEC_PER_USEC, &deadline); in ipc_mqueue_send_locked() 1079 clock_interval_to_deadline(rcv_timeout, 1000 * NSEC_PER_USEC, &deadline); in ipc_mqueue_receive_on_thread_and_unlock()
|