/linux-6.6.21/include/linux/ |
D | iopoll.h | 36 #define read_poll_timeout(op, val, cond, sleep_us, timeout_us, \ argument 39 u64 __timeout_us = (timeout_us); \ 84 #define read_poll_timeout_atomic(op, val, cond, delay_us, timeout_us, \ argument 87 u64 __timeout_us = (timeout_us); \ 134 #define readx_poll_timeout(op, addr, val, cond, sleep_us, timeout_us) \ argument 135 read_poll_timeout(op, val, cond, sleep_us, timeout_us, false, addr) 154 #define readx_poll_timeout_atomic(op, addr, val, cond, delay_us, timeout_us) \ argument 155 read_poll_timeout_atomic(op, val, cond, delay_us, timeout_us, false, addr) 157 #define readb_poll_timeout(addr, val, cond, delay_us, timeout_us) \ argument 158 readx_poll_timeout(readb, addr, val, cond, delay_us, timeout_us) [all …]
|
D | regmap.h | 121 #define regmap_read_poll_timeout(map, addr, val, cond, sleep_us, timeout_us) \ argument 125 sleep_us, timeout_us, false, (map), (addr), &(val)); \ 151 #define regmap_read_poll_timeout_atomic(map, addr, val, cond, delay_us, timeout_us) \ argument 153 u64 __timeout_us = (timeout_us); \ 192 #define regmap_field_read_poll_timeout(field, val, cond, sleep_us, timeout_us) \ argument 196 sleep_us, timeout_us, false, (field), &(val)); \
|
/linux-6.6.21/drivers/accel/ivpu/ |
D | ivpu_hw_reg_io.h | 50 #define REGB_POLL(reg, var, cond, timeout_us) \ argument 51 read_poll_timeout(REGB_RD32_SILENT, var, cond, REG_POLL_SLEEP_US, timeout_us, false, reg) 53 #define REGV_POLL(reg, var, cond, timeout_us) \ argument 54 read_poll_timeout(REGV_RD32_SILENT, var, cond, REG_POLL_SLEEP_US, timeout_us, false, reg) 56 #define REGB_POLL_FLD(reg, fld, val, timeout_us) \ argument 59 REGB_POLL(reg, var, (FIELD_GET(reg##_##fld##_MASK, var) == (val)), timeout_us); \ 62 #define REGV_POLL_FLD(reg, fld, val, timeout_us) \ argument 65 REGV_POLL(reg, var, (FIELD_GET(reg##_##fld##_MASK, var) == (val)), timeout_us); \
|
/linux-6.6.21/drivers/gpu/drm/i915/gt/ |
D | intel_context_param.h | 14 intel_context_set_watchdog_us(struct intel_context *ce, u64 timeout_us) in intel_context_set_watchdog_us() argument 16 ce->watchdog.timeout_us = timeout_us; in intel_context_set_watchdog_us()
|
/linux-6.6.21/include/sound/ |
D | hdaudio_ext.h | 146 #define snd_hdac_adsp_readb_poll(chip, reg, val, cond, delay_us, timeout_us) \ argument 148 delay_us, timeout_us) 149 #define snd_hdac_adsp_readw_poll(chip, reg, val, cond, delay_us, timeout_us) \ argument 151 delay_us, timeout_us) 152 #define snd_hdac_adsp_readl_poll(chip, reg, val, cond, delay_us, timeout_us) \ argument 154 delay_us, timeout_us) 155 #define snd_hdac_adsp_readq_poll(chip, reg, val, cond, delay_us, timeout_us) \ argument 157 delay_us, timeout_us)
|
D | hdaudio.h | 624 #define snd_hdac_stream_readb_poll(dev, reg, val, cond, delay_us, timeout_us) \ argument 625 read_poll_timeout_atomic(snd_hdac_reg_readb, val, cond, delay_us, timeout_us, \ 627 #define snd_hdac_stream_readl_poll(dev, reg, val, cond, delay_us, timeout_us) \ argument 628 read_poll_timeout_atomic(snd_hdac_reg_readl, val, cond, delay_us, timeout_us, \
|
/linux-6.6.21/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()
|
/linux-6.6.21/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-6.6.21/drivers/gpu/drm/amd/display/dmub/ |
D | dmub_srv.h | 672 uint32_t timeout_us); 691 uint32_t timeout_us); 708 uint32_t timeout_us); 731 uint16_t param, uint32_t timeout_us); 828 enum dmub_status dmub_srv_wait_for_inbox0_ack(struct dmub_srv *dmub, uint32_t timeout_us);
|
/linux-6.6.21/drivers/gpu/drm/msm/dsi/phy/ |
D | dsi_phy_28nm.c | 80 u32 nb_tries, u32 timeout_us) in pll_28nm_poll_for_ready() argument 92 udelay(timeout_us); in pll_28nm_poll_for_ready() 292 u32 max_reads = 5, timeout_us = 100; in _dsi_pll_28nm_vco_prepare_hpm() local 325 timeout_us); in _dsi_pll_28nm_vco_prepare_hpm() 386 u32 max_reads = 5, timeout_us = 100; in dsi_pll_28nm_vco_prepare_8226() local 420 max_reads, timeout_us); in dsi_pll_28nm_vco_prepare_8226() 455 u32 max_reads = 10, timeout_us = 50; in dsi_pll_28nm_vco_prepare_lp() local 485 locked = pll_28nm_poll_for_ready(pll_28nm, max_reads, timeout_us); in dsi_pll_28nm_vco_prepare_lp()
|
D | dsi_phy_28nm_8960.c | 71 int nb_tries, int timeout_us) in pll_28nm_poll_for_ready() argument 83 udelay(timeout_us); in pll_28nm_poll_for_ready() 183 int max_reads = 1000, timeout_us = 100; in dsi_pll_28nm_vco_prepare() local 211 locked = pll_28nm_poll_for_ready(pll_28nm, max_reads, timeout_us); in dsi_pll_28nm_vco_prepare()
|
/linux-6.6.21/drivers/spi/ |
D | spi-rockchip-sfc.c | 249 static int rockchip_sfc_wait_txfifo_ready(struct rockchip_sfc *sfc, u32 timeout_us) in rockchip_sfc_wait_txfifo_ready() argument 256 timeout_us); in rockchip_sfc_wait_txfifo_ready() 266 static int rockchip_sfc_wait_rxfifo_ready(struct rockchip_sfc *sfc, u32 timeout_us) in rockchip_sfc_wait_rxfifo_ready() argument 273 timeout_us); in rockchip_sfc_wait_rxfifo_ready() 470 static int rockchip_sfc_xfer_done(struct rockchip_sfc *sfc, u32 timeout_us) in rockchip_sfc_xfer_done() argument 477 20, timeout_us); in rockchip_sfc_xfer_done()
|
/linux-6.6.21/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() 68 val, (val & PHY_CDR_LOCK_BIT), sleep_us, timeout_us); in samsung_ufs_phy_wait_for_lock_acq()
|
/linux-6.6.21/drivers/net/mdio/ |
D | mdio-mscc-miim.c | 65 #define mscc_readx_poll_timeout(op, addr, val, cond, delay_us, timeout_us)\ argument 69 timeout_us); \ 70 readx_poll_timeout(op, addr, val, cond, delay_us, timeout_us); \
|
/linux-6.6.21/drivers/leds/flash/ |
D | leds-qcom-flash.c | 545 u32 current_ua, timeout_us; in qcom_flash_register_led_device() local 619 rc = fwnode_property_read_u32(node, "flash-max-timeout-us", &timeout_us); in qcom_flash_register_led_device() 626 timeout_us = min_t(u32, timeout_us, FLASH_TIMEOUT_MAX_US); in qcom_flash_register_led_device() 631 timeout->val = timeout->max = timeout_us; in qcom_flash_register_led_device() 633 led->max_timeout_ms = led->flash_timeout_ms = timeout_us / USEC_PER_MSEC; in qcom_flash_register_led_device()
|
/linux-6.6.21/drivers/gpu/drm/amd/display/dmub/src/ |
D | dmub_srv.c | 755 uint32_t timeout_us) in dmub_srv_wait_for_auto_load() argument 762 for (i = 0; i <= timeout_us; i += 100) { in dmub_srv_wait_for_auto_load() 775 uint32_t timeout_us) in dmub_srv_wait_for_idle() argument 782 for (i = 0; i <= timeout_us; ++i) { in dmub_srv_wait_for_idle() 802 uint16_t param, uint32_t timeout_us) in dmub_srv_send_gpint_command() argument 822 for (i = 0; i < timeout_us; ++i) { in dmub_srv_send_gpint_command() 988 enum dmub_status dmub_srv_wait_for_inbox0_ack(struct dmub_srv *dmub, uint32_t timeout_us) in dmub_srv_wait_for_inbox0_ack() argument 996 for (i = 0; i <= timeout_us; i++) { in dmub_srv_wait_for_inbox0_ack()
|
/linux-6.6.21/drivers/cpuidle/ |
D | cpuidle-tegra.c | 70 unsigned int timeout_us = 500 * 1000 / delay_us; in tegra_cpuidle_wait_for_secondary_cpus_parking() local 85 } while (timeout_us--); in tegra_cpuidle_wait_for_secondary_cpus_parking()
|
/linux-6.6.21/drivers/accel/habanalabs/common/ |
D | habanalabs.h | 2558 #define hl_poll_timeout_common(hdev, addr, val, cond, sleep_us, timeout_us, elbi) \ argument 2563 __timeout = ktime_add_us(ktime_get(), timeout_us); \ 2576 if (timeout_us && ktime_compare(ktime_get(), __timeout) > 0) { \ 2593 #define hl_poll_timeout(hdev, addr, val, cond, sleep_us, timeout_us) \ argument 2594 hl_poll_timeout_common(hdev, addr, val, cond, sleep_us, timeout_us, false) 2596 #define hl_poll_timeout_elbi(hdev, addr, val, cond, sleep_us, timeout_us) \ argument 2597 hl_poll_timeout_common(hdev, addr, val, cond, sleep_us, timeout_us, true) 2607 timeout_us, elbi) \ argument 2615 __timeout = ktime_add_us(ktime_get(), timeout_us); \ 2639 if (timeout_us && ktime_compare(ktime_get(), __timeout) > 0) \ [all …]
|
D | command_submission.c | 35 static int _hl_cs_wait_ioctl(struct hl_device *hdev, struct hl_ctx *ctx, u64 timeout_us, u64 seq, 2643 enum hl_cs_wait_status *status, u64 timeout_us, s64 *timestamp) in hl_wait_for_fence() argument 2672 if (!timeout_us) { in hl_wait_for_fence() 2677 timeout = (timeout_us == MAX_SCHEDULE_TIMEOUT) ? in hl_wait_for_fence() 2678 timeout_us : usecs_to_jiffies(timeout_us); in hl_wait_for_fence() 2843 static int _hl_cs_wait_ioctl(struct hl_device *hdev, struct hl_ctx *ctx, u64 timeout_us, u64 seq, in _hl_cs_wait_ioctl() argument 2856 rc = hl_wait_for_fence(ctx, seq, fence, status, timeout_us, timestamp); in _hl_cs_wait_ioctl() 3055 mcs_data.timeout_jiffies = hl_usecs64_to_jiffies(args->in.timeout_us); in hl_multi_cs_wait_ioctl() 3071 if (rc || mcs_data.completion_bitmap || !args->in.timeout_us) in hl_multi_cs_wait_ioctl() 3153 rc = _hl_cs_wait_ioctl(hdev, hpriv->ctx, args->in.timeout_us, seq, &status, ×tamp); in hl_cs_wait_ioctl() [all …]
|
/linux-6.6.21/drivers/mmc/host/ |
D | sdricoh_cs.c | 152 unsigned int status, timeout_us; in sdricoh_mmc_cmd() local 174 timeout_us = cmd->busy_timeout ? cmd->busy_timeout * 1000 : in sdricoh_mmc_cmd() 179 32, timeout_us, false, in sdricoh_mmc_cmd()
|
/linux-6.6.21/drivers/mmc/core/ |
D | core.c | 685 unsigned int timeout_us, limit_us; in mmc_set_data_timeout() local 687 timeout_us = data->timeout_ns / 1000; in mmc_set_data_timeout() 689 timeout_us += data->timeout_clks * 1000 / in mmc_set_data_timeout() 708 if (timeout_us > limit_us) { in mmc_set_data_timeout() 714 if (timeout_us == 0) in mmc_set_data_timeout() 1514 unsigned int timeout_us; in mmc_mmc_erase_timeout() local 1518 timeout_us = (card->csd.taac_ns * mult) / 1000; in mmc_mmc_erase_timeout() 1520 timeout_us = (card->csd.taac_ns / 1000) * mult; in mmc_mmc_erase_timeout() 1527 timeout_us += (timeout_clks * 1000) / in mmc_mmc_erase_timeout() 1530 erase_timeout = timeout_us / 1000; in mmc_mmc_erase_timeout()
|
/linux-6.6.21/drivers/staging/greybus/ |
D | light.c | 35 struct led_flash_setting timeout_us; member 689 req.timeout_us = cpu_to_le32(timeout); in gb_lights_flash_timeout_set() 787 fset->min = channel->timeout_us.min; in __gb_lights_flash_led_register() 788 fset->max = channel->timeout_us.max; in __gb_lights_flash_led_register() 789 fset->step = channel->timeout_us.step; in __gb_lights_flash_led_register() 790 fset->val = channel->timeout_us.max; in __gb_lights_flash_led_register() 858 fset = &channel->timeout_us; in gb_lights_channel_flash_config()
|
/linux-6.6.21/drivers/phy/marvell/ |
D | phy-mvebu-a3700-comphy.c | 417 ulong sleep_us, ulong timeout_us) in comphy_lane_reg_poll() argument 432 sleep_us, timeout_us); in comphy_lane_reg_poll() 441 sleep_us, timeout_us); in comphy_lane_reg_poll() 456 ulong sleep_us, ulong timeout_us) in comphy_periph_reg_poll() argument 463 sleep_us, timeout_us); in comphy_periph_reg_poll()
|
/linux-6.6.21/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()
|
/linux-6.6.21/drivers/gpu/drm/amd/display/dc/ |
D | dm_helpers.h | 180 …_timeout(struct dc_context *ctx, unsigned int msg_id, unsigned int param, unsigned int timeout_us);
|