Lines Matching refs:encoder

20 static void intel_hdmi_prepare(struct intel_encoder *encoder,  in intel_hdmi_prepare()  argument
23 struct drm_device *dev = encoder->base.dev; in intel_hdmi_prepare()
26 struct intel_hdmi *intel_hdmi = enc_to_intel_hdmi(encoder); in intel_hdmi_prepare()
59 static bool intel_hdmi_get_hw_state(struct intel_encoder *encoder, in intel_hdmi_get_hw_state() argument
62 struct drm_i915_private *dev_priv = to_i915(encoder->base.dev); in intel_hdmi_get_hw_state()
63 struct intel_hdmi *intel_hdmi = enc_to_intel_hdmi(encoder); in intel_hdmi_get_hw_state()
68 encoder->power_domain); in intel_hdmi_get_hw_state()
74 intel_display_power_put(dev_priv, encoder->power_domain, wakeref); in intel_hdmi_get_hw_state()
79 static void intel_hdmi_get_config(struct intel_encoder *encoder, in intel_hdmi_get_config() argument
82 struct intel_hdmi *intel_hdmi = enc_to_intel_hdmi(encoder); in intel_hdmi_get_config()
83 struct drm_device *dev = encoder->base.dev; in intel_hdmi_get_config()
106 intel_hdmi_infoframes_enabled(encoder, pipe_config); in intel_hdmi_get_config()
132 intel_hdmi_read_gcp_infoframe(encoder, pipe_config); in intel_hdmi_get_config()
134 intel_read_infoframe(encoder, pipe_config, in intel_hdmi_get_config()
137 intel_read_infoframe(encoder, pipe_config, in intel_hdmi_get_config()
140 intel_read_infoframe(encoder, pipe_config, in intel_hdmi_get_config()
145 static void intel_enable_hdmi_audio(struct intel_encoder *encoder, in intel_enable_hdmi_audio() argument
149 struct drm_i915_private *i915 = to_i915(encoder->base.dev); in intel_enable_hdmi_audio()
155 intel_audio_codec_enable(encoder, pipe_config, conn_state); in intel_enable_hdmi_audio()
159 struct intel_encoder *encoder, in g4x_enable_hdmi() argument
163 struct drm_device *dev = encoder->base.dev; in g4x_enable_hdmi()
165 struct intel_hdmi *intel_hdmi = enc_to_intel_hdmi(encoder); in g4x_enable_hdmi()
178 intel_enable_hdmi_audio(encoder, pipe_config, conn_state); in g4x_enable_hdmi()
182 struct intel_encoder *encoder, in ibx_enable_hdmi() argument
186 struct drm_device *dev = encoder->base.dev; in ibx_enable_hdmi()
188 struct intel_hdmi *intel_hdmi = enc_to_intel_hdmi(encoder); in ibx_enable_hdmi()
230 intel_enable_hdmi_audio(encoder, pipe_config, conn_state); in ibx_enable_hdmi()
234 struct intel_encoder *encoder, in cpt_enable_hdmi() argument
238 struct drm_device *dev = encoder->base.dev; in cpt_enable_hdmi()
241 struct intel_hdmi *intel_hdmi = enc_to_intel_hdmi(encoder); in cpt_enable_hdmi()
284 intel_enable_hdmi_audio(encoder, pipe_config, conn_state); in cpt_enable_hdmi()
288 struct intel_encoder *encoder, in vlv_enable_hdmi() argument
295 struct intel_encoder *encoder, in intel_disable_hdmi() argument
299 struct drm_device *dev = encoder->base.dev; in intel_disable_hdmi()
301 struct intel_hdmi *intel_hdmi = enc_to_intel_hdmi(encoder); in intel_disable_hdmi()
346 dig_port->set_infoframes(encoder, in intel_disable_hdmi()
354 struct intel_encoder *encoder, in g4x_disable_hdmi() argument
359 intel_audio_codec_disable(encoder, in g4x_disable_hdmi()
362 intel_disable_hdmi(state, encoder, old_crtc_state, old_conn_state); in g4x_disable_hdmi()
366 struct intel_encoder *encoder, in pch_disable_hdmi() argument
371 intel_audio_codec_disable(encoder, in pch_disable_hdmi()
376 struct intel_encoder *encoder, in pch_post_disable_hdmi() argument
380 intel_disable_hdmi(state, encoder, old_crtc_state, old_conn_state); in pch_post_disable_hdmi()
384 struct intel_encoder *encoder, in intel_hdmi_pre_enable() argument
389 enc_to_dig_port(encoder); in intel_hdmi_pre_enable()
391 intel_hdmi_prepare(encoder, pipe_config); in intel_hdmi_pre_enable()
393 dig_port->set_infoframes(encoder, in intel_hdmi_pre_enable()
399 struct intel_encoder *encoder, in vlv_hdmi_pre_enable() argument
403 struct intel_digital_port *dig_port = enc_to_dig_port(encoder); in vlv_hdmi_pre_enable()
404 struct drm_i915_private *dev_priv = to_i915(encoder->base.dev); in vlv_hdmi_pre_enable()
406 vlv_phy_pre_encoder_enable(encoder, pipe_config); in vlv_hdmi_pre_enable()
409 vlv_set_phy_signal_level(encoder, pipe_config, in vlv_hdmi_pre_enable()
413 dig_port->set_infoframes(encoder, in vlv_hdmi_pre_enable()
417 g4x_enable_hdmi(state, encoder, pipe_config, conn_state); in vlv_hdmi_pre_enable()
423 struct intel_encoder *encoder, in vlv_hdmi_pre_pll_enable() argument
427 intel_hdmi_prepare(encoder, pipe_config); in vlv_hdmi_pre_pll_enable()
429 vlv_phy_pre_pll_enable(encoder, pipe_config); in vlv_hdmi_pre_pll_enable()
433 struct intel_encoder *encoder, in chv_hdmi_pre_pll_enable() argument
437 intel_hdmi_prepare(encoder, pipe_config); in chv_hdmi_pre_pll_enable()
439 chv_phy_pre_pll_enable(encoder, pipe_config); in chv_hdmi_pre_pll_enable()
443 struct intel_encoder *encoder, in chv_hdmi_post_pll_disable() argument
447 chv_phy_post_pll_disable(encoder, old_crtc_state); in chv_hdmi_post_pll_disable()
451 struct intel_encoder *encoder, in vlv_hdmi_post_disable() argument
456 vlv_phy_reset_lanes(encoder, old_crtc_state); in vlv_hdmi_post_disable()
460 struct intel_encoder *encoder, in chv_hdmi_post_disable() argument
464 struct drm_device *dev = encoder->base.dev; in chv_hdmi_post_disable()
470 chv_data_lane_soft_reset(encoder, old_crtc_state, true); in chv_hdmi_post_disable()
476 struct intel_encoder *encoder, in chv_hdmi_pre_enable() argument
480 struct intel_digital_port *dig_port = enc_to_dig_port(encoder); in chv_hdmi_pre_enable()
481 struct drm_device *dev = encoder->base.dev; in chv_hdmi_pre_enable()
484 chv_phy_pre_encoder_enable(encoder, pipe_config); in chv_hdmi_pre_enable()
488 chv_set_phy_signal_level(encoder, pipe_config, 128, 102, false); in chv_hdmi_pre_enable()
490 dig_port->set_infoframes(encoder, in chv_hdmi_pre_enable()
494 g4x_enable_hdmi(state, encoder, pipe_config, conn_state); in chv_hdmi_pre_enable()
499 chv_phy_release_cl2_override(encoder); in chv_hdmi_pre_enable()
507 intel_hdmi_hotplug(struct intel_encoder *encoder, in intel_hdmi_hotplug() argument
512 state = intel_encoder_hotplug(encoder, connector); in intel_hdmi_hotplug()