Lines Matching refs:optimal

1386 	struct g4x_wm_state *wm_state = &crtc_state->wm.g4x.optimal;  in g4x_compute_pipe_wm()
1470 const struct g4x_wm_state *optimal = &new_crtc_state->wm.g4x.optimal; in g4x_compute_intermediate_wm() local
1471 const struct g4x_wm_state *active = &old_crtc_state->wm.g4x.optimal; in g4x_compute_intermediate_wm()
1476 *intermediate = *optimal; in g4x_compute_intermediate_wm()
1483 intermediate->cxsr = optimal->cxsr && active->cxsr && in g4x_compute_intermediate_wm()
1485 intermediate->hpll_en = optimal->hpll_en && active->hpll_en && in g4x_compute_intermediate_wm()
1487 intermediate->fbc_en = optimal->fbc_en && active->fbc_en; in g4x_compute_intermediate_wm()
1491 max(optimal->wm.plane[plane_id], in g4x_compute_intermediate_wm()
1498 intermediate->sr.plane = max(optimal->sr.plane, in g4x_compute_intermediate_wm()
1500 intermediate->sr.cursor = max(optimal->sr.cursor, in g4x_compute_intermediate_wm()
1502 intermediate->sr.fbc = max(optimal->sr.fbc, in g4x_compute_intermediate_wm()
1505 intermediate->hpll.plane = max(optimal->hpll.plane, in g4x_compute_intermediate_wm()
1507 intermediate->hpll.cursor = max(optimal->hpll.cursor, in g4x_compute_intermediate_wm()
1509 intermediate->hpll.fbc = max(optimal->hpll.fbc, in g4x_compute_intermediate_wm()
1537 if (memcmp(intermediate, optimal, sizeof(*intermediate)) != 0) in g4x_compute_intermediate_wm()
1632 crtc->wm.active.g4x = crtc_state->wm.g4x.optimal; in g4x_optimize_watermarks()
1907 struct vlv_wm_state *wm_state = &crtc_state->wm.vlv.optimal; in vlv_compute_pipe_wm()
2114 const struct vlv_wm_state *optimal = &new_crtc_state->wm.vlv.optimal; in vlv_compute_intermediate_wm() local
2115 const struct vlv_wm_state *active = &old_crtc_state->wm.vlv.optimal; in vlv_compute_intermediate_wm()
2120 *intermediate = *optimal; in vlv_compute_intermediate_wm()
2126 intermediate->num_levels = min(optimal->num_levels, active->num_levels); in vlv_compute_intermediate_wm()
2127 intermediate->cxsr = optimal->cxsr && active->cxsr && in vlv_compute_intermediate_wm()
2135 min(optimal->wm[level].plane[plane_id], in vlv_compute_intermediate_wm()
2139 intermediate->sr[level].plane = min(optimal->sr[level].plane, in vlv_compute_intermediate_wm()
2141 intermediate->sr[level].cursor = min(optimal->sr[level].cursor, in vlv_compute_intermediate_wm()
2152 if (memcmp(intermediate, optimal, sizeof(*intermediate)) != 0) in vlv_compute_intermediate_wm()
2258 crtc->wm.active.vlv = crtc_state->wm.vlv.optimal; in vlv_optimize_watermarks()
3175 pipe_wm = &crtc_state->wm.ilk.optimal; in ilk_compute_pipe_wm()
3247 const struct intel_pipe_wm *b = &old_crtc_state->wm.ilk.optimal; in ilk_compute_intermediate_wm()
3255 *a = new_crtc_state->wm.ilk.optimal; in ilk_compute_intermediate_wm()
3289 if (memcmp(a, &new_crtc_state->wm.ilk.optimal, sizeof(*a)) != 0) in ilk_compute_intermediate_wm()
3911 &crtc_state->wm.skl.optimal.planes[plane_id]; in skl_crtc_can_enable_sagv()
3933 &crtc_state->wm.skl.optimal.planes[plane_id]; in skl_crtc_can_enable_sagv()
3956 &crtc_state->wm.skl.optimal.planes[plane_id]; in tgl_crtc_can_enable_sagv()
4024 struct skl_pipe_wm *pipe_wm = &new_crtc_state->wm.skl.optimal; in intel_compute_sagv_mask()
5152 &crtc_state->wm.skl.optimal.planes[plane_id]; in skl_allocate_plane_ddb()
5189 &crtc_state->wm.skl.optimal.planes[plane_id]; in skl_allocate_plane_ddb()
5262 &crtc_state->wm.skl.optimal.planes[plane_id]; in skl_allocate_plane_ddb()
5286 &crtc_state->wm.skl.optimal.planes[plane_id]; in skl_allocate_plane_ddb()
5865 crtc_state->wm.skl.optimal = crtc_state->wm.skl.raw; in skl_build_pipe_wm()
5904 const struct skl_pipe_wm *pipe_wm = &crtc_state->wm.skl.optimal; in skl_write_plane_wm()
5947 const struct skl_pipe_wm *pipe_wm = &crtc_state->wm.skl.optimal; in skl_write_cursor_wm()
6209 old_pipe_wm = &old_crtc_state->wm.skl.optimal; in skl_print_wm_changes()
6210 new_pipe_wm = &new_crtc_state->wm.skl.optimal; in skl_print_wm_changes()
6403 &old_crtc_state->wm.skl.optimal, in skl_wm_add_affected_planes()
6404 &new_crtc_state->wm.skl.optimal)) in skl_wm_add_affected_planes()
6528 crtc->wm.active.ilk = crtc_state->wm.ilk.optimal; in ilk_optimize_watermarks()
6612 skl_pipe_wm_get_hw_state(crtc, &crtc_state->wm.skl.optimal); in skl_wm_get_hw_state()
6613 crtc_state->wm.skl.raw = crtc_state->wm.skl.optimal; in skl_wm_get_hw_state()
6660 struct intel_pipe_wm *active = &crtc_state->wm.ilk.optimal; in ilk_pipe_wm_get_hw_state()
6873 crtc_state->wm.g4x.optimal = *active; in g4x_wm_get_hw_state()
6908 struct g4x_wm_state *wm_state = &crtc_state->wm.g4x.optimal; in g4x_wm_sanitize()
6941 crtc_state->wm.g4x.optimal; in g4x_wm_sanitize()
6942 crtc->wm.active.g4x = crtc_state->wm.g4x.optimal; in g4x_wm_sanitize()
7033 crtc_state->wm.vlv.optimal = *active; in vlv_wm_get_hw_state()
7064 struct vlv_wm_state *wm_state = &crtc_state->wm.vlv.optimal; in vlv_wm_sanitize()
7090 crtc_state->wm.vlv.optimal; in vlv_wm_sanitize()
7091 crtc->wm.active.vlv = crtc_state->wm.vlv.optimal; in vlv_wm_sanitize()