| /linux/tools/testing/selftests/timers/ |
| H A D | valid-adjtimex.c | 210 tmx.time.tv_sec = offset / USEC_PER_SEC; in set_offset() 211 tmx.time.tv_usec = offset % USEC_PER_SEC; in set_offset() 215 tmx.time.tv_usec += USEC_PER_SEC; in set_offset() 275 if (set_offset(USEC_PER_SEC - 1, 0)) in validate_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(5 * USEC_PER_SEC, 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 + USEC_PER_SEC / 2, 0)) in validate_set_offset() 293 if (set_offset(-5 * USEC_PER_SEC - USEC_PER_SEC / 2, 0)) in validate_set_offset() [all …]
|
| /linux/include/linux/ |
| H A D | jiffies.h | 65 #define TICK_USEC ((USEC_PER_SEC + HZ/2) / HZ) 451 #if !(USEC_PER_SEC % HZ) 464 BUILD_BUG_ON(HZ > USEC_PER_SEC); in jiffies_to_usecs() 466 return (USEC_PER_SEC / HZ) * j; in jiffies_to_usecs() 575 #if !(USEC_PER_SEC % HZ) 578 return (u + (USEC_PER_SEC / HZ) - 1) / (USEC_PER_SEC / HZ); in _usecs_to_jiffies()
|
| /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()
|
| H A D | timer-tegra186.c | 162 value = TMRCR_PTV(wdt->base.timeout * (USEC_PER_SEC / 5)) | in tegra186_wdt_enable() 280 timeleft += (wdt->base.timeout * (USEC_PER_SEC / 5)) * (4 - expiration); in tegra186_wdt_get_timeleft() 286 timeleft = DIV_ROUND_CLOSEST(timeleft, USEC_PER_SEC); in tegra186_wdt_get_timeleft() 419 return clocksource_register_hz(&tegra->usec, USEC_PER_SEC); in tegra186_timer_usec_init()
|
| /linux/tools/testing/selftests/bpf/progs/ |
| H A D | tcp_ca_write_sk_pacing.c | 9 #define USEC_PER_SEC 1000000UL macro 38 ((tp->snd_cwnd * tp->mss_cache * USEC_PER_SEC) << 3) / in BPF_PROG()
|
| H A D | bpf_cubic.c | 113 #define USEC_PER_SEC 1000000UL in bictcp_reset() 114 #define USEC_PER_JIFFY (USEC_PER_SEC / HZ) in bictcp_reset() 319 t /= USEC_PER_SEC; in bictcp_update() 441 div64_ul((__u64)GSO_MAX_SIZE * 4 * USEC_PER_SEC, rate)); 120 #define USEC_PER_SEC global() macro
|
| H A D | bpf_cc_cubic.c | 20 #define USEC_PER_SEC 1000000UL macro 44 rate = (__u64)tp->mss_cache * ((USEC_PER_SEC / 100) << 3); in div64_u64()
|
| /linux/net/dccp/ccids/ |
| H A D | ccid3.h | |
| /linux/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-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 | 91 runtime_us = diff.tv_sec * USEC_PER_SEC + diff.tv_usec; in do_run_single_threaded() 193 runtime_us = diff.tv_sec * USEC_PER_SEC + diff.tv_usec; in do_run_multi_threaded()
|
| /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()
|
| /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()
|
| /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()
|
| /linux/tools/include/linux/ |
| H A D | time64.h | 9 #define USEC_PER_SEC 1000000L macro
|
| /linux/include/vdso/ |
| H A D | time64.h | 10 #define USEC_PER_SEC 1000000L macro
|
| /linux/drivers/iio/adc/ |
| H A D | ti-ads1015.c | 431 conv_time = DIV_ROUND_UP(USEC_PER_SEC, data_rate[dr_old]); in ads1015_get_adc_result() 432 conv_time += DIV_ROUND_UP(USEC_PER_SEC, data_rate[dr]); in ads1015_get_adc_result() 628 USEC_PER_SEC / data->chip->data_rate[dr]; in ads1015_read_event() 630 *val = period / USEC_PER_SEC; in ads1015_read_event() 631 *val2 = period % USEC_PER_SEC; in ads1015_read_event() 664 period = val * USEC_PER_SEC + val2; in ads1015_write_event() 668 USEC_PER_SEC / data_rate[dr]) in ads1015_write_event()
|
| /linux/drivers/iio/light/ |
| H A D | as73211.c | 264 data->int_time_avail[i * 2 + 0] = time_us / USEC_PER_SEC; in as73211_integration_time_calc_avail() 265 data->int_time_avail[i * 2 + 1] = time_us % USEC_PER_SEC; in as73211_integration_time_calc_avail() 475 *val = time_us / USEC_PER_SEC; in as73211_read_raw() 476 *val2 = time_us % USEC_PER_SEC; in as73211_read_raw() 575 int val_us = val * USEC_PER_SEC + val2; in _as73211_write_raw()
|
| /linux/drivers/char/ipmi/ |
| H A D | ipmi_bt_sm.c | 183 bt->BT_CAP_req2rsp = BT_NORMAL_TIMEOUT * USEC_PER_SEC; in bt_init_data() 591 bt->timeout = BT_RESET_DELAY * USEC_PER_SEC; in bt_event() 669 bt->BT_CAP_req2rsp = BT_CAP[6] * USEC_PER_SEC; in bt_detect() 674 bt->BT_CAP_req2rsp / USEC_PER_SEC, bt->BT_CAP_retries); in bt_detect()
|
| /linux/arch/riscv/kernel/ |
| H A D | smp.c | 270 timeout = USEC_PER_SEC; in smp_send_stop() 322 timeout = USEC_PER_SEC; in crash_smp_send_stop()
|
| /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)
|
| /linux/include/asm-generic/ |
| H A D | delay.h | 22 #define UDELAY_CONST_MULT ((unsigned long)DIV_ROUND_UP(1ULL << 32, USEC_PER_SEC))
|
| /linux/tools/testing/selftests/cgroup/ |
| H A D | test_cpu.c | 190 long expected_usage_usec = usage_seconds * USEC_PER_SEC; in test_cpucg_stats() 244 long expected_nice_usec = usage_seconds * USEC_PER_SEC; in test_cpucg_nice() 653 long duration_usec = duration_seconds * USEC_PER_SEC; in test_cpucg_max() 717 long duration_usec = duration_seconds * USEC_PER_SEC; in test_cpucg_max_nested()
|
| /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() 391 #if (USEC_PER_SEC % HZ) 404 BUILD_BUG_ON(HZ > USEC_PER_SEC); in jiffies_to_usecs()
|
| /linux/include/clocksource/ |
| H A D | arm_arch_timer.h | 65 (USEC_PER_SEC / ARCH_TIMER_EVT_STREAM_PERIOD_US)
|