Home
last modified time | relevance | path

Searched refs:NSEC_PER_MSEC (Results 1 – 25 of 50) sorted by relevance

12

/xnu-11215.61.5/osfmk/arm/
H A Darm_timer.c280 .timer_resort_threshold_ns = 50 * NSEC_PER_MSEC,
287 .timer_coalesce_bg_ns_max = 100 * NSEC_PER_MSEC,
288 .timer_coalesce_kt_ns_max = 1 * NSEC_PER_MSEC,
289 .timer_coalesce_fp_ns_max = 1 * NSEC_PER_MSEC,
290 .timer_coalesce_ts_ns_max = 1 * NSEC_PER_MSEC,
293 .latency_qos_ns_max = {1 * NSEC_PER_MSEC, 5 * NSEC_PER_MSEC, 20 * NSEC_PER_MSEC,
294 75 * NSEC_PER_MSEC, 1 * NSEC_PER_MSEC, 1 * NSEC_PER_MSEC},
298 .latency_qos_ns_max = {1 * NSEC_PER_MSEC, 5 * NSEC_PER_MSEC, 20 * NSEC_PER_MSEC,
299 75 * NSEC_PER_MSEC, 10000 * NSEC_PER_MSEC, 10000 * NSEC_PER_MSEC},
/xnu-11215.61.5/osfmk/i386/
H A Di386_timer.c313 #define TIMER_RESORT_THRESHOLD_ABSTIME (50 * NSEC_PER_MSEC)
443 .timer_resort_threshold_ns = 50 * NSEC_PER_MSEC,
450 .timer_coalesce_bg_ns_max = 100 * NSEC_PER_MSEC,
451 .timer_coalesce_kt_ns_max = 1 * NSEC_PER_MSEC,
452 .timer_coalesce_fp_ns_max = 1 * NSEC_PER_MSEC,
453 .timer_coalesce_ts_ns_max = 1 * NSEC_PER_MSEC,
455 .latency_qos_ns_max = {1 * NSEC_PER_MSEC, 5 * NSEC_PER_MSEC, 20 * NSEC_PER_MSEC,
456 75 * NSEC_PER_MSEC, 10000 * NSEC_PER_MSEC, 10000 * NSEC_PER_MSEC},
H A Dlapic_native.c1065 (mach_absolute_time() - now) < (10 * NSEC_PER_MSEC)) { in lapic_send_nmi()
/xnu-11215.61.5/osfmk/tests/
H A Dtest_thread_call.c123 delay_for_interval(10, NSEC_PER_MSEC); in test_once_thread_call()
186 clock_interval_to_deadline(10, NSEC_PER_MSEC, &deadline); in test_signal_thread_call()
191 delay_for_interval(50, NSEC_PER_MSEC); in test_signal_thread_call()
/xnu-11215.61.5/osfmk/kperf/
H A Dkptimer.c117 [KTPL_BG] = 1 * NSEC_PER_MSEC,
118 [KTPL_FG_PET] = 1 * NSEC_PER_MSEC,
119 [KTPL_BG_PET] = 1 * NSEC_PER_MSEC,
122 [KTPL_BG] = 1 * NSEC_PER_MSEC,
123 [KTPL_FG_PET] = 1 * NSEC_PER_MSEC,
124 [KTPL_BG_PET] = 1 * NSEC_PER_MSEC,
/xnu-11215.61.5/tests/ktrace/
H A Dkperf_helpers.c38 kperf_ns_to_ticks(period_ms * NSEC_PER_MSEC)), NULL); in configure_kperf_stacks_timer()
/xnu-11215.61.5/osfmk/x86_64/
H A Dmachine_remote_time.c44 #define DELAY_INTERVAL_NS (50 * NSEC_PER_MSEC)
/xnu-11215.61.5/osfmk/mach/
H A Dclock_types.h87 #define NSEC_PER_MSEC 1000000ull /* nanoseconds per millisecond */ macro
/xnu-11215.61.5/bsd/net/pktsched/
H A Dpktsched_netem.c982 NSEC_PER_MSEC, &abs_interval); in latency_event()
1281 clock_interval_to_deadline(delay_ms, NSEC_PER_MSEC, &deadline); in netem_output_thread_cont()
1307 clock_interval_to_deadline(1, NSEC_PER_MSEC, &wakeup); in netem_output_thread_func()
1351 uint64_t f = (1 * NSEC_PER_MSEC); /* 1 ms */ in netem_destroy()
1352 uint64_t s = (1000 * NSEC_PER_MSEC); /* 1 sec */ in netem_destroy()
/xnu-11215.61.5/tests/
H A Dkqueue_timer_tests.c420 test_absolute_kevent((int)nanos_to_abs(10 * NSEC_PER_MSEC), NOTE_MACHTIME);
433 test_oneshot_kevent((int)nanos_to_abs(10 * NSEC_PER_MSEC), NOTE_MACHTIME);
H A Dmach_continuous_time.c293 …T_EXPECT_LE(llabs((long long)absolute - (long long)approximate), (long long)(25 * NSEC_PER_MSEC), …
H A Dturnstile_multihop.c151 uint64_t end = start + nanoseconds_to_absolutetime(900ULL * NSEC_PER_MSEC); in sched_load_thread()
H A Dnet_tuntests.c996 struct timespec to = { 0, 100 * NSEC_PER_MSEC }; // 100 ms in xfer_1_packet_singly()
1084 struct timespec to = { 0, 100 * NSEC_PER_MSEC }; // 100 ms in xfer_1_packet_together()
/xnu-11215.61.5/osfmk/kern/
H A Dexclaves_sensor.c51 #define EXCLAVES_EIC_MIN_SENSOR_TIME (3100 * NSEC_PER_MSEC) /* 3.1 seconds */
311 nanoseconds_to_absolutetime(50 * NSEC_PER_MSEC, leeway); in do_min_on_time()
H A Dsyscall_subr.c206 uint32_t scale_factor = NSEC_PER_MSEC; in thread_switch()
463 clock_interval_to_absolutetime_interval(interval, NSEC_PER_MSEC, &abstime); in thread_depress_ms()
H A Dtimer_call.c1586 longterm * NSEC_PER_MSEC; in timer_longterm_init()
1590 tlp->threshold.interval / NSEC_PER_MSEC); in timer_longterm_init()
1592 tlp->threshold.interval / NSEC_PER_MSEC); in timer_longterm_init()
1626 0 : tlp->threshold.interval / NSEC_PER_MSEC; in timer_sysctl_get()
1732 tlp->threshold.interval = value * NSEC_PER_MSEC; in timer_sysctl_set_threshold()
H A Dtest_lock.c465 delay_for_interval(1, NSEC_PER_MSEC); in smr_sleepable_stress_worker()
/xnu-11215.61.5/osfmk/arm64/
H A Dcpu.c241 if ((delta / NSEC_PER_MSEC) > timeout_ms) { in arm64_ipi_test()
255 if ((delta / NSEC_PER_MSEC) > timeout_ms) { in arm64_ipi_test()
1190 nanoseconds_to_absolutetime(((wfi >> 16) & 0xFFFF) * NSEC_PER_MSEC, &wfi_delay); in cpu_machine_idle_init()
/xnu-11215.61.5/bsd/skywalk/nexus/netif/
H A Dnx_netif_mit.c603 clock_interval_to_deadline(1, NSEC_PER_MSEC, in nx_netif_mit_s_thread_cont()
720 clock_interval_to_deadline(1, NSEC_PER_MSEC, in nx_netif_mit_thread_cont()
/xnu-11215.61.5/tests/cpu_counters/
H A Dkpc_tests.c554 PERIODIC_CPU_COUNT_MS * NSEC_PER_MSEC),
555 PERIODIC_CPU_COUNT_MS * NSEC_PER_MSEC, 0);
/xnu-11215.61.5/iokit/Kernel/
H A DIOPMrootDomain.cpp960 millis = nano / NSEC_PER_MSEC; in halt_log_enter()
991 millis = nano / NSEC_PER_MSEC; in IOSystemShutdownNotification()
1004 millis = nano / NSEC_PER_MSEC; in IOSystemShutdownNotification()
1184 return (UInt32)(nano / NSEC_PER_MSEC); in computeDeltaTimeMS()
2564 msec_since_wake = nsec_since_wake / NSEC_PER_MSEC; in startIdleSleepTimer()
4293 ((int)((nsec) / NSEC_PER_MSEC)));
6823 ((int)((nsec) / NSEC_PER_MSEC)));
9128 fullWakeReason, ((int)((nsec) / NSEC_PER_MSEC)));
9304 IOLog("PMStats: Hibernate write took %qd ms\n", delta / NSEC_PER_MSEC);
9316 IOLog("PMStats: Hibernate read took %qd ms\n", delta / NSEC_PER_MSEC);
[all …]
/xnu-11215.61.5/bsd/net/classq/
H A Dclassq_fq_codel.c91 static uint64_t l4s_min_delay_threshold = 20 * NSEC_PER_MSEC; /* 20 ms */
H A Dclassq_subr.c785 ival = pktsched_nsecs_to_abstime(10 * NSEC_PER_MSEC); /* 10ms */ in ifclassq_tbr_set()
/xnu-11215.61.5/bsd/netinet/
H A Dmptcp_usrreq.c1845 nanoseconds = nanoseconds - (mptcp_expected_progress_headstart * NSEC_PER_MSEC); in mptcp_setopt()
1857 time_now_nanoseconds > nanoseconds - (mptcp_expected_progress_headstart * NSEC_PER_MSEC)) { in mptcp_setopt()
/xnu-11215.61.5/bsd/kern/
H A Dkern_lockf.c638 .tv_nsec = 2 * NSEC_PER_MSEC, in lf_setlock()

12