/openbmc/linux/tools/testing/selftests/timers/ |
H A D | valid-adjtimex.c | 35 #define USEC_PER_SEC 1000000LL macro 212 tmx.time.tv_sec = offset / USEC_PER_SEC; in set_offset() 213 tmx.time.tv_usec = offset % USEC_PER_SEC; in set_offset() 217 tmx.time.tv_usec += USEC_PER_SEC; in set_offset() 277 if (set_offset(USEC_PER_SEC - 1, 0)) in validate_set_offset() 280 if (set_offset(-USEC_PER_SEC + 1, 0)) in validate_set_offset() 283 if (set_offset(-USEC_PER_SEC - 1, 0)) in validate_set_offset() 286 if (set_offset(5 * USEC_PER_SEC, 0)) in validate_set_offset() 289 if (set_offset(-5 * USEC_PER_SEC, 0)) in validate_set_offset() 292 if (set_offset(5 * USEC_PER_SEC + USEC_PER_SEC / 2, 0)) 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()
|
/openbmc/linux/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()
|
/openbmc/linux/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()
|
/openbmc/debug-trigger/ |
H A D | main.c | 403 #define USEC_PER_SEC (MSEC_PER_SEC * 1000U) in dbus_source_poll() macro 404 #define NSEC_PER_SEC (USEC_PER_SEC * 1000U) in dbus_source_poll() 405 #define NSEC_PER_USEC (NSEC_PER_SEC / USEC_PER_SEC) in dbus_source_poll() 406 tsto.tv_sec = dbusto / USEC_PER_SEC; in dbus_source_poll() 407 tsto.tv_nsec = (dbusto % USEC_PER_SEC) * NSEC_PER_USEC; in dbus_source_poll()
|
/openbmc/linux/net/dccp/ccids/ |
H A D | ccid3.h | 33 #define TFRC_INITIAL_TIMEOUT (2 * USEC_PER_SEC) 48 # define TFRC_T_DELTA (USEC_PER_SEC / (2 * HZ))
|
/openbmc/linux/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()
|
H A D | bpf_cubic.c | 112 #define USEC_PER_SEC 1000000UL macro 113 #define USEC_PER_JIFFY (USEC_PER_SEC / HZ) 324 t /= USEC_PER_SEC; in bictcp_update() 444 div64_ul((__u64)GSO_MAX_SIZE * 4 * USEC_PER_SEC, rate)); in hystart_ack_delay()
|
/openbmc/linux/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 | 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-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()
|
H A D | synthesize.c | 90 runtime_us = diff.tv_sec * USEC_PER_SEC + diff.tv_usec; in do_run_single_threaded() 183 runtime_us = diff.tv_sec * USEC_PER_SEC + diff.tv_usec; in do_run_multi_threaded()
|
/openbmc/linux/tools/include/linux/ |
H A D | time64.h | 9 #define USEC_PER_SEC 1000000L macro
|
/openbmc/linux/include/vdso/ |
H A D | time64.h | 10 #define USEC_PER_SEC 1000000L macro
|
/openbmc/linux/drivers/iio/light/ |
H A D | as73211.c | 212 data->int_time_avail[i * 2 + 0] = time_us / USEC_PER_SEC; in as73211_integration_time_calc_avail() 213 data->int_time_avail[i * 2 + 1] = time_us % USEC_PER_SEC; in as73211_integration_time_calc_avail() 399 *val = time_us / USEC_PER_SEC; in as73211_read_raw() 400 *val2 = time_us % USEC_PER_SEC; in as73211_read_raw() 489 int val_us = val * USEC_PER_SEC + val2; in _as73211_write_raw()
|
/openbmc/linux/kernel/time/ |
H A D | time.c | 210 if (new_ts.tv_nsec > USEC_PER_SEC || new_ts.tv_nsec < 0) in SYSCALL_DEFINE2() 254 if (new_ts.tv_nsec > USEC_PER_SEC || new_ts.tv_nsec < 0) in COMPAT_SYSCALL_DEFINE2() 406 BUILD_BUG_ON(HZ > USEC_PER_SEC); in jiffies_to_usecs() 408 #if !(USEC_PER_SEC % HZ) in jiffies_to_usecs() 409 return (USEC_PER_SEC / HZ) * j; in jiffies_to_usecs()
|
/openbmc/linux/drivers/devfreq/ |
H A D | sun8i-a33-mbus.c | 139 u32 ddr_freq_mhz = freq / USEC_PER_SEC; /* DDR */ in sun8i_a33_mbus_set_dram_freq() 255 stat->current_frequency / USEC_PER_SEC); in sun8i_a33_mbus_get_dram_status() 302 mbus_freq_mhz = clk_get_rate(priv->clk_mbus) / USEC_PER_SEC; in sun8i_a33_mbus_hw_init() 310 sun8i_a33_mbus_update_nominal_bw(priv, ddr_freq / USEC_PER_SEC); in sun8i_a33_mbus_hw_init()
|
/openbmc/linux/drivers/media/rc/ |
H A D | sunxi-cir.c | 144 return DIV_ROUND_CLOSEST(USEC_PER_SEC * (ithr + 1), in sunxi_ithr_to_usec() 152 return DIV_ROUND_UP((base_clk / (128 * 64)) * usec, USEC_PER_SEC) - 1; in sunxi_usec_to_ithr() 327 ir->rc->rx_resolution = (USEC_PER_SEC / (b_clk_freq / 64)); in sunxi_ir_probe()
|
/openbmc/linux/drivers/input/misc/ |
H A D | pmic8xxx-pwrkey.c | 348 if (kpd_delay > USEC_PER_SEC * 2 || kpd_delay < USEC_PER_SEC / 64) { in pmic8xxx_pwrkey_probe() 380 delay = (kpd_delay << 6) / USEC_PER_SEC; in pmic8xxx_pwrkey_probe()
|
/openbmc/linux/drivers/crypto/intel/qat/qat_common/ |
H A D | adf_pfvf_utils.h | 11 #define ADF_PFVF_MSG_ACK_MAX_DELAY_US (1 * USEC_PER_SEC)
|
H A D | adf_gen4_pm.h | 13 #define ADF_GEN4_PM_POLL_TIMEOUT_US USEC_PER_SEC
|
/openbmc/linux/drivers/reset/ |
H A D | reset-lpc18xx.c | 177 fcclk = clk_get_rate(rc->clk_reg) / USEC_PER_SEC; in lpc18xx_rgu_probe() 178 firc = clk_get_rate(rc->clk_delay) / USEC_PER_SEC; in lpc18xx_rgu_probe()
|
/openbmc/linux/arch/riscv/kernel/ |
H A D | smp.c | 263 timeout = USEC_PER_SEC; in smp_send_stop() 315 timeout = USEC_PER_SEC; in crash_smp_send_stop()
|
/openbmc/linux/drivers/iio/adc/ |
H A D | ti-ads1015.c | 433 conv_time = DIV_ROUND_UP(USEC_PER_SEC, data_rate[dr_old]); in ads1015_get_adc_result() 434 conv_time += DIV_ROUND_UP(USEC_PER_SEC, data_rate[dr]); in ads1015_get_adc_result() 645 USEC_PER_SEC / data->chip->data_rate[dr]; in ads1015_read_event() 647 *val = period / USEC_PER_SEC; in ads1015_read_event() 648 *val2 = period % USEC_PER_SEC; in ads1015_read_event() 689 period = val * USEC_PER_SEC + val2; in ads1015_write_event() 693 USEC_PER_SEC / data_rate[dr]) in ads1015_write_event()
|
/openbmc/linux/kernel/trace/ |
H A D | trace_mmiotrace.c | 172 unsigned long usec_rem = do_div(t, USEC_PER_SEC); in mmio_print_rw() 217 unsigned long usec_rem = do_div(t, USEC_PER_SEC); in mmio_print_map() 251 unsigned long usec_rem = do_div(t, USEC_PER_SEC); in mmio_print_mark()
|