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 / 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()
/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()
686 duration_usec = duration_seconds * USEC_PER_SEC * 1000 / hz; in test_cpucg_max()
703 .tv_sec = duration_usec / USEC_PER_SEC, in test_cpucg_max()
704 .tv_nsec = duration_usec % USEC_PER_SEC * NSEC_PER_USEC, in test_cpucg_max()
753 duration_usec = duration_seconds * USEC_PER_SEC * 1000 / hz; in test_cpucg_max_nested()
777 .tv_sec = duration_usec / USEC_PER_SEC, in test_cpucg_max_nested()
778 .tv_nsec = duration_usec % USEC_PER_SEC * NSEC_PER_USEC, in test_cpucg_max_nested()
/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.c114 #define USEC_PER_SEC 1000000UL macro
115 #define USEC_PER_JIFFY (USEC_PER_SEC / HZ)
333 t /= USEC_PER_SEC; in bictcp_update()
455 div64_ul((__u64)GSO_MAX_SIZE * 4 * USEC_PER_SEC, rate)); in hystart_ack_delay()
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()
H A Dkallsyms-parse.c55 runtime_us = diff.tv_sec * USEC_PER_SEC + diff.tv_usec; in do_kallsyms_parse()
H A Dbreakpoint.c159 result_usec = diff.tv_sec * USEC_PER_SEC + diff.tv_usec; in bench_breakpoint_thread()
251 result_usec = diff.tv_sec * USEC_PER_SEC + diff.tv_usec; in bench_breakpoint_enable()
/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/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/drivers/crypto/intel/qat/qat_common/
H A Dadf_pfvf_utils.h11 #define ADF_PFVF_MSG_ACK_MAX_DELAY_US (1 * USEC_PER_SEC)
H A Dadf_gen4_pm.h20 #define ADF_GEN4_PM_POLL_TIMEOUT_US 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/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/include/clocksource/
H A Darm_arch_timer.h65 (USEC_PER_SEC / ARCH_TIMER_EVT_STREAM_PERIOD_US)
/linux/drivers/pwm/
H A Dpwm-rzg2l-gpt.c217 tmp *= USEC_PER_SEC; in rzg2l_gpt_calculate_period_or_duty()
269 period_ticks = mul_u64_u64_div_u64(state->period, rzg2l_gpt->rate_khz, USEC_PER_SEC); in rzg2l_gpt_config()
291 duty_ticks = mul_u64_u64_div_u64(state->duty_cycle, rzg2l_gpt->rate_khz, USEC_PER_SEC); in rzg2l_gpt_config()
/linux/drivers/net/ethernet/intel/ice/
H A Dice_controlq.h46 #define ICE_CTL_Q_SQ_CMD_TIMEOUT USEC_PER_SEC

123456