Home
last modified time | relevance | path

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

1234

/drivers/clocksource/
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()
/drivers/iio/adc/
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()
/drivers/iio/light/
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()
Dtcs3472.c243 *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/
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()
/drivers/media/rc/
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()
328 ir->rc->rx_resolution = (USEC_PER_SEC / (b_clk_freq / 64)); in sunxi_ir_probe()
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/char/ipmi/
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()
Dipmi_kcs_sm.c103 #define IBF_RETRY_TIMEOUT (5*USEC_PER_SEC)
104 #define OBF_RETRY_TIMEOUT (5*USEC_PER_SEC)
/drivers/reset/
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()
/drivers/crypto/qat/qat_4xxx/
Dadf_4xxx_hw_data.h67 #define ADF_4XXX_PM_POLL_TIMEOUT_US USEC_PER_SEC
/drivers/firmware/tegra/
Dbpmp.c818 .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/
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/bus/
Dbt1-apb.c73 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/
Ddw-mipi-dsi-rockchip.c577 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/
Dspi-mxic.c301 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/
Dsparx5-temp.c39 u32 clk = clk_get_rate(hwmon->clk) / USEC_PER_SEC; in s5_temp_enable()
/drivers/clk/at91/
Dclk-main.c17 #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/
Dvidtv_s302m.c210 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/
Dbttv-input.c195 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/
Dintel_gt_clock_utils.c167 USEC_PER_SEC)); in intel_gt_init_clock_frequency()
/drivers/net/ethernet/cadence/
Dmacb_ptp.c140 adj += (USEC_PER_SEC >> 1); in gem_ptp_adjfine()
142 adj = div_u64(adj, USEC_PER_SEC); in gem_ptp_adjfine()
/drivers/block/aoe/
Daoe.h96 RTTAVG_INIT = USEC_PER_SEC / 4 << RTTSCALE,
/drivers/input/keyboard/
Dpmic8xxx-keypad.c149 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/
Dadf_admin.c17 #define ADF_ADMIN_POLL_TIMEOUT_US (5 * USEC_PER_SEC)

1234