Lines Matching full:encoder
57 void g4x_dp_set_clock(struct intel_encoder *encoder, in g4x_dp_set_clock() argument
60 struct drm_i915_private *dev_priv = to_i915(encoder->base.dev); in g4x_dp_set_clock()
89 static void intel_dp_prepare(struct intel_encoder *encoder, in intel_dp_prepare() argument
92 struct intel_display *display = to_intel_display(encoder); in intel_dp_prepare()
93 struct drm_i915_private *dev_priv = to_i915(encoder->base.dev); in intel_dp_prepare()
94 struct intel_dp *intel_dp = enc_to_intel_dp(encoder); in intel_dp_prepare()
95 enum port port = encoder->port; in intel_dp_prepare()
176 "[ENCODER:%d:%s] state assertion failure (expected %s, current %s)\n", in assert_dp_port()
304 static bool intel_dp_get_hw_state(struct intel_encoder *encoder, in intel_dp_get_hw_state() argument
307 struct drm_i915_private *dev_priv = to_i915(encoder->base.dev); in intel_dp_get_hw_state()
308 struct intel_dp *intel_dp = enc_to_intel_dp(encoder); in intel_dp_get_hw_state()
313 encoder->power_domain); in intel_dp_get_hw_state()
318 encoder->port, pipe); in intel_dp_get_hw_state()
320 intel_display_power_put(dev_priv, encoder->power_domain, wakeref); in intel_dp_get_hw_state()
340 static void intel_dp_get_config(struct intel_encoder *encoder, in intel_dp_get_config() argument
343 struct intel_display *display = to_intel_display(encoder); in intel_dp_get_config()
344 struct drm_i915_private *dev_priv = to_i915(encoder->base.dev); in intel_dp_get_config()
345 struct intel_dp *intel_dp = enc_to_intel_dp(encoder); in intel_dp_get_config()
347 enum port port = encoder->port; in intel_dp_get_config()
350 if (encoder->type == INTEL_OUTPUT_EDP) in intel_dp_get_config()
412 intel_edp_fixup_vbt_bpp(encoder, pipe_config->pipe_bpp); in intel_dp_get_config()
414 intel_audio_codec_get_config(encoder, pipe_config); in intel_dp_get_config()
418 intel_dp_link_down(struct intel_encoder *encoder, in intel_dp_link_down() argument
421 struct intel_display *display = to_intel_display(encoder); in intel_dp_link_down()
422 struct drm_i915_private *dev_priv = to_i915(encoder->base.dev); in intel_dp_link_down()
423 struct intel_dp *intel_dp = enc_to_intel_dp(encoder); in intel_dp_link_down()
425 enum port port = encoder->port; in intel_dp_link_down()
488 static void g4x_dp_audio_enable(struct intel_encoder *encoder, in g4x_dp_audio_enable() argument
492 struct intel_display *display = to_intel_display(encoder); in g4x_dp_audio_enable()
493 struct intel_dp *intel_dp = enc_to_intel_dp(encoder); in g4x_dp_audio_enable()
502 intel_audio_codec_enable(encoder, crtc_state, conn_state); in g4x_dp_audio_enable()
505 static void g4x_dp_audio_disable(struct intel_encoder *encoder, in g4x_dp_audio_disable() argument
509 struct intel_display *display = to_intel_display(encoder); in g4x_dp_audio_disable()
510 struct intel_dp *intel_dp = enc_to_intel_dp(encoder); in g4x_dp_audio_disable()
515 intel_audio_codec_disable(encoder, old_crtc_state, old_conn_state); in g4x_dp_audio_disable()
523 struct intel_encoder *encoder, in intel_disable_dp() argument
527 struct intel_dp *intel_dp = enc_to_intel_dp(encoder); in intel_disable_dp()
542 struct intel_encoder *encoder, in g4x_disable_dp() argument
546 intel_disable_dp(state, encoder, old_crtc_state, old_conn_state); in g4x_disable_dp()
550 struct intel_encoder *encoder, in vlv_disable_dp() argument
554 intel_disable_dp(state, encoder, old_crtc_state, old_conn_state); in vlv_disable_dp()
558 struct intel_encoder *encoder, in g4x_post_disable_dp() argument
562 struct intel_dp *intel_dp = enc_to_intel_dp(encoder); in g4x_post_disable_dp()
563 enum port port = encoder->port; in g4x_post_disable_dp()
571 intel_dp_link_down(encoder, old_crtc_state); in g4x_post_disable_dp()
579 struct intel_encoder *encoder, in vlv_post_disable_dp() argument
583 intel_dp_link_down(encoder, old_crtc_state); in vlv_post_disable_dp()
587 struct intel_encoder *encoder, in chv_post_disable_dp() argument
591 struct drm_i915_private *dev_priv = to_i915(encoder->base.dev); in chv_post_disable_dp()
593 intel_dp_link_down(encoder, old_crtc_state); in chv_post_disable_dp()
598 chv_data_lane_soft_reset(encoder, old_crtc_state, true); in chv_post_disable_dp()
682 struct intel_encoder *encoder, in intel_enable_dp() argument
687 struct drm_i915_private *dev_priv = to_i915(encoder->base.dev); in intel_enable_dp()
688 struct intel_dp *intel_dp = enc_to_intel_dp(encoder); in intel_enable_dp()
697 vlv_pps_init(encoder, pipe_config); in intel_enable_dp()
725 struct intel_encoder *encoder, in g4x_enable_dp() argument
729 intel_enable_dp(state, encoder, pipe_config, conn_state); in g4x_enable_dp()
734 struct intel_encoder *encoder, in vlv_enable_dp() argument
742 struct intel_encoder *encoder, in g4x_pre_enable_dp() argument
746 struct intel_dp *intel_dp = enc_to_intel_dp(encoder); in g4x_pre_enable_dp()
747 enum port port = encoder->port; in g4x_pre_enable_dp()
749 intel_dp_prepare(encoder, pipe_config); in g4x_pre_enable_dp()
757 struct intel_encoder *encoder, in vlv_pre_enable_dp() argument
761 vlv_phy_pre_encoder_enable(encoder, pipe_config); in vlv_pre_enable_dp()
763 intel_enable_dp(state, encoder, pipe_config, conn_state); in vlv_pre_enable_dp()
767 struct intel_encoder *encoder, in vlv_dp_pre_pll_enable() argument
771 intel_dp_prepare(encoder, pipe_config); in vlv_dp_pre_pll_enable()
773 vlv_phy_pre_pll_enable(encoder, pipe_config); in vlv_dp_pre_pll_enable()
777 struct intel_encoder *encoder, in chv_pre_enable_dp() argument
781 chv_phy_pre_encoder_enable(encoder, pipe_config); in chv_pre_enable_dp()
783 intel_enable_dp(state, encoder, pipe_config, conn_state); in chv_pre_enable_dp()
786 chv_phy_release_cl2_override(encoder); in chv_pre_enable_dp()
790 struct intel_encoder *encoder, in chv_dp_pre_pll_enable() argument
794 intel_dp_prepare(encoder, pipe_config); in chv_dp_pre_pll_enable()
796 chv_phy_pre_pll_enable(encoder, pipe_config); in chv_dp_pre_pll_enable()
800 struct intel_encoder *encoder, in chv_dp_post_pll_disable() argument
804 chv_phy_post_pll_disable(encoder, old_crtc_state); in chv_dp_post_pll_disable()
829 static void vlv_set_signal_levels(struct intel_encoder *encoder, in vlv_set_signal_levels() argument
832 struct intel_dp *intel_dp = enc_to_intel_dp(encoder); in vlv_set_signal_levels()
910 vlv_set_phy_signal_level(encoder, crtc_state, in vlv_set_signal_levels()
915 static void chv_set_signal_levels(struct intel_encoder *encoder, in chv_set_signal_levels() argument
918 struct intel_dp *intel_dp = enc_to_intel_dp(encoder); in chv_set_signal_levels()
993 chv_set_phy_signal_level(encoder, crtc_state, in chv_set_signal_levels()
1036 g4x_set_signal_levels(struct intel_encoder *encoder, in g4x_set_signal_levels() argument
1039 struct intel_display *display = to_intel_display(encoder); in g4x_set_signal_levels()
1040 struct intel_dp *intel_dp = enc_to_intel_dp(encoder); in g4x_set_signal_levels()
1084 snb_cpu_edp_set_signal_levels(struct intel_encoder *encoder, in snb_cpu_edp_set_signal_levels() argument
1087 struct intel_display *display = to_intel_display(encoder); in snb_cpu_edp_set_signal_levels()
1088 struct intel_dp *intel_dp = enc_to_intel_dp(encoder); in snb_cpu_edp_set_signal_levels()
1136 ivb_cpu_edp_set_signal_levels(struct intel_encoder *encoder, in ivb_cpu_edp_set_signal_levels() argument
1139 struct intel_display *display = to_intel_display(encoder); in ivb_cpu_edp_set_signal_levels()
1140 struct intel_dp *intel_dp = enc_to_intel_dp(encoder); in ivb_cpu_edp_set_signal_levels()
1169 intel_dp_hotplug(struct intel_encoder *encoder, in intel_dp_hotplug() argument
1172 struct intel_dp *intel_dp = enc_to_intel_dp(encoder); in intel_dp_hotplug()
1177 intel_dp_phy_test(encoder); in intel_dp_hotplug()
1182 state = intel_encoder_hotplug(encoder, connector); in intel_dp_hotplug()
1196 static bool ibx_digital_port_connected(struct intel_encoder *encoder) in ibx_digital_port_connected() argument
1198 struct intel_display *display = to_intel_display(encoder); in ibx_digital_port_connected()
1199 u32 bit = display->hotplug.pch_hpd[encoder->hpd_pin]; in ibx_digital_port_connected()
1204 static bool g4x_digital_port_connected(struct intel_encoder *encoder) in g4x_digital_port_connected() argument
1206 struct intel_display *display = to_intel_display(encoder); in g4x_digital_port_connected()
1209 switch (encoder->hpd_pin) { in g4x_digital_port_connected()
1220 MISSING_CASE(encoder->hpd_pin); in g4x_digital_port_connected()
1227 static bool ilk_digital_port_connected(struct intel_encoder *encoder) in ilk_digital_port_connected() argument
1229 struct intel_display *display = to_intel_display(encoder); in ilk_digital_port_connected()
1230 u32 bit = display->hotplug.hpd[encoder->hpd_pin]; in ilk_digital_port_connected()
1235 static void g4x_dp_suspend_complete(struct intel_encoder *encoder) in g4x_dp_suspend_complete() argument
1241 intel_encoder_link_check_flush_work(encoder); in g4x_dp_suspend_complete()
1244 static void intel_dp_encoder_destroy(struct drm_encoder *encoder) in intel_dp_encoder_destroy() argument
1246 intel_dp_encoder_flush_work(encoder); in intel_dp_encoder_destroy()
1248 drm_encoder_cleanup(encoder); in intel_dp_encoder_destroy()
1249 kfree(enc_to_dig_port(to_intel_encoder(encoder))); in intel_dp_encoder_destroy()
1256 struct intel_encoder *encoder = &dp_to_dig_port(intel_dp)->base; in vlv_active_pipe() local
1260 encoder->port, &pipe)) in vlv_active_pipe()
1266 static void intel_dp_encoder_reset(struct drm_encoder *encoder) in intel_dp_encoder_reset() argument
1268 struct intel_display *display = to_intel_display(encoder->dev); in intel_dp_encoder_reset()
1269 struct drm_i915_private *dev_priv = to_i915(encoder->dev); in intel_dp_encoder_reset()
1270 struct intel_dp *intel_dp = enc_to_intel_dp(to_intel_encoder(encoder)); in intel_dp_encoder_reset()
1298 struct drm_encoder *encoder; in g4x_dp_init() local
1322 encoder = &intel_encoder->base; in g4x_dp_init()
1434 drm_encoder_cleanup(encoder); in g4x_dp_init()