/kernel/linux/linux-5.10/include/linux/ |
D | iopoll.h | 36 #define read_poll_timeout(op, val, cond, sleep_us, timeout_us, \ argument 39 u64 __timeout_us = (timeout_us); \ 79 #define read_poll_timeout_atomic(op, val, cond, delay_us, timeout_us, \ argument 82 u64 __timeout_us = (timeout_us); \ 120 #define readx_poll_timeout(op, addr, val, cond, sleep_us, timeout_us) \ argument 121 read_poll_timeout(op, val, cond, sleep_us, timeout_us, false, addr) 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) [all …]
|
D | regmap.h | 103 #define regmap_read_poll_timeout(map, addr, val, cond, sleep_us, timeout_us) \ argument 107 sleep_us, timeout_us, false, (map), (addr), &(val)); \ 133 #define regmap_read_poll_timeout_atomic(map, addr, val, cond, delay_us, timeout_us) \ argument 135 u64 __timeout_us = (timeout_us); \ 174 #define regmap_field_read_poll_timeout(field, val, cond, sleep_us, timeout_us) \ argument 178 sleep_us, timeout_us, false, (field), &(val)); \
|
/kernel/linux/linux-5.10/drivers/gpu/drm/lima/ |
D | lima_device.h | 125 int sleep_us, int timeout_us) in lima_poll_timeout() argument 127 ktime_t timeout = ktime_add_us(ktime_get(), timeout_us); in lima_poll_timeout() 134 if (timeout_us && ktime_compare(ktime_get(), timeout) > 0) in lima_poll_timeout()
|
/kernel/linux/linux-5.10/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)
|
/kernel/linux/linux-5.10/drivers/gpu/drm/amd/display/dmub/ |
D | dmub_srv.h | 506 uint32_t timeout_us); 525 uint32_t timeout_us); 542 uint32_t timeout_us); 565 uint16_t param, uint32_t timeout_us);
|
/kernel/linux/linux-5.10/drivers/gpu/drm/amd/display/dmub/src/ |
D | dmub_srv.c | 520 uint32_t timeout_us) in dmub_srv_wait_for_auto_load() argument 530 for (i = 0; i <= timeout_us; i += 100) { in dmub_srv_wait_for_auto_load() 541 uint32_t timeout_us) in dmub_srv_wait_for_phy_init() argument 551 for (i = 0; i <= timeout_us; i += 10) { in dmub_srv_wait_for_phy_init() 562 uint32_t timeout_us) in dmub_srv_wait_for_idle() argument 569 for (i = 0; i <= timeout_us; ++i) { in dmub_srv_wait_for_idle() 583 uint16_t param, uint32_t timeout_us) in dmub_srv_send_gpint_command() argument 603 for (i = 0; i < timeout_us; ++i) { in dmub_srv_send_gpint_command()
|
/kernel/linux/linux-5.10/drivers/net/mdio/ |
D | mdio-mscc-miim.c | 45 #define mscc_readl_poll_timeout(addr, val, cond, delay_us, timeout_us) \ argument 49 timeout_us); \ 50 readl_poll_timeout(addr, val, cond, delay_us, timeout_us); \
|
/kernel/linux/linux-5.10/drivers/gpu/drm/msm/dsi/pll/ |
D | dsi_pll_28nm.c | 92 u32 nb_tries, u32 timeout_us) in pll_28nm_poll_for_ready() argument 104 udelay(timeout_us); in pll_28nm_poll_for_ready() 318 u32 max_reads = 5, timeout_us = 100; in dsi_pll_28nm_enable_seq_hpm() local 351 max_reads, timeout_us); in dsi_pll_28nm_enable_seq_hpm() 394 u32 max_reads = 10, timeout_us = 50; in dsi_pll_28nm_enable_seq_lp() local 421 locked = pll_28nm_poll_for_ready(pll_28nm, max_reads, timeout_us); in dsi_pll_28nm_enable_seq_lp()
|
D | dsi_pll_28nm_8960.c | 87 int nb_tries, int timeout_us) in pll_28nm_poll_for_ready() argument 99 udelay(timeout_us); in pll_28nm_poll_for_ready() 294 int max_reads = 1000, timeout_us = 100; in dsi_pll_28nm_enable_seq() local 319 locked = pll_28nm_poll_for_ready(pll_28nm, max_reads, timeout_us); in dsi_pll_28nm_enable_seq()
|
/kernel/linux/linux-5.10/drivers/misc/habanalabs/common/ |
D | habanalabs.h | 1335 #define hl_poll_timeout(hdev, addr, val, cond, sleep_us, timeout_us) \ argument 1339 __timeout = ktime_add_us(ktime_get(), timeout_us); \ 1342 min((u64)(timeout_us * 10), \ 1349 if (timeout_us && ktime_compare(ktime_get(), __timeout) > 0) { \ 1371 #define hl_poll_timeout_memory(hdev, addr, val, cond, sleep_us, timeout_us, \ argument 1376 __timeout = ktime_add_us(ktime_get(), timeout_us); \ 1379 min((u64)(timeout_us * 10), \ 1390 if (timeout_us && ktime_compare(ktime_get(), __timeout) > 0) { \ 1403 timeout_us) \ argument 1407 __timeout = ktime_add_us(ktime_get(), timeout_us); \ [all …]
|
D | command_submission.c | 18 struct hl_ctx *ctx, u64 timeout_us, u64 seq); 1162 struct hl_ctx *ctx, u64 timeout_us, u64 seq) in _hl_cs_wait_ioctl() argument 1168 if (timeout_us == MAX_SCHEDULE_TIMEOUT) in _hl_cs_wait_ioctl() 1169 timeout = timeout_us; in _hl_cs_wait_ioctl() 1171 timeout = usecs_to_jiffies(timeout_us); in _hl_cs_wait_ioctl() 1183 if (!timeout_us) in _hl_cs_wait_ioctl() 1214 rc = _hl_cs_wait_ioctl(hdev, hpriv->ctx, args->in.timeout_us, seq); in hl_cs_wait_ioctl()
|
/kernel/linux/linux-5.10/drivers/phy/samsung/ |
D | phy-samsung-ufs.c | 51 const unsigned int timeout_us = 100000; in samsung_ufs_phy_wait_for_lock_acq() local 58 val, (val & PHY_PLL_LOCK_BIT), sleep_us, timeout_us); in samsung_ufs_phy_wait_for_lock_acq() 67 val, (val & PHY_CDR_LOCK_BIT), sleep_us, timeout_us); in samsung_ufs_phy_wait_for_lock_acq()
|
/kernel/linux/linux-5.10/drivers/cpuidle/ |
D | cpuidle-tegra.c | 75 unsigned int timeout_us = 500 * 1000 / delay_us; in tegra_cpuidle_wait_for_secondary_cpus_parking() local 90 } while (timeout_us--); in tegra_cpuidle_wait_for_secondary_cpus_parking()
|
/kernel/linux/linux-5.10/drivers/gpu/drm/msm/dsi/phy/ |
D | dsi_phy_10nm.c | 93 u32 const timeout_us = 1000; in dsi_10nm_phy_enable() local 112 delay_us, timeout_us); in dsi_10nm_phy_enable()
|
D | dsi_phy_7nm.c | 78 u32 const timeout_us = 1000; in dsi_7nm_phy_enable() local 100 delay_us, timeout_us); in dsi_7nm_phy_enable()
|
/kernel/linux/linux-5.10/drivers/mmc/core/ |
D | core.c | 680 unsigned int timeout_us, limit_us; in mmc_set_data_timeout() local 682 timeout_us = data->timeout_ns / 1000; in mmc_set_data_timeout() 684 timeout_us += data->timeout_clks * 1000 / in mmc_set_data_timeout() 703 if (timeout_us > limit_us) { in mmc_set_data_timeout() 709 if (timeout_us == 0) in mmc_set_data_timeout() 1554 unsigned int timeout_us; in mmc_mmc_erase_timeout() local 1558 timeout_us = (card->csd.taac_ns * mult) / 1000; in mmc_mmc_erase_timeout() 1560 timeout_us = (card->csd.taac_ns / 1000) * mult; in mmc_mmc_erase_timeout() 1567 timeout_us += (timeout_clks * 1000) / in mmc_mmc_erase_timeout() 1570 erase_timeout = timeout_us / 1000; in mmc_mmc_erase_timeout()
|
/kernel/linux/linux-5.10/drivers/mmc/host/ |
D | sdricoh_cs.c | 160 unsigned int status, timeout_us; in sdricoh_mmc_cmd() local 182 timeout_us = cmd->busy_timeout ? cmd->busy_timeout * 1000 : in sdricoh_mmc_cmd() 187 32, timeout_us, false, in sdricoh_mmc_cmd()
|
/kernel/linux/linux-5.10/drivers/gpu/drm/msm/disp/dpu1/ |
D | dpu_hw_pingpong.h | 101 int (*poll_timeout_wr_ptr)(struct dpu_hw_pingpong *pp, u32 timeout_us);
|
D | dpu_hw_pingpong.c | 124 u32 timeout_us) in dpu_hw_pp_poll_timeout_wr_ptr() argument 135 val, (val & 0xffff) >= 1, 10, timeout_us); in dpu_hw_pp_poll_timeout_wr_ptr()
|
/kernel/linux/linux-5.10/drivers/staging/greybus/ |
D | light.c | 35 struct led_flash_setting timeout_us; member 690 req.timeout_us = cpu_to_le32(timeout); in gb_lights_flash_timeout_set() 788 fset->min = channel->timeout_us.min; in __gb_lights_flash_led_register() 789 fset->max = channel->timeout_us.max; in __gb_lights_flash_led_register() 790 fset->step = channel->timeout_us.step; in __gb_lights_flash_led_register() 791 fset->val = channel->timeout_us.max; in __gb_lights_flash_led_register() 859 fset = &channel->timeout_us; in gb_lights_channel_flash_config()
|
/kernel/linux/linux-5.10/drivers/fpga/ |
D | altera-cvp.c | 161 u32 status_val, int timeout_us) in altera_cvp_wait_status() argument 166 retries = timeout_us / 10; in altera_cvp_wait_status() 167 if (timeout_us % 10) in altera_cvp_wait_status()
|
/kernel/linux/linux-5.10/drivers/gpu/drm/i915/gt/ |
D | selftest_rps.c | 876 static void sleep_for_ei(struct intel_rps *rps, int timeout_us) in sleep_for_ei() argument 879 usleep_range(timeout_us, 2 * timeout_us); in sleep_for_ei() 887 usleep_range(2 * timeout_us, 3 * timeout_us); in sleep_for_ei()
|
/kernel/linux/linux-5.10/drivers/tty/serial/ |
D | qcom_geni_serial.c | 274 unsigned long timeout_us = 20000; in qcom_geni_serial_poll_bit() local 287 timeout_us = ((fifo_bits * USEC_PER_SEC) / baud) + 500; in qcom_geni_serial_poll_bit() 294 timeout_us = DIV_ROUND_UP(timeout_us, 10) * 10; in qcom_geni_serial_poll_bit() 295 while (timeout_us) { in qcom_geni_serial_poll_bit() 300 timeout_us -= 10; in qcom_geni_serial_poll_bit()
|
/kernel/linux/linux-5.10/sound/soc/sof/ |
D | ops.h | 506 #define snd_sof_dsp_read_poll_timeout(sdev, bar, offset, val, cond, sleep_us, timeout_us) \ argument 508 u64 __timeout_us = (timeout_us); \
|
/kernel/linux/linux-5.10/drivers/mtd/nand/raw/ |
D | davinci_nand.c | 702 unsigned int i, timeout_us; in davinci_nand_exec_instr() local 732 timeout_us = instr->ctx.waitrdy.timeout_ms * 1000; in davinci_nand_exec_instr() 735 timeout_us); in davinci_nand_exec_instr()
|