Home
last modified time | relevance | path

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

1234567

/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()
A Dtimer-tegra186.c162 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 Dsun8i-a33-mbus.c139 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 Dadf_gen4_hw_data.h78 #define ADF_RPRESET_POLL_TIMEOUT_US (5 * USEC_PER_SEC)
87 #define ADF_COALESCED_POLL_TIMEOUT_US (1 * USEC_PER_SEC)
A Dadf_gen6_pm.h13 #define ADF_GEN6_PM_POLL_TIMEOUT_US USEC_PER_SEC
A Dadf_pfvf_utils.h11 #define ADF_PFVF_MSG_ACK_MAX_DELAY_US (1 * USEC_PER_SEC)
A Dadf_gen4_pm.h20 #define ADF_GEN4_PM_POLL_TIMEOUT_US USEC_PER_SEC
/drivers/input/misc/
A Dpmic8xxx-pwrkey.c348 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 Dsunxi-cir.c145 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 Dmeson-ir-tx.c116 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 Dti-ads1015.c434 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 Dreset-lpc18xx.c163 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 Das73211.c264 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 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()
/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()
/drivers/pwm/
A Dpwm-rzg2l-gpt.c213 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 Dspi-mxic.c366 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 Dspi-kspi2.c46 #define KSPI2_XFER_TIMEOUT_US(kspi) (USEC_PER_SEC / \
50 #define KSPI2_INUSE_TIMEOUT_US (10 * USEC_PER_SEC)
/drivers/bus/
A Dbt1-apb.c72 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 Dmxic_nand.c357 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 Dbxcan.c308 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 Dice_controlq.h46 #define ICE_CTL_Q_SQ_CMD_TIMEOUT USEC_PER_SEC
/drivers/firmware/tegra/
A Dbpmp.c845 .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 Ddw-mipi-dsi-rockchip.c598 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 Dadf_6xxx_hw_data.h75 #define ADF_RPRESET_POLL_TIMEOUT_US (5 * USEC_PER_SEC)

Completed in 49 milliseconds

1234567