Home
last modified time | relevance | path

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

12345

/Linux-v4.19/tools/testing/selftests/timers/
Dvalid-adjtimex.c38 #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()
276 if (set_offset(USEC_PER_SEC - 1, 0)) in validate_set_offset()
279 if (set_offset(-USEC_PER_SEC + 1, 0)) in validate_set_offset()
282 if (set_offset(-USEC_PER_SEC - 1, 0)) in validate_set_offset()
285 if (set_offset(5 * USEC_PER_SEC, 0)) in validate_set_offset()
288 if (set_offset(-5 * USEC_PER_SEC, 0)) in validate_set_offset()
291 if (set_offset(5 * USEC_PER_SEC + USEC_PER_SEC / 2, 0)) in validate_set_offset()
[all …]
Dadjtick.c31 #define USEC_PER_SEC 1000000 macro
184 systick = USEC_PER_SEC/sysconf(_SC_CLK_TCK); in main()
/Linux-v4.19/drivers/clocksource/
Dmeson6_timer.c86 meson6_clkevt_time_setup(CED_ID, USEC_PER_SEC / HZ - 1); in meson6_set_periodic()
152 sched_clock_register(meson6_timer_sched_read, 32, USEC_PER_SEC); in meson6_timer_init()
173 clockevents_config_and_register(&meson6_clockevent, USEC_PER_SEC, in meson6_timer_init()
/Linux-v4.19/include/linux/
Djiffies.h66 #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()
Dpm_qos.h35 #define PM_QOS_CPU_DMA_LAT_DEFAULT_VALUE (2000 * USEC_PER_SEC)
36 #define PM_QOS_NETWORK_LAT_DEFAULT_VALUE (2000 * USEC_PER_SEC)
Dtime64.h35 #define USEC_PER_SEC 1000000L macro
/Linux-v4.19/net/dccp/ccids/
Dccid3.h46 #define TFRC_INITIAL_TIMEOUT (2 * USEC_PER_SEC)
61 # define TFRC_T_DELTA (USEC_PER_SEC / (2 * HZ))
/Linux-v4.19/tools/perf/bench/
Dsched-pipe.c158 result_usec = diff.tv_sec * USEC_PER_SEC; in bench_sched_pipe()
169 ((double)result_usec / (double)USEC_PER_SEC))); in bench_sched_pipe()
/Linux-v4.19/tools/include/linux/
Dtime64.h9 #define USEC_PER_SEC 1000000L macro
/Linux-v4.19/arch/s390/include/asm/
Dcpu_mf.h267 return (USEC_PER_SEC / freq) * qsi->cpu_speed; in freq_to_sample_rate()
273 return USEC_PER_SEC * qsi->cpu_speed / rate; in sample_rate_to_freq()
Dcputime.h15 #define CPUTIME_PER_SEC (CPUTIME_PER_USEC * USEC_PER_SEC)
/Linux-v4.19/drivers/input/misc/
Dpmic8xxx-pwrkey.c357 if (kpd_delay > USEC_PER_SEC * 2 || kpd_delay < USEC_PER_SEC / 64) { in pmic8xxx_pwrkey_probe()
389 delay = (kpd_delay << 6) / USEC_PER_SEC; in pmic8xxx_pwrkey_probe()
/Linux-v4.19/drivers/iio/adc/
Dti-ads1015.c369 conv_time = DIV_ROUND_UP(USEC_PER_SEC, data->data_rate[dr_old]); in ads1015_get_adc_result()
370 conv_time += DIV_ROUND_UP(USEC_PER_SEC, data->data_rate[dr]); in ads1015_get_adc_result()
553 USEC_PER_SEC / data->data_rate[dr]; in ads1015_read_event()
555 *val = period / USEC_PER_SEC; in ads1015_read_event()
556 *val2 = period % USEC_PER_SEC; in ads1015_read_event()
596 period = val * USEC_PER_SEC + val2; in ads1015_write_event()
600 USEC_PER_SEC / data->data_rate[dr]) in ads1015_write_event()
/Linux-v4.19/drivers/char/ipmi/
Dipmi_bt_sm.c181 bt->BT_CAP_req2rsp = BT_NORMAL_TIMEOUT * USEC_PER_SEC; in bt_init_data()
587 bt->timeout = BT_RESET_DELAY * USEC_PER_SEC; in bt_event()
665 bt->BT_CAP_req2rsp = BT_CAP[6] * USEC_PER_SEC; in bt_detect()
670 bt->BT_CAP_req2rsp / USEC_PER_SEC, bt->BT_CAP_retries); in bt_detect()
Dipmi_kcs_sm.c101 #define IBF_RETRY_TIMEOUT (5*USEC_PER_SEC)
102 #define OBF_RETRY_TIMEOUT (5*USEC_PER_SEC)
/Linux-v4.19/kernel/trace/
Dtrace_mmiotrace.c174 unsigned long usec_rem = do_div(t, USEC_PER_SEC); in mmio_print_rw()
219 unsigned long usec_rem = do_div(t, USEC_PER_SEC); in mmio_print_map()
253 unsigned long usec_rem = do_div(t, USEC_PER_SEC); in mmio_print_mark()
/Linux-v4.19/drivers/reset/
Dreset-lpc18xx.c183 fcclk = clk_get_rate(rc->clk_reg) / USEC_PER_SEC; in lpc18xx_rgu_probe()
184 firc = clk_get_rate(rc->clk_delay) / USEC_PER_SEC; in lpc18xx_rgu_probe()
/Linux-v4.19/arch/um/include/shared/
Dcommon-offsets.h27 DEFINE(UM_USEC_PER_SEC, USEC_PER_SEC);
/Linux-v4.19/include/clocksource/
Darm_arch_timer.h72 (USEC_PER_SEC / ARCH_TIMER_EVT_STREAM_PERIOD_US)
/Linux-v4.19/arch/ia64/kernel/
Dtime.c312 local_cpu_data->cyc_per_usec = (itc_freq + USEC_PER_SEC/2) / USEC_PER_SEC; in ia64_init_itm()
/Linux-v4.19/drivers/iio/light/
Dtcs3472.c242 *val = period / USEC_PER_SEC; in tcs3472_read_event()
243 *val2 = period % USEC_PER_SEC; in tcs3472_read_event()
291 period = val * USEC_PER_SEC + val2; in tcs3472_write_event()
/Linux-v4.19/arch/x86/kernel/
Dnmi_selftest.c81 timeout = USEC_PER_SEC; in test_nmi_ipi()
Dsmp.c220 timeout = USEC_PER_SEC; in native_stop_other_cpus()
/Linux-v4.19/arch/powerpc/oprofile/cell/
Dspu_profiler.c69 ns_per_cyc = (USEC_PER_SEC << SCALE_SHIFT)/freq_khz; in set_spu_profiling_frequency()
/Linux-v4.19/kernel/time/
Dtime.c331 BUILD_BUG_ON(HZ > USEC_PER_SEC); in jiffies_to_usecs()
333 #if !(USEC_PER_SEC % HZ) in jiffies_to_usecs()
334 return (USEC_PER_SEC / HZ) * j; in jiffies_to_usecs()

12345