Lines Matching refs:radeon_connector
42 struct radeon_connector *radeon_connector = to_radeon_connector(connector); in radeon_dp_handle_hpd() local
45 ret = radeon_dp_mst_check_status(radeon_connector); in radeon_dp_handle_hpd()
54 struct radeon_connector *radeon_connector = to_radeon_connector(connector); in radeon_connector_hotplug() local
58 radeon_connector->con_priv; in radeon_connector_hotplug()
60 if (radeon_connector->is_mst_connector) in radeon_connector_hotplug()
70 if (radeon_connector->hpd.hpd == RADEON_HPD_NONE) in radeon_connector_hotplug()
73 radeon_hpd_set_polarity(rdev, radeon_connector->hpd.hpd); in radeon_connector_hotplug()
83 radeon_connector->con_priv; in radeon_connector_hotplug()
90 dig_connector->dp_sink_type = radeon_dp_getsinktype(radeon_connector); in radeon_connector_hotplug()
95 radeon_hpd_sense(rdev, radeon_connector->hpd.hpd) && in radeon_connector_hotplug()
96 radeon_dp_needs_link_train(radeon_connector)) { in radeon_connector_hotplug()
98 if (!radeon_dp_getdpcd(radeon_connector)) in radeon_connector_hotplug()
124 struct radeon_connector *radeon_connector = to_radeon_connector(connector); in radeon_get_monitor_bpc() local
132 if (radeon_connector->use_digital) { in radeon_get_monitor_bpc()
147 dig_connector = radeon_connector->con_priv; in radeon_get_monitor_bpc()
197 mode_clock = radeon_connector->pixelclock_for_modeset; in radeon_get_monitor_bpc()
282 struct radeon_connector *radeon_connector = to_radeon_connector(connector); in radeon_connector_edid() local
285 if (radeon_connector->edid) { in radeon_connector_edid()
286 return radeon_connector->edid; in radeon_connector_edid()
290 radeon_connector->edid = edid; in radeon_connector_edid()
292 return radeon_connector->edid; in radeon_connector_edid()
299 struct radeon_connector *radeon_connector = to_radeon_connector(connector); in radeon_connector_get_edid() local
301 if (radeon_connector->edid) in radeon_connector_get_edid()
305 if (radeon_connector->router.ddc_valid) in radeon_connector_get_edid()
306 radeon_router_select_ddc_port(radeon_connector); in radeon_connector_get_edid()
310 radeon_connector->ddc_bus->has_aux) { in radeon_connector_get_edid()
311 radeon_connector->edid = drm_get_edid(connector, in radeon_connector_get_edid()
312 &radeon_connector->ddc_bus->aux.ddc); in radeon_connector_get_edid()
315 struct radeon_connector_atom_dig *dig = radeon_connector->con_priv; in radeon_connector_get_edid()
319 radeon_connector->ddc_bus->has_aux) in radeon_connector_get_edid()
320 radeon_connector->edid = drm_get_edid(&radeon_connector->base, in radeon_connector_get_edid()
321 &radeon_connector->ddc_bus->aux.ddc); in radeon_connector_get_edid()
322 else if (radeon_connector->ddc_bus) in radeon_connector_get_edid()
323 radeon_connector->edid = drm_get_edid(&radeon_connector->base, in radeon_connector_get_edid()
324 &radeon_connector->ddc_bus->adapter); in radeon_connector_get_edid()
327 radeon_connector->ddc_bus) { in radeon_connector_get_edid()
328 radeon_connector->edid = drm_get_edid_switcheroo(&radeon_connector->base, in radeon_connector_get_edid()
329 &radeon_connector->ddc_bus->adapter); in radeon_connector_get_edid()
330 } else if (radeon_connector->ddc_bus) { in radeon_connector_get_edid()
331 radeon_connector->edid = drm_get_edid(&radeon_connector->base, in radeon_connector_get_edid()
332 &radeon_connector->ddc_bus->adapter); in radeon_connector_get_edid()
335 if (!radeon_connector->edid) { in radeon_connector_get_edid()
346 radeon_connector->edid = radeon_bios_get_hardcoded_edid(rdev); in radeon_connector_get_edid()
349 radeon_connector->edid = radeon_bios_get_hardcoded_edid(rdev); in radeon_connector_get_edid()
356 struct radeon_connector *radeon_connector = to_radeon_connector(connector); in radeon_connector_free_edid() local
358 if (radeon_connector->edid) { in radeon_connector_free_edid()
359 kfree(radeon_connector->edid); in radeon_connector_free_edid()
360 radeon_connector->edid = NULL; in radeon_connector_free_edid()
366 struct radeon_connector *radeon_connector = to_radeon_connector(connector); in radeon_ddc_get_modes() local
369 if (radeon_connector->edid) { in radeon_ddc_get_modes()
370 drm_connector_update_edid_property(connector, radeon_connector->edid); in radeon_ddc_get_modes()
371 ret = drm_add_edid_modes(connector, radeon_connector->edid); in radeon_ddc_get_modes()
424 struct radeon_connector *radeon_conflict; in radeon_connector_analog_encoder_conflict_solve()
578 struct radeon_connector *radeon_connector = to_radeon_connector(connector); in radeon_connector_set_property() local
586 if (radeon_connector->audio != val) { in radeon_connector_set_property()
587 radeon_connector->audio = val; in radeon_connector_set_property()
593 struct radeon_connector *radeon_connector = to_radeon_connector(connector); in radeon_connector_set_property() local
601 if (radeon_connector->dither != val) { in radeon_connector_set_property()
602 radeon_connector->dither = val; in radeon_connector_set_property()
674 struct radeon_connector *radeon_connector = in radeon_connector_set_property() local
678 radeon_connector->dac_load_detect = false; in radeon_connector_set_property()
680 radeon_connector->dac_load_detect = true; in radeon_connector_set_property()
875 struct radeon_connector *radeon_connector = to_radeon_connector(connector); in radeon_lvds_detect() local
904 if (radeon_connector->edid) in radeon_lvds_detect()
920 struct radeon_connector *radeon_connector = to_radeon_connector(connector); in radeon_connector_unregister() local
922 if (radeon_connector->ddc_bus && radeon_connector->ddc_bus->has_aux) { in radeon_connector_unregister()
923 drm_dp_aux_unregister(&radeon_connector->ddc_bus->aux); in radeon_connector_unregister()
924 radeon_connector->ddc_bus->has_aux = false; in radeon_connector_unregister()
930 struct radeon_connector *radeon_connector = to_radeon_connector(connector); in radeon_connector_destroy() local
933 kfree(radeon_connector->con_priv); in radeon_connector_destroy()
1021 struct radeon_connector *radeon_connector = to_radeon_connector(connector); in radeon_vga_detect() local
1040 if (radeon_connector->ddc_bus) in radeon_vga_detect()
1041 dret = radeon_ddc_probe(radeon_connector, false); in radeon_vga_detect()
1043 radeon_connector->detected_by_load = false; in radeon_vga_detect()
1047 if (!radeon_connector->edid) { in radeon_vga_detect()
1052 radeon_connector->use_digital = in radeon_vga_detect()
1053 !!(radeon_connector->edid->input & DRM_EDID_INPUT_DIGITAL); in radeon_vga_detect()
1058 if (radeon_connector->use_digital && radeon_connector->shared_ddc) { in radeon_vga_detect()
1072 if (radeon_connector->detected_by_load) in radeon_vga_detect()
1077 if (radeon_connector->dac_load_detect && encoder) { in radeon_vga_detect()
1081 radeon_connector->detected_by_load = true; in radeon_vga_detect()
1161 struct radeon_connector *radeon_connector = to_radeon_connector(connector); in radeon_tv_detect() local
1165 if (!radeon_connector->dac_load_detect) in radeon_tv_detect()
1214 struct radeon_connector *radeon_connector = to_radeon_connector(connector); in radeon_check_hpd_status_unchanged() local
1219 && radeon_connector->hpd.hpd != RADEON_HPD_NONE) { in radeon_check_hpd_status_unchanged()
1220 if (radeon_hpd_sense(rdev, radeon_connector->hpd.hpd)) in radeon_check_hpd_status_unchanged()
1247 struct radeon_connector *radeon_connector = to_radeon_connector(connector); in radeon_dvi_detect() local
1262 if (radeon_connector->detected_hpd_without_ddc) { in radeon_dvi_detect()
1264 radeon_connector->detected_hpd_without_ddc = false; in radeon_dvi_detect()
1272 if (radeon_connector->ddc_bus) { in radeon_dvi_detect()
1273 dret = radeon_ddc_probe(radeon_connector, false); in radeon_dvi_detect()
1282 radeon_connector->detected_hpd_without_ddc = true; in radeon_dvi_detect()
1289 radeon_connector->detected_by_load = false; in radeon_dvi_detect()
1293 if (!radeon_connector->edid) { in radeon_dvi_detect()
1299 radeon_connector->base.null_edid_counter) { in radeon_dvi_detect()
1303 radeon_connector->ddc_bus = NULL; in radeon_dvi_detect()
1309 radeon_connector->use_digital = in radeon_dvi_detect()
1310 !!(radeon_connector->edid->input & DRM_EDID_INPUT_DIGITAL); in radeon_dvi_detect()
1315 if ((!radeon_connector->use_digital) && radeon_connector->shared_ddc) { in radeon_dvi_detect()
1326 if (radeon_connector->shared_ddc && (ret == connector_status_connected)) { in radeon_dvi_detect()
1328 struct radeon_connector *list_radeon_connector; in radeon_dvi_detect()
1335 radeon_connector->ddc_bus->rec.i2c_id)) { in radeon_dvi_detect()
1339 if (!radeon_hpd_sense(rdev, radeon_connector->hpd.hpd)) { in radeon_dvi_detect()
1350 if ((ret == connector_status_connected) && (radeon_connector->use_digital == true)) in radeon_dvi_detect()
1363 if (radeon_connector->detected_by_load) in radeon_dvi_detect()
1369 if (radeon_connector->dac_load_detect) { in radeon_dvi_detect()
1382 radeon_connector->use_digital = false; in radeon_dvi_detect()
1385 radeon_connector->detected_by_load = true; in radeon_dvi_detect()
1390 radeon_connector->use_digital = true; in radeon_dvi_detect()
1394 radeon_connector->use_digital = false; in radeon_dvi_detect()
1401 if ((ret == connector_status_connected) && (radeon_connector->use_digital == false) && in radeon_dvi_detect()
1416 radeon_connector->use_digital = true; in radeon_dvi_detect()
1423 if ((radeon_audio != 0) && radeon_connector->use_digital) { in radeon_dvi_detect()
1446 struct radeon_connector *radeon_connector = to_radeon_connector(connector); in radeon_dvi_encoder() local
1450 if (radeon_connector->use_digital == true) { in radeon_dvi_encoder()
1472 struct radeon_connector *radeon_connector = to_radeon_connector(connector); in radeon_dvi_force() local
1474 radeon_connector->use_digital = false; in radeon_dvi_force()
1476 radeon_connector->use_digital = true; in radeon_dvi_force()
1484 struct radeon_connector *radeon_connector = to_radeon_connector(connector); in radeon_dvi_mode_valid() local
1489 if (radeon_connector->use_digital && in radeon_dvi_mode_valid()
1494 if (radeon_connector->use_digital && (mode->clock > 165000)) { in radeon_dvi_mode_valid()
1495 if ((radeon_connector->connector_object_id == CONNECTOR_OBJECT_ID_DUAL_LINK_DVI_I) || in radeon_dvi_mode_valid()
1496 (radeon_connector->connector_object_id == CONNECTOR_OBJECT_ID_DUAL_LINK_DVI_D) || in radeon_dvi_mode_valid()
1497 (radeon_connector->connector_object_id == CONNECTOR_OBJECT_ID_HDMI_TYPE_B)) in radeon_dvi_mode_valid()
1535 struct radeon_connector *radeon_connector = to_radeon_connector(connector); in radeon_dp_get_modes() local
1536 struct radeon_connector_atom_dig *radeon_dig_connector = radeon_connector->con_priv; in radeon_dp_get_modes()
1657 struct radeon_connector *radeon_connector = to_radeon_connector(connector); in radeon_dp_detect() local
1659 struct radeon_connector_atom_dig *radeon_dig_connector = radeon_connector->con_priv; in radeon_dp_detect()
1701 if (radeon_dp_getdpcd(radeon_connector)) in radeon_dp_detect()
1711 radeon_dp_getdpcd(radeon_connector); in radeon_dp_detect()
1717 if (radeon_ddc_probe(radeon_connector, true)) /* try DDC */ in radeon_dp_detect()
1719 else if (radeon_connector->dac_load_detect) { /* try load detection */ in radeon_dp_detect()
1725 radeon_dig_connector->dp_sink_type = radeon_dp_getsinktype(radeon_connector); in radeon_dp_detect()
1726 if (radeon_hpd_sense(rdev, radeon_connector->hpd.hpd)) { in radeon_dp_detect()
1729 radeon_dp_getdpcd(radeon_connector); in radeon_dp_detect()
1730 r = radeon_dp_mst_probe(radeon_connector); in radeon_dp_detect()
1736 if (radeon_dp_getdpcd(radeon_connector)) { in radeon_dp_detect()
1737 r = radeon_dp_mst_probe(radeon_connector); in radeon_dp_detect()
1745 if (radeon_ddc_probe(radeon_connector, false)) in radeon_dp_detect()
1772 struct radeon_connector *radeon_connector = to_radeon_connector(connector); in radeon_dp_mode_valid() local
1773 struct radeon_connector_atom_dig *radeon_dig_connector = radeon_connector->con_priv; in radeon_dp_mode_valid()
1870 struct radeon_connector *radeon_connector; in radeon_add_atom_connector() local
1892 radeon_connector = to_radeon_connector(connector); in radeon_add_atom_connector()
1893 if (radeon_connector->connector_id == connector_id) { in radeon_add_atom_connector()
1894 radeon_connector->devices |= supported_device; in radeon_add_atom_connector()
1897 if (radeon_connector->ddc_bus && i2c_bus->valid) { in radeon_add_atom_connector()
1898 if (radeon_connector->ddc_bus->rec.i2c_id == i2c_bus->i2c_id) { in radeon_add_atom_connector()
1899 radeon_connector->shared_ddc = true; in radeon_add_atom_connector()
1902 if (radeon_connector->router_bus && router->ddc_valid && in radeon_add_atom_connector()
1903 (radeon_connector->router.router_id == router->router_id)) { in radeon_add_atom_connector()
1904 radeon_connector->shared_ddc = false; in radeon_add_atom_connector()
1925 radeon_connector = kzalloc(sizeof(struct radeon_connector), GFP_KERNEL); in radeon_add_atom_connector()
1926 if (!radeon_connector) in radeon_add_atom_connector()
1929 connector = &radeon_connector->base; in radeon_add_atom_connector()
1931 radeon_connector->connector_id = connector_id; in radeon_add_atom_connector()
1932 radeon_connector->devices = supported_device; in radeon_add_atom_connector()
1933 radeon_connector->shared_ddc = shared_ddc; in radeon_add_atom_connector()
1934 radeon_connector->connector_object_id = connector_object_id; in radeon_add_atom_connector()
1935 radeon_connector->hpd = *hpd; in radeon_add_atom_connector()
1937 radeon_connector->router = *router; in radeon_add_atom_connector()
1939 radeon_connector->router_bus = radeon_i2c_lookup(rdev, &router->i2c_info); in radeon_add_atom_connector()
1940 if (!radeon_connector->router_bus) in radeon_add_atom_connector()
1949 radeon_connector->con_priv = radeon_dig_connector; in radeon_add_atom_connector()
1951 radeon_connector->ddc_bus = radeon_i2c_lookup(rdev, i2c_bus); in radeon_add_atom_connector()
1952 if (radeon_connector->ddc_bus) { in radeon_add_atom_connector()
1954 ddc = &radeon_connector->ddc_bus->adapter; in radeon_add_atom_connector()
1963 drm_connector_init_with_ddc(dev, &radeon_connector->base, in radeon_add_atom_connector()
1967 drm_connector_helper_add(&radeon_connector->base, in radeon_add_atom_connector()
1971 radeon_connector->dac_load_detect = true; in radeon_add_atom_connector()
1972 drm_object_attach_property(&radeon_connector->base.base, in radeon_add_atom_connector()
1975 drm_object_attach_property(&radeon_connector->base.base, in radeon_add_atom_connector()
1979 drm_object_attach_property(&radeon_connector->base.base, in radeon_add_atom_connector()
1988 drm_connector_init_with_ddc(dev, &radeon_connector->base, in radeon_add_atom_connector()
1992 drm_connector_helper_add(&radeon_connector->base, in radeon_add_atom_connector()
1994 drm_object_attach_property(&radeon_connector->base.base, in radeon_add_atom_connector()
1997 drm_object_attach_property(&radeon_connector->base.base, in radeon_add_atom_connector()
2000 drm_object_attach_property(&radeon_connector->base.base, in radeon_add_atom_connector()
2004 drm_object_attach_property(&radeon_connector->base.base, in radeon_add_atom_connector()
2008 drm_object_attach_property(&radeon_connector->base.base, in radeon_add_atom_connector()
2013 drm_object_attach_property(&radeon_connector->base.base, in radeon_add_atom_connector()
2016 radeon_connector->audio = RADEON_AUDIO_AUTO; in radeon_add_atom_connector()
2019 drm_object_attach_property(&radeon_connector->base.base, in radeon_add_atom_connector()
2030 radeon_connector->dac_load_detect = true; in radeon_add_atom_connector()
2031 drm_object_attach_property(&radeon_connector->base.base, in radeon_add_atom_connector()
2038 drm_connector_init_with_ddc(dev, &radeon_connector->base, in radeon_add_atom_connector()
2042 drm_connector_helper_add(&radeon_connector->base, in radeon_add_atom_connector()
2044 drm_object_attach_property(&radeon_connector->base.base, in radeon_add_atom_connector()
2056 radeon_connector->ddc_bus = radeon_i2c_lookup(rdev, i2c_bus); in radeon_add_atom_connector()
2057 if (!radeon_connector->ddc_bus) in radeon_add_atom_connector()
2060 ddc = &radeon_connector->ddc_bus->adapter; in radeon_add_atom_connector()
2062 drm_connector_init_with_ddc(dev, &radeon_connector->base, in radeon_add_atom_connector()
2066 drm_connector_helper_add(&radeon_connector->base, &radeon_vga_connector_helper_funcs); in radeon_add_atom_connector()
2067 radeon_connector->dac_load_detect = true; in radeon_add_atom_connector()
2068 drm_object_attach_property(&radeon_connector->base.base, in radeon_add_atom_connector()
2072 drm_object_attach_property(&radeon_connector->base.base, in radeon_add_atom_connector()
2076 drm_object_attach_property(&radeon_connector->base.base, in radeon_add_atom_connector()
2080 radeon_connector->hpd.hpd = RADEON_HPD_NONE; in radeon_add_atom_connector()
2086 radeon_connector->ddc_bus = radeon_i2c_lookup(rdev, i2c_bus); in radeon_add_atom_connector()
2087 if (!radeon_connector->ddc_bus) in radeon_add_atom_connector()
2090 ddc = &radeon_connector->ddc_bus->adapter; in radeon_add_atom_connector()
2092 drm_connector_init_with_ddc(dev, &radeon_connector->base, in radeon_add_atom_connector()
2096 drm_connector_helper_add(&radeon_connector->base, &radeon_vga_connector_helper_funcs); in radeon_add_atom_connector()
2097 radeon_connector->dac_load_detect = true; in radeon_add_atom_connector()
2098 drm_object_attach_property(&radeon_connector->base.base, in radeon_add_atom_connector()
2102 drm_object_attach_property(&radeon_connector->base.base, in radeon_add_atom_connector()
2106 drm_object_attach_property(&radeon_connector->base.base, in radeon_add_atom_connector()
2110 radeon_connector->hpd.hpd = RADEON_HPD_NONE; in radeon_add_atom_connector()
2120 radeon_connector->con_priv = radeon_dig_connector; in radeon_add_atom_connector()
2122 radeon_connector->ddc_bus = radeon_i2c_lookup(rdev, i2c_bus); in radeon_add_atom_connector()
2123 if (!radeon_connector->ddc_bus) in radeon_add_atom_connector()
2126 ddc = &radeon_connector->ddc_bus->adapter; in radeon_add_atom_connector()
2128 drm_connector_init_with_ddc(dev, &radeon_connector->base, in radeon_add_atom_connector()
2132 drm_connector_helper_add(&radeon_connector->base, &radeon_dvi_connector_helper_funcs); in radeon_add_atom_connector()
2134 drm_object_attach_property(&radeon_connector->base.base, in radeon_add_atom_connector()
2138 drm_object_attach_property(&radeon_connector->base.base, in radeon_add_atom_connector()
2141 drm_object_attach_property(&radeon_connector->base.base, in radeon_add_atom_connector()
2144 drm_object_attach_property(&radeon_connector->base.base, in radeon_add_atom_connector()
2147 drm_object_attach_property(&radeon_connector->base.base, in radeon_add_atom_connector()
2150 drm_object_attach_property(&radeon_connector->base.base, in radeon_add_atom_connector()
2155 drm_object_attach_property(&radeon_connector->base.base, in radeon_add_atom_connector()
2158 radeon_connector->audio = RADEON_AUDIO_AUTO; in radeon_add_atom_connector()
2161 radeon_connector->dac_load_detect = true; in radeon_add_atom_connector()
2162 drm_object_attach_property(&radeon_connector->base.base, in radeon_add_atom_connector()
2167 drm_object_attach_property(&radeon_connector->base.base, in radeon_add_atom_connector()
2182 radeon_connector->con_priv = radeon_dig_connector; in radeon_add_atom_connector()
2184 radeon_connector->ddc_bus = radeon_i2c_lookup(rdev, i2c_bus); in radeon_add_atom_connector()
2185 if (!radeon_connector->ddc_bus) in radeon_add_atom_connector()
2188 ddc = &radeon_connector->ddc_bus->adapter; in radeon_add_atom_connector()
2190 drm_connector_init_with_ddc(dev, &radeon_connector->base, in radeon_add_atom_connector()
2194 drm_connector_helper_add(&radeon_connector->base, &radeon_dvi_connector_helper_funcs); in radeon_add_atom_connector()
2195 drm_object_attach_property(&radeon_connector->base.base, in radeon_add_atom_connector()
2199 drm_object_attach_property(&radeon_connector->base.base, in radeon_add_atom_connector()
2202 drm_object_attach_property(&radeon_connector->base.base, in radeon_add_atom_connector()
2205 drm_object_attach_property(&radeon_connector->base.base, in radeon_add_atom_connector()
2208 drm_object_attach_property(&radeon_connector->base.base, in radeon_add_atom_connector()
2211 drm_object_attach_property(&radeon_connector->base.base, in radeon_add_atom_connector()
2216 drm_object_attach_property(&radeon_connector->base.base, in radeon_add_atom_connector()
2219 radeon_connector->audio = RADEON_AUDIO_AUTO; in radeon_add_atom_connector()
2222 drm_object_attach_property(&radeon_connector->base.base, in radeon_add_atom_connector()
2237 radeon_connector->con_priv = radeon_dig_connector; in radeon_add_atom_connector()
2239 radeon_connector->ddc_bus = radeon_i2c_lookup(rdev, i2c_bus); in radeon_add_atom_connector()
2240 if (radeon_connector->ddc_bus) { in radeon_add_atom_connector()
2242 ddc = &radeon_connector->ddc_bus->adapter; in radeon_add_atom_connector()
2247 drm_connector_init_with_ddc(dev, &radeon_connector->base, in radeon_add_atom_connector()
2251 drm_connector_helper_add(&radeon_connector->base, &radeon_dp_connector_helper_funcs); in radeon_add_atom_connector()
2253 drm_object_attach_property(&radeon_connector->base.base, in radeon_add_atom_connector()
2257 drm_object_attach_property(&radeon_connector->base.base, in radeon_add_atom_connector()
2260 drm_object_attach_property(&radeon_connector->base.base, in radeon_add_atom_connector()
2263 drm_object_attach_property(&radeon_connector->base.base, in radeon_add_atom_connector()
2266 drm_object_attach_property(&radeon_connector->base.base, in radeon_add_atom_connector()
2269 drm_object_attach_property(&radeon_connector->base.base, in radeon_add_atom_connector()
2274 drm_object_attach_property(&radeon_connector->base.base, in radeon_add_atom_connector()
2277 radeon_connector->audio = RADEON_AUDIO_AUTO; in radeon_add_atom_connector()
2280 drm_object_attach_property(&radeon_connector->base.base, in radeon_add_atom_connector()
2292 radeon_connector->con_priv = radeon_dig_connector; in radeon_add_atom_connector()
2294 radeon_connector->ddc_bus = radeon_i2c_lookup(rdev, i2c_bus); in radeon_add_atom_connector()
2295 if (radeon_connector->ddc_bus) { in radeon_add_atom_connector()
2297 ddc = &radeon_connector->ddc_bus->adapter; in radeon_add_atom_connector()
2302 drm_connector_init_with_ddc(dev, &radeon_connector->base, in radeon_add_atom_connector()
2306 drm_connector_helper_add(&radeon_connector->base, &radeon_dp_connector_helper_funcs); in radeon_add_atom_connector()
2307 drm_object_attach_property(&radeon_connector->base.base, in radeon_add_atom_connector()
2317 drm_connector_init_with_ddc(dev, &radeon_connector->base, in radeon_add_atom_connector()
2321 drm_connector_helper_add(&radeon_connector->base, &radeon_tv_connector_helper_funcs); in radeon_add_atom_connector()
2322 radeon_connector->dac_load_detect = true; in radeon_add_atom_connector()
2323 drm_object_attach_property(&radeon_connector->base.base, in radeon_add_atom_connector()
2326 drm_object_attach_property(&radeon_connector->base.base, in radeon_add_atom_connector()
2330 radeon_connector->hpd.hpd = RADEON_HPD_NONE; in radeon_add_atom_connector()
2339 radeon_connector->con_priv = radeon_dig_connector; in radeon_add_atom_connector()
2341 radeon_connector->ddc_bus = radeon_i2c_lookup(rdev, i2c_bus); in radeon_add_atom_connector()
2342 if (!radeon_connector->ddc_bus) in radeon_add_atom_connector()
2345 ddc = &radeon_connector->ddc_bus->adapter; in radeon_add_atom_connector()
2347 drm_connector_init_with_ddc(dev, &radeon_connector->base, in radeon_add_atom_connector()
2351 drm_connector_helper_add(&radeon_connector->base, &radeon_lvds_connector_helper_funcs); in radeon_add_atom_connector()
2352 drm_object_attach_property(&radeon_connector->base.base, in radeon_add_atom_connector()
2362 if (radeon_connector->hpd.hpd == RADEON_HPD_NONE) { in radeon_add_atom_connector()
2374 radeon_dp_aux_init(radeon_connector); in radeon_add_atom_connector()
2394 struct radeon_connector *radeon_connector; in radeon_add_legacy_connector() local
2410 radeon_connector = to_radeon_connector(connector); in radeon_add_legacy_connector()
2411 if (radeon_connector->connector_id == connector_id) { in radeon_add_legacy_connector()
2412 radeon_connector->devices |= supported_device; in radeon_add_legacy_connector()
2417 radeon_connector = kzalloc(sizeof(struct radeon_connector), GFP_KERNEL); in radeon_add_legacy_connector()
2418 if (!radeon_connector) in radeon_add_legacy_connector()
2421 connector = &radeon_connector->base; in radeon_add_legacy_connector()
2423 radeon_connector->connector_id = connector_id; in radeon_add_legacy_connector()
2424 radeon_connector->devices = supported_device; in radeon_add_legacy_connector()
2425 radeon_connector->connector_object_id = connector_object_id; in radeon_add_legacy_connector()
2426 radeon_connector->hpd = *hpd; in radeon_add_legacy_connector()
2431 radeon_connector->ddc_bus = radeon_i2c_lookup(rdev, i2c_bus); in radeon_add_legacy_connector()
2432 if (!radeon_connector->ddc_bus) in radeon_add_legacy_connector()
2435 ddc = &radeon_connector->ddc_bus->adapter; in radeon_add_legacy_connector()
2437 drm_connector_init_with_ddc(dev, &radeon_connector->base, in radeon_add_legacy_connector()
2441 drm_connector_helper_add(&radeon_connector->base, &radeon_vga_connector_helper_funcs); in radeon_add_legacy_connector()
2442 radeon_connector->dac_load_detect = true; in radeon_add_legacy_connector()
2443 drm_object_attach_property(&radeon_connector->base.base, in radeon_add_legacy_connector()
2447 radeon_connector->hpd.hpd = RADEON_HPD_NONE; in radeon_add_legacy_connector()
2453 radeon_connector->ddc_bus = radeon_i2c_lookup(rdev, i2c_bus); in radeon_add_legacy_connector()
2454 if (!radeon_connector->ddc_bus) in radeon_add_legacy_connector()
2457 ddc = &radeon_connector->ddc_bus->adapter; in radeon_add_legacy_connector()
2459 drm_connector_init_with_ddc(dev, &radeon_connector->base, in radeon_add_legacy_connector()
2463 drm_connector_helper_add(&radeon_connector->base, &radeon_vga_connector_helper_funcs); in radeon_add_legacy_connector()
2464 radeon_connector->dac_load_detect = true; in radeon_add_legacy_connector()
2465 drm_object_attach_property(&radeon_connector->base.base, in radeon_add_legacy_connector()
2469 radeon_connector->hpd.hpd = RADEON_HPD_NONE; in radeon_add_legacy_connector()
2476 radeon_connector->ddc_bus = radeon_i2c_lookup(rdev, i2c_bus); in radeon_add_legacy_connector()
2477 if (!radeon_connector->ddc_bus) in radeon_add_legacy_connector()
2480 ddc = &radeon_connector->ddc_bus->adapter; in radeon_add_legacy_connector()
2482 drm_connector_init_with_ddc(dev, &radeon_connector->base, in radeon_add_legacy_connector()
2486 drm_connector_helper_add(&radeon_connector->base, &radeon_dvi_connector_helper_funcs); in radeon_add_legacy_connector()
2488 radeon_connector->dac_load_detect = true; in radeon_add_legacy_connector()
2489 drm_object_attach_property(&radeon_connector->base.base, in radeon_add_legacy_connector()
2503 drm_connector_init_with_ddc(dev, &radeon_connector->base, in radeon_add_legacy_connector()
2507 drm_connector_helper_add(&radeon_connector->base, &radeon_tv_connector_helper_funcs); in radeon_add_legacy_connector()
2508 radeon_connector->dac_load_detect = true; in radeon_add_legacy_connector()
2515 radeon_connector->dac_load_detect = false; in radeon_add_legacy_connector()
2516 drm_object_attach_property(&radeon_connector->base.base, in radeon_add_legacy_connector()
2518 radeon_connector->dac_load_detect); in radeon_add_legacy_connector()
2519 drm_object_attach_property(&radeon_connector->base.base, in radeon_add_legacy_connector()
2523 radeon_connector->hpd.hpd = RADEON_HPD_NONE; in radeon_add_legacy_connector()
2529 radeon_connector->ddc_bus = radeon_i2c_lookup(rdev, i2c_bus); in radeon_add_legacy_connector()
2530 if (!radeon_connector->ddc_bus) in radeon_add_legacy_connector()
2533 ddc = &radeon_connector->ddc_bus->adapter; in radeon_add_legacy_connector()
2535 drm_connector_init_with_ddc(dev, &radeon_connector->base, in radeon_add_legacy_connector()
2539 drm_connector_helper_add(&radeon_connector->base, &radeon_lvds_connector_helper_funcs); in radeon_add_legacy_connector()
2540 drm_object_attach_property(&radeon_connector->base.base, in radeon_add_legacy_connector()
2549 if (radeon_connector->hpd.hpd == RADEON_HPD_NONE) { in radeon_add_legacy_connector()
2565 struct radeon_connector *radeon_connector; in radeon_setup_mst_connector() local
2574 radeon_connector = to_radeon_connector(connector); in radeon_setup_mst_connector()
2579 radeon_dp_mst_init(radeon_connector); in radeon_setup_mst_connector()