Home
last modified time | relevance | path

Searched refs:delay_us (Results 1 – 25 of 45) sorted by relevance

12

/drivers/gpu/drm/amd/display/dc/clk_mgr/dcn10/
Drv1_clk_mgr_vbios_smu.c84 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/
Drn_clk_mgr_vbios_smu.c70 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/
Ddcn30_clk_mgr_smu_msg.c52 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/
Daltera-ps-spi.c98 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/
Dreset-lpc18xx.c39 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/
Dpwm-sun4i.c238 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/
Ddcn20_vmid.c52 int delay_us = 5; in dcn20_wait_for_vmid_ready() local
65 udelay(delay_us); in dcn20_wait_for_vmid_ready()
/drivers/cpufreq/
Dcppc_cpufreq.c212 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()
Dcpufreq_governor.h104 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()
Dcpufreq_governor.c323 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/
Dov2685.c395 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/
Dcpuidle-tegra.c74 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/
Dmdio-mscc-miim.c45 #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/
Ddsi_pll.h52 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/
Ddsi_phy_10nm.c92 u32 const delay_us = 5; in dsi_10nm_phy_enable() local
112 delay_us, timeout_us); in dsi_10nm_phy_enable()
Ddsi_phy_7nm.c77 u32 const delay_us = 5; in dsi_7nm_phy_enable() local
100 delay_us, timeout_us); in dsi_7nm_phy_enable()
/drivers/iio/adc/
Dina2xx-adc.c779 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/
Dbmp280-core.c692 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/
Dcgu.h120 u16 delay_us; member
/drivers/clk/sunxi-ng/
Dccu_mux.h109 u32 delay_us; /* How many us to wait after reparenting */ member
Dccu_mux.c277 udelay(mux->delay_us); in ccu_mux_notifier_cb()
/drivers/video/backlight/
Dqcom-wled.c414 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/
Dregmap.c2373 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/
Dspi-nxp-fspi.c468 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/
Dena_com.c525 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()

12