Lines Matching refs:pipe_config
82 struct intel_crtc_state *pipe_config) in intel_hdmi_get_config() argument
90 pipe_config->output_types |= BIT(INTEL_OUTPUT_HDMI); in intel_hdmi_get_config()
105 pipe_config->has_hdmi_sink = true; in intel_hdmi_get_config()
107 pipe_config->infoframes.enable |= in intel_hdmi_get_config()
108 intel_hdmi_infoframes_enabled(encoder, pipe_config); in intel_hdmi_get_config()
110 if (pipe_config->infoframes.enable) in intel_hdmi_get_config()
111 pipe_config->has_infoframe = true; in intel_hdmi_get_config()
114 pipe_config->has_audio = true; in intel_hdmi_get_config()
118 pipe_config->limited_color_range = true; in intel_hdmi_get_config()
120 pipe_config->hw.adjusted_mode.flags |= flags; in intel_hdmi_get_config()
123 dotclock = DIV_ROUND_CLOSEST(pipe_config->port_clock * 2, 3); in intel_hdmi_get_config()
125 dotclock = pipe_config->port_clock; in intel_hdmi_get_config()
127 if (pipe_config->pixel_multiplier) in intel_hdmi_get_config()
128 dotclock /= pipe_config->pixel_multiplier; in intel_hdmi_get_config()
130 pipe_config->hw.adjusted_mode.crtc_clock = dotclock; in intel_hdmi_get_config()
132 pipe_config->lane_count = 4; in intel_hdmi_get_config()
134 intel_hdmi_read_gcp_infoframe(encoder, pipe_config); in intel_hdmi_get_config()
136 intel_read_infoframe(encoder, pipe_config, in intel_hdmi_get_config()
138 &pipe_config->infoframes.avi); in intel_hdmi_get_config()
139 intel_read_infoframe(encoder, pipe_config, in intel_hdmi_get_config()
141 &pipe_config->infoframes.spd); in intel_hdmi_get_config()
142 intel_read_infoframe(encoder, pipe_config, in intel_hdmi_get_config()
144 &pipe_config->infoframes.hdmi); in intel_hdmi_get_config()
149 const struct intel_crtc_state *pipe_config, in g4x_enable_hdmi() argument
160 if (pipe_config->has_audio) in g4x_enable_hdmi()
166 drm_WARN_ON(&dev_priv->drm, pipe_config->has_audio && in g4x_enable_hdmi()
167 !pipe_config->has_hdmi_sink); in g4x_enable_hdmi()
168 intel_audio_codec_enable(encoder, pipe_config, conn_state); in g4x_enable_hdmi()
173 const struct intel_crtc_state *pipe_config, in ibx_enable_hdmi() argument
184 if (pipe_config->has_audio) in ibx_enable_hdmi()
203 if (pipe_config->pipe_bpp > 24 && in ibx_enable_hdmi()
204 pipe_config->pixel_multiplier > 1) { in ibx_enable_hdmi()
219 drm_WARN_ON(&dev_priv->drm, pipe_config->has_audio && in ibx_enable_hdmi()
220 !pipe_config->has_hdmi_sink); in ibx_enable_hdmi()
221 intel_audio_codec_enable(encoder, pipe_config, conn_state); in ibx_enable_hdmi()
226 const struct intel_crtc_state *pipe_config, in cpt_enable_hdmi() argument
231 struct intel_crtc *crtc = to_intel_crtc(pipe_config->uapi.crtc); in cpt_enable_hdmi()
239 if (pipe_config->has_audio) in cpt_enable_hdmi()
252 if (pipe_config->pipe_bpp > 24) { in cpt_enable_hdmi()
263 if (pipe_config->pipe_bpp > 24) { in cpt_enable_hdmi()
274 drm_WARN_ON(&dev_priv->drm, pipe_config->has_audio && in cpt_enable_hdmi()
275 !pipe_config->has_hdmi_sink); in cpt_enable_hdmi()
276 intel_audio_codec_enable(encoder, pipe_config, conn_state); in cpt_enable_hdmi()
281 const struct intel_crtc_state *pipe_config, in vlv_enable_hdmi() argument
373 const struct intel_crtc_state *pipe_config, in intel_hdmi_pre_enable() argument
379 intel_hdmi_prepare(encoder, pipe_config); in intel_hdmi_pre_enable()
382 pipe_config->has_infoframe, in intel_hdmi_pre_enable()
383 pipe_config, conn_state); in intel_hdmi_pre_enable()
388 const struct intel_crtc_state *pipe_config, in vlv_hdmi_pre_enable() argument
394 vlv_phy_pre_encoder_enable(encoder, pipe_config); in vlv_hdmi_pre_enable()
397 vlv_set_phy_signal_level(encoder, pipe_config, in vlv_hdmi_pre_enable()
402 pipe_config->has_infoframe, in vlv_hdmi_pre_enable()
403 pipe_config, conn_state); in vlv_hdmi_pre_enable()
405 g4x_enable_hdmi(state, encoder, pipe_config, conn_state); in vlv_hdmi_pre_enable()
412 const struct intel_crtc_state *pipe_config, in vlv_hdmi_pre_pll_enable() argument
415 intel_hdmi_prepare(encoder, pipe_config); in vlv_hdmi_pre_pll_enable()
417 vlv_phy_pre_pll_enable(encoder, pipe_config); in vlv_hdmi_pre_pll_enable()
422 const struct intel_crtc_state *pipe_config, in chv_hdmi_pre_pll_enable() argument
425 intel_hdmi_prepare(encoder, pipe_config); in chv_hdmi_pre_pll_enable()
427 chv_phy_pre_pll_enable(encoder, pipe_config); in chv_hdmi_pre_pll_enable()
465 const struct intel_crtc_state *pipe_config, in chv_hdmi_pre_enable() argument
472 chv_phy_pre_encoder_enable(encoder, pipe_config); in chv_hdmi_pre_enable()
476 chv_set_phy_signal_level(encoder, pipe_config, 128, 102, false); in chv_hdmi_pre_enable()
479 pipe_config->has_infoframe, in chv_hdmi_pre_enable()
480 pipe_config, conn_state); in chv_hdmi_pre_enable()
482 g4x_enable_hdmi(state, encoder, pipe_config, conn_state); in chv_hdmi_pre_enable()