Lines Matching full:encoder
26 static void intel_hdmi_prepare(struct intel_encoder *encoder, in intel_hdmi_prepare() argument
29 struct drm_device *dev = encoder->base.dev; in intel_hdmi_prepare()
32 struct intel_hdmi *intel_hdmi = enc_to_intel_hdmi(encoder); in intel_hdmi_prepare()
65 static bool intel_hdmi_get_hw_state(struct intel_encoder *encoder, in intel_hdmi_get_hw_state() argument
68 struct drm_i915_private *dev_priv = to_i915(encoder->base.dev); in intel_hdmi_get_hw_state()
69 struct intel_hdmi *intel_hdmi = enc_to_intel_hdmi(encoder); in intel_hdmi_get_hw_state()
74 encoder->power_domain); in intel_hdmi_get_hw_state()
80 intel_display_power_put(dev_priv, encoder->power_domain, wakeref); in intel_hdmi_get_hw_state()
87 struct intel_encoder *encoder = in connector_is_hdmi() local
90 return encoder && encoder->type == INTEL_OUTPUT_HDMI; in connector_is_hdmi()
107 struct intel_encoder *encoder = to_intel_encoder(conn_state->best_encoder); in g4x_compute_has_hdmi_sink() local
120 if (!intel_hdmi_compute_has_hdmi_sink(encoder, crtc_state, conn_state)) in g4x_compute_has_hdmi_sink()
129 static int g4x_hdmi_compute_config(struct intel_encoder *encoder, in g4x_hdmi_compute_config() argument
135 struct drm_i915_private *i915 = to_i915(encoder->base.dev); in g4x_hdmi_compute_config()
147 intel_hdmi_compute_has_hdmi_sink(encoder, crtc_state, conn_state); in g4x_hdmi_compute_config()
149 return intel_hdmi_compute_config(encoder, crtc_state, conn_state); in g4x_hdmi_compute_config()
152 static void intel_hdmi_get_config(struct intel_encoder *encoder, in intel_hdmi_get_config() argument
155 struct intel_hdmi *intel_hdmi = enc_to_intel_hdmi(encoder); in intel_hdmi_get_config()
156 struct drm_device *dev = encoder->base.dev; in intel_hdmi_get_config()
179 intel_hdmi_infoframes_enabled(encoder, pipe_config); in intel_hdmi_get_config()
205 intel_hdmi_read_gcp_infoframe(encoder, pipe_config); in intel_hdmi_get_config()
207 intel_read_infoframe(encoder, pipe_config, in intel_hdmi_get_config()
210 intel_read_infoframe(encoder, pipe_config, in intel_hdmi_get_config()
213 intel_read_infoframe(encoder, pipe_config, in intel_hdmi_get_config()
217 intel_audio_codec_get_config(encoder, pipe_config); in intel_hdmi_get_config()
220 static void g4x_hdmi_enable_port(struct intel_encoder *encoder, in g4x_hdmi_enable_port() argument
223 struct drm_device *dev = encoder->base.dev; in g4x_hdmi_enable_port()
225 struct intel_hdmi *intel_hdmi = enc_to_intel_hdmi(encoder); in g4x_hdmi_enable_port()
236 static void g4x_hdmi_audio_enable(struct intel_encoder *encoder, in g4x_hdmi_audio_enable() argument
240 struct drm_i915_private *i915 = to_i915(encoder->base.dev); in g4x_hdmi_audio_enable()
241 struct intel_hdmi *hdmi = enc_to_intel_hdmi(encoder); in g4x_hdmi_audio_enable()
251 intel_audio_codec_enable(encoder, crtc_state, conn_state); in g4x_hdmi_audio_enable()
254 static void g4x_hdmi_audio_disable(struct intel_encoder *encoder, in g4x_hdmi_audio_disable() argument
258 struct drm_i915_private *i915 = to_i915(encoder->base.dev); in g4x_hdmi_audio_disable()
259 struct intel_hdmi *hdmi = enc_to_intel_hdmi(encoder); in g4x_hdmi_audio_disable()
264 intel_audio_codec_disable(encoder, old_crtc_state, old_conn_state); in g4x_hdmi_audio_disable()
271 struct intel_encoder *encoder, in g4x_enable_hdmi() argument
275 g4x_hdmi_enable_port(encoder, pipe_config); in g4x_enable_hdmi()
279 struct intel_encoder *encoder, in ibx_enable_hdmi() argument
283 struct drm_device *dev = encoder->base.dev; in ibx_enable_hdmi()
285 struct intel_hdmi *intel_hdmi = enc_to_intel_hdmi(encoder); in ibx_enable_hdmi()
326 struct intel_encoder *encoder, in cpt_enable_hdmi() argument
330 struct drm_device *dev = encoder->base.dev; in cpt_enable_hdmi()
333 struct intel_hdmi *intel_hdmi = enc_to_intel_hdmi(encoder); in cpt_enable_hdmi()
375 struct intel_encoder *encoder, in vlv_enable_hdmi() argument
382 struct intel_encoder *encoder, in intel_disable_hdmi() argument
386 struct drm_device *dev = encoder->base.dev; in intel_disable_hdmi()
388 struct intel_hdmi *intel_hdmi = enc_to_intel_hdmi(encoder); in intel_disable_hdmi()
433 dig_port->set_infoframes(encoder, in intel_disable_hdmi()
441 struct intel_encoder *encoder, in g4x_disable_hdmi() argument
445 intel_disable_hdmi(state, encoder, old_crtc_state, old_conn_state); in g4x_disable_hdmi()
449 struct intel_encoder *encoder, in pch_disable_hdmi() argument
456 struct intel_encoder *encoder, in pch_post_disable_hdmi() argument
460 intel_disable_hdmi(state, encoder, old_crtc_state, old_conn_state); in pch_post_disable_hdmi()
464 struct intel_encoder *encoder, in intel_hdmi_pre_enable() argument
469 enc_to_dig_port(encoder); in intel_hdmi_pre_enable()
471 intel_hdmi_prepare(encoder, pipe_config); in intel_hdmi_pre_enable()
473 dig_port->set_infoframes(encoder, in intel_hdmi_pre_enable()
479 struct intel_encoder *encoder, in vlv_hdmi_pre_enable() argument
483 struct intel_digital_port *dig_port = enc_to_dig_port(encoder); in vlv_hdmi_pre_enable()
484 struct drm_i915_private *dev_priv = to_i915(encoder->base.dev); in vlv_hdmi_pre_enable()
486 vlv_phy_pre_encoder_enable(encoder, pipe_config); in vlv_hdmi_pre_enable()
489 vlv_set_phy_signal_level(encoder, pipe_config, in vlv_hdmi_pre_enable()
493 dig_port->set_infoframes(encoder, in vlv_hdmi_pre_enable()
497 g4x_hdmi_enable_port(encoder, pipe_config); in vlv_hdmi_pre_enable()
503 struct intel_encoder *encoder, in vlv_hdmi_pre_pll_enable() argument
507 intel_hdmi_prepare(encoder, pipe_config); in vlv_hdmi_pre_pll_enable()
509 vlv_phy_pre_pll_enable(encoder, pipe_config); in vlv_hdmi_pre_pll_enable()
513 struct intel_encoder *encoder, in chv_hdmi_pre_pll_enable() argument
517 intel_hdmi_prepare(encoder, pipe_config); in chv_hdmi_pre_pll_enable()
519 chv_phy_pre_pll_enable(encoder, pipe_config); in chv_hdmi_pre_pll_enable()
523 struct intel_encoder *encoder, in chv_hdmi_post_pll_disable() argument
527 chv_phy_post_pll_disable(encoder, old_crtc_state); in chv_hdmi_post_pll_disable()
531 struct intel_encoder *encoder, in vlv_hdmi_post_disable() argument
536 vlv_phy_reset_lanes(encoder, old_crtc_state); in vlv_hdmi_post_disable()
540 struct intel_encoder *encoder, in chv_hdmi_post_disable() argument
544 struct drm_device *dev = encoder->base.dev; in chv_hdmi_post_disable()
550 chv_data_lane_soft_reset(encoder, old_crtc_state, true); in chv_hdmi_post_disable()
556 struct intel_encoder *encoder, in chv_hdmi_pre_enable() argument
560 struct intel_digital_port *dig_port = enc_to_dig_port(encoder); in chv_hdmi_pre_enable()
561 struct drm_device *dev = encoder->base.dev; in chv_hdmi_pre_enable()
564 chv_phy_pre_encoder_enable(encoder, pipe_config); in chv_hdmi_pre_enable()
568 chv_set_phy_signal_level(encoder, pipe_config, 128, 102, false); in chv_hdmi_pre_enable()
570 dig_port->set_infoframes(encoder, in chv_hdmi_pre_enable()
574 g4x_hdmi_enable_port(encoder, pipe_config); in chv_hdmi_pre_enable()
579 chv_phy_release_cl2_override(encoder); in chv_hdmi_pre_enable()
587 intel_hdmi_hotplug(struct intel_encoder *encoder, in intel_hdmi_hotplug() argument
592 state = intel_encoder_hotplug(encoder, connector); in intel_hdmi_hotplug()