Home
last modified time | relevance | path

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

1234567

/linux/tools/testing/selftests/timers/
A Dvalid-adjtimex.c38 #define USEC_PER_SEC 1000000LL macro
218 tmx.time.tv_usec += USEC_PER_SEC; in 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(-USEC_PER_SEC - 1, 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, 0)) in validate_set_offset()
293 if (set_offset(5 * USEC_PER_SEC + USEC_PER_SEC / 2, 0)) in validate_set_offset()
296 if (set_offset(-5 * USEC_PER_SEC - USEC_PER_SEC / 2, 0)) in validate_set_offset()
310 if (set_bad_offset(0, USEC_PER_SEC, 0)) in validate_set_offset()
[all …]
A Dadjtick.c31 #define USEC_PER_SEC 1000000 macro
185 systick = USEC_PER_SEC/sysconf(_SC_CLK_TCK); in main()
/linux/include/linux/
A Djiffies.h65 #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()
/linux/drivers/clocksource/
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/net/dccp/ccids/
A Dccid3.h33 #define TFRC_INITIAL_TIMEOUT (2 * USEC_PER_SEC)
48 # define TFRC_T_DELTA (USEC_PER_SEC / (2 * HZ))
/linux/tools/perf/bench/
A Dsched-pipe.c155 result_usec = diff.tv_sec * USEC_PER_SEC; in bench_sched_pipe()
166 ((double)result_usec / (double)USEC_PER_SEC))); in bench_sched_pipe()
A Dfind-bit-bench.c85 runtime_us = diff.tv_sec * USEC_PER_SEC + diff.tv_usec; in do_for_each_set_bit()
99 runtime_us = diff.tv_sec * USEC_PER_SEC + diff.tv_usec; in do_for_each_set_bit()
A Dsynthesize.c90 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()
/linux/tools/testing/selftests/bpf/progs/
A Dbpf_cubic.c112 #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()
/linux/drivers/iio/adc/
A Dti-ads1015.c381 conv_time = DIV_ROUND_UP(USEC_PER_SEC, data->data_rate[dr_old]); in ads1015_get_adc_result()
382 conv_time += DIV_ROUND_UP(USEC_PER_SEC, data->data_rate[dr]); in ads1015_get_adc_result()
569 USEC_PER_SEC / data->data_rate[dr]; in ads1015_read_event()
571 *val = period / USEC_PER_SEC; in ads1015_read_event()
572 *val2 = period % USEC_PER_SEC; in ads1015_read_event()
612 period = val * USEC_PER_SEC + val2; in ads1015_write_event()
616 USEC_PER_SEC / data->data_rate[dr]) in ads1015_write_event()
/linux/drivers/iio/light/
A Das73211.c212 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()
/linux/kernel/time/
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()
397 BUILD_BUG_ON(HZ > USEC_PER_SEC); in jiffies_to_usecs()
399 #if !(USEC_PER_SEC % HZ) in jiffies_to_usecs()
400 return (USEC_PER_SEC / HZ) * j; in jiffies_to_usecs()
/linux/drivers/input/misc/
A Dpmic8xxx-pwrkey.c349 if (kpd_delay > USEC_PER_SEC * 2 || kpd_delay < USEC_PER_SEC / 64) { in pmic8xxx_pwrkey_probe()
381 delay = (kpd_delay << 6) / USEC_PER_SEC; in pmic8xxx_pwrkey_probe()
/linux/drivers/media/rc/
A Dsunxi-cir.c143 return DIV_ROUND_CLOSEST(USEC_PER_SEC * (ithr + 1), in sunxi_ithr_to_usec()
151 return DIV_ROUND_UP((base_clk / (128 * 64)) * usec, USEC_PER_SEC) - 1; in sunxi_usec_to_ithr()
326 ir->rc->rx_resolution = (USEC_PER_SEC / (b_clk_freq / 64)); in sunxi_ir_probe()
/linux/arch/s390/include/asm/
A Dcpu_mf.h281 return (USEC_PER_SEC / freq) * qsi->cpu_speed; in freq_to_sample_rate()
287 return USEC_PER_SEC * qsi->cpu_speed / rate; in sample_rate_to_freq()
A Dcputime.h15 #define CPUTIME_PER_SEC (CPUTIME_PER_USEC * USEC_PER_SEC)
/linux/kernel/trace/
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/
A Dtime64.h9 #define USEC_PER_SEC 1000000L macro
/linux/include/vdso/
A Dtime64.h10 #define USEC_PER_SEC 1000000L macro
/linux/drivers/char/ipmi/
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/drivers/reset/
A Dreset-lpc18xx.c179 fcclk = clk_get_rate(rc->clk_reg) / USEC_PER_SEC; in lpc18xx_rgu_probe()
180 firc = clk_get_rate(rc->clk_delay) / USEC_PER_SEC; in lpc18xx_rgu_probe()
/linux/sound/soc/codecs/
A Djz4760.c269 1000, 1 * USEC_PER_SEC); in jz4760_codec_mute_stream()
361 1000, 1 * USEC_PER_SEC); in hpout_event()
381 1000, 1 * USEC_PER_SEC); in hpout_event()
760 1000, 1 * USEC_PER_SEC); in jz4760_codec_io_wait()
A Djz4770.c290 1000, 1 * USEC_PER_SEC); in jz4770_codec_mute_stream()
384 1000, 1 * USEC_PER_SEC); in hpout_event()
404 1000, 1 * USEC_PER_SEC); in hpout_event()
810 1000, 1 * USEC_PER_SEC); in jz4770_codec_io_wait()
/linux/include/clocksource/
A Darm_arch_timer.h62 (USEC_PER_SEC / ARCH_TIMER_EVT_STREAM_PERIOD_US)
/linux/drivers/crypto/qat/qat_4xxx/
A Dadf_4xxx_hw_data.h67 #define ADF_4XXX_PM_POLL_TIMEOUT_US USEC_PER_SEC

Completed in 63 milliseconds

1234567