• Home
  • Raw
  • Download

Lines Matching refs:wm_lp

2475 static int ilk_wm_lp_to_level(int wm_lp, const struct intel_pipe_wm *pipe_wm)  in ilk_wm_lp_to_level()  argument
2478 return wm_lp + (wm_lp >= 2 && pipe_wm->wm[4].enable); in ilk_wm_lp_to_level()
2498 int level, wm_lp; in ilk_compute_wm_results() local
2504 for (wm_lp = 1; wm_lp <= 3; wm_lp++) { in ilk_compute_wm_results()
2507 level = ilk_wm_lp_to_level(wm_lp, merged); in ilk_compute_wm_results()
2515 results->wm_lp[wm_lp - 1] = in ilk_compute_wm_results()
2521 results->wm_lp[wm_lp - 1] |= WM1_LP_SR_EN; in ilk_compute_wm_results()
2524 results->wm_lp[wm_lp - 1] |= in ilk_compute_wm_results()
2527 results->wm_lp[wm_lp - 1] |= in ilk_compute_wm_results()
2535 WARN_ON(wm_lp != 1); in ilk_compute_wm_results()
2536 results->wm_lp_spr[wm_lp - 1] = WM1S_LP_EN | r->spr_val; in ilk_compute_wm_results()
2538 results->wm_lp_spr[wm_lp - 1] = r->spr_val; in ilk_compute_wm_results()
2590 #define WM_DIRTY_LP(wm_lp) (1 << (15 + (wm_lp))) argument
2601 int wm_lp; in ilk_compute_wm_dirty() local
2634 for (wm_lp = 1; wm_lp <= 3; wm_lp++) { in ilk_compute_wm_dirty()
2635 if (old->wm_lp[wm_lp - 1] != new->wm_lp[wm_lp - 1] || in ilk_compute_wm_dirty()
2636 old->wm_lp_spr[wm_lp - 1] != new->wm_lp_spr[wm_lp - 1]) in ilk_compute_wm_dirty()
2641 for (; wm_lp <= 3; wm_lp++) in ilk_compute_wm_dirty()
2642 dirty |= WM_DIRTY_LP(wm_lp); in ilk_compute_wm_dirty()
2653 if (dirty & WM_DIRTY_LP(3) && previous->wm_lp[2] & WM1_LP_SR_EN) { in _ilk_disable_lp_wm()
2654 previous->wm_lp[2] &= ~WM1_LP_SR_EN; in _ilk_disable_lp_wm()
2655 I915_WRITE(WM3_LP_ILK, previous->wm_lp[2]); in _ilk_disable_lp_wm()
2658 if (dirty & WM_DIRTY_LP(2) && previous->wm_lp[1] & WM1_LP_SR_EN) { in _ilk_disable_lp_wm()
2659 previous->wm_lp[1] &= ~WM1_LP_SR_EN; in _ilk_disable_lp_wm()
2660 I915_WRITE(WM2_LP_ILK, previous->wm_lp[1]); in _ilk_disable_lp_wm()
2663 if (dirty & WM_DIRTY_LP(1) && previous->wm_lp[0] & WM1_LP_SR_EN) { in _ilk_disable_lp_wm()
2664 previous->wm_lp[0] &= ~WM1_LP_SR_EN; in _ilk_disable_lp_wm()
2665 I915_WRITE(WM1_LP_ILK, previous->wm_lp[0]); in _ilk_disable_lp_wm()
2747 if (dirty & WM_DIRTY_LP(1) && previous->wm_lp[0] != results->wm_lp[0]) in ilk_write_wm_values()
2748 I915_WRITE(WM1_LP_ILK, results->wm_lp[0]); in ilk_write_wm_values()
2749 if (dirty & WM_DIRTY_LP(2) && previous->wm_lp[1] != results->wm_lp[1]) in ilk_write_wm_values()
2750 I915_WRITE(WM2_LP_ILK, results->wm_lp[1]); in ilk_write_wm_values()
2751 if (dirty & WM_DIRTY_LP(3) && previous->wm_lp[2] != results->wm_lp[2]) in ilk_write_wm_values()
2752 I915_WRITE(WM3_LP_ILK, results->wm_lp[2]); in ilk_write_wm_values()
4090 hw->wm_lp[0] = I915_READ(WM1_LP_ILK); in ilk_wm_get_hw_state()
4091 hw->wm_lp[1] = I915_READ(WM2_LP_ILK); in ilk_wm_get_hw_state()
4092 hw->wm_lp[2] = I915_READ(WM3_LP_ILK); in ilk_wm_get_hw_state()