Home
last modified time | relevance | path

Searched refs:USEC_PER_SEC (Results 1 – 25 of 35) sorted by relevance

12

/xnu-8792.41.9/tests/
H A Dntp_adjtime_29192647.c68 old_time_usec = (uint64_t)time.tv_sec * USEC_PER_SEC + (uint64_t)time.tv_nsec / 1000; in get_abs_to_us_scale_factor()
74 new_time_usec = (uint64_t)time.tv_sec * USEC_PER_SEC + (uint64_t)time.tv_nsec / 1000; in get_abs_to_us_scale_factor()
139 old_time_usec = (uint64_t)time.tv_sec * USEC_PER_SEC + (uint64_t)time.tv_nsec / 1000;
166 new_time_usec = (uint64_t)time.tv_sec * USEC_PER_SEC + (uint64_t)time.tv_nsec / 1000;
249 time1_usec = (uint64_t)time.tv_sec * USEC_PER_SEC + (uint64_t)time.tv_nsec / 1000;
255 time2_usec = (uint64_t)time.tv_sec * USEC_PER_SEC + (uint64_t)time.tv_nsec / 1000;
264 app = time_conv / USEC_PER_SEC; //sec elapsed
269 app = time_conv % USEC_PER_SEC;
271 time_delta += (app * (FREQ_PPM)) / USEC_PER_SEC;
324 time1_usec = (uint64_t)time.tv_sec * USEC_PER_SEC + (uint64_t)time.tv_nsec / 1000;
[all …]
H A Dkqueue_timer_tests.c49 timeout.tv_sec = (expected / USEC_PER_SEC) + 1; in do_simple_kevent()
50 timeout.tv_nsec = (expected % USEC_PER_SEC) * 1000; in do_simple_kevent()
68 elapsed_usecs = (after.tv_sec - before.tv_sec) * (int64_t)USEC_PER_SEC + in do_simple_kevent()
93 nowus = (uint64_t)tv.tv_sec * USEC_PER_SEC + (uint64_t)tv.tv_usec; in test_absolute_kevent()
103 timescale = USEC_PER_SEC; in test_absolute_kevent()
162 expected = (uint64_t)time * USEC_PER_SEC; in test_oneshot_kevent()
210 uint64_t test_duration_us = USEC_PER_SEC; /* 1 second */ in test_interval_kevent()
251 elapsed_usecs = (uint64_t)((after.tv_sec - before.tv_sec) * (int64_t)USEC_PER_SEC + in test_interval_kevent()
285 uint64_t test_duration_us = USEC_PER_SEC; /* 1 second */ in test_repeating_kevent()
H A Dmach_boottime_usec.c21 T_EXPECT_EQ((uint64_t)bt_tv.tv_sec * USEC_PER_SEC + (uint64_t)bt_tv.tv_usec, bt_usec, NULL);
H A Daqm_qdelay_utun.c43 } else if (n >= USEC_PER_SEC) { in nsec_to_str()
44 t = n / USEC_PER_SEC; in nsec_to_str()
H A Dkevent_continuous_time.c164 int64_t nowus = (int64_t)tv.tv_sec * USEC_PER_SEC + (int64_t)tv.tv_usec;
165 int64_t fire_at = (3 * USEC_PER_SEC) + nowus;
H A Dsched_cluster_bound_threads.c137 …uint64_t bound_usr_usec = bound_thread_info.user_time.seconds * USEC_PER_SEC + bound_thread_info.u…
H A Ddisk_mount_conditioner.c318 usleep(USEC_PER_SEC / 2); // might still be other I/O inflight
/xnu-8792.41.9/bsd/vfs/
H A Dvfs_disk_conditioner.c142 …= (uint64_t)(total_size / ((double)(info->read_throughput_mbps * 1024 * 1024 / 8) / USEC_PER_SEC)); in disk_conditioner_delay()
144 … (uint64_t)(total_size / ((double)(info->write_throughput_mbps * 1024 * 1024 / 8) / USEC_PER_SEC)); in disk_conditioner_delay()
153 delay_usec += DISK_SPINUP_SEC * USEC_PER_SEC; in disk_conditioner_delay()
170 if (elapsed.tv_sec * USEC_PER_SEC < delay_usec) { in disk_conditioner_delay()
171 delay_usec -= elapsed.tv_sec * USEC_PER_SEC; in disk_conditioner_delay()
/xnu-8792.41.9/osfmk/kern/
H A Dclock.c238 *microsecs = ((uint64_t)USEC_PER_SEC * (uint32_t)(_bt->frac >> 32)) >> 32; in bintime2usclock()
784 TIME_SUB(deltasecs, oldsecs, deltamicrosecs, oldmicrosecs, USEC_PER_SEC); in clock_set_calendar_microtime()
786 TIME_ADD(clock_boottime, deltasecs, clock_boottime_usec, deltamicrosecs, USEC_PER_SEC); in clock_set_calendar_microtime()
794 TIME_SUB(deltasecs, secs, deltamicrosecs, microsecs, USEC_PER_SEC); in clock_set_calendar_microtime()
796 TIME_SUB(clock_boottime, deltasecs, clock_boottime_usec, deltamicrosecs, USEC_PER_SEC); in clock_set_calendar_microtime()
812 commpage_value = clock_boottime * USEC_PER_SEC + clock_boottime_usec; in clock_set_calendar_microtime()
1097 TIME_SUB(utc_offset_secs, sys, utc_offset_microsecs, microsys, USEC_PER_SEC); in clock_initialize_calendar()
1106 commpage_update_boottime(clock_boottime * USEC_PER_SEC + clock_boottime_usec); in clock_initialize_calendar()
1123 OS_ANALYZER_SUPPRESS("82347749") monotonic_sec = monotonic_usec_total / (clock_sec_t)USEC_PER_SEC; in clock_initialize_calendar()
1124 monotonic_usec = monotonic_usec_total % (clock_usec_t)USEC_PER_SEC; in clock_initialize_calendar()
[all …]
H A Dcpu_quiesce.c88 #define CPU_CHECKIN_MIN_INTERVAL_MAX_US USEC_PER_SEC /* 1s */
H A Dkern_stackshot.c885 stackshot_microsecs = microsecs + (secs * USEC_PER_SEC); in kdp_snapshot_preflight()
2316 .user_usec = user_sec * USEC_PER_SEC + user_usec, in kcdata_record_thread_snapshot()
2317 .system_usec = system_sec * USEC_PER_SEC + system_usec, in kcdata_record_thread_snapshot()
2318 .runnable_usec = (uint64_t)runnable_time.seconds * USEC_PER_SEC + runnable_time.microseconds, in kcdata_record_thread_snapshot()
H A Dthread.c668 if (delay_us > USEC_PER_SEC) { in thread_terminate_self()
698 if (delay_us > USEC_PER_SEC) { in thread_terminate_self()
/xnu-8792.41.9/osfmk/mach/
H A Dclock_types.h85 #define USEC_PER_SEC 1000000ull /* microseconds per second */ macro
/xnu-8792.41.9/bsd/kern/
H A Dkern_ntptime.c683 ltw = (int64_t)delta->tv_sec * (int64_t)USEC_PER_SEC + delta->tv_usec; in kern_adjtime()
696 atv.tv_sec = (__darwin_time_t)(ltr / (int64_t)USEC_PER_SEC); in kern_adjtime()
697 atv.tv_usec = ltr % (int64_t)USEC_PER_SEC; in kern_adjtime()
699 atv.tv_usec += (suseconds_t)USEC_PER_SEC; in kern_adjtime()
/xnu-8792.41.9/osfmk/arm64/
H A Dmachine_routines.c615 if (mtxspin > USEC_PER_SEC >> 4) { in ml_init_lock_timeout()
616 mtxspin = USEC_PER_SEC >> 4; in ml_init_lock_timeout()
2177 } else if (events_per_sec > USEC_PER_SEC) { in wfe_timeout_configure()
2178 events_per_sec = USEC_PER_SEC; in wfe_timeout_configure()
2181 events_per_sec = USEC_PER_SEC; in wfe_timeout_configure()
/xnu-8792.41.9/osfmk/arm/
H A Drtclock.c141 rtclock_usec_divisor = divisor / USEC_PER_SEC; in timebase_callback()
/xnu-8792.41.9/osfmk/i386/
H A Dmachine_routines.c942 if (mtxspin > USEC_PER_SEC >> 4) { in ml_init_lock_timeout()
943 mtxspin = USEC_PER_SEC >> 4; in ml_init_lock_timeout()
/xnu-8792.41.9/bsd/skywalk/lib/
H A Dcuckoo_hashtable_test.c635 struct timespec ts = { 0, 100 * USEC_PER_SEC }; in cht_concurrent_tests()
652 struct timespec ts = { 0, 100 * USEC_PER_SEC }; in cht_concurrent_tests()
/xnu-8792.41.9/bsd/net/
H A Ddlil.h103 *(nsp) += ((tvp)->tv_sec * USEC_PER_SEC); \
/xnu-8792.41.9/osfmk/arm/commpage/
H A Dcommpage.c188 commpage_update_boottime(secs * USEC_PER_SEC + microsecs); in commpage_populate()
/xnu-8792.41.9/osfmk/i386/commpage/
H A Dcommpage.c438 commpage_update_boottime(secs * USEC_PER_SEC + microsecs); in commpage_boottime_init()
/xnu-8792.41.9/bsd/skywalk/mem/
H A Dskmem_test.c1896 struct timespec ts = { .tv_sec = 0, .tv_nsec = 100 * USEC_PER_SEC }; in skmem_advanced_tests()
1912 struct timespec ts = { .tv_sec = 0, .tv_nsec = 100 * USEC_PER_SEC }; in skmem_advanced_tests()
/xnu-8792.41.9/iokit/Kernel/
H A DIOPlatformExpert.cpp1377 assert(usecs < USEC_PER_SEC); in PESetUTCTimeOfDay()
H A DIOServicePM.cpp3866 getPMRootDomain()->reset_watchdog_timer(this, maxTimeout / USEC_PER_SEC + 1); in notifyInterestedDriversDone()
4488 getPMRootDomain()->reset_watchdog_timer(this, result / USEC_PER_SEC + 1); in notifyControllingDriverDone()
6201 getPMRootDomain()->reset_watchdog_timer(this, context.maxTimeRequested / USEC_PER_SEC + 1); in tellClientsWithResponse()
/xnu-8792.41.9/bsd/skywalk/nexus/netif/
H A Dnx_netif.c3556 ((sec * USEC_PER_SEC + usec) * rate / USEC_PER_SEC);

12