Lines Matching refs:cstate

1736 static uint32_t ilk_compute_pri_wm(const struct intel_crtc_state *cstate,  in ilk_compute_pri_wm()  argument
1744 if (!cstate->base.active || !pstate->visible) in ilk_compute_pri_wm()
1747 method1 = ilk_wm_method1(ilk_pipe_pixel_rate(cstate), bpp, mem_value); in ilk_compute_pri_wm()
1752 method2 = ilk_wm_method2(ilk_pipe_pixel_rate(cstate), in ilk_compute_pri_wm()
1753 cstate->base.adjusted_mode.crtc_htotal, in ilk_compute_pri_wm()
1765 static uint32_t ilk_compute_spr_wm(const struct intel_crtc_state *cstate, in ilk_compute_spr_wm() argument
1772 if (!cstate->base.active || !pstate->visible) in ilk_compute_spr_wm()
1775 method1 = ilk_wm_method1(ilk_pipe_pixel_rate(cstate), bpp, mem_value); in ilk_compute_spr_wm()
1776 method2 = ilk_wm_method2(ilk_pipe_pixel_rate(cstate), in ilk_compute_spr_wm()
1777 cstate->base.adjusted_mode.crtc_htotal, in ilk_compute_spr_wm()
1788 static uint32_t ilk_compute_cur_wm(const struct intel_crtc_state *cstate, in ilk_compute_cur_wm() argument
1794 if (!cstate->base.active || !pstate->visible) in ilk_compute_cur_wm()
1797 return ilk_wm_method2(ilk_pipe_pixel_rate(cstate), in ilk_compute_cur_wm()
1798 cstate->base.adjusted_mode.crtc_htotal, in ilk_compute_cur_wm()
1805 static uint32_t ilk_compute_fbc_wm(const struct intel_crtc_state *cstate, in ilk_compute_fbc_wm() argument
1811 if (!cstate->base.active || !pstate->visible) in ilk_compute_fbc_wm()
1981 struct intel_crtc_state *cstate, in ilk_compute_wm_level() argument
2002 result->pri_val = ilk_compute_pri_wm(cstate, pstate, in ilk_compute_wm_level()
2005 result->fbc_val = ilk_compute_fbc_wm(cstate, pstate, in ilk_compute_wm_level()
2009 result->spr_val = ilk_compute_spr_wm(cstate, pstate, in ilk_compute_wm_level()
2013 result->cur_val = ilk_compute_cur_wm(cstate, pstate, in ilk_compute_wm_level()
2296 static bool intel_compute_pipe_wm(struct intel_crtc_state *cstate, in intel_compute_pipe_wm() argument
2299 struct drm_crtc *crtc = cstate->base.crtc; in intel_compute_pipe_wm()
2324 pipe_wm->pipe_enabled = cstate->base.active; in intel_compute_pipe_wm()
2336 ilk_compute_wm_level(dev_priv, intel_crtc, 0, cstate, &pipe_wm->wm[0]); in intel_compute_pipe_wm()
2353 ilk_compute_wm_level(dev_priv, intel_crtc, level, cstate, &wm); in intel_compute_pipe_wm()
3693 struct intel_crtc_state *cstate = to_intel_crtc_state(crtc->state); in ilk_update_wm() local
3703 WARN_ON(cstate->base.active != intel_crtc->active); in ilk_update_wm()
3705 intel_compute_pipe_wm(cstate, &pipe_wm); in ilk_update_wm()