Home
last modified time | relevance | path

Searched refs:timeout_us (Results 1 – 25 of 58) sorted by relevance

123

/kernel/linux/linux-5.10/include/linux/
Diopoll.h36 #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 …]
Dregmap.h103 #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/
Dlima_device.h125 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/
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/gpu/drm/amd/display/dmub/
Ddmub_srv.h506 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/
Ddmub_srv.c520 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/
Dmdio-mscc-miim.c45 #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/
Ddsi_pll_28nm.c92 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()
Ddsi_pll_28nm_8960.c87 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/
Dhabanalabs.h1335 #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 …]
Dcommand_submission.c18 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/
Dphy-samsung-ufs.c51 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/
Dcpuidle-tegra.c75 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/
Ddsi_phy_10nm.c93 u32 const timeout_us = 1000; in dsi_10nm_phy_enable() local
112 delay_us, timeout_us); in dsi_10nm_phy_enable()
Ddsi_phy_7nm.c78 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/
Dcore.c680 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/
Dsdricoh_cs.c160 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/
Ddpu_hw_pingpong.h101 int (*poll_timeout_wr_ptr)(struct dpu_hw_pingpong *pp, u32 timeout_us);
Ddpu_hw_pingpong.c124 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/
Dlight.c35 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/
Daltera-cvp.c161 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/
Dselftest_rps.c876 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/
Dqcom_geni_serial.c274 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/
Dops.h506 #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/
Ddavinci_nand.c702 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()

123