Lines Matching refs:connector

156 	/* Mark the type of connector */
212 static struct intel_sdvo *intel_attached_sdvo(struct drm_connector *connector)
214 return container_of(intel_attached_encoder(connector),
218 static struct intel_sdvo_connector *to_intel_sdvo_connector(struct drm_connector *connector)
220 return container_of(to_intel_connector(connector), struct intel_sdvo_connector, base);
1273 static bool intel_sdvo_connector_get_hw_state(struct intel_connector *connector)
1276 to_intel_sdvo_connector(&connector->base);
1277 struct intel_sdvo *intel_sdvo = intel_attached_sdvo(&connector->base);
1459 static void intel_sdvo_dpms(struct drm_connector *connector, int mode)
1462 struct intel_sdvo *intel_sdvo = intel_attached_sdvo(connector);
1468 if (mode == connector->dpms)
1471 connector->dpms = mode;
1500 intel_modeset_check_state(connector->dev);
1503 static int intel_sdvo_mode_valid(struct drm_connector *connector,
1506 struct intel_sdvo *intel_sdvo = intel_attached_sdvo(connector);
1597 intel_sdvo_get_edid(struct drm_connector *connector)
1599 struct intel_sdvo *sdvo = intel_attached_sdvo(connector);
1600 return drm_get_edid(connector, &sdvo->ddc);
1603 /* Mac mini hack -- use the same DDC as the analog connector */
1605 intel_sdvo_get_analog_edid(struct drm_connector *connector)
1607 struct drm_i915_private *dev_priv = connector->dev->dev_private;
1609 return drm_get_edid(connector,
1615 intel_sdvo_tmds_sink_detect(struct drm_connector *connector)
1617 struct intel_sdvo *intel_sdvo = intel_attached_sdvo(connector);
1621 edid = intel_sdvo_get_edid(connector);
1632 edid = intel_sdvo_get_edid(connector);
1646 * port, try to use the CRT ddc to read the EDID for DVI-connector.
1649 edid = intel_sdvo_get_analog_edid(connector);
1653 /* DDC bus is shared, match EDID to connector type */
1668 struct intel_sdvo_connector *intel_sdvo_connector = to_intel_sdvo_connector(connector);
1689 intel_sdvo_detect(struct drm_connector *connector, bool force)
1692 struct intel_sdvo *intel_sdvo = intel_attached_sdvo(connector);
1693 struct intel_sdvo_connector *intel_sdvo_connector = to_intel_sdvo_connector(connector);
1717 ret = intel_sdvo_tmds_sink_detect(connector);
1722 edid = intel_sdvo_get_edid(connector);
1724 edid = intel_sdvo_get_analog_edid(connector);
1751 static void intel_sdvo_get_ddc_modes(struct drm_connector *connector)
1756 edid = intel_sdvo_get_edid(connector);
1759 * Mac mini hack. On this device, the DVI-I connector shares one DDC
1765 edid = intel_sdvo_get_analog_edid(connector);
1768 if (intel_sdvo_connector_matches_edid(to_intel_sdvo_connector(connector),
1770 (void) drm_mode_connector_update_edid_property(connector, edid);
1771 (void) drm_add_edid_modes(connector, edid);
1843 static void intel_sdvo_get_tv_modes(struct drm_connector *connector)
1845 struct intel_sdvo *intel_sdvo = intel_attached_sdvo(connector);
1870 nmode = drm_mode_duplicate(connector->dev,
1873 drm_mode_probed_add(connector, nmode);
1877 static void intel_sdvo_get_lvds_modes(struct drm_connector *connector)
1879 struct intel_sdvo *intel_sdvo = intel_attached_sdvo(connector);
1880 struct drm_i915_private *dev_priv = connector->dev->dev_private;
1888 newmode = drm_mode_duplicate(connector->dev,
1894 drm_mode_probed_add(connector, newmode);
1903 intel_ddc_get_modes(connector, &intel_sdvo->ddc);
1905 list_for_each_entry(newmode, struct drm_display_mode, &connector->probed_modes, head) {
1908 drm_mode_duplicate(connector->dev, newmode);
1917 static int intel_sdvo_get_modes(struct drm_connector *connector)
1919 struct intel_sdvo_connector *intel_sdvo_connector = to_intel_sdvo_connector(connector);
1922 intel_sdvo_get_tv_modes(connector);
1924 intel_sdvo_get_lvds_modes(connector);
1926 intel_sdvo_get_ddc_modes(connector);
1928 return !list_empty(&connector->probed_modes);
1932 intel_sdvo_destroy_enhance_property(struct drm_connector *connector)
1934 struct intel_sdvo_connector *intel_sdvo_connector = to_intel_sdvo_connector(connector);
1935 struct drm_device *dev = connector->dev;
1973 static void intel_sdvo_destroy(struct drm_connector *connector)
1975 struct intel_sdvo_connector *intel_sdvo_connector = to_intel_sdvo_connector(connector);
1978 drm_property_destroy(connector->dev,
1981 intel_sdvo_destroy_enhance_property(connector);
1982 drm_connector_cleanup(connector);
1986 static bool intel_sdvo_detect_hdmi_audio(struct drm_connector *connector)
1988 struct intel_sdvo *intel_sdvo = intel_attached_sdvo(connector);
1995 edid = intel_sdvo_get_edid(connector);
2005 intel_sdvo_set_property(struct drm_connector *connector,
2009 struct intel_sdvo *intel_sdvo = intel_attached_sdvo(connector);
2010 struct intel_sdvo_connector *intel_sdvo_connector = to_intel_sdvo_connector(connector);
2011 struct drm_i915_private *dev_priv = connector->dev->dev_private;
2016 ret = drm_object_property_set_value(&connector->base, property, val);
2030 has_audio = intel_sdvo_detect_hdmi_audio(connector);
2092 drm_object_property_set_value(&connector->base,
2104 drm_object_property_set_value(&connector->base,
2116 drm_object_property_set_value(&connector->base,
2128 drm_object_property_set_value(&connector->base,
2336 intel_sdvo_connector_init(struct intel_sdvo_connector *connector,
2340 &connector->base.base,
2342 connector->base.base.connector_type);
2344 drm_connector_helper_add(&connector->base.base,
2347 connector->base.base.interlace_allowed = 1;
2348 connector->base.base.doublescan_allowed = 0;
2349 connector->base.base.display_info.subpixel_order = SubPixelHorizontalRGB;
2350 connector->base.get_hw_state = intel_sdvo_connector_get_hw_state;
2352 intel_connector_attach_encoder(&connector->base, &encoder->base);
2357 struct intel_sdvo_connector *connector)
2359 struct drm_device *dev = connector->base.base.dev;
2361 intel_attach_force_audio_property(&connector->base.base);
2363 intel_attach_broadcast_rgb_property(&connector->base.base);
2372 struct drm_connector *connector;
2390 connector = &intel_connector->base;
2403 connector->connector_type = DRM_MODE_CONNECTOR_DVID;
2406 connector->connector_type = DRM_MODE_CONNECTOR_HDMIA;
2421 struct drm_connector *connector;
2430 connector = &intel_connector->base;
2432 connector->connector_type = DRM_MODE_CONNECTOR_SVIDEO;
2450 intel_sdvo_destroy(connector);
2458 struct drm_connector *connector;
2467 connector = &intel_connector->base;
2470 connector->connector_type = DRM_MODE_CONNECTOR_VGA;
2489 struct drm_connector *connector;
2498 connector = &intel_connector->base;
2500 connector->connector_type = DRM_MODE_CONNECTOR_LVDS;
2517 intel_sdvo_destroy(connector);
2584 struct drm_connector *connector, *tmp;
2586 list_for_each_entry_safe(connector, tmp, struct drm_connector,
2588 if (intel_attached_encoder(connector) == &intel_sdvo->base)
2589 intel_sdvo_destroy(connector);
2648 drm_object_attach_property(&connector->base, \
2662 struct drm_connector *connector = &intel_sdvo_connector->base.base;
2685 drm_object_attach_property(&connector->base,
2694 drm_object_attach_property(&connector->base,
2722 drm_object_attach_property(&connector->base,
2732 drm_object_attach_property(&connector->base,
2764 drm_object_attach_property(&connector->base,
2779 struct drm_connector *connector = &intel_sdvo_connector->base.base;