/Linux-v5.15/include/linux/ |
D | iopoll.h | 79 #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 …]
|
/Linux-v5.15/arch/powerpc/kernel/ |
D | stacktrace.c | 178 u64 delay_us; in raise_backtrace_ipi() local 186 delay_us = 5 * USEC_PER_SEC; in raise_backtrace_ipi() 188 if (smp_send_safe_nmi_ipi(cpu, handle_backtrace_ipi, delay_us)) { in raise_backtrace_ipi() 190 while (cpumask_test_cpu(cpu, mask) && delay_us) { in raise_backtrace_ipi() 192 delay_us--; in raise_backtrace_ipi() 196 if (delay_us) in raise_backtrace_ipi()
|
D | smp.c | 501 u64 delay_us, bool safe) in __smp_send_nmi_ipi() argument 544 if (delay_us) { in __smp_send_nmi_ipi() 545 delay_us--; in __smp_send_nmi_ipi() 546 if (!delay_us) in __smp_send_nmi_ipi() 565 int smp_send_nmi_ipi(int cpu, void (*fn)(struct pt_regs *), u64 delay_us) in smp_send_nmi_ipi() argument 567 return __smp_send_nmi_ipi(cpu, fn, delay_us, false); in smp_send_nmi_ipi() 570 int smp_send_safe_nmi_ipi(int cpu, void (*fn)(struct pt_regs *), u64 delay_us) in smp_send_safe_nmi_ipi() argument 572 return __smp_send_nmi_ipi(cpu, fn, delay_us, true); in smp_send_safe_nmi_ipi()
|
/Linux-v5.15/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()
|
/Linux-v5.15/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()
|
/Linux-v5.15/drivers/gpu/drm/amd/display/dc/clk_mgr/dcn301/ |
D | dcn301_smu.c | 73 …01_smu_wait_for_response(struct clk_mgr_internal *clk_mgr, unsigned int delay_us, unsigned int max… in dcn301_smu_wait_for_response() argument 82 if (delay_us >= 1000) in dcn301_smu_wait_for_response() 83 msleep(delay_us/1000); in dcn301_smu_wait_for_response() 84 else if (delay_us > 0) in dcn301_smu_wait_for_response() 85 udelay(delay_us); in dcn301_smu_wait_for_response()
|
/Linux-v5.15/drivers/gpu/drm/amd/display/dc/clk_mgr/dcn31/ |
D | dcn31_smu.c | 80 static uint32_t dcn31_smu_wait_for_response(struct clk_mgr_internal *clk_mgr, unsigned int delay_us… in dcn31_smu_wait_for_response() argument 89 if (delay_us >= 1000) in dcn31_smu_wait_for_response() 90 msleep(delay_us/1000); in dcn31_smu_wait_for_response() 91 else if (delay_us > 0) in dcn31_smu_wait_for_response() 92 udelay(delay_us); in dcn31_smu_wait_for_response()
|
/Linux-v5.15/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()
|
/Linux-v5.15/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()
|
/Linux-v5.15/sound/soc/intel/catpt/ |
D | registers.h | 162 #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)
|
/Linux-v5.15/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()
|
/Linux-v5.15/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()
|
/Linux-v5.15/tools/testing/selftests/net/ |
D | so_txtime.c | 49 int64_t delay_us; member 90 if (ts->delay_us >= 0) { in do_send_one() 95 tdeliver = glob_tstart + ts->delay_us * 1000; in do_send_one() 129 texpect = ts->delay_us >= 0 ? ts->delay_us : 0; in do_recv_one() 404 array->delay_us = strtol(tok, NULL, 0) * 1000; in parse_io()
|
/Linux-v5.15/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()
|
/Linux-v5.15/drivers/cpuidle/ |
D | cpuidle-tegra.c | 69 unsigned int delay_us = 10; in tegra_cpuidle_wait_for_secondary_cpus_parking() local 70 unsigned int timeout_us = 500 * 1000 / delay_us; in tegra_cpuidle_wait_for_secondary_cpus_parking() 83 udelay(delay_us); in tegra_cpuidle_wait_for_secondary_cpus_parking()
|
/Linux-v5.15/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); \
|
/Linux-v5.15/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()
|
/Linux-v5.15/drivers/gpu/drm/msm/dsi/phy/ |
D | dsi_phy.h | 17 #define dsi_phy_write_udelay(offset, data, delay_us) { msm_writel((data), (offset)); udelay(delay_u… argument
|
/Linux-v5.15/drivers/cpufreq/ |
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()
|
/Linux-v5.15/arch/powerpc/include/asm/ |
D | smp.h | 63 extern int smp_send_nmi_ipi(int cpu, void (*fn)(struct pt_regs *), u64 delay_us); 64 extern int smp_send_safe_nmi_ipi(int cpu, void (*fn)(struct pt_regs *), u64 delay_us);
|
/Linux-v5.15/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()
|
/Linux-v5.15/arch/arm/lib/ |
D | delay-loop.S | 25 mul r0, r2, r0 @ r0 = delay_us * UDELAY_MULT
|
/Linux-v5.15/drivers/clk/ingenic/ |
D | cgu.h | 124 u16 delay_us; member
|
/Linux-v5.15/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()
|
/Linux-v5.15/drivers/clk/sunxi-ng/ |
D | ccu_mux.h | 109 u32 delay_us; /* How many us to wait after reparenting */ member
|