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()
182 bool hsw_crtc_state_ips_capable(const struct intel_crtc_state *crtc_state) in hsw_crtc_state_ips_capable() argument
184 struct intel_crtc *crtc = to_intel_crtc(crtc_state->uapi.crtc); in hsw_crtc_state_ips_capable()
194 if (crtc_state->pipe_bpp > 24) in hsw_crtc_state_ips_capable()
205 crtc_state->pixel_rate > i915->display.cdclk.max_cdclk_freq * 95 / 100) in hsw_crtc_state_ips_capable()
215 struct intel_crtc_state *crtc_state = in hsw_ips_compute_config() local
218 crtc_state->ips_enabled = false; in hsw_ips_compute_config()
220 if (!hsw_crtc_state_ips_capable(crtc_state)) in hsw_ips_compute_config()
229 if (crtc_state->crc_enabled) in hsw_ips_compute_config()
233 if (!(crtc_state->active_planes & ~BIT(PLANE_CURSOR))) in hsw_ips_compute_config()
244 if (crtc_state->pixel_rate > cdclk_state->logical.cdclk * 95 / 100) in hsw_ips_compute_config()
248 crtc_state->ips_enabled = true; in hsw_ips_compute_config()
253 void hsw_ips_get_config(struct intel_crtc_state *crtc_state) in hsw_ips_get_config() argument
255 struct intel_crtc *crtc = to_intel_crtc(crtc_state->uapi.crtc); in hsw_ips_get_config()
262 crtc_state->ips_enabled = intel_de_read(i915, IPS_CTL) & IPS_ENABLE; in hsw_ips_get_config()
269 crtc_state->ips_enabled = true; in hsw_ips_get_config()