Lines Matching refs:wm_state

1288 			       struct g4x_wm_state *wm_state, int level)  in g4x_invalidate_wms()  argument
1294 wm_state->wm.plane[plane_id] = USHRT_MAX; in g4x_invalidate_wms()
1298 wm_state->cxsr = false; in g4x_invalidate_wms()
1299 wm_state->sr.cursor = USHRT_MAX; in g4x_invalidate_wms()
1300 wm_state->sr.plane = USHRT_MAX; in g4x_invalidate_wms()
1301 wm_state->sr.fbc = USHRT_MAX; in g4x_invalidate_wms()
1305 wm_state->hpll_en = false; in g4x_invalidate_wms()
1306 wm_state->hpll.cursor = USHRT_MAX; in g4x_invalidate_wms()
1307 wm_state->hpll.plane = USHRT_MAX; in g4x_invalidate_wms()
1308 wm_state->hpll.fbc = USHRT_MAX; in g4x_invalidate_wms()
1317 struct g4x_wm_state *wm_state = &crtc_state->wm.g4x.optimal; in g4x_compute_pipe_wm() local
1348 wm_state->wm.plane[plane_id] = raw->plane[plane_id]; in g4x_compute_pipe_wm()
1356 wm_state->sr.plane = raw->plane[PLANE_PRIMARY]; in g4x_compute_pipe_wm()
1357 wm_state->sr.cursor = raw->plane[PLANE_CURSOR]; in g4x_compute_pipe_wm()
1358 wm_state->sr.fbc = raw->fbc; in g4x_compute_pipe_wm()
1360 wm_state->cxsr = num_active_planes == BIT(PLANE_PRIMARY); in g4x_compute_pipe_wm()
1368 wm_state->hpll.plane = raw->plane[PLANE_PRIMARY]; in g4x_compute_pipe_wm()
1369 wm_state->hpll.cursor = raw->plane[PLANE_CURSOR]; in g4x_compute_pipe_wm()
1370 wm_state->hpll.fbc = raw->fbc; in g4x_compute_pipe_wm()
1372 wm_state->hpll_en = wm_state->cxsr; in g4x_compute_pipe_wm()
1381 g4x_invalidate_wms(crtc, wm_state, level); in g4x_compute_pipe_wm()
1389 wm_state->fbc_en = level > G4X_WM_LEVEL_NORMAL; in g4x_compute_pipe_wm()
1392 wm_state->sr.fbc > g4x_fbc_fifo_size(G4X_WM_LEVEL_SR)) in g4x_compute_pipe_wm()
1393 wm_state->fbc_en = false; in g4x_compute_pipe_wm()
1395 wm_state->hpll.fbc > g4x_fbc_fifo_size(G4X_WM_LEVEL_HPLL)) in g4x_compute_pipe_wm()
1396 wm_state->fbc_en = false; in g4x_compute_pipe_wm()
1489 const struct g4x_wm_state *wm_state = &crtc->wm.active.g4x; in g4x_merge_wm() local
1494 if (!wm_state->cxsr) in g4x_merge_wm()
1496 if (!wm_state->hpll_en) in g4x_merge_wm()
1498 if (!wm_state->fbc_en) in g4x_merge_wm()
1511 const struct g4x_wm_state *wm_state = &crtc->wm.active.g4x; in g4x_merge_wm() local
1514 wm->pipe[pipe] = wm_state->wm; in g4x_merge_wm()
1516 wm->sr = wm_state->sr; in g4x_merge_wm()
1518 wm->hpll = wm_state->hpll; in g4x_merge_wm()
1728 struct vlv_wm_state *wm_state, int level) in vlv_invalidate_wms() argument
1736 wm_state->wm[level].plane[plane_id] = USHRT_MAX; in vlv_invalidate_wms()
1738 wm_state->sr[level].cursor = USHRT_MAX; in vlv_invalidate_wms()
1739 wm_state->sr[level].plane = USHRT_MAX; in vlv_invalidate_wms()
1837 struct vlv_wm_state *wm_state = &crtc_state->wm.vlv.optimal; in vlv_compute_pipe_wm() local
1891 wm_state->num_levels = intel_wm_num_levels(dev_priv); in vlv_compute_pipe_wm()
1897 wm_state->cxsr = crtc->pipe != PIPE_C && num_active_planes == 1; in vlv_compute_pipe_wm()
1899 for (level = 0; level < wm_state->num_levels; level++) { in vlv_compute_pipe_wm()
1907 wm_state->wm[level].plane[plane_id] = in vlv_compute_pipe_wm()
1912 wm_state->sr[level].plane = in vlv_compute_pipe_wm()
1918 wm_state->sr[level].cursor = in vlv_compute_pipe_wm()
1927 wm_state->num_levels = level; in vlv_compute_pipe_wm()
1930 vlv_invalidate_wms(crtc, wm_state, level); in vlv_compute_pipe_wm()
2096 const struct vlv_wm_state *wm_state = &crtc->wm.active.vlv; in vlv_merge_wm() local
2101 if (!wm_state->cxsr) in vlv_merge_wm()
2105 wm->level = min_t(int, wm->level, wm_state->num_levels - 1); in vlv_merge_wm()
2115 const struct vlv_wm_state *wm_state = &crtc->wm.active.vlv; in vlv_merge_wm() local
2118 wm->pipe[pipe] = wm_state->wm[wm->level]; in vlv_merge_wm()
2120 wm->sr = wm_state->sr[wm->level]; in vlv_merge_wm()
5804 struct g4x_wm_state *wm_state = &crtc_state->wm.g4x.optimal; in g4x_wm_sanitize() local
5816 wm_state->wm.plane[plane_id] = 0; in g4x_wm_sanitize()
5826 wm_state->sr.fbc = 0; in g4x_wm_sanitize()
5827 wm_state->hpll.fbc = 0; in g4x_wm_sanitize()
5828 wm_state->fbc_en = false; in g4x_wm_sanitize()
5958 struct vlv_wm_state *wm_state = &crtc_state->wm.vlv.optimal; in vlv_wm_sanitize() local
5967 for (level = 0; level < wm_state->num_levels; level++) { in vlv_wm_sanitize()
5973 wm_state->wm[level].plane[plane_id] = in vlv_wm_sanitize()