Lines Matching refs:crtc_state

30 				 const struct intel_crtc_state *crtc_state)
32 return intel_psr_needs_alpm_aux_less(intel_dp, crtc_state) ||
33 (crtc_state->has_lobf && intel_alpm_aux_less_wake_supported(intel_dp));
153 const struct intel_crtc_state *crtc_state)
160 _lnl_compute_aux_less_wake_time(crtc_state->port_clock);
161 aux_less_wake_lines = intel_usecs_to_scanlines(&crtc_state->hw.adjusted_mode,
164 if (!_lnl_get_silence_period_and_lfps_half_cycle(crtc_state->port_clock,
185 const struct intel_crtc_state *crtc_state)
195 intel_usecs_to_scanlines(&crtc_state->hw.adjusted_mode, 5);
200 if (!_lnl_compute_aux_less_alpm_params(intel_dp, crtc_state))
226 static int io_buffer_wake_time(const struct intel_crtc_state *crtc_state)
228 struct intel_display *display = to_intel_display(crtc_state);
237 const struct intel_crtc_state *crtc_state)
247 io_wake_time = max(precharge, io_buffer_wake_time(crtc_state)) +
260 &crtc_state->hw.adjusted_mode, io_wake_time);
262 &crtc_state->hw.adjusted_mode, fast_wake_time);
268 if (!_lnl_compute_alpm_params(intel_dp, crtc_state))
282 struct intel_crtc_state *crtc_state,
286 struct drm_display_mode *adjusted_mode = &crtc_state->hw.adjusted_mode;
307 if (crtc_state->has_psr)
310 if (crtc_state->vrr.vmin != crtc_state->vrr.vmax ||
311 crtc_state->vrr.vmin != crtc_state->vrr.flipline)
318 if (!intel_alpm_compute_params(intel_dp, crtc_state))
330 crtc_state->has_lobf = (context_latency + guardband) >
335 const struct intel_crtc_state *crtc_state)
338 enum transcoder cpu_transcoder = crtc_state->cpu_transcoder;
341 if (DISPLAY_VER(display) < 20 || (!intel_psr_needs_alpm(intel_dp, crtc_state) &&
342 !crtc_state->has_lobf))
350 if (intel_alpm_is_alpm_aux_less(intel_dp, crtc_state)) {
375 if (crtc_state->has_lobf) {
387 const struct intel_crtc_state *crtc_state)
389 lnl_alpm_configure(intel_dp, crtc_state);
390 intel_dp->alpm_parameters.transcoder = crtc_state->cpu_transcoder;
394 const struct intel_crtc_state *crtc_state)
403 if (intel_alpm_is_alpm_aux_less(intel_dp, crtc_state)) {
427 const struct intel_crtc_state *crtc_state =
431 enum transcoder cpu_transcoder = crtc_state->cpu_transcoder;
437 if (crtc_state->has_lobf || crtc_state->has_lobf == old_crtc_state->has_lobf)
441 crtc_state->uapi.encoder_mask) {
462 const struct intel_crtc_state *crtc_state)
466 if (!intel_psr_needs_alpm(intel_dp, crtc_state) && !crtc_state->has_lobf)
471 if (crtc_state->has_panel_replay || (crtc_state->has_lobf &&
482 const struct intel_crtc_state *crtc_state =
488 if (crtc_state->has_psr || !crtc_state->has_lobf ||
489 crtc_state->has_lobf == old_crtc_state->has_lobf)
493 crtc_state->uapi.encoder_mask) {
502 intel_alpm_enable_sink(intel_dp, crtc_state);
503 intel_alpm_configure(intel_dp, crtc_state);
513 struct intel_crtc_state *crtc_state;
528 crtc_state = to_intel_crtc_state(crtc->state);
529 cpu_transcoder = crtc_state->cpu_transcoder;