Home
last modified time | relevance | path

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

123

/kernel/linux/linux-5.10/include/linux/
Diopoll.h79 #define read_poll_timeout_atomic(op, val, cond, delay_us, timeout_us, \ argument
83 unsigned long __delay_us = (delay_us); \
140 #define readx_poll_timeout_atomic(op, addr, val, cond, delay_us, timeout_us) \ argument
141 read_poll_timeout_atomic(op, val, cond, delay_us, timeout_us, false, addr)
143 #define readb_poll_timeout(addr, val, cond, delay_us, timeout_us) \ argument
144 readx_poll_timeout(readb, addr, val, cond, delay_us, timeout_us)
146 #define readb_poll_timeout_atomic(addr, val, cond, delay_us, timeout_us) \ argument
147 readx_poll_timeout_atomic(readb, addr, val, cond, delay_us, timeout_us)
149 #define readw_poll_timeout(addr, val, cond, delay_us, timeout_us) \ argument
150 readx_poll_timeout(readw, addr, val, cond, delay_us, timeout_us)
[all …]
/kernel/linux/linux-5.10/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()
/kernel/linux/linux-5.10/arch/powerpc/kernel/
Dstacktrace.c237 u64 delay_us; in raise_backtrace_ipi() local
245 delay_us = 5 * USEC_PER_SEC; in raise_backtrace_ipi()
247 if (smp_send_safe_nmi_ipi(cpu, handle_backtrace_ipi, delay_us)) { in raise_backtrace_ipi()
249 while (cpumask_test_cpu(cpu, mask) && delay_us) { in raise_backtrace_ipi()
251 delay_us--; in raise_backtrace_ipi()
255 if (delay_us) in raise_backtrace_ipi()
Dsmp.c476 u64 delay_us, bool safe) in __smp_send_nmi_ipi() argument
519 if (delay_us) { in __smp_send_nmi_ipi()
520 delay_us--; in __smp_send_nmi_ipi()
521 if (!delay_us) in __smp_send_nmi_ipi()
540 int smp_send_nmi_ipi(int cpu, void (*fn)(struct pt_regs *), u64 delay_us) in smp_send_nmi_ipi() argument
542 return __smp_send_nmi_ipi(cpu, fn, delay_us, false); in smp_send_nmi_ipi()
545 int smp_send_safe_nmi_ipi(int cpu, void (*fn)(struct pt_regs *), u64 delay_us) in smp_send_safe_nmi_ipi() argument
547 return __smp_send_nmi_ipi(cpu, fn, delay_us, true); in smp_send_safe_nmi_ipi()
/kernel/linux/linux-5.10/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()
/kernel/linux/linux-5.10/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()
/kernel/linux/linux-5.10/tools/testing/selftests/net/
Dso_txtime.c43 int64_t delay_us; member
79 if (ts->delay_us >= 0) { in do_send_one()
84 tdeliver = glob_tstart + ts->delay_us * 1000; in do_send_one()
116 texpect = ts->delay_us >= 0 ? ts->delay_us : 0; in do_recv_one()
312 array->delay_us = strtol(tok, NULL, 0) * 1000; in parse_io()
/kernel/linux/linux-5.10/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()
/kernel/linux/linux-5.10/sound/soc/intel/catpt/
Dregisters.h162 #define catpt_readl_poll_shim(cdev, reg, val, cond, delay_us, timeout_us) \ argument
164 val, cond, delay_us, timeout_us)
174 #define catpt_readl_poll_pci(cdev, reg, val, cond, delay_us, timeout_us) \ argument
176 val, cond, delay_us, timeout_us)
/kernel/linux/linux-5.10/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()
/kernel/linux/linux-5.10/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()
/kernel/linux/linux-5.10/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()
/kernel/linux/linux-5.10/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); \
/kernel/linux/linux-5.10/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()
/kernel/linux/linux-5.10/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()
/kernel/linux/linux-5.10/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()
/kernel/linux/linux-5.10/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()
/kernel/linux/linux-5.10/arch/powerpc/include/asm/
Dsmp.h58 extern int smp_send_nmi_ipi(int cpu, void (*fn)(struct pt_regs *), u64 delay_us);
59 extern int smp_send_safe_nmi_ipi(int cpu, void (*fn)(struct pt_regs *), u64 delay_us);
/kernel/linux/linux-5.10/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()
/kernel/linux/linux-5.10/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()
/kernel/linux/linux-5.10/arch/arm/lib/
Ddelay-loop.S25 mul r0, r2, r0 @ r0 = delay_us * UDELAY_MULT
/kernel/linux/linux-5.10/drivers/clk/ingenic/
Dcgu.h120 u16 delay_us; member
/kernel/linux/linux-5.10/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()

123