/drivers/clocksource/ |
D | timer-meson6.c | 117 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()
|
/drivers/iio/adc/ |
D | ti-ads1015.c | 381 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()
|
/drivers/iio/light/ |
D | as73211.c | 212 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()
|
D | tcs3472.c | 243 *val = period / USEC_PER_SEC; in tcs3472_read_event() 244 *val2 = period % USEC_PER_SEC; in tcs3472_read_event() 292 period = val * USEC_PER_SEC + val2; in tcs3472_write_event()
|
/drivers/input/misc/ |
D | pmic8xxx-pwrkey.c | 349 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()
|
/drivers/media/rc/ |
D | sunxi-cir.c | 143 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() 328 ir->rc->rx_resolution = (USEC_PER_SEC / (b_clk_freq / 64)); in sunxi_ir_probe()
|
D | meson-ir-tx.c | 116 unsigned int tb_us = DIV_ROUND_CLOSEST(USEC_PER_SEC, ir->carrier); in meson_irtx_prepare_pulse() 170 max_tb_us = USEC_PER_SEC / ir->carrier; in meson_irtx_check_buf()
|
/drivers/char/ipmi/ |
D | ipmi_bt_sm.c | 183 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()
|
D | ipmi_kcs_sm.c | 103 #define IBF_RETRY_TIMEOUT (5*USEC_PER_SEC) 104 #define OBF_RETRY_TIMEOUT (5*USEC_PER_SEC)
|
/drivers/reset/ |
D | reset-lpc18xx.c | 179 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()
|
/drivers/crypto/qat/qat_4xxx/ |
D | adf_4xxx_hw_data.h | 67 #define ADF_4XXX_PM_POLL_TIMEOUT_US USEC_PER_SEC
|
/drivers/firmware/tegra/ |
D | bpmp.c | 818 .timeout = 60 * USEC_PER_SEC, 823 .timeout = 600 * USEC_PER_SEC, 841 .timeout = 60 * USEC_PER_SEC, 846 .timeout = 600 * USEC_PER_SEC,
|
/drivers/mtd/nand/raw/ |
D | mxic_nand.c | 357 sts & INT_TX_EMPTY, 0, USEC_PER_SEC); in mxic_nfc_data_xfer() 364 sts & INT_TX_EMPTY, 0, USEC_PER_SEC); in mxic_nfc_data_xfer() 370 USEC_PER_SEC); in mxic_nfc_data_xfer()
|
/drivers/bus/ |
D | bt1-apb.c | 73 u64 timeout = (u64)n * USEC_PER_SEC; in bt1_apb_n_to_timeout_us() 86 do_div(n, USEC_PER_SEC); in bt1_apb_timeout_to_n_us()
|
/drivers/gpu/drm/rockchip/ |
D | dw-mipi-dsi-rockchip.c | 577 fout = target_mbps * USEC_PER_SEC; in dw_mipi_dsi_get_lane_mbps() 580 min_prediv = DIV_ROUND_UP(fin, 40 * USEC_PER_SEC); in dw_mipi_dsi_get_lane_mbps() 581 max_prediv = fin / (5 * USEC_PER_SEC); in dw_mipi_dsi_get_lane_mbps() 584 fvco_min = 80 * USEC_PER_SEC; in dw_mipi_dsi_get_lane_mbps() 585 fvco_max = 1500 * USEC_PER_SEC; in dw_mipi_dsi_get_lane_mbps() 619 dsi->lane_mbps = DIV_ROUND_UP(best_freq, USEC_PER_SEC); in dw_mipi_dsi_get_lane_mbps()
|
/drivers/spi/ |
D | spi-mxic.c | 301 sts & INT_TX_EMPTY, 0, USEC_PER_SEC); in mxic_spi_data_xfer() 308 sts & INT_TX_EMPTY, 0, USEC_PER_SEC); in mxic_spi_data_xfer() 314 USEC_PER_SEC); in mxic_spi_data_xfer()
|
/drivers/hwmon/ |
D | sparx5-temp.c | 39 u32 clk = clk_get_rate(hwmon->clk) / USEC_PER_SEC; in s5_temp_enable()
|
/drivers/clk/at91/ |
D | clk-main.c | 17 #define MAINFRDY_TIMEOUT (((MAINF_DIV + 1) * USEC_PER_SEC) / \ 19 #define MAINF_LOOP_MIN_WAIT (USEC_PER_SEC / SLOW_CLOCK_FREQ)
|
/drivers/media/test-drivers/vidtv/ |
D | vidtv_s302m.c | 210 vau_duration_usecs = USEC_PER_SEC / e->sync->sampling_rate_hz; in vidtv_s302m_compute_sample_count_from_video() 211 sample_duration_usecs = USEC_PER_SEC / e->sampling_rate_hz; in vidtv_s302m_compute_sample_count_from_video()
|
/drivers/media/pci/bt8xx/ |
D | bttv-input.c | 195 if (gap > USEC_PER_SEC) { in bttv_rc5_timer_end() 252 if (gap > USEC_PER_SEC) { in bttv_rc5_irq()
|
/drivers/gpu/drm/i915/gt/ |
D | intel_gt_clock_utils.c | 167 USEC_PER_SEC)); in intel_gt_init_clock_frequency()
|
/drivers/net/ethernet/cadence/ |
D | macb_ptp.c | 140 adj += (USEC_PER_SEC >> 1); in gem_ptp_adjfine() 142 adj = div_u64(adj, USEC_PER_SEC); in gem_ptp_adjfine()
|
/drivers/block/aoe/ |
D | aoe.h | 96 RTTAVG_INIT = USEC_PER_SEC / 4 << RTTSCALE,
|
/drivers/input/keyboard/ |
D | pmic8xxx-keypad.c | 149 udelay((2 * DIV_ROUND_UP(USEC_PER_SEC, KEYP_CLOCK_FREQ)) + 1); in pmic8xxx_chk_sync_read() 203 udelay((4 * DIV_ROUND_UP(USEC_PER_SEC, KEYP_CLOCK_FREQ)) + 1); in pmic8xxx_kp_read_matrix()
|
/drivers/crypto/qat/qat_common/ |
D | adf_admin.c | 17 #define ADF_ADMIN_POLL_TIMEOUT_US (5 * USEC_PER_SEC)
|