Lines Matching refs:encoder
67 struct drm_encoder *encoder = &intel_encoder->base;
73 enc_to_dig_port(encoder);
78 DRM_ERROR("Invalid DDI encoder type %d\n", type);
287 static void intel_ddi_mode_set(struct drm_encoder *encoder,
291 struct drm_crtc *crtc = encoder->crtc;
293 struct intel_encoder *intel_encoder = to_intel_encoder(encoder);
303 struct intel_dp *intel_dp = enc_to_intel_dp(encoder);
305 enc_to_dig_port(encoder);
317 intel_write_eld(encoder, adjusted_mode);
323 struct intel_hdmi *intel_hdmi = enc_to_intel_hdmi(encoder);
335 intel_write_eld(encoder, adjusted_mode);
338 intel_hdmi->set_infoframes(encoder, adjusted_mode);
638 struct drm_encoder *encoder = &intel_encoder->base;
651 struct intel_dp *intel_dp = enc_to_intel_dp(encoder);
719 DRM_ERROR("Invalid DDI encoder type %d\n", type);
766 struct drm_encoder *encoder = &intel_encoder->base;
824 struct intel_hdmi *intel_hdmi = enc_to_intel_hdmi(encoder);
836 struct intel_dp *intel_dp = enc_to_intel_dp(encoder);
842 DRM_ERROR("Invalid encoder type %d for pipe %c\n",
865 struct intel_encoder *intel_encoder = intel_connector->encoder;
901 bool intel_ddi_get_hw_state(struct intel_encoder *encoder,
904 struct drm_device *dev = encoder->base.dev;
906 enum port port = intel_ddi_get_encoder_port(encoder);
1038 struct drm_encoder *encoder = &intel_encoder->base;
1039 struct drm_crtc *crtc = encoder->crtc;
1040 struct drm_i915_private *dev_priv = encoder->dev->dev_private;
1046 struct intel_dp *intel_dp = enc_to_intel_dp(encoder);
1056 struct intel_dp *intel_dp = enc_to_intel_dp(encoder);
1068 struct drm_encoder *encoder = &intel_encoder->base;
1069 struct drm_i915_private *dev_priv = encoder->dev->dev_private;
1091 struct intel_dp *intel_dp = enc_to_intel_dp(encoder);
1101 struct drm_encoder *encoder = &intel_encoder->base;
1102 struct drm_crtc *crtc = encoder->crtc;
1105 struct drm_device *dev = encoder->dev;
1113 enc_to_dig_port(encoder);
1123 struct intel_dp *intel_dp = enc_to_intel_dp(encoder);
1140 struct drm_encoder *encoder = &intel_encoder->base;
1141 struct drm_crtc *crtc = encoder->crtc;
1145 struct drm_device *dev = encoder->dev;
1157 struct intel_dp *intel_dp = enc_to_intel_dp(encoder);
1196 void intel_ddi_prepare_link_retrain(struct drm_encoder *encoder)
1198 struct intel_digital_port *intel_dig_port = enc_to_dig_port(encoder);
1200 struct drm_i915_private *dev_priv = encoder->dev->dev_private;
1272 static void intel_ddi_get_config(struct intel_encoder *encoder,
1275 struct drm_i915_private *dev_priv = encoder->base.dev->dev_private;
1276 struct intel_crtc *intel_crtc = to_intel_crtc(encoder->base.crtc);
1293 static void intel_ddi_destroy(struct drm_encoder *encoder)
1296 intel_dp_encoder_destroy(encoder);
1299 static bool intel_ddi_compute_config(struct intel_encoder *encoder,
1302 int type = encoder->type;
1303 int port = intel_ddi_get_encoder_port(encoder);
1312 return intel_hdmi_compute_config(encoder, pipe_config);
1314 return intel_dp_compute_config(encoder, pipe_config);
1330 struct drm_encoder *encoder;
1346 encoder = &intel_encoder->base;
1348 drm_encoder_init(dev, encoder, &intel_ddi_funcs,
1350 drm_encoder_helper_add(encoder, &intel_ddi_helper_funcs);
1372 drm_encoder_cleanup(encoder);