Lines Matching refs:wm_state
1064 struct g4x_wm_state *wm_state, int level) in g4x_invalidate_wms() argument
1070 wm_state->wm.plane[plane_id] = USHRT_MAX; in g4x_invalidate_wms()
1074 wm_state->cxsr = false; in g4x_invalidate_wms()
1075 wm_state->sr.cursor = USHRT_MAX; in g4x_invalidate_wms()
1076 wm_state->sr.plane = USHRT_MAX; in g4x_invalidate_wms()
1077 wm_state->sr.fbc = USHRT_MAX; in g4x_invalidate_wms()
1081 wm_state->hpll_en = false; in g4x_invalidate_wms()
1082 wm_state->hpll.cursor = USHRT_MAX; in g4x_invalidate_wms()
1083 wm_state->hpll.plane = USHRT_MAX; in g4x_invalidate_wms()
1084 wm_state->hpll.fbc = USHRT_MAX; in g4x_invalidate_wms()
1088 static bool g4x_compute_fbc_en(const struct g4x_wm_state *wm_state, in g4x_compute_fbc_en() argument
1095 wm_state->sr.fbc > g4x_fbc_fifo_size(G4X_WM_LEVEL_SR)) in g4x_compute_fbc_en()
1099 wm_state->hpll.fbc > g4x_fbc_fifo_size(G4X_WM_LEVEL_HPLL)) in g4x_compute_fbc_en()
1108 struct g4x_wm_state *wm_state = &crtc_state->wm.g4x.optimal; in _g4x_compute_pipe_wm() local
1120 wm_state->wm.plane[plane_id] = raw->plane[plane_id]; in _g4x_compute_pipe_wm()
1127 wm_state->sr.plane = raw->plane[PLANE_PRIMARY]; in _g4x_compute_pipe_wm()
1128 wm_state->sr.cursor = raw->plane[PLANE_CURSOR]; in _g4x_compute_pipe_wm()
1129 wm_state->sr.fbc = raw->fbc; in _g4x_compute_pipe_wm()
1131 wm_state->cxsr = active_planes == BIT(PLANE_PRIMARY); in _g4x_compute_pipe_wm()
1138 wm_state->hpll.plane = raw->plane[PLANE_PRIMARY]; in _g4x_compute_pipe_wm()
1139 wm_state->hpll.cursor = raw->plane[PLANE_CURSOR]; in _g4x_compute_pipe_wm()
1140 wm_state->hpll.fbc = raw->fbc; in _g4x_compute_pipe_wm()
1142 wm_state->hpll_en = wm_state->cxsr; in _g4x_compute_pipe_wm()
1151 g4x_invalidate_wms(crtc, wm_state, level); in _g4x_compute_pipe_wm()
1160 wm_state->fbc_en = g4x_compute_fbc_en(wm_state, level - 1); in _g4x_compute_pipe_wm()
1286 const struct g4x_wm_state *wm_state = &crtc->wm.active.g4x; in g4x_merge_wm() local
1291 if (!wm_state->cxsr) in g4x_merge_wm()
1293 if (!wm_state->hpll_en) in g4x_merge_wm()
1295 if (!wm_state->fbc_en) in g4x_merge_wm()
1308 const struct g4x_wm_state *wm_state = &crtc->wm.active.g4x; in g4x_merge_wm() local
1311 wm->pipe[pipe] = wm_state->wm; in g4x_merge_wm()
1313 wm->sr = wm_state->sr; in g4x_merge_wm()
1315 wm->hpll = wm_state->hpll; in g4x_merge_wm()
1528 struct vlv_wm_state *wm_state, int level) in vlv_invalidate_wms() argument
1536 wm_state->wm[level].plane[plane_id] = USHRT_MAX; in vlv_invalidate_wms()
1538 wm_state->sr[level].cursor = USHRT_MAX; in vlv_invalidate_wms()
1539 wm_state->sr[level].plane = USHRT_MAX; in vlv_invalidate_wms()
1635 struct vlv_wm_state *wm_state = &crtc_state->wm.vlv.optimal; in _vlv_compute_pipe_wm() local
1644 wm_state->num_levels = dev_priv->display.wm.num_levels; in _vlv_compute_pipe_wm()
1650 wm_state->cxsr = crtc->pipe != PIPE_C && num_active_planes == 1; in _vlv_compute_pipe_wm()
1652 for (level = 0; level < wm_state->num_levels; level++) { in _vlv_compute_pipe_wm()
1660 wm_state->wm[level].plane[plane_id] = in _vlv_compute_pipe_wm()
1665 wm_state->sr[level].plane = in _vlv_compute_pipe_wm()
1671 wm_state->sr[level].cursor = in _vlv_compute_pipe_wm()
1680 wm_state->num_levels = level; in _vlv_compute_pipe_wm()
1683 vlv_invalidate_wms(crtc, wm_state, level); in _vlv_compute_pipe_wm()
1911 const struct vlv_wm_state *wm_state = &crtc->wm.active.vlv; in vlv_merge_wm() local
1916 if (!wm_state->cxsr) in vlv_merge_wm()
1920 wm->level = min_t(int, wm->level, wm_state->num_levels - 1); in vlv_merge_wm()
1930 const struct vlv_wm_state *wm_state = &crtc->wm.active.vlv; in vlv_merge_wm() local
1933 wm->pipe[pipe] = wm_state->wm[wm->level]; in vlv_merge_wm()
1935 wm->sr = wm_state->sr[wm->level]; in vlv_merge_wm()