Lines Matching refs:wm_lp

3005 static int ilk_wm_lp_to_level(int wm_lp, const struct intel_pipe_wm *pipe_wm)  in ilk_wm_lp_to_level()  argument
3008 return wm_lp + (wm_lp >= 2 && pipe_wm->wm[4].enable); in ilk_wm_lp_to_level()
3027 int level, wm_lp; in ilk_compute_wm_results() local
3033 for (wm_lp = 1; wm_lp <= 3; wm_lp++) { in ilk_compute_wm_results()
3036 level = ilk_wm_lp_to_level(wm_lp, merged); in ilk_compute_wm_results()
3044 results->wm_lp[wm_lp - 1] = in ilk_compute_wm_results()
3050 results->wm_lp[wm_lp - 1] |= WM_LP_ENABLE; in ilk_compute_wm_results()
3053 results->wm_lp[wm_lp - 1] |= WM_LP_FBC_BDW(r->fbc_val); in ilk_compute_wm_results()
3055 results->wm_lp[wm_lp - 1] |= WM_LP_FBC_ILK(r->fbc_val); in ilk_compute_wm_results()
3057 results->wm_lp_spr[wm_lp - 1] = WM_LP_SPRITE(r->spr_val); in ilk_compute_wm_results()
3064 drm_WARN_ON(&dev_priv->drm, wm_lp != 1); in ilk_compute_wm_results()
3065 results->wm_lp_spr[wm_lp - 1] |= WM_LP_SPRITE_ENABLE; in ilk_compute_wm_results()
3117 #define WM_DIRTY_LP(wm_lp) (1 << (15 + (wm_lp))) argument
3128 int wm_lp; in ilk_compute_wm_dirty() local
3155 for (wm_lp = 1; wm_lp <= 3; wm_lp++) { in ilk_compute_wm_dirty()
3156 if (old->wm_lp[wm_lp - 1] != new->wm_lp[wm_lp - 1] || in ilk_compute_wm_dirty()
3157 old->wm_lp_spr[wm_lp - 1] != new->wm_lp_spr[wm_lp - 1]) in ilk_compute_wm_dirty()
3162 for (; wm_lp <= 3; wm_lp++) in ilk_compute_wm_dirty()
3163 dirty |= WM_DIRTY_LP(wm_lp); in ilk_compute_wm_dirty()
3174 if (dirty & WM_DIRTY_LP(3) && previous->wm_lp[2] & WM_LP_ENABLE) { in _ilk_disable_lp_wm()
3175 previous->wm_lp[2] &= ~WM_LP_ENABLE; in _ilk_disable_lp_wm()
3176 intel_uncore_write(&dev_priv->uncore, WM3_LP_ILK, previous->wm_lp[2]); in _ilk_disable_lp_wm()
3179 if (dirty & WM_DIRTY_LP(2) && previous->wm_lp[1] & WM_LP_ENABLE) { in _ilk_disable_lp_wm()
3180 previous->wm_lp[1] &= ~WM_LP_ENABLE; in _ilk_disable_lp_wm()
3181 intel_uncore_write(&dev_priv->uncore, WM2_LP_ILK, previous->wm_lp[1]); in _ilk_disable_lp_wm()
3184 if (dirty & WM_DIRTY_LP(1) && previous->wm_lp[0] & WM_LP_ENABLE) { in _ilk_disable_lp_wm()
3185 previous->wm_lp[0] &= ~WM_LP_ENABLE; in _ilk_disable_lp_wm()
3186 intel_uncore_write(&dev_priv->uncore, WM1_LP_ILK, previous->wm_lp[0]); in _ilk_disable_lp_wm()
3247 if (dirty & WM_DIRTY_LP(1) && previous->wm_lp[0] != results->wm_lp[0]) in ilk_write_wm_values()
3248 intel_uncore_write(&dev_priv->uncore, WM1_LP_ILK, results->wm_lp[0]); in ilk_write_wm_values()
3249 if (dirty & WM_DIRTY_LP(2) && previous->wm_lp[1] != results->wm_lp[1]) in ilk_write_wm_values()
3250 intel_uncore_write(&dev_priv->uncore, WM2_LP_ILK, results->wm_lp[1]); in ilk_write_wm_values()
3251 if (dirty & WM_DIRTY_LP(3) && previous->wm_lp[2] != results->wm_lp[2]) in ilk_write_wm_values()
3252 intel_uncore_write(&dev_priv->uncore, WM3_LP_ILK, results->wm_lp[2]); in ilk_write_wm_values()
3939 hw->wm_lp[0] = intel_uncore_read(&dev_priv->uncore, WM1_LP_ILK); in ilk_wm_get_hw_state()
3940 hw->wm_lp[1] = intel_uncore_read(&dev_priv->uncore, WM2_LP_ILK); in ilk_wm_get_hw_state()
3941 hw->wm_lp[2] = intel_uncore_read(&dev_priv->uncore, WM3_LP_ILK); in ilk_wm_get_hw_state()