| /drivers/clocksource/ |
| A 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()
|
| A D | timer-tegra186.c | 162 value = TMRCR_PTV(wdt->base.timeout * USEC_PER_SEC / 5) | in tegra186_wdt_enable() 270 timeleft += (((u64)wdt->base.timeout * USEC_PER_SEC) / 5) * (4 - expiration); in tegra186_wdt_get_timeleft() 278 timeleft = DIV_ROUND_CLOSEST_ULL(timeleft, USEC_PER_SEC); in tegra186_wdt_get_timeleft() 415 return clocksource_register_hz(&tegra->usec, USEC_PER_SEC); in tegra186_timer_usec_init()
|
| /drivers/devfreq/ |
| A D | sun8i-a33-mbus.c | 139 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()
|
| /drivers/crypto/intel/qat/qat_common/ |
| A D | adf_gen4_hw_data.h | 78 #define ADF_RPRESET_POLL_TIMEOUT_US (5 * USEC_PER_SEC) 87 #define ADF_COALESCED_POLL_TIMEOUT_US (1 * USEC_PER_SEC)
|
| A D | adf_gen6_pm.h | 13 #define ADF_GEN6_PM_POLL_TIMEOUT_US USEC_PER_SEC
|
| A D | adf_pfvf_utils.h | 11 #define ADF_PFVF_MSG_ACK_MAX_DELAY_US (1 * USEC_PER_SEC)
|
| A D | adf_gen4_pm.h | 20 #define ADF_GEN4_PM_POLL_TIMEOUT_US USEC_PER_SEC
|
| /drivers/input/misc/ |
| A D | pmic8xxx-pwrkey.c | 348 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()
|
| /drivers/media/rc/ |
| A D | sunxi-cir.c | 145 return DIV_ROUND_CLOSEST(USEC_PER_SEC * (ithr + 1), in sunxi_ithr_to_usec() 153 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()
|
| A 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/iio/adc/ |
| A D | ti-ads1015.c | 434 conv_time = DIV_ROUND_UP(USEC_PER_SEC, data_rate[dr_old]); in ads1015_get_adc_result() 435 conv_time += DIV_ROUND_UP(USEC_PER_SEC, data_rate[dr]); in ads1015_get_adc_result() 631 USEC_PER_SEC / data->chip->data_rate[dr]; in ads1015_read_event() 633 *val = period / USEC_PER_SEC; in ads1015_read_event() 634 *val2 = period % USEC_PER_SEC; in ads1015_read_event() 667 period = val * USEC_PER_SEC + val2; in ads1015_write_event() 671 USEC_PER_SEC / data_rate[dr]) in ads1015_write_event()
|
| /drivers/reset/ |
| A D | reset-lpc18xx.c | 163 fcclk = clk_get_rate(rc->clk_reg) / USEC_PER_SEC; in lpc18xx_rgu_probe() 164 firc = clk_get_rate(rc->clk_delay) / USEC_PER_SEC; in lpc18xx_rgu_probe()
|
| /drivers/iio/light/ |
| A D | as73211.c | 264 data->int_time_avail[i * 2 + 0] = time_us / USEC_PER_SEC; in as73211_integration_time_calc_avail() 265 data->int_time_avail[i * 2 + 1] = time_us % USEC_PER_SEC; in as73211_integration_time_calc_avail() 475 *val = time_us / USEC_PER_SEC; in as73211_read_raw() 476 *val2 = time_us % USEC_PER_SEC; in as73211_read_raw() 575 int val_us = val * USEC_PER_SEC + val2; in _as73211_write_raw()
|
| A D | tcs3472.c | 242 *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()
|
| /drivers/char/ipmi/ |
| A 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()
|
| /drivers/pwm/ |
| A D | pwm-rzg2l-gpt.c | 213 tmp *= USEC_PER_SEC; in rzg2l_gpt_calculate_period_or_duty() 265 period_ticks = mul_u64_u64_div_u64(state->period, rzg2l_gpt->rate_khz, USEC_PER_SEC); in rzg2l_gpt_config() 283 duty_ticks = mul_u64_u64_div_u64(state->duty_cycle, rzg2l_gpt->rate_khz, USEC_PER_SEC); in rzg2l_gpt_config()
|
| /drivers/spi/ |
| A D | spi-mxic.c | 366 sts & INT_TX_EMPTY, 0, USEC_PER_SEC); in mxic_spi_data_xfer() 373 sts & INT_TX_EMPTY, 0, USEC_PER_SEC); in mxic_spi_data_xfer() 379 USEC_PER_SEC); in mxic_spi_data_xfer() 433 sts & INT_LRD_DIS, 0, USEC_PER_SEC); in mxic_spi_mem_dirmap_read() 478 sts & INT_LWR_DIS, 0, USEC_PER_SEC); in mxic_spi_mem_dirmap_write()
|
| A D | spi-kspi2.c | 46 #define KSPI2_XFER_TIMEOUT_US(kspi) (USEC_PER_SEC / \ 50 #define KSPI2_INUSE_TIMEOUT_US (10 * USEC_PER_SEC)
|
| /drivers/bus/ |
| A D | bt1-apb.c | 72 u64 timeout = (u64)n * USEC_PER_SEC; in bt1_apb_n_to_timeout_us() 85 do_div(n, USEC_PER_SEC); in bt1_apb_timeout_to_n_us()
|
| /drivers/mtd/nand/raw/ |
| A 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/net/can/ |
| A D | bxcan.c | 308 USEC_PER_SEC); in bxcan_chip_softreset() 319 USEC_PER_SEC); in bxcan_enter_init_mode() 330 USEC_PER_SEC); in bxcan_leave_init_mode() 341 USEC_PER_SEC); in bxcan_enter_sleep_mode() 352 USEC_PER_SEC); in bxcan_leave_sleep_mode()
|
| /drivers/net/ethernet/intel/ice/ |
| A D | ice_controlq.h | 46 #define ICE_CTL_Q_SQ_CMD_TIMEOUT USEC_PER_SEC
|
| /drivers/firmware/tegra/ |
| A D | bpmp.c | 845 .timeout = 60 * USEC_PER_SEC, 850 .timeout = 600 * USEC_PER_SEC, 868 .timeout = 60 * USEC_PER_SEC, 873 .timeout = 600 * USEC_PER_SEC,
|
| /drivers/gpu/drm/rockchip/ |
| A D | dw-mipi-dsi-rockchip.c | 598 fout = target_mbps * USEC_PER_SEC; in dw_mipi_dsi_get_lane_mbps() 601 min_prediv = DIV_ROUND_UP(fin, 40 * USEC_PER_SEC); in dw_mipi_dsi_get_lane_mbps() 602 max_prediv = fin / (5 * USEC_PER_SEC); in dw_mipi_dsi_get_lane_mbps() 605 fvco_min = 80 * USEC_PER_SEC; in dw_mipi_dsi_get_lane_mbps() 606 fvco_max = 1500 * USEC_PER_SEC; in dw_mipi_dsi_get_lane_mbps() 640 dsi->lane_mbps = DIV_ROUND_UP(best_freq, USEC_PER_SEC); in dw_mipi_dsi_get_lane_mbps()
|
| /drivers/crypto/intel/qat/qat_6xxx/ |
| A D | adf_6xxx_hw_data.h | 75 #define ADF_RPRESET_POLL_TIMEOUT_US (5 * USEC_PER_SEC)
|