/kernel/linux/linux-5.10/lib/dim/ |
H A D | net_dim.c | 21 {.usec = 1, .pkts = NET_DIM_DEFAULT_RX_CQ_PKTS_FROM_EQE,}, \ 22 {.usec = 8, .pkts = NET_DIM_DEFAULT_RX_CQ_PKTS_FROM_EQE,}, \ 23 {.usec = 64, .pkts = NET_DIM_DEFAULT_RX_CQ_PKTS_FROM_EQE,}, \ 24 {.usec = 128, .pkts = NET_DIM_DEFAULT_RX_CQ_PKTS_FROM_EQE,}, \ 25 {.usec = 256, .pkts = NET_DIM_DEFAULT_RX_CQ_PKTS_FROM_EQE,} \ 29 {.usec = 2, .pkts = 256,}, \ 30 {.usec = 8, .pkts = 128,}, \ 31 {.usec = 16, .pkts = 64,}, \ 32 {.usec = 32, .pkts = 64,}, \ 33 {.usec [all...] |
/kernel/linux/linux-6.6/lib/dim/ |
H A D | net_dim.c | 21 {.usec = 1, .pkts = NET_DIM_DEFAULT_RX_CQ_PKTS_FROM_EQE,}, \ 22 {.usec = 8, .pkts = NET_DIM_DEFAULT_RX_CQ_PKTS_FROM_EQE,}, \ 23 {.usec = 64, .pkts = NET_DIM_DEFAULT_RX_CQ_PKTS_FROM_EQE,}, \ 24 {.usec = 128, .pkts = NET_DIM_DEFAULT_RX_CQ_PKTS_FROM_EQE,}, \ 25 {.usec = 256, .pkts = NET_DIM_DEFAULT_RX_CQ_PKTS_FROM_EQE,} \ 29 {.usec = 2, .pkts = 256,}, \ 30 {.usec = 8, .pkts = 128,}, \ 31 {.usec = 16, .pkts = 64,}, \ 32 {.usec = 32, .pkts = 64,}, \ 33 {.usec [all...] |
/third_party/ltp/testcases/kernel/io/aio/ |
H A D | aio01.c | 99 int i, j, sec, usec; in main() local 147 usec = etv.tv_usec - stv.tv_usec; in main() 148 if (usec < 0) { in main() 149 usec += 1000000; in main() 153 nr, sec, usec); in main() 178 usec = etv.tv_usec - stv.tv_usec; in main() 179 if (usec < 0) { in main() 180 usec += 1000000; in main() 184 nr, sec, usec); in main() 209 usec in main() [all...] |
/third_party/wpa_supplicant/wpa_supplicant-2.9/src/utils/ |
H A D | os.h | 16 * os_sleep - Sleep (sec, usec) 18 * @usec: Number of microseconds to sleep 20 void os_sleep(os_time_t sec, os_time_t usec); 24 os_time_t usec; member 29 os_time_t usec; member 33 * os_get_time - Get current time (sec, usec) 40 * os_get_reltime - Get relative time (sec, usec) 52 (a->sec == b->sec && a->usec < b->usec); in os_time_before() 60 res->usec in os_time_sub() [all...] |
H A D | os_win32.c | 17 void os_sleep(os_time_t sec, os_time_t usec) in os_sleep() argument 21 if (usec) in os_sleep() 22 Sleep(usec / 1000); in os_sleep() 45 t->usec = (os_time_t) (tt % 1000000); in os_get_time() 57 t->usec = now.usec; in os_get_reltime()
|
/third_party/wpa_supplicant/wpa_supplicant-2.9_standard/src/utils/ |
H A D | os.h | 16 * os_sleep - Sleep (sec, usec) 18 * @usec: Number of microseconds to sleep 20 void os_sleep(os_time_t sec, os_time_t usec); 24 os_time_t usec; member 29 os_time_t usec; member 33 * os_get_time - Get current time (sec, usec) 40 * os_get_reltime - Get relative time (sec, usec) 52 (a->sec == b->sec && a->usec < b->usec); in os_time_before() 60 res->usec in os_time_sub() [all...] |
H A D | os_win32.c | 17 void os_sleep(os_time_t sec, os_time_t usec) in os_sleep() argument 21 if (usec) in os_sleep() 22 Sleep(usec / 1000); in os_sleep() 45 t->usec = (os_time_t) (tt % 1000000); in os_get_time() 57 t->usec = now.usec; in os_get_reltime()
|
/third_party/wpa_supplicant/wpa_supplicant-2.9_standard/src/ap/ |
H A D | bss_load.c | 20 unsigned int *sec, unsigned int *usec) in get_bss_load_update_timeout() 36 *usec = (update_timeout % 1000) * 1024; in get_bss_load_update_timeout() 45 unsigned int sec, usec; in update_channel_utilization() local 60 if (get_bss_load_update_timeout(hapd, &sec, &usec) < 0) in update_channel_utilization() 78 eloop_register_timeout(sec, usec, update_channel_utilization, hapd, in update_channel_utilization() 85 unsigned int sec, usec; in bss_load_update_init() local 87 if (get_bss_load_update_timeout(hapd, &sec, &usec) < 0) in bss_load_update_init() 90 eloop_register_timeout(sec, usec, update_channel_utilization, hapd, in bss_load_update_init() 19 get_bss_load_update_timeout(struct hostapd_data *hapd, unsigned int *sec, unsigned int *usec) get_bss_load_update_timeout() argument
|
H A D | airtime_policy.c | 38 unsigned int *usec) in get_airtime_policy_update_timeout() 50 *usec = (update_int % 1000) * 1000; in get_airtime_policy_update_timeout() 61 sta->backlogged_until.usec += hapd->iconf->airtime_update_interval * in set_new_backlog_time() 63 while (sta->backlogged_until.usec >= 1000000) { in set_new_backlog_time() 65 sta->backlogged_until.usec -= 1000000; in set_new_backlog_time() 137 unsigned int sec, usec; in update_airtime_weights() local 222 if (get_airtime_policy_update_timeout(iface, &sec, &usec) < 0) in update_airtime_weights() 225 eloop_register_timeout(sec, usec, update_airtime_weights, iface, in update_airtime_weights() 257 unsigned int sec, usec; in airtime_policy_update_init() local 262 if (get_airtime_policy_update_timeout(iface, &sec, &usec) < in airtime_policy_update_init() 36 get_airtime_policy_update_timeout(struct hostapd_iface *iface, unsigned int *sec, unsigned int *usec) get_airtime_policy_update_timeout() argument [all...] |
/third_party/wpa_supplicant/wpa_supplicant-2.9/src/ap/ |
H A D | bss_load.c | 20 unsigned int *sec, unsigned int *usec) in get_bss_load_update_timeout() 36 *usec = (update_timeout % 1000) * 1024; in get_bss_load_update_timeout() 45 unsigned int sec, usec; in update_channel_utilization() local 60 if (get_bss_load_update_timeout(hapd, &sec, &usec) < 0) in update_channel_utilization() 78 eloop_register_timeout(sec, usec, update_channel_utilization, hapd, in update_channel_utilization() 85 unsigned int sec, usec; in bss_load_update_init() local 87 if (get_bss_load_update_timeout(hapd, &sec, &usec) < 0) in bss_load_update_init() 90 eloop_register_timeout(sec, usec, update_channel_utilization, hapd, in bss_load_update_init() 19 get_bss_load_update_timeout(struct hostapd_data *hapd, unsigned int *sec, unsigned int *usec) get_bss_load_update_timeout() argument
|
H A D | airtime_policy.c | 38 unsigned int *usec) in get_airtime_policy_update_timeout() 50 *usec = (update_int % 1000) * 1000; in get_airtime_policy_update_timeout() 61 sta->backlogged_until.usec += hapd->iconf->airtime_update_interval * in set_new_backlog_time() 63 while (sta->backlogged_until.usec >= 1000000) { in set_new_backlog_time() 65 sta->backlogged_until.usec -= 1000000; in set_new_backlog_time() 133 unsigned int sec, usec; in update_airtime_weights() local 218 if (get_airtime_policy_update_timeout(iface, &sec, &usec) < 0) in update_airtime_weights() 221 eloop_register_timeout(sec, usec, update_airtime_weights, iface, in update_airtime_weights() 253 unsigned int sec, usec; in airtime_policy_update_init() local 258 if (get_airtime_policy_update_timeout(iface, &sec, &usec) < in airtime_policy_update_init() 36 get_airtime_policy_update_timeout(struct hostapd_iface *iface, unsigned int *sec, unsigned int *usec) get_airtime_policy_update_timeout() argument [all...] |
/third_party/libdrm/tests/ |
H A D | drmsl.c | 68 double usec; in do_time() local 98 usec = (double)(stop.tv_sec * 1000000 + stop.tv_usec in do_time() 101 printf("%0.2f microseconds for list length %d\n", usec, size); in do_time() 106 return usec; in do_time() 139 double usec, usec2, usec3, usec4; in main() local 170 usec = do_time(100, 10000); in main() 173 1000.0/100.0, usec2 / usec); in main() 177 10000.0/100.0, usec3 / usec); in main() 181 100000.0/100.0, usec4 / usec); in main()
|
/kernel/linux/linux-5.10/drivers/leds/ |
H A D | leds-ti-lmu-common.c | 57 static unsigned int ti_lmu_common_convert_ramp_to_index(unsigned int usec) in ti_lmu_common_convert_ramp_to_index() argument 62 if (usec <= ramp_table[0]) in ti_lmu_common_convert_ramp_to_index() 65 if (usec > ramp_table[size - 1]) in ti_lmu_common_convert_ramp_to_index() 69 if (usec == ramp_table[i]) in ti_lmu_common_convert_ramp_to_index() 73 if (usec > ramp_table[i - 1] && usec < ramp_table[i]) { in ti_lmu_common_convert_ramp_to_index() 74 if (usec - ramp_table[i - 1] < ramp_table[i] - usec) in ti_lmu_common_convert_ramp_to_index()
|
/kernel/linux/linux-6.6/drivers/leds/ |
H A D | leds-ti-lmu-common.c | 57 static unsigned int ti_lmu_common_convert_ramp_to_index(unsigned int usec) in ti_lmu_common_convert_ramp_to_index() argument 62 if (usec <= ramp_table[0]) in ti_lmu_common_convert_ramp_to_index() 65 if (usec > ramp_table[size - 1]) in ti_lmu_common_convert_ramp_to_index() 69 if (usec == ramp_table[i]) in ti_lmu_common_convert_ramp_to_index() 73 if (usec > ramp_table[i - 1] && usec < ramp_table[i]) { in ti_lmu_common_convert_ramp_to_index() 74 if (usec - ramp_table[i - 1] < ramp_table[i] - usec) in ti_lmu_common_convert_ramp_to_index()
|
/third_party/FreeBSD/sys/compat/linuxkpi/common/src/ |
H A D | linux_hrtimer.c | 113 hrtimer->_softexpires.tv.usec) * HRTIMER_PERUS); in HrtimerHandlerRunAddNode() 143 timer._softexpires.tv.usec = hrtimer->_softexpires.tv.usec; in HrtimerHandlerRun() 190 (curHandler->_softexpires.tv.usec == timer->_softexpires.tv.usec)) { in GetHandlerNodePosition() 211 (curHandler->_softexpires.tv.usec == timer->_softexpires.tv.usec)) { in GetHrtimerNodePosition() 229 hrtimer->set_time_reload = (UINT32)((time.tv.sec * US_PER_SECOND + time.tv.usec) * HRTIMER_PERUS); in HrtimerListNodeInit() 278 curNode->set_time_reload = (UINT32)((time.tv.sec * US_PER_SECOND + time.tv.usec) * HRTIMER_PERUS); in ChangeNodePosition() 294 (curHandler->_softexpires.tv.usec in CancelHandlerNode() [all...] |
/third_party/ffmpeg/libavutil/ |
H A D | time.c | 84 int av_usleep(unsigned usec) in av_usleep() argument 87 struct timespec ts = { usec / 1000000, usec % 1000000 * 1000 }; in av_usleep() 91 return usleep(usec); in av_usleep() 93 Sleep(usec / 1000); in av_usleep()
|
/third_party/ltp/testcases/kernel/controllers/cgroup/ |
H A D | cgroup_regression_6_2.c | 23 int usec; in main() local 26 usec = atoi(argv[1]); in main() 28 usec = DEFAULT_USEC; in main() 31 usleep(usec); in main()
|
/third_party/ltp/lib/ |
H A D | tst_timer_test.c | 22 static int (*sample)(int clk_id, long long usec); 254 void do_timer_test(long long usec, unsigned int nsamples) in do_timer_test() argument 259 long long threshold = compute_threshold(usec, keep_samples); in do_timer_test() 265 scall, usec, nsamples, 1.00 * threshold / (keep_samples)); in do_timer_test() 269 if (sample(CLOCK_MONOTONIC, usec)) { in do_timer_test() 279 for (i = 0; samples[i] > 10 * usec && i < (int)nsamples; i++) { in do_timer_test() 289 for (i = nsamples - 1; samples[i] < usec && i > -1; i--); in do_timer_test() 313 } else if (trunc_mean > (nsamples - discard) * usec + threshold) { in do_timer_test() 391 long long usec; member 405 do_timer_test(tcases[n].usec, tcase in timer_test_fn() [all...] |
/kernel/linux/linux-5.10/arch/xtensa/include/asm/ |
H A D | delay.h | 47 static inline void udelay(unsigned long usec) in udelay() argument 49 if (__builtin_constant_p(usec) && usec >= __MAX_UDELAY) in udelay() 52 __udelay(usec); in udelay()
|
/kernel/linux/linux-6.6/arch/xtensa/include/asm/ |
H A D | delay.h | 47 static inline void udelay(unsigned long usec) in udelay() argument 49 if (__builtin_constant_p(usec) && usec >= __MAX_UDELAY) in udelay() 52 __udelay(usec); in udelay()
|
/third_party/eudev/src/shared/ |
H A D | time-util.c | 83 usec_t usec; in format_timespan() member 129 if (t < table[i].usec) in format_timespan() 135 a = t / table[i].usec; in format_timespan() 136 b = t % table[i].usec; in format_timespan() 144 for (cc = table[i].usec; cc > 1; cc /= 10) in format_timespan()
|
/kernel/liteos_m/testsuites/unittest/fuzz/src/unistd/ |
H A D | usleep_fuzz.c | 48 useconds_t usec; in UsleepFuzzTest() local 59 usec = (*(useconds_t *)DT_SetGetS64(&g_element[0], DEFAULT_USECONDS_VALUE)) % USECONDS_MODE_VALUE; in UsleepFuzzTest() 60 (void)usleep(usec); in UsleepFuzzTest()
|
/third_party/pulseaudio/src/tests/ |
H A D | rtstutter.c | 76 uint64_t usec; in work() local 81 usec = in work() 85 pa_log_notice("CPU%i: Freezing for %ims", PA_PTR_TO_UINT(p), (int) (usec/PA_USEC_PER_MSEC)); in work() 88 pa_timeval_add(&end, usec); in work()
|
/kernel/linux/linux-6.6/drivers/clocksource/ |
H A D | timer-tegra186.c | 88 struct clocksource usec; member 352 usec); in tegra186_timer_usec_read() 359 tegra->usec.name = "usec"; in tegra186_timer_usec_init() 360 tegra->usec.rating = 300; in tegra186_timer_usec_init() 361 tegra->usec.read = tegra186_timer_usec_read; in tegra186_timer_usec_init() 362 tegra->usec.mask = CLOCKSOURCE_MASK(32); in tegra186_timer_usec_init() 363 tegra->usec.flags = CLOCK_SOURCE_IS_CONTINUOUS; in tegra186_timer_usec_init() 365 return clocksource_register_hz(&tegra->usec, USEC_PER_SEC); in tegra186_timer_usec_init() 441 clocksource_unregister(&tegra->usec); in tegra186_timer_probe() [all...] |
/kernel/linux/linux-5.10/drivers/hv/ |
H A D | connection.c | 374 u32 usec = 1; in vmbus_post_msg() local 419 if (can_sleep && usec > 1000) in vmbus_post_msg() 420 msleep(usec / 1000); in vmbus_post_msg() 421 else if (usec < MAX_UDELAY_MS * 1000) in vmbus_post_msg() 422 udelay(usec); in vmbus_post_msg() 424 mdelay(usec / 1000); in vmbus_post_msg() 427 usec *= 2; in vmbus_post_msg()
|