Home
last modified time | relevance | path

Searched refs:wait_for (Results 1 – 28 of 28) sorted by relevance

/linux-4.4.14/drivers/gpu/drm/i915/
Dintel_sideband.c54 if (wait_for((I915_READ(VLV_IOSF_DOORBELL_REQ) & IOSF_SB_BUSY) == 0, 5)) { in vlv_sideband_rw()
65 if (wait_for((I915_READ(VLV_IOSF_DOORBELL_REQ) & IOSF_SB_BUSY) == 0, 5)) { in vlv_sideband_rw()
218 if (wait_for((I915_READ(SBI_CTL_STAT) & SBI_BUSY) == 0, in intel_sbi_read()
232 if (wait_for((I915_READ(SBI_CTL_STAT) & (SBI_BUSY | SBI_RESPONSE_FAIL)) == 0, in intel_sbi_read()
248 if (wait_for((I915_READ(SBI_CTL_STAT) & SBI_BUSY) == 0, in intel_sbi_write()
263 if (wait_for((I915_READ(SBI_CTL_STAT) & (SBI_BUSY | SBI_RESPONSE_FAIL)) == 0, in intel_sbi_write()
Dintel_runtime_pm.c272 if (wait_for((I915_READ(HSW_PWR_WELL_DRIVER) & in hsw_set_power_well()
599 if (wait_for((I915_READ(SKL_FUSE_STATUS) & in skl_set_power_well()
653 if (wait_for((I915_READ(HSW_PWR_WELL_DRIVER) & in skl_set_power_well()
678 wait_for((state = intel_csr_load_status_get(dev_priv)) != in skl_set_power_well()
694 if (wait_for((I915_READ(SKL_FUSE_STATUS) & in skl_set_power_well()
698 if (wait_for((I915_READ(SKL_FUSE_STATUS) & in skl_set_power_well()
799 if (wait_for(COND, 100)) in vlv_set_power_well()
1087 if (wait_for((tmp = I915_READ(DISPLAY_PHY_STATUS) & phy_status_mask) == phy_status, 10)) in assert_chv_phy_status()
1118 if (wait_for(I915_READ(DISPLAY_PHY_STATUS) & PHY_POWERGOOD(phy), 1)) in chv_dpio_cmn_power_well_enable()
1361 if (wait_for(COND, 100)) in chv_set_pipe_power_well()
Dintel_uncore.c1385 return wait_for(i915_reset_complete(dev), 500); in i915_do_reset()
1398 return wait_for(g4x_reset_complete(dev), 500); in g33_do_reset()
1408 ret = wait_for(g4x_reset_complete(dev), 500); in g4x_do_reset()
1418 ret = wait_for(g4x_reset_complete(dev), 500); in g4x_do_reset()
1438 ret = wait_for((I915_READ(ILK_GDSR) & in ironlake_do_reset()
1445 ret = wait_for((I915_READ(ILK_GDSR) & in ironlake_do_reset()
1469 ret = wait_for((__raw_i915_read32(dev_priv, GEN6_GDRST) & GEN6_GRDOM_FULL) == 0, 500); in gen6_do_reset()
1482 return wait_for((I915_READ(reg) & mask) == value, timeout_ms); in wait_for_register()
Dintel_dsi_pll.c267 if (wait_for(vlv_cck_read(dev_priv, CCK_REG_DSI_PLL_CONTROL) & in vlv_enable_dsi_pll()
311 if (wait_for((I915_READ(BXT_DSI_PLL_ENABLE) in bxt_disable_dsi_pll()
552 if (wait_for(I915_READ(BXT_DSI_PLL_ENABLE) & BXT_DSI_PLL_LOCKED, 1)) { in bxt_enable_dsi_pll()
Dintel_dsi.c59 if (wait_for((I915_READ(MIPI_GEN_FIFO_STAT(port)) & mask) == mask, 100)) in wait_for_dsi_fifo_empty()
125 if (wait_for((I915_READ(MIPI_GEN_FIFO_STAT(port)) & data_mask) == 0, 50)) in intel_dsi_host_transfer()
136 if (wait_for((I915_READ(MIPI_GEN_FIFO_STAT(port)) & ctrl_mask) == 0, 50)) { in intel_dsi_host_transfer()
145 if (wait_for((I915_READ(MIPI_INTR_STAT(port)) & data_mask) == data_mask, 50)) in intel_dsi_host_transfer()
235 if (wait_for((I915_READ(MIPI_INTR_STAT(port)) & mask) == mask, 100)) in dpi_send_cmd()
610 if (wait_for(((I915_READ(port_ctrl) & AFE_LATCHOUT) in intel_dsi_clear_device_ready()
Dintel_psr.c446 if (wait_for((I915_READ(VLV_PSRSTAT(intel_crtc->pipe)) & in vlv_psr_disable()
526 if (wait_for((I915_READ(EDP_PSR_STATUS_CTL(dev_priv->dev)) & in intel_psr_work()
532 if (wait_for((I915_READ(VLV_PSRSTAT(pipe)) & in intel_psr_work()
Dintel_crt.c297 if (wait_for((I915_READ(crt->adpa_reg) & ADPA_CRT_HOTPLUG_FORCE_TRIGGER) == 0, in intel_ironlake_crt_detect_hotplug()
334 if (wait_for((I915_READ(crt->adpa_reg) & ADPA_CRT_HOTPLUG_FORCE_TRIGGER) == 0, in valleyview_crt_detect_hotplug()
390 if (wait_for((I915_READ(PORT_HOTPLUG_EN) & in intel_crt_detect_hotplug()
Di915_drv.c1325 err = wait_for(COND, 20); in vlv_force_gfx_clock()
1348 err = wait_for(COND, 1); in vlv_allow_gt_wake()
1376 err = wait_for(COND, 3); in vlv_wait_for_gt_wells()
Dintel_lvds.c227 if (wait_for((I915_READ(stat_reg) & PP_ON) != 0, 1000)) in intel_enable_lvds()
249 if (wait_for((I915_READ(stat_reg) & PP_ON) == 0, 1000)) in intel_disable_lvds()
Dintel_display.c1142 if (wait_for((I915_READ(reg) & I965_PIPECONF_ACTIVE) == 0, in intel_wait_for_pipe_off()
1147 if (wait_for(pipe_dsl_stopped(dev, pipe), 100)) in intel_wait_for_pipe_off()
1619 if (wait_for(((I915_READ(reg) & DPLL_LOCK_VLV) == DPLL_LOCK_VLV), 1)) in vlv_enable_pll()
1668 if (wait_for(((I915_READ(DPLL(pipe)) & DPLL_LOCK_VLV) == DPLL_LOCK_VLV), 1)) in chv_enable_pll()
1861 if (wait_for((I915_READ(dpll_reg) & port_mask) == expected_mask, 1000)) in vlv_wait_port_ready()
2016 if (wait_for(I915_READ(reg) & TRANS_STATE_ENABLE, 100)) in ironlake_enable_pch_transcoder()
2047 if (wait_for(I915_READ(LPT_TRANSCONF) & TRANS_STATE_ENABLE, 100)) in lpt_enable_pch_transcoder()
2069 if (wait_for((I915_READ(reg) & TRANS_STATE_ENABLE) == 0, 50)) in ironlake_disable_pch_transcoder()
2089 if (wait_for((I915_READ(LPT_TRANSCONF) & TRANS_STATE_ENABLE) == 0, 50)) in lpt_disable_pch_transcoder()
4365 if (wait_for(I915_READ(dslreg) != temp, 5)) { in cpt_verify_modeset()
[all …]
Dintel_dp_mst.c222 if (wait_for((I915_READ(DP_TP_STATUS(port)) & DP_TP_STATUS_ACT_SENT), in intel_mst_enable_dp()
Dintel_i2c.c304 return wait_for(C, 10); in gmbus_wait_idle()
Dintel_ringbuffer.c537 if (wait_for((I915_READ(reg) & INSTPM_SYNC_FLUSH) == 0, in intel_ring_setup_status_page()
550 if (wait_for((I915_READ_MODE(ring) & MODE_IDLE) != 0, 1000)) { in stop_ring()
632 if (wait_for((I915_READ_CTL(ring) & RING_VALID) != 0 && in init_ring_common()
2463 if (wait_for((I915_READ(GEN6_BSD_SLEEP_PSMI_CONTROL) & in gen6_bsd_ring_write_tail()
Dintel_opregion.c305 if (wait_for(C, dslp)) { in swsci()
Dintel_ddi.c2618 if (wait_for(I915_READ(DPLL_STATUS) & DPLL_LOCK(dpll), 5)) in skl_ddi_pll_enable()
2690 if (wait_for(I915_READ(BXT_PORT_CL1CM_DW0(phy)) & PHY_POWER_GOOD, 10)) in broxton_phy_init()
2754 if (wait_for(I915_READ(BXT_PORT_REF_DW3(DPIO_PHY1)) & GRC_DONE, in broxton_phy_init()
Dintel_fbc.c77 if (wait_for((I915_READ(FBC_STATUS) & FBC_STAT_COMPRESSING) == 0, 10)) { in i8xx_fbc_disable()
Dintel_drv.h66 #define wait_for(COND, MS) _wait_for(COND, MS, 1) macro
Dintel_pm.c255 if (wait_for((vlv_punit_read(dev_priv, PUNIT_REG_DDR_SETUP2) & in chv_set_memory_dvfs()
4044 if (wait_for((vlv_punit_read(dev_priv, PUNIT_REG_DDR_SETUP2) & in vlv_wm_get_hw_state()
7165 if (wait_for((I915_READ(GEN6_PCODE_MAILBOX) & GEN6_PCODE_READY) == 0, in sandybridge_pcode_read()
7189 if (wait_for((I915_READ(GEN6_PCODE_MAILBOX) & GEN6_PCODE_READY) == 0, in sandybridge_pcode_write()
Di915_gem.c4900 if (wait_for((I915_READ(VLV_GTLC_PW_STATUS) & in i915_gem_init()
Dintel_dp.c3684 if (wait_for((I915_READ(DP_TP_STATUS(port)) & DP_TP_STATUS_IDLE_DONE), in intel_dp_set_idle_link_train()
/linux-4.4.14/drivers/mmc/host/
Dsh_mmcif.c245 enum sh_mmcif_wait_for wait_for; member
596 host->state, host->wait_for); in sh_mmcif_error_manage()
600 host->state, host->wait_for); in sh_mmcif_error_manage()
604 host->state, host->wait_for); in sh_mmcif_error_manage()
636 host->wait_for = MMCIF_WAIT_FOR_READ; in sh_mmcif_single_read()
660 host->wait_for = MMCIF_WAIT_FOR_READ_END; in sh_mmcif_read_block()
676 host->wait_for = MMCIF_WAIT_FOR_MREAD; in sh_mmcif_multi_read()
716 host->wait_for = MMCIF_WAIT_FOR_WRITE; in sh_mmcif_single_write()
740 host->wait_for = MMCIF_WAIT_FOR_WRITE_END; in sh_mmcif_write_block()
756 host->wait_for = MMCIF_WAIT_FOR_MWRITE; in sh_mmcif_multi_write()
[all …]
/linux-4.4.14/drivers/gpu/drm/gma500/
Dintel_gmbus.c51 #define wait_for(COND, MS) _wait_for(COND, MS, 1) macro
278 if (wait_for(GMBUS_REG_READ(GMBUS2 + reg_offset) & in gmbus_xfer()
307 if (wait_for(GMBUS_REG_READ(GMBUS2 + reg_offset) & in gmbus_xfer()
324 …if (i + 1 < num && wait_for(GMBUS_REG_READ(GMBUS2 + reg_offset) & (GMBUS_SATOER | GMBUS_HW_WAIT_PH… in gmbus_xfer()
Dcdv_intel_display.c136 #define wait_for(COND, MS) _wait_for(COND, MS, 1) macro
143 ret = wait_for((REG_READ(SB_PCKT) & SB_BUSY) == 0, 1000); in cdv_sb_read()
155 ret = wait_for((REG_READ(SB_PCKT) & SB_BUSY) == 0, 1000); in cdv_sb_read()
178 ret = wait_for((REG_READ(SB_PCKT) & SB_BUSY) == 0, 1000); in cdv_sb_write()
191 ret = wait_for((REG_READ(SB_PCKT) & SB_BUSY) == 0, 1000); in cdv_sb_write()
Dcdv_intel_dp.c248 #define wait_for(COND, MS) _wait_for(COND, MS, 1) macro
430 if (wait_for(((REG_READ(PP_STATUS) & idle_on_mask) == idle_on_mask), 1000)) { in cdv_intel_edp_panel_on()
464 if (wait_for((REG_READ(PP_STATUS) & idle_off_mask) == 0, 1000)) { in cdv_intel_edp_panel_off()
/linux-4.4.14/drivers/gpu/drm/vc4/
Dvc4_hdmi.c377 ret = wait_for(HDMI_READ(VC4_HDMI_SCHEDULER_CONTROL) & in vc4_hdmi_encoder_enable()
389 ret = wait_for(!(HDMI_READ(VC4_HDMI_SCHEDULER_CONTROL) & in vc4_hdmi_encoder_enable()
421 ret = wait_for(HDMI_READ(VC4_HDMI_FIFO_CTL) & in vc4_hdmi_encoder_enable()
Dvc4_drv.h104 #define wait_for(COND, MS) _wait_for(COND, MS, 1) macro
Dvc4_crtc.c268 ret = wait_for(!(CRTC_READ(PV_V_CONTROL) & PV_VCONTROL_VIDEN), 1); in vc4_crtc_disable()
/linux-4.4.14/drivers/scsi/
Dscsi_lib.c829 unsigned long wait_for = (cmd->allowed + 1) * req->timeout; in scsi_io_completion() local
1029 time_before(cmd->jiffies_at_alloc + wait_for, jiffies)) in scsi_io_completion()
1621 unsigned long wait_for = (cmd->allowed + 1) * rq->timeout; in scsi_softirq_done() local
1632 time_before(cmd->jiffies_at_alloc + wait_for, jiffies)) { in scsi_softirq_done()
1635 wait_for/HZ); in scsi_softirq_done()