Home
last modified time | relevance | path

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

123456

/linux/tools/testing/selftests/timers/
H A Dvalid-adjtimex.c210 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 Djiffies.h65 #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 Dtimer-meson6.c117 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 Dtimer-tegra186.c162 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 Dtcp_ca_write_sk_pacing.c9 #define USEC_PER_SEC 1000000UL macro
38 ((tp->snd_cwnd * tp->mss_cache * USEC_PER_SEC) << 3) / in BPF_PROG()
H A Dbpf_cubic.c113 #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 Dbpf_cc_cubic.c20 #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 Dccid3.h
/linux/tools/perf/bench/
H A Dfind-bit-bench.c87 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 Dsched-seccomp-notify.c150 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 Dsynthesize.c91 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 Dsun8i-a33-mbus.c139 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 Dpmic8xxx-pwrkey.c348 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 Dtrace_mmiotrace.c172 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 Dtime64.h9 #define USEC_PER_SEC 1000000L macro
/linux/include/vdso/
H A Dtime64.h10 #define USEC_PER_SEC 1000000L macro
/linux/drivers/iio/adc/
H A Dti-ads1015.c431 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 Das73211.c264 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 Dipmi_bt_sm.c183 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 Dsmp.c270 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 Dadf_pfvf_utils.h11 #define ADF_PFVF_MSG_ACK_MAX_DELAY_US (1 * USEC_PER_SEC)
/linux/include/asm-generic/
H A Ddelay.h22 #define UDELAY_CONST_MULT ((unsigned long)DIV_ROUND_UP(1ULL << 32, USEC_PER_SEC))
/linux/tools/testing/selftests/cgroup/
H A Dtest_cpu.c190 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 Dtime.c210 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 Darm_arch_timer.h65 (USEC_PER_SEC / ARCH_TIMER_EVT_STREAM_PERIOD_US)

123456