Searched refs:intel_hdmi (Results 1 - 5 of 5) sorted by relevance

/linux-4.4.14/drivers/gpu/drm/i915/
H A Dintel_hdmi.c41 static struct drm_device *intel_hdmi_to_dev(struct intel_hdmi *intel_hdmi) intel_hdmi_to_dev() argument
43 return hdmi_to_dig_port(intel_hdmi)->base.base.dev; intel_hdmi_to_dev()
47 assert_hdmi_port_disabled(struct intel_hdmi *intel_hdmi) assert_hdmi_port_disabled() argument
49 struct drm_device *dev = intel_hdmi_to_dev(intel_hdmi); assert_hdmi_port_disabled()
55 WARN(I915_READ(intel_hdmi->hdmi_reg) & enabled_bits, assert_hdmi_port_disabled()
59 struct intel_hdmi *enc_to_intel_hdmi(struct drm_encoder *encoder) enc_to_intel_hdmi()
66 static struct intel_hdmi *intel_attached_hdmi(struct drm_connector *connector) intel_attached_hdmi()
432 struct intel_hdmi *intel_hdmi = enc_to_intel_hdmi(encoder); intel_write_infoframe() local
448 intel_hdmi->write_infoframe(encoder, frame->any.type, buffer, len); intel_write_infoframe()
454 struct intel_hdmi *intel_hdmi = enc_to_intel_hdmi(encoder); intel_hdmi_set_avi_infoframe() local
466 if (intel_hdmi->rgb_quant_range_selectable) { intel_hdmi_set_avi_infoframe()
515 struct intel_hdmi *intel_hdmi = &intel_dig_port->hdmi; g4x_set_infoframes() local
520 assert_hdmi_port_disabled(intel_hdmi); g4x_set_infoframes()
668 struct intel_hdmi *intel_hdmi = &intel_dig_port->hdmi; ibx_set_infoframes() local
673 assert_hdmi_port_disabled(intel_hdmi); ibx_set_infoframes()
719 struct intel_hdmi *intel_hdmi = enc_to_intel_hdmi(encoder); cpt_set_infoframes() local
723 assert_hdmi_port_disabled(intel_hdmi); cpt_set_infoframes()
762 struct intel_hdmi *intel_hdmi = enc_to_intel_hdmi(encoder); vlv_set_infoframes() local
767 assert_hdmi_port_disabled(intel_hdmi); vlv_set_infoframes()
813 struct intel_hdmi *intel_hdmi = enc_to_intel_hdmi(encoder); hsw_set_infoframes() local
817 assert_hdmi_port_disabled(intel_hdmi); hsw_set_infoframes()
845 struct intel_hdmi *intel_hdmi = enc_to_intel_hdmi(&encoder->base); intel_hdmi_prepare() local
872 I915_WRITE(intel_hdmi->hdmi_reg, hdmi_val); intel_hdmi_prepare()
873 POSTING_READ(intel_hdmi->hdmi_reg); intel_hdmi_prepare()
881 struct intel_hdmi *intel_hdmi = enc_to_intel_hdmi(&encoder->base); intel_hdmi_get_hw_state() local
889 tmp = I915_READ(intel_hdmi->hdmi_reg); intel_hdmi_get_hw_state()
907 struct intel_hdmi *intel_hdmi = enc_to_intel_hdmi(&encoder->base); intel_hdmi_get_config() local
913 tmp = I915_READ(intel_hdmi->hdmi_reg); intel_hdmi_get_config()
928 if (intel_hdmi->infoframe_enabled(&encoder->base)) intel_hdmi_get_config()
969 struct intel_hdmi *intel_hdmi = enc_to_intel_hdmi(&encoder->base); g4x_enable_hdmi() local
972 temp = I915_READ(intel_hdmi->hdmi_reg); g4x_enable_hdmi()
978 I915_WRITE(intel_hdmi->hdmi_reg, temp); g4x_enable_hdmi()
979 POSTING_READ(intel_hdmi->hdmi_reg); g4x_enable_hdmi()
990 struct intel_hdmi *intel_hdmi = enc_to_intel_hdmi(&encoder->base); ibx_enable_hdmi() local
993 temp = I915_READ(intel_hdmi->hdmi_reg); ibx_enable_hdmi()
1003 I915_WRITE(intel_hdmi->hdmi_reg, temp); ibx_enable_hdmi()
1004 POSTING_READ(intel_hdmi->hdmi_reg); ibx_enable_hdmi()
1005 I915_WRITE(intel_hdmi->hdmi_reg, temp); ibx_enable_hdmi()
1006 POSTING_READ(intel_hdmi->hdmi_reg); ibx_enable_hdmi()
1017 I915_WRITE(intel_hdmi->hdmi_reg, temp & ~SDVO_ENABLE); ibx_enable_hdmi()
1018 POSTING_READ(intel_hdmi->hdmi_reg); ibx_enable_hdmi()
1024 I915_WRITE(intel_hdmi->hdmi_reg, temp); ibx_enable_hdmi()
1025 POSTING_READ(intel_hdmi->hdmi_reg); ibx_enable_hdmi()
1026 I915_WRITE(intel_hdmi->hdmi_reg, temp); ibx_enable_hdmi()
1027 POSTING_READ(intel_hdmi->hdmi_reg); ibx_enable_hdmi()
1039 struct intel_hdmi *intel_hdmi = enc_to_intel_hdmi(&encoder->base); cpt_enable_hdmi() local
1043 temp = I915_READ(intel_hdmi->hdmi_reg); cpt_enable_hdmi()
1068 I915_WRITE(intel_hdmi->hdmi_reg, temp); cpt_enable_hdmi()
1069 POSTING_READ(intel_hdmi->hdmi_reg); cpt_enable_hdmi()
1075 I915_WRITE(intel_hdmi->hdmi_reg, temp); cpt_enable_hdmi()
1076 POSTING_READ(intel_hdmi->hdmi_reg); cpt_enable_hdmi()
1095 struct intel_hdmi *intel_hdmi = enc_to_intel_hdmi(&encoder->base); intel_disable_hdmi() local
1099 temp = I915_READ(intel_hdmi->hdmi_reg); intel_disable_hdmi()
1102 I915_WRITE(intel_hdmi->hdmi_reg, temp); intel_disable_hdmi()
1103 POSTING_READ(intel_hdmi->hdmi_reg); intel_disable_hdmi()
1117 I915_WRITE(intel_hdmi->hdmi_reg, temp); intel_disable_hdmi()
1118 POSTING_READ(intel_hdmi->hdmi_reg); intel_disable_hdmi()
1119 I915_WRITE(intel_hdmi->hdmi_reg, temp); intel_disable_hdmi()
1120 POSTING_READ(intel_hdmi->hdmi_reg); intel_disable_hdmi()
1123 I915_WRITE(intel_hdmi->hdmi_reg, temp); intel_disable_hdmi()
1124 POSTING_READ(intel_hdmi->hdmi_reg); intel_disable_hdmi()
1127 intel_hdmi->set_infoframes(&encoder->base, false, NULL); intel_disable_hdmi()
1153 static int hdmi_port_clock_limit(struct intel_hdmi *hdmi, bool respect_dvi_limit) hdmi_port_clock_limit()
1166 hdmi_port_clock_valid(struct intel_hdmi *hdmi, hdmi_port_clock_valid()
1191 struct intel_hdmi *hdmi = intel_attached_hdmi(connector); intel_hdmi_mode_valid()
1248 struct intel_hdmi *intel_hdmi = enc_to_intel_hdmi(&encoder->base); intel_hdmi_compute_config() local
1255 pipe_config->has_hdmi_sink = intel_hdmi->has_hdmi_sink; intel_hdmi_compute_config()
1260 if (intel_hdmi->color_range_auto) { intel_hdmi_compute_config()
1267 intel_hdmi->limited_color_range; intel_hdmi_compute_config()
1279 if (pipe_config->has_hdmi_sink && intel_hdmi->has_audio) intel_hdmi_compute_config()
1289 hdmi_port_clock_valid(intel_hdmi, clock_12bpc, false) == MODE_OK && intel_hdmi_compute_config()
1308 if (hdmi_port_clock_valid(intel_hdmi, pipe_config->port_clock, intel_hdmi_compute_config()
1315 adjusted_mode->picture_aspect_ratio = intel_hdmi->aspect_ratio; intel_hdmi_compute_config()
1323 struct intel_hdmi *intel_hdmi = intel_attached_hdmi(connector); intel_hdmi_unset_edid() local
1325 intel_hdmi->has_hdmi_sink = false; intel_hdmi_unset_edid()
1326 intel_hdmi->has_audio = false; intel_hdmi_unset_edid()
1327 intel_hdmi->rgb_quant_range_selectable = false; intel_hdmi_unset_edid()
1337 struct intel_hdmi *intel_hdmi = intel_attached_hdmi(connector); intel_hdmi_set_edid() local
1346 intel_hdmi->ddc_bus)); intel_hdmi_set_edid()
1352 intel_hdmi->rgb_quant_range_selectable = intel_hdmi_set_edid()
1355 intel_hdmi->has_audio = drm_detect_monitor_audio(edid); intel_hdmi_set_edid()
1356 if (intel_hdmi->force_audio != HDMI_AUDIO_AUTO) intel_hdmi_set_edid()
1357 intel_hdmi->has_audio = intel_hdmi_set_edid()
1358 intel_hdmi->force_audio == HDMI_AUDIO_ON; intel_hdmi_set_edid()
1360 if (intel_hdmi->force_audio != HDMI_AUDIO_OFF_DVI) intel_hdmi_set_edid()
1361 intel_hdmi->has_hdmi_sink = intel_hdmi_set_edid()
1374 struct intel_hdmi *intel_hdmi = intel_attached_hdmi(connector); intel_hdmi_detect() local
1388 hdmi_to_dig_port(intel_hdmi)); intel_hdmi_detect()
1405 struct intel_hdmi *intel_hdmi = intel_attached_hdmi(connector); intel_hdmi_detect() local
1407 hdmi_to_dig_port(intel_hdmi)->base.type = INTEL_OUTPUT_HDMI; intel_hdmi_detect()
1420 struct intel_hdmi *intel_hdmi = intel_attached_hdmi(connector); intel_hdmi_force() local
1431 hdmi_to_dig_port(intel_hdmi)->base.type = INTEL_OUTPUT_HDMI; intel_hdmi_force()
1463 struct intel_hdmi *intel_hdmi = intel_attached_hdmi(connector); intel_hdmi_set_property() local
1465 hdmi_to_dig_port(intel_hdmi); intel_hdmi_set_property()
1477 if (i == intel_hdmi->force_audio) intel_hdmi_set_property()
1480 intel_hdmi->force_audio = i; intel_hdmi_set_property()
1488 intel_hdmi->has_hdmi_sink = 0; intel_hdmi_set_property()
1490 intel_hdmi->has_audio = has_audio; intel_hdmi_set_property()
1495 bool old_auto = intel_hdmi->color_range_auto; intel_hdmi_set_property()
1496 bool old_range = intel_hdmi->limited_color_range; intel_hdmi_set_property()
1500 intel_hdmi->color_range_auto = true; intel_hdmi_set_property()
1503 intel_hdmi->color_range_auto = false; intel_hdmi_set_property()
1504 intel_hdmi->limited_color_range = false; intel_hdmi_set_property()
1507 intel_hdmi->color_range_auto = false; intel_hdmi_set_property()
1508 intel_hdmi->limited_color_range = true; intel_hdmi_set_property()
1514 if (old_auto == intel_hdmi->color_range_auto && intel_hdmi_set_property()
1515 old_range == intel_hdmi->limited_color_range) intel_hdmi_set_property()
1524 intel_hdmi->aspect_ratio = HDMI_PICTURE_ASPECT_NONE; intel_hdmi_set_property()
1527 intel_hdmi->aspect_ratio = HDMI_PICTURE_ASPECT_4_3; intel_hdmi_set_property()
1530 intel_hdmi->aspect_ratio = HDMI_PICTURE_ASPECT_16_9; intel_hdmi_set_property()
1549 struct intel_hdmi *intel_hdmi = enc_to_intel_hdmi(&encoder->base); intel_hdmi_pre_enable() local
1555 intel_hdmi->set_infoframes(&encoder->base, intel_hdmi_pre_enable()
1563 struct intel_hdmi *intel_hdmi = &dport->hdmi; vlv_hdmi_pre_enable() local
1599 intel_hdmi->set_infoframes(&encoder->base, vlv_hdmi_pre_enable()
1829 struct intel_hdmi *intel_hdmi = &dport->hdmi; chv_hdmi_pre_enable() local
1968 intel_hdmi->set_infoframes(&encoder->base, chv_hdmi_pre_enable()
2013 intel_hdmi_add_properties(struct intel_hdmi *intel_hdmi, struct drm_connector *connector) intel_hdmi_add_properties() argument
2017 intel_hdmi->color_range_auto = true; intel_hdmi_add_properties()
2019 intel_hdmi->aspect_ratio = HDMI_PICTURE_ASPECT_NONE; intel_hdmi_add_properties()
2026 struct intel_hdmi *intel_hdmi = &intel_dig_port->hdmi; intel_hdmi_init_connector() local
2044 intel_hdmi->ddc_bus = GMBUS_PIN_1_BXT; intel_hdmi_init_connector()
2046 intel_hdmi->ddc_bus = GMBUS_PIN_DPB; intel_hdmi_init_connector()
2058 intel_hdmi->ddc_bus = GMBUS_PIN_2_BXT; intel_hdmi_init_connector()
2060 intel_hdmi->ddc_bus = GMBUS_PIN_DPC; intel_hdmi_init_connector()
2065 intel_hdmi->ddc_bus = GMBUS_PIN_DISABLED; intel_hdmi_init_connector()
2067 intel_hdmi->ddc_bus = GMBUS_PIN_DPD_CHV; intel_hdmi_init_connector()
2069 intel_hdmi->ddc_bus = GMBUS_PIN_DPD; intel_hdmi_init_connector()
2079 intel_hdmi->ddc_bus = GMBUS_PIN_DPB; intel_hdmi_init_connector()
2082 intel_hdmi->ddc_bus = GMBUS_PIN_DPC; intel_hdmi_init_connector()
2085 intel_hdmi->ddc_bus = GMBUS_PIN_DPD; intel_hdmi_init_connector()
2100 intel_hdmi->write_infoframe = vlv_write_infoframe; intel_hdmi_init_connector()
2101 intel_hdmi->set_infoframes = vlv_set_infoframes; intel_hdmi_init_connector()
2102 intel_hdmi->infoframe_enabled = vlv_infoframe_enabled; intel_hdmi_init_connector()
2104 intel_hdmi->write_infoframe = g4x_write_infoframe; intel_hdmi_init_connector()
2105 intel_hdmi->set_infoframes = g4x_set_infoframes; intel_hdmi_init_connector()
2106 intel_hdmi->infoframe_enabled = g4x_infoframe_enabled; intel_hdmi_init_connector()
2108 intel_hdmi->write_infoframe = hsw_write_infoframe; intel_hdmi_init_connector()
2109 intel_hdmi->set_infoframes = hsw_set_infoframes; intel_hdmi_init_connector()
2110 intel_hdmi->infoframe_enabled = hsw_infoframe_enabled; intel_hdmi_init_connector()
2112 intel_hdmi->write_infoframe = ibx_write_infoframe; intel_hdmi_init_connector()
2113 intel_hdmi->set_infoframes = ibx_set_infoframes; intel_hdmi_init_connector()
2114 intel_hdmi->infoframe_enabled = ibx_infoframe_enabled; intel_hdmi_init_connector()
2116 intel_hdmi->write_infoframe = cpt_write_infoframe; intel_hdmi_init_connector()
2117 intel_hdmi->set_infoframes = cpt_set_infoframes; intel_hdmi_init_connector()
2118 intel_hdmi->infoframe_enabled = cpt_infoframe_enabled; intel_hdmi_init_connector()
2127 intel_hdmi_add_properties(intel_hdmi, connector); intel_hdmi_init_connector()
2131 intel_hdmi->attached_connector = intel_connector; intel_hdmi_init_connector()
H A DMakefile86 intel_hdmi.o \
H A Dintel_drv.h679 struct intel_hdmi { struct
799 struct intel_hdmi hdmi;
921 hdmi_to_dig_port(struct intel_hdmi *intel_hdmi) hdmi_to_dig_port() argument
923 return container_of(intel_hdmi, struct intel_digital_port, hdmi); hdmi_to_dig_port()
1295 /* intel_hdmi.c */
1299 struct intel_hdmi *enc_to_intel_hdmi(struct drm_encoder *encoder);
H A Dintel_ddi.c2347 struct intel_hdmi *intel_hdmi = enc_to_intel_hdmi(encoder); intel_ddi_pre_enable() local
2355 intel_hdmi->set_infoframes(encoder, intel_ddi_pre_enable()
3116 struct intel_hdmi *intel_hdmi; intel_ddi_get_config() local
3151 intel_hdmi = enc_to_intel_hdmi(&encoder->base); intel_ddi_get_config()
3153 if (intel_hdmi->infoframe_enabled(&encoder->base)) intel_ddi_get_config()
H A Di915_debugfs.c2872 struct intel_hdmi *intel_hdmi = enc_to_intel_hdmi(&intel_encoder->base); intel_hdmi_info() local
2874 seq_printf(m, "\taudio support: %s\n", yesno(intel_hdmi->has_audio)); intel_hdmi_info()

Completed in 236 milliseconds