Lines Matching refs:crtc_state

13 static void hsw_ips_enable(const struct intel_crtc_state *crtc_state)  in hsw_ips_enable()  argument
15 struct intel_crtc *crtc = to_intel_crtc(crtc_state->uapi.crtc); in hsw_ips_enable()
18 if (!crtc_state->ips_enabled) in hsw_ips_enable()
27 !(crtc_state->active_planes & ~BIT(PLANE_CURSOR))); in hsw_ips_enable()
54 bool hsw_ips_disable(const struct intel_crtc_state *crtc_state) in hsw_ips_disable() argument
56 struct intel_crtc *crtc = to_intel_crtc(crtc_state->uapi.crtc); in hsw_ips_disable()
60 if (!crtc_state->ips_enabled) in hsw_ips_disable()
180 bool hsw_crtc_state_ips_capable(const struct intel_crtc_state *crtc_state) in hsw_crtc_state_ips_capable() argument
182 struct intel_crtc *crtc = to_intel_crtc(crtc_state->uapi.crtc); in hsw_crtc_state_ips_capable()
192 if (crtc_state->pipe_bpp > 24) in hsw_crtc_state_ips_capable()
203 crtc_state->pixel_rate > i915->display.cdclk.max_cdclk_freq * 95 / 100) in hsw_crtc_state_ips_capable()
213 struct intel_crtc_state *crtc_state = in hsw_ips_compute_config() local
216 crtc_state->ips_enabled = false; in hsw_ips_compute_config()
218 if (!hsw_crtc_state_ips_capable(crtc_state)) in hsw_ips_compute_config()
227 if (crtc_state->crc_enabled) in hsw_ips_compute_config()
231 if (!(crtc_state->active_planes & ~BIT(PLANE_CURSOR))) in hsw_ips_compute_config()
242 if (crtc_state->pixel_rate > cdclk_state->logical.cdclk * 95 / 100) in hsw_ips_compute_config()
246 crtc_state->ips_enabled = true; in hsw_ips_compute_config()
251 void hsw_ips_get_config(struct intel_crtc_state *crtc_state) in hsw_ips_get_config() argument
253 struct intel_crtc *crtc = to_intel_crtc(crtc_state->uapi.crtc); in hsw_ips_get_config()
260 crtc_state->ips_enabled = intel_de_read(i915, IPS_CTL) & IPS_ENABLE; in hsw_ips_get_config()
267 crtc_state->ips_enabled = true; in hsw_ips_get_config()