/drivers/gpu/drm/amd/display/dc/clk_mgr/dcn10/ |
D | rv1_clk_mgr_vbios_smu.c | 84 static uint32_t rv1_smu_wait_for_response(struct clk_mgr_internal *clk_mgr, unsigned int delay_us, … in rv1_smu_wait_for_response() argument 93 if (delay_us >= 1000) in rv1_smu_wait_for_response() 94 msleep(delay_us/1000); in rv1_smu_wait_for_response() 95 else if (delay_us > 0) in rv1_smu_wait_for_response() 96 udelay(delay_us); in rv1_smu_wait_for_response()
|
/drivers/gpu/drm/amd/display/dc/clk_mgr/dcn21/ |
D | rn_clk_mgr_vbios_smu.c | 70 static uint32_t rn_smu_wait_for_response(struct clk_mgr_internal *clk_mgr, unsigned int delay_us, u… in rn_smu_wait_for_response() argument 79 if (delay_us >= 1000) in rn_smu_wait_for_response() 80 msleep(delay_us/1000); in rn_smu_wait_for_response() 81 else if (delay_us > 0) in rn_smu_wait_for_response() 82 udelay(delay_us); in rn_smu_wait_for_response()
|
/drivers/gpu/drm/amd/display/dc/clk_mgr/dcn30/ |
D | dcn30_clk_mgr_smu_msg.c | 52 static uint32_t dcn30_smu_wait_for_response(struct clk_mgr_internal *clk_mgr, unsigned int delay_us… in dcn30_smu_wait_for_response() argument 61 if (delay_us >= 1000) in dcn30_smu_wait_for_response() 62 msleep(delay_us/1000); in dcn30_smu_wait_for_response() 63 else if (delay_us > 0) in dcn30_smu_wait_for_response() 64 udelay(delay_us); in dcn30_smu_wait_for_response()
|
/drivers/fpga/ |
D | altera-ps-spi.c | 98 static inline void altera_ps_delay(int delay_us) in altera_ps_delay() argument 100 if (delay_us > 10) in altera_ps_delay() 101 usleep_range(delay_us, delay_us + 5); in altera_ps_delay() 103 udelay(delay_us); in altera_ps_delay()
|
/drivers/reset/ |
D | reset-lpc18xx.c | 39 u32 delay_us; member 109 udelay(rc->delay_us); in lpc18xx_rgu_reset() 182 rc->delay_us = 2; in lpc18xx_rgu_probe() 184 rc->delay_us = DIV_ROUND_UP(fcclk, firc * firc); in lpc18xx_rgu_probe()
|
/drivers/pwm/ |
D | pwm-sun4i.c | 238 unsigned int delay_us, prescaler = 0; in sun4i_pwm_apply() local 310 delay_us = jiffies_to_usecs(sun4i_pwm->next_period[pwm->hwpwm] - in sun4i_pwm_apply() 312 if ((delay_us / 500) > MAX_UDELAY_MS) in sun4i_pwm_apply() 313 msleep(delay_us / 1000 + 1); in sun4i_pwm_apply() 315 usleep_range(delay_us, delay_us * 2); in sun4i_pwm_apply()
|
/drivers/gpu/drm/amd/display/dc/dcn20/ |
D | dcn20_vmid.c | 52 int delay_us = 5; in dcn20_wait_for_vmid_ready() local 65 udelay(delay_us); in dcn20_wait_for_vmid_ready()
|
/drivers/cpufreq/ |
D | cppc_cpufreq.c | 212 unsigned int delay_us = 0; in cppc_cpufreq_get_transition_delay_us() local 219 delay_us = 10000; in cppc_cpufreq_get_transition_delay_us() 222 delay_us = cppc_get_transition_latency(cpu) / NSEC_PER_USEC; in cppc_cpufreq_get_transition_delay_us() 227 delay_us = cppc_get_transition_latency(cpu) / NSEC_PER_USEC; in cppc_cpufreq_get_transition_delay_us() 231 return delay_us; in cppc_cpufreq_get_transition_delay_us()
|
D | cpufreq_governor.h | 104 unsigned int delay_us) in gov_update_sample_delay() argument 106 policy_dbs->sample_delay_ns = delay_us * NSEC_PER_USEC; in gov_update_sample_delay()
|
D | cpufreq_governor.c | 323 unsigned int delay_us) in gov_set_update_util() argument 328 gov_update_sample_delay(policy_dbs, delay_us); in gov_set_update_util()
|
/drivers/media/i2c/ |
D | ov2685.c | 395 u32 delay_us; in __ov2685_power_on() local 415 delay_us = ov2685_cal_delay(8192); in __ov2685_power_on() 416 usleep_range(delay_us, delay_us * 2); in __ov2685_power_on() 438 u32 delay_us = ov2685_cal_delay(512); in __ov2685_power_off() local 440 usleep_range(delay_us, delay_us * 2); in __ov2685_power_off()
|
/drivers/cpuidle/ |
D | cpuidle-tegra.c | 74 unsigned int delay_us = 10; in tegra_cpuidle_wait_for_secondary_cpus_parking() local 75 unsigned int timeout_us = 500 * 1000 / delay_us; in tegra_cpuidle_wait_for_secondary_cpus_parking() 88 udelay(delay_us); in tegra_cpuidle_wait_for_secondary_cpus_parking()
|
/drivers/net/mdio/ |
D | mdio-mscc-miim.c | 45 #define mscc_readl_poll_timeout(addr, val, cond, delay_us, timeout_us) \ argument 48 readl_poll_timeout_atomic(addr, val, cond, delay_us, \ 50 readl_poll_timeout(addr, val, cond, delay_us, timeout_us); \
|
/drivers/gpu/drm/msm/dsi/pll/ |
D | dsi_pll.h | 52 static inline void pll_write_udelay(void __iomem *reg, u32 data, u32 delay_us) in pll_write_udelay() argument 55 udelay(delay_us); in pll_write_udelay()
|
/drivers/gpu/drm/msm/dsi/phy/ |
D | dsi_phy_10nm.c | 92 u32 const delay_us = 5; in dsi_10nm_phy_enable() local 112 delay_us, timeout_us); in dsi_10nm_phy_enable()
|
D | dsi_phy_7nm.c | 77 u32 const delay_us = 5; in dsi_7nm_phy_enable() local 100 delay_us, timeout_us); in dsi_7nm_phy_enable()
|
/drivers/iio/adc/ |
D | ina2xx-adc.c | 779 s64 delay_us; in ina2xx_capture_thread() local 821 delay_us = div_s64(timespec64_to_ns(&delta), 1000); in ina2xx_capture_thread() 822 } while (delay_us <= 0); in ina2xx_capture_thread() 824 usleep_range(delay_us, (delay_us * 3) >> 1); in ina2xx_capture_thread()
|
/drivers/iio/pressure/ |
D | bmp280-core.c | 692 unsigned int delay_us; in bmp180_measure() local 714 delay_us = 4500; in bmp180_measure() 716 delay_us = in bmp180_measure() 719 usleep_range(delay_us, delay_us + 1000); in bmp180_measure()
|
/drivers/clk/ingenic/ |
D | cgu.h | 120 u16 delay_us; member
|
/drivers/clk/sunxi-ng/ |
D | ccu_mux.h | 109 u32 delay_us; /* How many us to wait after reparenting */ member
|
D | ccu_mux.c | 277 udelay(mux->delay_us); in ccu_mux_notifier_cb()
|
/drivers/video/backlight/ |
D | qcom-wled.c | 414 int rc, delay_us; in wled5_ovp_delay() local 422 delay_us = in wled5_ovp_delay() 425 delay_us = 2 * WLED_SOFT_START_DLY_US; in wled5_ovp_delay() 427 dev_dbg(wled->dev, "delay_time_us: %d\n", delay_us); in wled5_ovp_delay() 429 return delay_us; in wled5_ovp_delay()
|
/drivers/base/regmap/ |
D | regmap.c | 2373 if (page_change || regs[i].delay_us) { in _regmap_range_multi_paged_reg_write() 2381 if (regs[i].delay_us && i == 0) in _regmap_range_multi_paged_reg_write() 2388 if (regs[i].delay_us) { in _regmap_range_multi_paged_reg_write() 2390 fsleep(regs[i].delay_us); in _regmap_range_multi_paged_reg_write() 2392 udelay(regs[i].delay_us); in _regmap_range_multi_paged_reg_write() 2429 if (regs[i].delay_us) { in _regmap_multi_reg_write() 2431 fsleep(regs[i].delay_us); in _regmap_multi_reg_write() 2433 udelay(regs[i].delay_us); in _regmap_multi_reg_write() 2479 if (range || regs[i].delay_us) { in _regmap_multi_reg_write()
|
/drivers/spi/ |
D | spi-nxp-fspi.c | 468 u32 mask, u32 delay_us, in fspi_readl_poll_tout() argument 478 delay_us, timeout_us); in fspi_readl_poll_tout() 481 delay_us, timeout_us); in fspi_readl_poll_tout()
|
/drivers/net/ethernet/amazon/ena/ |
D | ena_com.c | 525 static void ena_delay_exponential_backoff_us(u32 exp, u32 delay_us) in ena_delay_exponential_backoff_us() argument 528 delay_us = max_t(u32, ENA_MIN_ADMIN_POLL_US, delay_us); in ena_delay_exponential_backoff_us() 529 delay_us = min_t(u32, delay_us * (1U << exp), ENA_MAX_ADMIN_POLL_US); in ena_delay_exponential_backoff_us() 530 usleep_range(delay_us, 2 * delay_us); in ena_delay_exponential_backoff_us()
|