@@ -116,6 +116,7 @@ static void set_encoder_for_connector(struct intel_connector *connector,
116
116
117
117
static void reset_encoder_connector_state (struct intel_encoder * encoder )
118
118
{
119
+ struct intel_display * display = to_intel_display (encoder );
119
120
struct drm_i915_private * i915 = to_i915 (encoder -> base .dev );
120
121
struct intel_pmdemand_state * pmdemand_state =
121
122
to_intel_pmdemand_state (i915 -> display .pmdemand .obj .state );
@@ -128,7 +129,7 @@ static void reset_encoder_connector_state(struct intel_encoder *encoder)
128
129
continue ;
129
130
130
131
/* Clear the corresponding bit in pmdemand active phys mask */
131
- intel_pmdemand_update_phys_mask (i915 , encoder ,
132
+ intel_pmdemand_update_phys_mask (display , encoder ,
132
133
pmdemand_state , false);
133
134
134
135
set_encoder_for_connector (connector , NULL );
@@ -152,6 +153,7 @@ static void reset_crtc_encoder_state(struct intel_crtc *crtc)
152
153
153
154
static void intel_crtc_disable_noatomic_complete (struct intel_crtc * crtc )
154
155
{
156
+ struct intel_display * display = to_intel_display (crtc );
155
157
struct drm_i915_private * i915 = to_i915 (crtc -> base .dev );
156
158
struct intel_bw_state * bw_state =
157
159
to_intel_bw_state (i915 -> display .bw .obj .state );
@@ -185,7 +187,7 @@ static void intel_crtc_disable_noatomic_complete(struct intel_crtc *crtc)
185
187
bw_state -> data_rate [pipe ] = 0 ;
186
188
bw_state -> num_active_planes [pipe ] = 0 ;
187
189
188
- intel_pmdemand_update_port_clock (i915 , pmdemand_state , pipe , 0 );
190
+ intel_pmdemand_update_port_clock (display , pmdemand_state , pipe , 0 );
189
191
}
190
192
191
193
/*
@@ -582,6 +584,7 @@ static bool has_bogus_dpll_config(const struct intel_crtc_state *crtc_state)
582
584
583
585
static void intel_sanitize_encoder (struct intel_encoder * encoder )
584
586
{
587
+ struct intel_display * display = to_intel_display (encoder );
585
588
struct drm_i915_private * i915 = to_i915 (encoder -> base .dev );
586
589
struct intel_connector * connector ;
587
590
struct intel_crtc * crtc = to_intel_crtc (encoder -> base .crtc );
@@ -613,7 +616,7 @@ static void intel_sanitize_encoder(struct intel_encoder *encoder)
613
616
encoder -> base .name );
614
617
615
618
/* Clear the corresponding bit in pmdemand active phys mask */
616
- intel_pmdemand_update_phys_mask (i915 , encoder ,
619
+ intel_pmdemand_update_phys_mask (display , encoder ,
617
620
pmdemand_state , false);
618
621
619
622
/*
@@ -770,11 +773,11 @@ static void intel_modeset_readout_hw_state(struct drm_i915_private *i915)
770
773
}
771
774
}
772
775
773
- intel_pmdemand_update_phys_mask (i915 , encoder ,
776
+ intel_pmdemand_update_phys_mask (display , encoder ,
774
777
pmdemand_state ,
775
778
true);
776
779
} else {
777
- intel_pmdemand_update_phys_mask (i915 , encoder ,
780
+ intel_pmdemand_update_phys_mask (display , encoder ,
778
781
pmdemand_state ,
779
782
false);
780
783
@@ -899,13 +902,13 @@ static void intel_modeset_readout_hw_state(struct drm_i915_private *i915)
899
902
cdclk_state -> min_voltage_level [crtc -> pipe ] =
900
903
crtc_state -> min_voltage_level ;
901
904
902
- intel_pmdemand_update_port_clock (i915 , pmdemand_state , pipe ,
905
+ intel_pmdemand_update_port_clock (display , pmdemand_state , pipe ,
903
906
crtc_state -> port_clock );
904
907
905
908
intel_bw_crtc_update (bw_state , crtc_state );
906
909
}
907
910
908
- intel_pmdemand_init_pmdemand_params (i915 , pmdemand_state );
911
+ intel_pmdemand_init_pmdemand_params (display , pmdemand_state );
909
912
}
910
913
911
914
static void
0 commit comments