/kernel/linux/linux-5.10/tools/testing/selftests/timers/ |
H A D | valid-adjtimex.c | 38 #define USEC_PER_SEC 1000000LL macro 213 tmx.time.tv_sec = offset / USEC_PER_SEC; in set_offset() 214 tmx.time.tv_usec = offset % USEC_PER_SEC; in set_offset() 218 tmx.time.tv_usec += USEC_PER_SEC; in set_offset() 278 if (set_offset(USEC_PER_SEC - 1, 0)) in validate_set_offset() 281 if (set_offset(-USEC_PER_SEC + 1, 0)) in validate_set_offset() 284 if (set_offset(-USEC_PER_SEC - 1, 0)) in validate_set_offset() 287 if (set_offset(5 * USEC_PER_SEC, 0)) in validate_set_offset() 290 if (set_offset(-5 * USEC_PER_SEC, 0)) in validate_set_offset() 293 if (set_offset(5 * USEC_PER_SEC in validate_set_offset() [all...] |
H A D | adjtick.c | 31 #define USEC_PER_SEC 1000000 macro 185 systick = USEC_PER_SEC/sysconf(_SC_CLK_TCK); in main()
|
/kernel/linux/linux-6.6/tools/testing/selftests/timers/ |
H A D | valid-adjtimex.c | 38 #define USEC_PER_SEC 1000000LL macro 213 tmx.time.tv_sec = offset / USEC_PER_SEC; in set_offset() 214 tmx.time.tv_usec = offset % USEC_PER_SEC; in set_offset() 218 tmx.time.tv_usec += USEC_PER_SEC; in set_offset() 278 if (set_offset(USEC_PER_SEC - 1, 0)) in validate_set_offset() 281 if (set_offset(-USEC_PER_SEC + 1, 0)) in validate_set_offset() 284 if (set_offset(-USEC_PER_SEC - 1, 0)) in validate_set_offset() 287 if (set_offset(5 * USEC_PER_SEC, 0)) in validate_set_offset() 290 if (set_offset(-5 * USEC_PER_SEC, 0)) in validate_set_offset() 293 if (set_offset(5 * USEC_PER_SEC in validate_set_offset() [all...] |
H A D | adjtick.c | 31 #define USEC_PER_SEC 1000000 macro 185 systick = USEC_PER_SEC/sysconf(_SC_CLK_TCK); in main()
|
/kernel/linux/linux-5.10/include/linux/ |
H A D | jiffies.h | 65 #define TICK_USEC ((USEC_PER_SEC + HZ/2) / HZ) 375 #if !(USEC_PER_SEC % HZ) 378 return (u + (USEC_PER_SEC / HZ) - 1) / (USEC_PER_SEC / HZ); in _usecs_to_jiffies()
|
/kernel/linux/linux-6.6/include/linux/ |
H A D | jiffies.h | 65 #define TICK_USEC ((USEC_PER_SEC + HZ/2) / HZ) 527 #if !(USEC_PER_SEC % HZ) 530 return (u + (USEC_PER_SEC / HZ) - 1) / (USEC_PER_SEC / HZ); in _usecs_to_jiffies()
|
/kernel/linux/linux-5.10/drivers/clocksource/ |
H A D | timer-meson6.c | 117 meson6_clkevt_time_setup(USEC_PER_SEC / HZ - 1); in meson6_set_periodic() 177 sched_clock_register(meson6_timer_sched_read, 32, USEC_PER_SEC); in meson6_timer_init() 201 clockevents_config_and_register(&meson6_clockevent, USEC_PER_SEC, in meson6_timer_init()
|
/kernel/linux/linux-6.6/drivers/clocksource/ |
H A D | timer-meson6.c | 117 meson6_clkevt_time_setup(USEC_PER_SEC / HZ - 1); in meson6_set_periodic() 177 sched_clock_register(meson6_timer_sched_read, 32, USEC_PER_SEC); in meson6_timer_init() 201 clockevents_config_and_register(&meson6_clockevent, USEC_PER_SEC, in meson6_timer_init()
|
/kernel/linux/linux-5.10/net/dccp/ccids/ |
H A D | ccid3.h | 33 #define TFRC_INITIAL_TIMEOUT (2 * USEC_PER_SEC) 43 * when using the constant t_delta = t_gran / 2 = %USEC_PER_SEC / (2 * HZ). 48 # define TFRC_T_DELTA (USEC_PER_SEC / (2 * HZ))
|
/kernel/linux/linux-6.6/tools/testing/selftests/bpf/progs/ |
H A D | tcp_ca_write_sk_pacing.c | 10 #define USEC_PER_SEC 1000000UL macro 46 ((tp->snd_cwnd * tp->mss_cache * USEC_PER_SEC) << 3) / in BPF_PROG()
|
/kernel/linux/linux-6.6/net/dccp/ccids/ |
H A D | ccid3.h | 33 #define TFRC_INITIAL_TIMEOUT (2 * USEC_PER_SEC) 43 * when using the constant t_delta = t_gran / 2 = %USEC_PER_SEC / (2 * HZ). 48 # define TFRC_T_DELTA (USEC_PER_SEC / (2 * HZ))
|
/kernel/linux/linux-5.10/tools/perf/bench/ |
H A D | sched-pipe.c | 155 result_usec = diff.tv_sec * USEC_PER_SEC; in bench_sched_pipe() 166 ((double)result_usec / (double)USEC_PER_SEC))); in bench_sched_pipe()
|
H A D | find-bit-bench.c | 85 runtime_us = diff.tv_sec * USEC_PER_SEC + diff.tv_usec; in do_for_each_set_bit() 99 runtime_us = diff.tv_sec * USEC_PER_SEC + diff.tv_usec; in do_for_each_set_bit()
|
/kernel/linux/linux-6.6/tools/perf/bench/ |
H A D | find-bit-bench.c | 87 runtime_us = diff.tv_sec * USEC_PER_SEC + diff.tv_usec; in do_for_each_set_bit() 103 runtime_us = diff.tv_sec * USEC_PER_SEC + diff.tv_usec; in do_for_each_set_bit()
|
H A D | sched-pipe.c | 155 result_usec = diff.tv_sec * USEC_PER_SEC; in bench_sched_pipe() 166 ((double)result_usec / (double)USEC_PER_SEC))); in bench_sched_pipe()
|
H A D | sched-seccomp-notify.c | 150 result_usec = diff.tv_sec * USEC_PER_SEC; in bench_sched_seccomp_notify() 161 ((double)result_usec / (double)USEC_PER_SEC))); in bench_sched_seccomp_notify()
|
/kernel/linux/linux-5.10/tools/include/linux/ |
H A D | time64.h | 9 #define USEC_PER_SEC 1000000L macro
|
/kernel/linux/linux-5.10/include/vdso/ |
H A D | time64.h | 10 #define USEC_PER_SEC 1000000L macro
|
/kernel/linux/linux-6.6/tools/include/linux/ |
H A D | time64.h | 9 #define USEC_PER_SEC 1000000L macro
|
/kernel/linux/linux-6.6/include/vdso/ |
H A D | time64.h | 10 #define USEC_PER_SEC 1000000L macro
|
/kernel/linux/linux-5.10/arch/s390/include/asm/ |
H A D | cpu_mf.h | 283 return (USEC_PER_SEC / freq) * qsi->cpu_speed; in freq_to_sample_rate() 289 return USEC_PER_SEC * qsi->cpu_speed / rate; in sample_rate_to_freq()
|
H A D | cputime.h | 15 #define CPUTIME_PER_SEC (CPUTIME_PER_USEC * USEC_PER_SEC)
|
/kernel/liteos_a/syscall/ |
H A D | misc_syscall.c | 186 #define USEC_PER_SEC 1000000 macro 190 time->tv_usec = (clk % CLOCKS_PER_SEC) * USEC_PER_SEC / CLOCKS_PER_SEC; in ConvertClocks()
|
/kernel/linux/linux-5.10/drivers/iio/adc/ |
H A D | ti-ads1015.c | 383 conv_time = DIV_ROUND_UP(USEC_PER_SEC, data->data_rate[dr_old]); in ads1015_get_adc_result() 384 conv_time += DIV_ROUND_UP(USEC_PER_SEC, data->data_rate[dr]); in ads1015_get_adc_result() 571 USEC_PER_SEC / data->data_rate[dr]; in ads1015_read_event() 573 *val = period / USEC_PER_SEC; in ads1015_read_event() 574 *val2 = period % USEC_PER_SEC; in ads1015_read_event() 614 period = val * USEC_PER_SEC + val2; in ads1015_write_event() 618 USEC_PER_SEC / data->data_rate[dr]) in ads1015_write_event()
|
/kernel/linux/linux-5.10/drivers/input/misc/ |
H A D | pmic8xxx-pwrkey.c | 349 if (kpd_delay > USEC_PER_SEC * 2 || kpd_delay < USEC_PER_SEC / 64) { in pmic8xxx_pwrkey_probe() 381 delay = (kpd_delay << 6) / USEC_PER_SEC; in pmic8xxx_pwrkey_probe()
|