Home
last modified time | relevance | path

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

123456789

/OK3568_Linux_fs/kernel/tools/testing/selftests/timers/
H A Dvalid-adjtimex.c38 #define USEC_PER_SEC 1000000LL macro
213 tmx.time.tv_sec = offset / USEC_PER_SEC; in set_offset()
214 tmx.time.tv_usec = offset % USEC_PER_SEC; in set_offset()
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()
[all …]
H A Dadjtick.c31 #define USEC_PER_SEC 1000000 macro
185 systick = USEC_PER_SEC/sysconf(_SC_CLK_TCK); in main()
/OK3568_Linux_fs/kernel/include/linux/
H 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()
/OK3568_Linux_fs/kernel/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()
/OK3568_Linux_fs/kernel/net/dccp/ccids/
H A Dccid3.h33 #define TFRC_INITIAL_TIMEOUT (2 * USEC_PER_SEC)
48 # define TFRC_T_DELTA (USEC_PER_SEC / (2 * HZ))
/OK3568_Linux_fs/u-boot/drivers/ufs/
H A Dcdns-platform.c18 #define USEC_PER_SEC 1000000L macro
59 core_clk_div = core_clk_rate / USEC_PER_SEC; in cdns_ufs_set_hclkdiv()
/OK3568_Linux_fs/kernel/tools/perf/bench/
H 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()
H 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()
H 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()
/OK3568_Linux_fs/kernel/tools/testing/selftests/bpf/progs/
H A Dbpf_cubic.c112 #define USEC_PER_SEC 1000000UL macro
113 #define USEC_PER_JIFFY (USEC_PER_SEC / HZ)
330 t /= USEC_PER_SEC; in bictcp_update()
450 div64_ul((__u64)GSO_MAX_SIZE * 4 * USEC_PER_SEC, rate)); in hystart_ack_delay()
/OK3568_Linux_fs/kernel/drivers/gpu/drm/rockchip/
H A Ddw-mipi-dsi-rockchip.c588 max_mbps = dsi->cdata->max_bit_rate_per_lane / USEC_PER_SEC; in dw_mipi_dsi_calculate_lane_mpbs()
644 phy_mipi_dphy_get_default_config(target_pclk * USEC_PER_SEC, in dw_mipi_dsi_get_lane_mbps()
656 dsi->lane_mbps = DIV_ROUND_UP(hs_clk_rate, USEC_PER_SEC); in dw_mipi_dsi_get_lane_mbps()
663 fout = target_mbps * USEC_PER_SEC; in dw_mipi_dsi_get_lane_mbps()
666 min_prediv = DIV_ROUND_UP(fin, 40 * USEC_PER_SEC); in dw_mipi_dsi_get_lane_mbps()
667 max_prediv = fin / (5 * USEC_PER_SEC); in dw_mipi_dsi_get_lane_mbps()
670 fvco_min = 80 * USEC_PER_SEC; in dw_mipi_dsi_get_lane_mbps()
671 fvco_max = 1500 * USEC_PER_SEC; in dw_mipi_dsi_get_lane_mbps()
705 dsi->lane_mbps = DIV_ROUND_UP(best_freq, USEC_PER_SEC); in dw_mipi_dsi_get_lane_mbps()
/OK3568_Linux_fs/kernel/drivers/iio/adc/
H A Dti-ads1015.c383 conv_time = DIV_ROUND_UP(USEC_PER_SEC, data->data_rate[dr_old]); in ads1015_get_adc_result()
384 conv_time += DIV_ROUND_UP(USEC_PER_SEC, data->data_rate[dr]); in ads1015_get_adc_result()
571 USEC_PER_SEC / data->data_rate[dr]; in ads1015_read_event()
573 *val = period / USEC_PER_SEC; in ads1015_read_event()
574 *val2 = period % USEC_PER_SEC; in ads1015_read_event()
614 period = val * USEC_PER_SEC + val2; in ads1015_write_event()
618 USEC_PER_SEC / data->data_rate[dr]) in ads1015_write_event()
/OK3568_Linux_fs/kernel/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()
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()
/OK3568_Linux_fs/kernel/drivers/iio/light/
H A Das73211.c213 data->int_time_avail[i * 2 + 0] = time_us / USEC_PER_SEC; in as73211_integration_time_calc_avail()
214 data->int_time_avail[i * 2 + 1] = time_us % USEC_PER_SEC; in as73211_integration_time_calc_avail()
400 *val = time_us / USEC_PER_SEC; in as73211_read_raw()
401 *val2 = time_us % USEC_PER_SEC; in as73211_read_raw()
490 int val_us = val * USEC_PER_SEC + val2; in _as73211_write_raw()
/OK3568_Linux_fs/kernel/drivers/input/misc/
H 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()
/OK3568_Linux_fs/kernel/arch/s390/include/asm/
H 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()
H A Dcputime.h15 #define CPUTIME_PER_SEC (CPUTIME_PER_USEC * USEC_PER_SEC)
/OK3568_Linux_fs/u-boot/drivers/video/drm/
H A Dsamsung_mipi_dcphy.c28 #define USEC_PER_SEC 1000000LL macro
1233 unsigned int lane_mbps = samsung->pll.rate / USEC_PER_SEC; in samsung_mipi_dphy_get_timing()
1254 unsigned int lane_msps = div64_ul(samsung->pll.rate, USEC_PER_SEC); in samsung_mipi_cphy_get_timing()
1318 unsigned int lane_hs_rate = div64_ul(samsung->pll.rate, USEC_PER_SEC); in samsung_mipi_dphy_clk_lane_timing_init()
1363 unsigned int lane_hs_rate = div64_ul(samsung->pll.rate, USEC_PER_SEC); in samsung_mipi_dphy_data_lane_timing_init()
1471 unsigned int lane_hs_rate = div64_ul(samsung->pll.rate, USEC_PER_SEC); in samsung_mipi_cphy_timing_init()
H A Drk618_dsi.c207 #define USEC_PER_SEC 1000000L macro
304 fout = value * USEC_PER_SEC; in rk618_dsi_set_hs_clk()
317 do_div(bandwidth, USEC_PER_SEC); in rk618_dsi_set_hs_clk()
318 bandwidth *= USEC_PER_SEC; in rk618_dsi_set_hs_clk()
630 lanebyteclk = (dsi->phy.rate >> 3) / USEC_PER_SEC; in rk618_dsi_pre_enable()
693 dsi->phy.rate / USEC_PER_SEC, dsi->lanes); in rk618_dsi_enable()
/OK3568_Linux_fs/kernel/kernel/trace/
H A 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()
/OK3568_Linux_fs/kernel/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()
/OK3568_Linux_fs/kernel/include/vdso/
H A Dtime64.h10 #define USEC_PER_SEC 1000000L macro
/OK3568_Linux_fs/kernel/tools/include/linux/
H A Dtime64.h9 #define USEC_PER_SEC 1000000L macro
/OK3568_Linux_fs/kernel/drivers/reset/
H 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()
/OK3568_Linux_fs/kernel/arch/um/include/shared/
H A Dcommon-offsets.h27 DEFINE(UM_USEC_PER_SEC, USEC_PER_SEC);

123456789