amdgpu_connector 45 drivers/gpu/drm/amd/amdgpu/amdgpu_connectors.c struct amdgpu_connector *amdgpu_connector = to_amdgpu_connector(connector); amdgpu_connector 50 drivers/gpu/drm/amd/amdgpu/amdgpu_connectors.c if (amdgpu_connector->hpd.hpd == AMDGPU_HPD_NONE) amdgpu_connector 53 drivers/gpu/drm/amd/amdgpu/amdgpu_connectors.c amdgpu_display_hpd_set_polarity(adev, amdgpu_connector->hpd.hpd); amdgpu_connector 62 drivers/gpu/drm/amd/amdgpu/amdgpu_connectors.c amdgpu_connector->con_priv; amdgpu_connector 69 drivers/gpu/drm/amd/amdgpu/amdgpu_connectors.c dig_connector->dp_sink_type = amdgpu_atombios_dp_get_sinktype(amdgpu_connector); amdgpu_connector 74 drivers/gpu/drm/amd/amdgpu/amdgpu_connectors.c amdgpu_display_hpd_sense(adev, amdgpu_connector->hpd.hpd) && amdgpu_connector 75 drivers/gpu/drm/amd/amdgpu/amdgpu_connectors.c amdgpu_atombios_dp_needs_link_train(amdgpu_connector)) { amdgpu_connector 77 drivers/gpu/drm/amd/amdgpu/amdgpu_connectors.c if (amdgpu_atombios_dp_get_dpcd(amdgpu_connector)) amdgpu_connector 101 drivers/gpu/drm/amd/amdgpu/amdgpu_connectors.c struct amdgpu_connector *amdgpu_connector = to_amdgpu_connector(connector); amdgpu_connector 109 drivers/gpu/drm/amd/amdgpu/amdgpu_connectors.c if (amdgpu_connector->use_digital) { amdgpu_connector 124 drivers/gpu/drm/amd/amdgpu/amdgpu_connectors.c dig_connector = amdgpu_connector->con_priv; amdgpu_connector 167 drivers/gpu/drm/amd/amdgpu/amdgpu_connectors.c mode_clock = amdgpu_connector->pixelclock_for_modeset; amdgpu_connector 251 drivers/gpu/drm/amd/amdgpu/amdgpu_connectors.c struct amdgpu_connector *amdgpu_connector = to_amdgpu_connector(connector); amdgpu_connector 254 drivers/gpu/drm/amd/amdgpu/amdgpu_connectors.c if (amdgpu_connector->edid) { amdgpu_connector 255 drivers/gpu/drm/amd/amdgpu/amdgpu_connectors.c return amdgpu_connector->edid; amdgpu_connector 259 drivers/gpu/drm/amd/amdgpu/amdgpu_connectors.c amdgpu_connector->edid = edid; amdgpu_connector 261 drivers/gpu/drm/amd/amdgpu/amdgpu_connectors.c return amdgpu_connector->edid; amdgpu_connector 285 drivers/gpu/drm/amd/amdgpu/amdgpu_connectors.c struct amdgpu_connector *amdgpu_connector = to_amdgpu_connector(connector); amdgpu_connector 287 drivers/gpu/drm/amd/amdgpu/amdgpu_connectors.c if (amdgpu_connector->edid) amdgpu_connector 291 drivers/gpu/drm/amd/amdgpu/amdgpu_connectors.c if (amdgpu_connector->router.ddc_valid) amdgpu_connector 292 drivers/gpu/drm/amd/amdgpu/amdgpu_connectors.c amdgpu_i2c_router_select_ddc_port(amdgpu_connector); amdgpu_connector 296 drivers/gpu/drm/amd/amdgpu/amdgpu_connectors.c amdgpu_connector->ddc_bus->has_aux) { amdgpu_connector 297 drivers/gpu/drm/amd/amdgpu/amdgpu_connectors.c amdgpu_connector->edid = drm_get_edid(connector, amdgpu_connector 298 drivers/gpu/drm/amd/amdgpu/amdgpu_connectors.c &amdgpu_connector->ddc_bus->aux.ddc); amdgpu_connector 301 drivers/gpu/drm/amd/amdgpu/amdgpu_connectors.c struct amdgpu_connector_atom_dig *dig = amdgpu_connector->con_priv; amdgpu_connector 305 drivers/gpu/drm/amd/amdgpu/amdgpu_connectors.c amdgpu_connector->ddc_bus->has_aux) amdgpu_connector 306 drivers/gpu/drm/amd/amdgpu/amdgpu_connectors.c amdgpu_connector->edid = drm_get_edid(connector, amdgpu_connector 307 drivers/gpu/drm/amd/amdgpu/amdgpu_connectors.c &amdgpu_connector->ddc_bus->aux.ddc); amdgpu_connector 308 drivers/gpu/drm/amd/amdgpu/amdgpu_connectors.c else if (amdgpu_connector->ddc_bus) amdgpu_connector 309 drivers/gpu/drm/amd/amdgpu/amdgpu_connectors.c amdgpu_connector->edid = drm_get_edid(connector, amdgpu_connector 310 drivers/gpu/drm/amd/amdgpu/amdgpu_connectors.c &amdgpu_connector->ddc_bus->adapter); amdgpu_connector 311 drivers/gpu/drm/amd/amdgpu/amdgpu_connectors.c } else if (amdgpu_connector->ddc_bus) { amdgpu_connector 312 drivers/gpu/drm/amd/amdgpu/amdgpu_connectors.c amdgpu_connector->edid = drm_get_edid(connector, amdgpu_connector 313 drivers/gpu/drm/amd/amdgpu/amdgpu_connectors.c &amdgpu_connector->ddc_bus->adapter); amdgpu_connector 316 drivers/gpu/drm/amd/amdgpu/amdgpu_connectors.c if (!amdgpu_connector->edid) { amdgpu_connector 320 drivers/gpu/drm/amd/amdgpu/amdgpu_connectors.c amdgpu_connector->edid = amdgpu_connector_get_hardcoded_edid(adev); amdgpu_connector 326 drivers/gpu/drm/amd/amdgpu/amdgpu_connectors.c struct amdgpu_connector *amdgpu_connector = to_amdgpu_connector(connector); amdgpu_connector 328 drivers/gpu/drm/amd/amdgpu/amdgpu_connectors.c kfree(amdgpu_connector->edid); amdgpu_connector 329 drivers/gpu/drm/amd/amdgpu/amdgpu_connectors.c amdgpu_connector->edid = NULL; amdgpu_connector 334 drivers/gpu/drm/amd/amdgpu/amdgpu_connectors.c struct amdgpu_connector *amdgpu_connector = to_amdgpu_connector(connector); amdgpu_connector 337 drivers/gpu/drm/amd/amdgpu/amdgpu_connectors.c if (amdgpu_connector->edid) { amdgpu_connector 338 drivers/gpu/drm/amd/amdgpu/amdgpu_connectors.c drm_connector_update_edid_property(connector, amdgpu_connector->edid); amdgpu_connector 339 drivers/gpu/drm/amd/amdgpu/amdgpu_connectors.c ret = drm_add_edid_modes(connector, amdgpu_connector->edid); amdgpu_connector 496 drivers/gpu/drm/amd/amdgpu/amdgpu_connectors.c struct amdgpu_connector *amdgpu_connector = to_amdgpu_connector(connector); amdgpu_connector 504 drivers/gpu/drm/amd/amdgpu/amdgpu_connectors.c if (amdgpu_connector->audio != val) { amdgpu_connector 505 drivers/gpu/drm/amd/amdgpu/amdgpu_connectors.c amdgpu_connector->audio = val; amdgpu_connector 511 drivers/gpu/drm/amd/amdgpu/amdgpu_connectors.c struct amdgpu_connector *amdgpu_connector = to_amdgpu_connector(connector); amdgpu_connector 519 drivers/gpu/drm/amd/amdgpu/amdgpu_connectors.c if (amdgpu_connector->dither != val) { amdgpu_connector 520 drivers/gpu/drm/amd/amdgpu/amdgpu_connectors.c amdgpu_connector->dither = val; amdgpu_connector 568 drivers/gpu/drm/amd/amdgpu/amdgpu_connectors.c struct amdgpu_connector *amdgpu_connector = amdgpu_connector 572 drivers/gpu/drm/amd/amdgpu/amdgpu_connectors.c amdgpu_connector->dac_load_detect = false; amdgpu_connector 574 drivers/gpu/drm/amd/amdgpu/amdgpu_connectors.c amdgpu_connector->dac_load_detect = true; amdgpu_connector 715 drivers/gpu/drm/amd/amdgpu/amdgpu_connectors.c struct amdgpu_connector *amdgpu_connector = to_amdgpu_connector(connector); amdgpu_connector 738 drivers/gpu/drm/amd/amdgpu/amdgpu_connectors.c if (amdgpu_connector->edid) amdgpu_connector 754 drivers/gpu/drm/amd/amdgpu/amdgpu_connectors.c struct amdgpu_connector *amdgpu_connector = to_amdgpu_connector(connector); amdgpu_connector 756 drivers/gpu/drm/amd/amdgpu/amdgpu_connectors.c if (amdgpu_connector->ddc_bus && amdgpu_connector->ddc_bus->has_aux) { amdgpu_connector 757 drivers/gpu/drm/amd/amdgpu/amdgpu_connectors.c drm_dp_aux_unregister(&amdgpu_connector->ddc_bus->aux); amdgpu_connector 758 drivers/gpu/drm/amd/amdgpu/amdgpu_connectors.c amdgpu_connector->ddc_bus->has_aux = false; amdgpu_connector 764 drivers/gpu/drm/amd/amdgpu/amdgpu_connectors.c struct amdgpu_connector *amdgpu_connector = to_amdgpu_connector(connector); amdgpu_connector 767 drivers/gpu/drm/amd/amdgpu/amdgpu_connectors.c kfree(amdgpu_connector->con_priv); amdgpu_connector 851 drivers/gpu/drm/amd/amdgpu/amdgpu_connectors.c struct amdgpu_connector *amdgpu_connector = to_amdgpu_connector(connector); amdgpu_connector 868 drivers/gpu/drm/amd/amdgpu/amdgpu_connectors.c if (amdgpu_connector->ddc_bus) amdgpu_connector 869 drivers/gpu/drm/amd/amdgpu/amdgpu_connectors.c dret = amdgpu_display_ddc_probe(amdgpu_connector, false); amdgpu_connector 871 drivers/gpu/drm/amd/amdgpu/amdgpu_connectors.c amdgpu_connector->detected_by_load = false; amdgpu_connector 875 drivers/gpu/drm/amd/amdgpu/amdgpu_connectors.c if (!amdgpu_connector->edid) { amdgpu_connector 880 drivers/gpu/drm/amd/amdgpu/amdgpu_connectors.c amdgpu_connector->use_digital = amdgpu_connector 881 drivers/gpu/drm/amd/amdgpu/amdgpu_connectors.c !!(amdgpu_connector->edid->input & DRM_EDID_INPUT_DIGITAL); amdgpu_connector 886 drivers/gpu/drm/amd/amdgpu/amdgpu_connectors.c if (amdgpu_connector->use_digital && amdgpu_connector->shared_ddc) { amdgpu_connector 900 drivers/gpu/drm/amd/amdgpu/amdgpu_connectors.c if (amdgpu_connector->detected_by_load) amdgpu_connector 905 drivers/gpu/drm/amd/amdgpu/amdgpu_connectors.c if (amdgpu_connector->dac_load_detect && encoder) { amdgpu_connector 909 drivers/gpu/drm/amd/amdgpu/amdgpu_connectors.c amdgpu_connector->detected_by_load = true; amdgpu_connector 944 drivers/gpu/drm/amd/amdgpu/amdgpu_connectors.c struct amdgpu_connector *amdgpu_connector = to_amdgpu_connector(connector); amdgpu_connector 947 drivers/gpu/drm/amd/amdgpu/amdgpu_connectors.c if (amdgpu_connector->hpd.hpd != AMDGPU_HPD_NONE) { amdgpu_connector 948 drivers/gpu/drm/amd/amdgpu/amdgpu_connectors.c if (amdgpu_display_hpd_sense(adev, amdgpu_connector->hpd.hpd)) amdgpu_connector 975 drivers/gpu/drm/amd/amdgpu/amdgpu_connectors.c struct amdgpu_connector *amdgpu_connector = to_amdgpu_connector(connector); amdgpu_connector 992 drivers/gpu/drm/amd/amdgpu/amdgpu_connectors.c if (amdgpu_connector->ddc_bus) amdgpu_connector 993 drivers/gpu/drm/amd/amdgpu/amdgpu_connectors.c dret = amdgpu_display_ddc_probe(amdgpu_connector, false); amdgpu_connector 995 drivers/gpu/drm/amd/amdgpu/amdgpu_connectors.c amdgpu_connector->detected_by_load = false; amdgpu_connector 999 drivers/gpu/drm/amd/amdgpu/amdgpu_connectors.c if (!amdgpu_connector->edid) { amdgpu_connector 1005 drivers/gpu/drm/amd/amdgpu/amdgpu_connectors.c amdgpu_connector->use_digital = amdgpu_connector 1006 drivers/gpu/drm/amd/amdgpu/amdgpu_connectors.c !!(amdgpu_connector->edid->input & DRM_EDID_INPUT_DIGITAL); amdgpu_connector 1011 drivers/gpu/drm/amd/amdgpu/amdgpu_connectors.c if ((!amdgpu_connector->use_digital) && amdgpu_connector->shared_ddc) { amdgpu_connector 1023 drivers/gpu/drm/amd/amdgpu/amdgpu_connectors.c if (amdgpu_connector->shared_ddc && (ret == connector_status_connected)) { amdgpu_connector 1025 drivers/gpu/drm/amd/amdgpu/amdgpu_connectors.c struct amdgpu_connector *list_amdgpu_connector; amdgpu_connector 1032 drivers/gpu/drm/amd/amdgpu/amdgpu_connectors.c amdgpu_connector->ddc_bus->rec.i2c_id)) { amdgpu_connector 1036 drivers/gpu/drm/amd/amdgpu/amdgpu_connectors.c if (!amdgpu_display_hpd_sense(adev, amdgpu_connector->hpd.hpd)) { amdgpu_connector 1047 drivers/gpu/drm/amd/amdgpu/amdgpu_connectors.c if ((ret == connector_status_connected) && (amdgpu_connector->use_digital == true)) amdgpu_connector 1060 drivers/gpu/drm/amd/amdgpu/amdgpu_connectors.c if (amdgpu_connector->detected_by_load) amdgpu_connector 1066 drivers/gpu/drm/amd/amdgpu/amdgpu_connectors.c if (amdgpu_connector->dac_load_detect) { amdgpu_connector 1082 drivers/gpu/drm/amd/amdgpu/amdgpu_connectors.c amdgpu_connector->use_digital = false; amdgpu_connector 1085 drivers/gpu/drm/amd/amdgpu/amdgpu_connectors.c amdgpu_connector->detected_by_load = true; amdgpu_connector 1090 drivers/gpu/drm/amd/amdgpu/amdgpu_connectors.c amdgpu_connector->use_digital = true; amdgpu_connector 1094 drivers/gpu/drm/amd/amdgpu/amdgpu_connectors.c amdgpu_connector->use_digital = false; amdgpu_connector 1118 drivers/gpu/drm/amd/amdgpu/amdgpu_connectors.c struct amdgpu_connector *amdgpu_connector = to_amdgpu_connector(connector); amdgpu_connector 1123 drivers/gpu/drm/amd/amdgpu/amdgpu_connectors.c if (amdgpu_connector->use_digital == true) { amdgpu_connector 1145 drivers/gpu/drm/amd/amdgpu/amdgpu_connectors.c struct amdgpu_connector *amdgpu_connector = to_amdgpu_connector(connector); amdgpu_connector 1147 drivers/gpu/drm/amd/amdgpu/amdgpu_connectors.c amdgpu_connector->use_digital = false; amdgpu_connector 1149 drivers/gpu/drm/amd/amdgpu/amdgpu_connectors.c amdgpu_connector->use_digital = true; amdgpu_connector 1157 drivers/gpu/drm/amd/amdgpu/amdgpu_connectors.c struct amdgpu_connector *amdgpu_connector = to_amdgpu_connector(connector); amdgpu_connector 1161 drivers/gpu/drm/amd/amdgpu/amdgpu_connectors.c if (amdgpu_connector->use_digital && (mode->clock > 165000)) { amdgpu_connector 1162 drivers/gpu/drm/amd/amdgpu/amdgpu_connectors.c if ((amdgpu_connector->connector_object_id == CONNECTOR_OBJECT_ID_DUAL_LINK_DVI_I) || amdgpu_connector 1163 drivers/gpu/drm/amd/amdgpu/amdgpu_connectors.c (amdgpu_connector->connector_object_id == CONNECTOR_OBJECT_ID_DUAL_LINK_DVI_D) || amdgpu_connector 1164 drivers/gpu/drm/amd/amdgpu/amdgpu_connectors.c (amdgpu_connector->connector_object_id == CONNECTOR_OBJECT_ID_HDMI_TYPE_B)) { amdgpu_connector 1202 drivers/gpu/drm/amd/amdgpu/amdgpu_connectors.c struct amdgpu_connector *amdgpu_connector = to_amdgpu_connector(connector); amdgpu_connector 1203 drivers/gpu/drm/amd/amdgpu/amdgpu_connectors.c struct amdgpu_connector_atom_dig *amdgpu_dig_connector = amdgpu_connector->con_priv; amdgpu_connector 1325 drivers/gpu/drm/amd/amdgpu/amdgpu_connectors.c struct amdgpu_connector *amdgpu_connector = to_amdgpu_connector(connector); amdgpu_connector 1327 drivers/gpu/drm/amd/amdgpu/amdgpu_connectors.c struct amdgpu_connector_atom_dig *amdgpu_dig_connector = amdgpu_connector->con_priv; amdgpu_connector 1359 drivers/gpu/drm/amd/amdgpu/amdgpu_connectors.c if (!amdgpu_atombios_dp_get_dpcd(amdgpu_connector)) amdgpu_connector 1369 drivers/gpu/drm/amd/amdgpu/amdgpu_connectors.c amdgpu_atombios_dp_get_dpcd(amdgpu_connector); amdgpu_connector 1376 drivers/gpu/drm/amd/amdgpu/amdgpu_connectors.c if (amdgpu_display_ddc_probe(amdgpu_connector, true)) amdgpu_connector 1378 drivers/gpu/drm/amd/amdgpu/amdgpu_connectors.c else if (amdgpu_connector->dac_load_detect) { /* try load detection */ amdgpu_connector 1385 drivers/gpu/drm/amd/amdgpu/amdgpu_connectors.c amdgpu_atombios_dp_get_sinktype(amdgpu_connector); amdgpu_connector 1386 drivers/gpu/drm/amd/amdgpu/amdgpu_connectors.c if (amdgpu_display_hpd_sense(adev, amdgpu_connector->hpd.hpd)) { amdgpu_connector 1389 drivers/gpu/drm/amd/amdgpu/amdgpu_connectors.c amdgpu_atombios_dp_get_dpcd(amdgpu_connector); amdgpu_connector 1392 drivers/gpu/drm/amd/amdgpu/amdgpu_connectors.c if (!amdgpu_atombios_dp_get_dpcd(amdgpu_connector)) amdgpu_connector 1396 drivers/gpu/drm/amd/amdgpu/amdgpu_connectors.c if (amdgpu_display_ddc_probe(amdgpu_connector, amdgpu_connector 1416 drivers/gpu/drm/amd/amdgpu/amdgpu_connectors.c struct amdgpu_connector *amdgpu_connector = to_amdgpu_connector(connector); amdgpu_connector 1417 drivers/gpu/drm/amd/amdgpu/amdgpu_connectors.c struct amdgpu_connector_atom_dig *amdgpu_dig_connector = amdgpu_connector->con_priv; amdgpu_connector 1504 drivers/gpu/drm/amd/amdgpu/amdgpu_connectors.c struct amdgpu_connector *amdgpu_connector; amdgpu_connector 1519 drivers/gpu/drm/amd/amdgpu/amdgpu_connectors.c amdgpu_connector = to_amdgpu_connector(connector); amdgpu_connector 1520 drivers/gpu/drm/amd/amdgpu/amdgpu_connectors.c if (amdgpu_connector->connector_id == connector_id) { amdgpu_connector 1521 drivers/gpu/drm/amd/amdgpu/amdgpu_connectors.c amdgpu_connector->devices |= supported_device; amdgpu_connector 1524 drivers/gpu/drm/amd/amdgpu/amdgpu_connectors.c if (amdgpu_connector->ddc_bus && i2c_bus->valid) { amdgpu_connector 1525 drivers/gpu/drm/amd/amdgpu/amdgpu_connectors.c if (amdgpu_connector->ddc_bus->rec.i2c_id == i2c_bus->i2c_id) { amdgpu_connector 1526 drivers/gpu/drm/amd/amdgpu/amdgpu_connectors.c amdgpu_connector->shared_ddc = true; amdgpu_connector 1529 drivers/gpu/drm/amd/amdgpu/amdgpu_connectors.c if (amdgpu_connector->router_bus && router->ddc_valid && amdgpu_connector 1530 drivers/gpu/drm/amd/amdgpu/amdgpu_connectors.c (amdgpu_connector->router.router_id == router->router_id)) { amdgpu_connector 1531 drivers/gpu/drm/amd/amdgpu/amdgpu_connectors.c amdgpu_connector->shared_ddc = false; amdgpu_connector 1552 drivers/gpu/drm/amd/amdgpu/amdgpu_connectors.c amdgpu_connector = kzalloc(sizeof(struct amdgpu_connector), GFP_KERNEL); amdgpu_connector 1553 drivers/gpu/drm/amd/amdgpu/amdgpu_connectors.c if (!amdgpu_connector) amdgpu_connector 1556 drivers/gpu/drm/amd/amdgpu/amdgpu_connectors.c connector = &amdgpu_connector->base; amdgpu_connector 1558 drivers/gpu/drm/amd/amdgpu/amdgpu_connectors.c amdgpu_connector->connector_id = connector_id; amdgpu_connector 1559 drivers/gpu/drm/amd/amdgpu/amdgpu_connectors.c amdgpu_connector->devices = supported_device; amdgpu_connector 1560 drivers/gpu/drm/amd/amdgpu/amdgpu_connectors.c amdgpu_connector->shared_ddc = shared_ddc; amdgpu_connector 1561 drivers/gpu/drm/amd/amdgpu/amdgpu_connectors.c amdgpu_connector->connector_object_id = connector_object_id; amdgpu_connector 1562 drivers/gpu/drm/amd/amdgpu/amdgpu_connectors.c amdgpu_connector->hpd = *hpd; amdgpu_connector 1564 drivers/gpu/drm/amd/amdgpu/amdgpu_connectors.c amdgpu_connector->router = *router; amdgpu_connector 1566 drivers/gpu/drm/amd/amdgpu/amdgpu_connectors.c amdgpu_connector->router_bus = amdgpu_i2c_lookup(adev, &router->i2c_info); amdgpu_connector 1567 drivers/gpu/drm/amd/amdgpu/amdgpu_connectors.c if (!amdgpu_connector->router_bus) amdgpu_connector 1575 drivers/gpu/drm/amd/amdgpu/amdgpu_connectors.c amdgpu_connector->con_priv = amdgpu_dig_connector; amdgpu_connector 1577 drivers/gpu/drm/amd/amdgpu/amdgpu_connectors.c amdgpu_connector->ddc_bus = amdgpu_i2c_lookup(adev, i2c_bus); amdgpu_connector 1578 drivers/gpu/drm/amd/amdgpu/amdgpu_connectors.c if (amdgpu_connector->ddc_bus) { amdgpu_connector 1580 drivers/gpu/drm/amd/amdgpu/amdgpu_connectors.c ddc = &amdgpu_connector->ddc_bus->adapter; amdgpu_connector 1589 drivers/gpu/drm/amd/amdgpu/amdgpu_connectors.c drm_connector_init_with_ddc(dev, &amdgpu_connector->base, amdgpu_connector 1593 drivers/gpu/drm/amd/amdgpu/amdgpu_connectors.c drm_connector_helper_add(&amdgpu_connector->base, amdgpu_connector 1597 drivers/gpu/drm/amd/amdgpu/amdgpu_connectors.c amdgpu_connector->dac_load_detect = true; amdgpu_connector 1598 drivers/gpu/drm/amd/amdgpu/amdgpu_connectors.c drm_object_attach_property(&amdgpu_connector->base.base, amdgpu_connector 1601 drivers/gpu/drm/amd/amdgpu/amdgpu_connectors.c drm_object_attach_property(&amdgpu_connector->base.base, amdgpu_connector 1610 drivers/gpu/drm/amd/amdgpu/amdgpu_connectors.c drm_connector_init_with_ddc(dev, &amdgpu_connector->base, amdgpu_connector 1614 drivers/gpu/drm/amd/amdgpu/amdgpu_connectors.c drm_connector_helper_add(&amdgpu_connector->base, amdgpu_connector 1616 drivers/gpu/drm/amd/amdgpu/amdgpu_connectors.c drm_object_attach_property(&amdgpu_connector->base.base, amdgpu_connector 1619 drivers/gpu/drm/amd/amdgpu/amdgpu_connectors.c drm_object_attach_property(&amdgpu_connector->base.base, amdgpu_connector 1622 drivers/gpu/drm/amd/amdgpu/amdgpu_connectors.c drm_object_attach_property(&amdgpu_connector->base.base, amdgpu_connector 1626 drivers/gpu/drm/amd/amdgpu/amdgpu_connectors.c drm_object_attach_property(&amdgpu_connector->base.base, amdgpu_connector 1630 drivers/gpu/drm/amd/amdgpu/amdgpu_connectors.c drm_object_attach_property(&amdgpu_connector->base.base, amdgpu_connector 1635 drivers/gpu/drm/amd/amdgpu/amdgpu_connectors.c drm_object_attach_property(&amdgpu_connector->base.base, amdgpu_connector 1646 drivers/gpu/drm/amd/amdgpu/amdgpu_connectors.c amdgpu_connector->dac_load_detect = true; amdgpu_connector 1647 drivers/gpu/drm/amd/amdgpu/amdgpu_connectors.c drm_object_attach_property(&amdgpu_connector->base.base, amdgpu_connector 1654 drivers/gpu/drm/amd/amdgpu/amdgpu_connectors.c drm_connector_init_with_ddc(dev, &amdgpu_connector->base, amdgpu_connector 1658 drivers/gpu/drm/amd/amdgpu/amdgpu_connectors.c drm_connector_helper_add(&amdgpu_connector->base, amdgpu_connector 1660 drivers/gpu/drm/amd/amdgpu/amdgpu_connectors.c drm_object_attach_property(&amdgpu_connector->base.base, amdgpu_connector 1672 drivers/gpu/drm/amd/amdgpu/amdgpu_connectors.c amdgpu_connector->ddc_bus = amdgpu_i2c_lookup(adev, i2c_bus); amdgpu_connector 1673 drivers/gpu/drm/amd/amdgpu/amdgpu_connectors.c if (!amdgpu_connector->ddc_bus) amdgpu_connector 1676 drivers/gpu/drm/amd/amdgpu/amdgpu_connectors.c ddc = &amdgpu_connector->ddc_bus->adapter; amdgpu_connector 1678 drivers/gpu/drm/amd/amdgpu/amdgpu_connectors.c drm_connector_init_with_ddc(dev, &amdgpu_connector->base, amdgpu_connector 1682 drivers/gpu/drm/amd/amdgpu/amdgpu_connectors.c drm_connector_helper_add(&amdgpu_connector->base, &amdgpu_connector_vga_helper_funcs); amdgpu_connector 1683 drivers/gpu/drm/amd/amdgpu/amdgpu_connectors.c amdgpu_connector->dac_load_detect = true; amdgpu_connector 1684 drivers/gpu/drm/amd/amdgpu/amdgpu_connectors.c drm_object_attach_property(&amdgpu_connector->base.base, amdgpu_connector 1687 drivers/gpu/drm/amd/amdgpu/amdgpu_connectors.c drm_object_attach_property(&amdgpu_connector->base.base, amdgpu_connector 1691 drivers/gpu/drm/amd/amdgpu/amdgpu_connectors.c amdgpu_connector->hpd.hpd = AMDGPU_HPD_NONE; amdgpu_connector 1697 drivers/gpu/drm/amd/amdgpu/amdgpu_connectors.c amdgpu_connector->ddc_bus = amdgpu_i2c_lookup(adev, i2c_bus); amdgpu_connector 1698 drivers/gpu/drm/amd/amdgpu/amdgpu_connectors.c if (!amdgpu_connector->ddc_bus) amdgpu_connector 1701 drivers/gpu/drm/amd/amdgpu/amdgpu_connectors.c ddc = &amdgpu_connector->ddc_bus->adapter; amdgpu_connector 1703 drivers/gpu/drm/amd/amdgpu/amdgpu_connectors.c drm_connector_init_with_ddc(dev, &amdgpu_connector->base, amdgpu_connector 1707 drivers/gpu/drm/amd/amdgpu/amdgpu_connectors.c drm_connector_helper_add(&amdgpu_connector->base, &amdgpu_connector_vga_helper_funcs); amdgpu_connector 1708 drivers/gpu/drm/amd/amdgpu/amdgpu_connectors.c amdgpu_connector->dac_load_detect = true; amdgpu_connector 1709 drivers/gpu/drm/amd/amdgpu/amdgpu_connectors.c drm_object_attach_property(&amdgpu_connector->base.base, amdgpu_connector 1712 drivers/gpu/drm/amd/amdgpu/amdgpu_connectors.c drm_object_attach_property(&amdgpu_connector->base.base, amdgpu_connector 1716 drivers/gpu/drm/amd/amdgpu/amdgpu_connectors.c amdgpu_connector->hpd.hpd = AMDGPU_HPD_NONE; amdgpu_connector 1725 drivers/gpu/drm/amd/amdgpu/amdgpu_connectors.c amdgpu_connector->con_priv = amdgpu_dig_connector; amdgpu_connector 1727 drivers/gpu/drm/amd/amdgpu/amdgpu_connectors.c amdgpu_connector->ddc_bus = amdgpu_i2c_lookup(adev, i2c_bus); amdgpu_connector 1728 drivers/gpu/drm/amd/amdgpu/amdgpu_connectors.c if (!amdgpu_connector->ddc_bus) amdgpu_connector 1731 drivers/gpu/drm/amd/amdgpu/amdgpu_connectors.c ddc = &amdgpu_connector->ddc_bus->adapter; amdgpu_connector 1733 drivers/gpu/drm/amd/amdgpu/amdgpu_connectors.c drm_connector_init_with_ddc(dev, &amdgpu_connector->base, amdgpu_connector 1737 drivers/gpu/drm/amd/amdgpu/amdgpu_connectors.c drm_connector_helper_add(&amdgpu_connector->base, &amdgpu_connector_dvi_helper_funcs); amdgpu_connector 1739 drivers/gpu/drm/amd/amdgpu/amdgpu_connectors.c drm_object_attach_property(&amdgpu_connector->base.base, amdgpu_connector 1742 drivers/gpu/drm/amd/amdgpu/amdgpu_connectors.c drm_object_attach_property(&amdgpu_connector->base.base, amdgpu_connector 1745 drivers/gpu/drm/amd/amdgpu/amdgpu_connectors.c drm_object_attach_property(&amdgpu_connector->base.base, amdgpu_connector 1748 drivers/gpu/drm/amd/amdgpu/amdgpu_connectors.c drm_object_attach_property(&amdgpu_connector->base.base, amdgpu_connector 1751 drivers/gpu/drm/amd/amdgpu/amdgpu_connectors.c drm_object_attach_property(&amdgpu_connector->base.base, amdgpu_connector 1756 drivers/gpu/drm/amd/amdgpu/amdgpu_connectors.c drm_object_attach_property(&amdgpu_connector->base.base, amdgpu_connector 1760 drivers/gpu/drm/amd/amdgpu/amdgpu_connectors.c drm_object_attach_property(&amdgpu_connector->base.base, amdgpu_connector 1764 drivers/gpu/drm/amd/amdgpu/amdgpu_connectors.c amdgpu_connector->dac_load_detect = true; amdgpu_connector 1765 drivers/gpu/drm/amd/amdgpu/amdgpu_connectors.c drm_object_attach_property(&amdgpu_connector->base.base, amdgpu_connector 1780 drivers/gpu/drm/amd/amdgpu/amdgpu_connectors.c amdgpu_connector->con_priv = amdgpu_dig_connector; amdgpu_connector 1782 drivers/gpu/drm/amd/amdgpu/amdgpu_connectors.c amdgpu_connector->ddc_bus = amdgpu_i2c_lookup(adev, i2c_bus); amdgpu_connector 1783 drivers/gpu/drm/amd/amdgpu/amdgpu_connectors.c if (!amdgpu_connector->ddc_bus) amdgpu_connector 1786 drivers/gpu/drm/amd/amdgpu/amdgpu_connectors.c ddc = &amdgpu_connector->ddc_bus->adapter; amdgpu_connector 1788 drivers/gpu/drm/amd/amdgpu/amdgpu_connectors.c drm_connector_init_with_ddc(dev, &amdgpu_connector->base, amdgpu_connector 1792 drivers/gpu/drm/amd/amdgpu/amdgpu_connectors.c drm_connector_helper_add(&amdgpu_connector->base, &amdgpu_connector_dvi_helper_funcs); amdgpu_connector 1793 drivers/gpu/drm/amd/amdgpu/amdgpu_connectors.c drm_object_attach_property(&amdgpu_connector->base.base, amdgpu_connector 1796 drivers/gpu/drm/amd/amdgpu/amdgpu_connectors.c drm_object_attach_property(&amdgpu_connector->base.base, amdgpu_connector 1799 drivers/gpu/drm/amd/amdgpu/amdgpu_connectors.c drm_object_attach_property(&amdgpu_connector->base.base, amdgpu_connector 1802 drivers/gpu/drm/amd/amdgpu/amdgpu_connectors.c drm_object_attach_property(&amdgpu_connector->base.base, amdgpu_connector 1805 drivers/gpu/drm/amd/amdgpu/amdgpu_connectors.c drm_object_attach_property(&amdgpu_connector->base.base, amdgpu_connector 1809 drivers/gpu/drm/amd/amdgpu/amdgpu_connectors.c drm_object_attach_property(&amdgpu_connector->base.base, amdgpu_connector 1813 drivers/gpu/drm/amd/amdgpu/amdgpu_connectors.c drm_object_attach_property(&amdgpu_connector->base.base, amdgpu_connector 1827 drivers/gpu/drm/amd/amdgpu/amdgpu_connectors.c amdgpu_connector->con_priv = amdgpu_dig_connector; amdgpu_connector 1829 drivers/gpu/drm/amd/amdgpu/amdgpu_connectors.c amdgpu_connector->ddc_bus = amdgpu_i2c_lookup(adev, i2c_bus); amdgpu_connector 1830 drivers/gpu/drm/amd/amdgpu/amdgpu_connectors.c if (amdgpu_connector->ddc_bus) { amdgpu_connector 1832 drivers/gpu/drm/amd/amdgpu/amdgpu_connectors.c ddc = &amdgpu_connector->ddc_bus->adapter; amdgpu_connector 1837 drivers/gpu/drm/amd/amdgpu/amdgpu_connectors.c drm_connector_init_with_ddc(dev, &amdgpu_connector->base, amdgpu_connector 1841 drivers/gpu/drm/amd/amdgpu/amdgpu_connectors.c drm_connector_helper_add(&amdgpu_connector->base, &amdgpu_connector_dp_helper_funcs); amdgpu_connector 1843 drivers/gpu/drm/amd/amdgpu/amdgpu_connectors.c drm_object_attach_property(&amdgpu_connector->base.base, amdgpu_connector 1846 drivers/gpu/drm/amd/amdgpu/amdgpu_connectors.c drm_object_attach_property(&amdgpu_connector->base.base, amdgpu_connector 1849 drivers/gpu/drm/amd/amdgpu/amdgpu_connectors.c drm_object_attach_property(&amdgpu_connector->base.base, amdgpu_connector 1852 drivers/gpu/drm/amd/amdgpu/amdgpu_connectors.c drm_object_attach_property(&amdgpu_connector->base.base, amdgpu_connector 1855 drivers/gpu/drm/amd/amdgpu/amdgpu_connectors.c drm_object_attach_property(&amdgpu_connector->base.base, amdgpu_connector 1859 drivers/gpu/drm/amd/amdgpu/amdgpu_connectors.c drm_object_attach_property(&amdgpu_connector->base.base, amdgpu_connector 1863 drivers/gpu/drm/amd/amdgpu/amdgpu_connectors.c drm_object_attach_property(&amdgpu_connector->base.base, amdgpu_connector 1874 drivers/gpu/drm/amd/amdgpu/amdgpu_connectors.c amdgpu_connector->con_priv = amdgpu_dig_connector; amdgpu_connector 1876 drivers/gpu/drm/amd/amdgpu/amdgpu_connectors.c amdgpu_connector->ddc_bus = amdgpu_i2c_lookup(adev, i2c_bus); amdgpu_connector 1877 drivers/gpu/drm/amd/amdgpu/amdgpu_connectors.c if (amdgpu_connector->ddc_bus) { amdgpu_connector 1879 drivers/gpu/drm/amd/amdgpu/amdgpu_connectors.c ddc = &amdgpu_connector->ddc_bus->adapter; amdgpu_connector 1884 drivers/gpu/drm/amd/amdgpu/amdgpu_connectors.c drm_connector_init_with_ddc(dev, &amdgpu_connector->base, amdgpu_connector 1888 drivers/gpu/drm/amd/amdgpu/amdgpu_connectors.c drm_connector_helper_add(&amdgpu_connector->base, &amdgpu_connector_dp_helper_funcs); amdgpu_connector 1889 drivers/gpu/drm/amd/amdgpu/amdgpu_connectors.c drm_object_attach_property(&amdgpu_connector->base.base, amdgpu_connector 1900 drivers/gpu/drm/amd/amdgpu/amdgpu_connectors.c amdgpu_connector->con_priv = amdgpu_dig_connector; amdgpu_connector 1902 drivers/gpu/drm/amd/amdgpu/amdgpu_connectors.c amdgpu_connector->ddc_bus = amdgpu_i2c_lookup(adev, i2c_bus); amdgpu_connector 1903 drivers/gpu/drm/amd/amdgpu/amdgpu_connectors.c if (!amdgpu_connector->ddc_bus) amdgpu_connector 1906 drivers/gpu/drm/amd/amdgpu/amdgpu_connectors.c ddc = &amdgpu_connector->ddc_bus->adapter; amdgpu_connector 1908 drivers/gpu/drm/amd/amdgpu/amdgpu_connectors.c drm_connector_init_with_ddc(dev, &amdgpu_connector->base, amdgpu_connector 1912 drivers/gpu/drm/amd/amdgpu/amdgpu_connectors.c drm_connector_helper_add(&amdgpu_connector->base, &amdgpu_connector_lvds_helper_funcs); amdgpu_connector 1913 drivers/gpu/drm/amd/amdgpu/amdgpu_connectors.c drm_object_attach_property(&amdgpu_connector->base.base, amdgpu_connector 1923 drivers/gpu/drm/amd/amdgpu/amdgpu_connectors.c if (amdgpu_connector->hpd.hpd == AMDGPU_HPD_NONE) { amdgpu_connector 1935 drivers/gpu/drm/amd/amdgpu/amdgpu_connectors.c amdgpu_atombios_dp_aux_init(amdgpu_connector); amdgpu_connector 370 drivers/gpu/drm/amd/amdgpu/amdgpu_display.c struct amdgpu_connector *amdgpu_connector; amdgpu_connector 378 drivers/gpu/drm/amd/amdgpu/amdgpu_display.c amdgpu_connector = to_amdgpu_connector(connector); amdgpu_connector 381 drivers/gpu/drm/amd/amdgpu/amdgpu_display.c if (amdgpu_connector->hpd.hpd != AMDGPU_HPD_NONE) amdgpu_connector 382 drivers/gpu/drm/amd/amdgpu/amdgpu_display.c DRM_INFO(" %s\n", hpd_names[amdgpu_connector->hpd.hpd]); amdgpu_connector 383 drivers/gpu/drm/amd/amdgpu/amdgpu_display.c if (amdgpu_connector->ddc_bus) { amdgpu_connector 385 drivers/gpu/drm/amd/amdgpu/amdgpu_display.c amdgpu_connector->ddc_bus->rec.mask_clk_reg, amdgpu_connector 386 drivers/gpu/drm/amd/amdgpu/amdgpu_display.c amdgpu_connector->ddc_bus->rec.mask_data_reg, amdgpu_connector 387 drivers/gpu/drm/amd/amdgpu/amdgpu_display.c amdgpu_connector->ddc_bus->rec.a_clk_reg, amdgpu_connector 388 drivers/gpu/drm/amd/amdgpu/amdgpu_display.c amdgpu_connector->ddc_bus->rec.a_data_reg, amdgpu_connector 389 drivers/gpu/drm/amd/amdgpu/amdgpu_display.c amdgpu_connector->ddc_bus->rec.en_clk_reg, amdgpu_connector 390 drivers/gpu/drm/amd/amdgpu/amdgpu_display.c amdgpu_connector->ddc_bus->rec.en_data_reg, amdgpu_connector 391 drivers/gpu/drm/amd/amdgpu/amdgpu_display.c amdgpu_connector->ddc_bus->rec.y_clk_reg, amdgpu_connector 392 drivers/gpu/drm/amd/amdgpu/amdgpu_display.c amdgpu_connector->ddc_bus->rec.y_data_reg); amdgpu_connector 393 drivers/gpu/drm/amd/amdgpu/amdgpu_display.c if (amdgpu_connector->router.ddc_valid) amdgpu_connector 395 drivers/gpu/drm/amd/amdgpu/amdgpu_display.c amdgpu_connector->router.ddc_mux_control_pin, amdgpu_connector 396 drivers/gpu/drm/amd/amdgpu/amdgpu_display.c amdgpu_connector->router.ddc_mux_state); amdgpu_connector 397 drivers/gpu/drm/amd/amdgpu/amdgpu_display.c if (amdgpu_connector->router.cd_valid) amdgpu_connector 399 drivers/gpu/drm/amd/amdgpu/amdgpu_display.c amdgpu_connector->router.cd_mux_control_pin, amdgpu_connector 400 drivers/gpu/drm/amd/amdgpu/amdgpu_display.c amdgpu_connector->router.cd_mux_state); amdgpu_connector 413 drivers/gpu/drm/amd/amdgpu/amdgpu_display.c devices = amdgpu_encoder->devices & amdgpu_connector->devices; amdgpu_connector 447 drivers/gpu/drm/amd/amdgpu/amdgpu_display.c bool amdgpu_display_ddc_probe(struct amdgpu_connector *amdgpu_connector, amdgpu_connector 469 drivers/gpu/drm/amd/amdgpu/amdgpu_display.c if (amdgpu_connector->router.ddc_valid) amdgpu_connector 470 drivers/gpu/drm/amd/amdgpu/amdgpu_display.c amdgpu_i2c_router_select_ddc_port(amdgpu_connector); amdgpu_connector 473 drivers/gpu/drm/amd/amdgpu/amdgpu_display.c ret = i2c_transfer(&amdgpu_connector->ddc_bus->aux.ddc, msgs, 2); amdgpu_connector 475 drivers/gpu/drm/amd/amdgpu/amdgpu_display.c ret = i2c_transfer(&amdgpu_connector->ddc_bus->adapter, msgs, 2); amdgpu_connector 690 drivers/gpu/drm/amd/amdgpu/amdgpu_display.c struct amdgpu_connector *amdgpu_connector; amdgpu_connector 702 drivers/gpu/drm/amd/amdgpu/amdgpu_display.c amdgpu_connector = to_amdgpu_connector(connector); amdgpu_connector 40 drivers/gpu/drm/amd/amdgpu/amdgpu_encoders.c struct amdgpu_connector *amdgpu_connector; amdgpu_connector 46 drivers/gpu/drm/amd/amdgpu/amdgpu_encoders.c amdgpu_connector = to_amdgpu_connector(connector); amdgpu_connector 49 drivers/gpu/drm/amd/amdgpu/amdgpu_encoders.c if (amdgpu_encoder->devices & amdgpu_connector->devices) { amdgpu_connector 68 drivers/gpu/drm/amd/amdgpu/amdgpu_encoders.c struct amdgpu_connector *amdgpu_connector = to_amdgpu_connector(connector); amdgpu_connector 69 drivers/gpu/drm/amd/amdgpu/amdgpu_encoders.c amdgpu_encoder->active_device = amdgpu_encoder->devices & amdgpu_connector->devices; amdgpu_connector 72 drivers/gpu/drm/amd/amdgpu/amdgpu_encoders.c amdgpu_connector->devices, encoder->encoder_type); amdgpu_connector 83 drivers/gpu/drm/amd/amdgpu/amdgpu_encoders.c struct amdgpu_connector *amdgpu_connector; amdgpu_connector 86 drivers/gpu/drm/amd/amdgpu/amdgpu_encoders.c amdgpu_connector = to_amdgpu_connector(connector); amdgpu_connector 87 drivers/gpu/drm/amd/amdgpu/amdgpu_encoders.c if (amdgpu_encoder->active_device & amdgpu_connector->devices) amdgpu_connector 99 drivers/gpu/drm/amd/amdgpu/amdgpu_encoders.c struct amdgpu_connector *amdgpu_connector; amdgpu_connector 102 drivers/gpu/drm/amd/amdgpu/amdgpu_encoders.c amdgpu_connector = to_amdgpu_connector(connector); amdgpu_connector 103 drivers/gpu/drm/amd/amdgpu/amdgpu_encoders.c if (amdgpu_encoder->devices & amdgpu_connector->devices) amdgpu_connector 193 drivers/gpu/drm/amd/amdgpu/amdgpu_encoders.c struct amdgpu_connector *amdgpu_connector; amdgpu_connector 202 drivers/gpu/drm/amd/amdgpu/amdgpu_encoders.c amdgpu_connector = to_amdgpu_connector(connector); amdgpu_connector 207 drivers/gpu/drm/amd/amdgpu/amdgpu_encoders.c if (amdgpu_connector->use_digital) { amdgpu_connector 225 drivers/gpu/drm/amd/amdgpu/amdgpu_encoders.c dig_connector = amdgpu_connector->con_priv; amdgpu_connector 340 drivers/gpu/drm/amd/amdgpu/amdgpu_i2c.c amdgpu_i2c_router_select_ddc_port(const struct amdgpu_connector *amdgpu_connector) amdgpu_connector 344 drivers/gpu/drm/amd/amdgpu/amdgpu_i2c.c if (!amdgpu_connector->router.ddc_valid) amdgpu_connector 347 drivers/gpu/drm/amd/amdgpu/amdgpu_i2c.c if (!amdgpu_connector->router_bus) amdgpu_connector 350 drivers/gpu/drm/amd/amdgpu/amdgpu_i2c.c amdgpu_i2c_get_byte(amdgpu_connector->router_bus, amdgpu_connector 351 drivers/gpu/drm/amd/amdgpu/amdgpu_i2c.c amdgpu_connector->router.i2c_addr, amdgpu_connector 353 drivers/gpu/drm/amd/amdgpu/amdgpu_i2c.c val &= ~amdgpu_connector->router.ddc_mux_control_pin; amdgpu_connector 354 drivers/gpu/drm/amd/amdgpu/amdgpu_i2c.c amdgpu_i2c_put_byte(amdgpu_connector->router_bus, amdgpu_connector 355 drivers/gpu/drm/amd/amdgpu/amdgpu_i2c.c amdgpu_connector->router.i2c_addr, amdgpu_connector 357 drivers/gpu/drm/amd/amdgpu/amdgpu_i2c.c amdgpu_i2c_get_byte(amdgpu_connector->router_bus, amdgpu_connector 358 drivers/gpu/drm/amd/amdgpu/amdgpu_i2c.c amdgpu_connector->router.i2c_addr, amdgpu_connector 360 drivers/gpu/drm/amd/amdgpu/amdgpu_i2c.c val &= ~amdgpu_connector->router.ddc_mux_control_pin; amdgpu_connector 361 drivers/gpu/drm/amd/amdgpu/amdgpu_i2c.c val |= amdgpu_connector->router.ddc_mux_state; amdgpu_connector 362 drivers/gpu/drm/amd/amdgpu/amdgpu_i2c.c amdgpu_i2c_put_byte(amdgpu_connector->router_bus, amdgpu_connector 363 drivers/gpu/drm/amd/amdgpu/amdgpu_i2c.c amdgpu_connector->router.i2c_addr, amdgpu_connector 369 drivers/gpu/drm/amd/amdgpu/amdgpu_i2c.c amdgpu_i2c_router_select_cd_port(const struct amdgpu_connector *amdgpu_connector) amdgpu_connector 373 drivers/gpu/drm/amd/amdgpu/amdgpu_i2c.c if (!amdgpu_connector->router.cd_valid) amdgpu_connector 376 drivers/gpu/drm/amd/amdgpu/amdgpu_i2c.c if (!amdgpu_connector->router_bus) amdgpu_connector 379 drivers/gpu/drm/amd/amdgpu/amdgpu_i2c.c amdgpu_i2c_get_byte(amdgpu_connector->router_bus, amdgpu_connector 380 drivers/gpu/drm/amd/amdgpu/amdgpu_i2c.c amdgpu_connector->router.i2c_addr, amdgpu_connector 382 drivers/gpu/drm/amd/amdgpu/amdgpu_i2c.c val &= ~amdgpu_connector->router.cd_mux_control_pin; amdgpu_connector 383 drivers/gpu/drm/amd/amdgpu/amdgpu_i2c.c amdgpu_i2c_put_byte(amdgpu_connector->router_bus, amdgpu_connector 384 drivers/gpu/drm/amd/amdgpu/amdgpu_i2c.c amdgpu_connector->router.i2c_addr, amdgpu_connector 386 drivers/gpu/drm/amd/amdgpu/amdgpu_i2c.c amdgpu_i2c_get_byte(amdgpu_connector->router_bus, amdgpu_connector 387 drivers/gpu/drm/amd/amdgpu/amdgpu_i2c.c amdgpu_connector->router.i2c_addr, amdgpu_connector 389 drivers/gpu/drm/amd/amdgpu/amdgpu_i2c.c val &= ~amdgpu_connector->router.cd_mux_control_pin; amdgpu_connector 390 drivers/gpu/drm/amd/amdgpu/amdgpu_i2c.c val |= amdgpu_connector->router.cd_mux_state; amdgpu_connector 391 drivers/gpu/drm/amd/amdgpu/amdgpu_i2c.c amdgpu_i2c_put_byte(amdgpu_connector->router_bus, amdgpu_connector 392 drivers/gpu/drm/amd/amdgpu/amdgpu_i2c.c amdgpu_connector->router.i2c_addr, amdgpu_connector 40 drivers/gpu/drm/amd/amdgpu/amdgpu_i2c.h amdgpu_i2c_router_select_ddc_port(const struct amdgpu_connector *connector); amdgpu_connector 42 drivers/gpu/drm/amd/amdgpu/amdgpu_i2c.h amdgpu_i2c_router_select_cd_port(const struct amdgpu_connector *connector); amdgpu_connector 57 drivers/gpu/drm/amd/amdgpu/amdgpu_mode.h #define to_amdgpu_connector(x) container_of(x, struct amdgpu_connector, base) amdgpu_connector 557 drivers/gpu/drm/amd/amdgpu/amdgpu_mode.h struct amdgpu_connector base; amdgpu_connector 562 drivers/gpu/drm/amd/amdgpu/amdgpu_mode.h struct amdgpu_connector *mst_port; amdgpu_connector 589 drivers/gpu/drm/amd/amdgpu/amdgpu_mode.h bool amdgpu_display_ddc_probe(struct amdgpu_connector *amdgpu_connector, amdgpu_connector 329 drivers/gpu/drm/amd/amdgpu/atombios_crtc.c struct amdgpu_connector *amdgpu_connector = to_amdgpu_connector(connector); amdgpu_connector 331 drivers/gpu/drm/amd/amdgpu/atombios_crtc.c amdgpu_connector->con_priv; amdgpu_connector 765 drivers/gpu/drm/amd/amdgpu/atombios_crtc.c struct amdgpu_connector *amdgpu_connector = amdgpu_connector 768 drivers/gpu/drm/amd/amdgpu/atombios_crtc.c amdgpu_connector->con_priv; amdgpu_connector 772 drivers/gpu/drm/amd/amdgpu/atombios_crtc.c amdgpu_connector->pixelclock_for_modeset = mode->clock; amdgpu_connector 187 drivers/gpu/drm/amd/amdgpu/atombios_dp.c void amdgpu_atombios_dp_aux_init(struct amdgpu_connector *amdgpu_connector) amdgpu_connector 191 drivers/gpu/drm/amd/amdgpu/atombios_dp.c amdgpu_connector->ddc_bus->rec.hpd = amdgpu_connector->hpd.hpd; amdgpu_connector 192 drivers/gpu/drm/amd/amdgpu/atombios_dp.c amdgpu_connector->ddc_bus->aux.dev = amdgpu_connector->base.kdev; amdgpu_connector 193 drivers/gpu/drm/amd/amdgpu/atombios_dp.c amdgpu_connector->ddc_bus->aux.transfer = amdgpu_atombios_dp_aux_transfer; amdgpu_connector 194 drivers/gpu/drm/amd/amdgpu/atombios_dp.c ret = drm_dp_aux_register(&amdgpu_connector->ddc_bus->aux); amdgpu_connector 196 drivers/gpu/drm/amd/amdgpu/atombios_dp.c amdgpu_connector->ddc_bus->has_aux = true; amdgpu_connector 311 drivers/gpu/drm/amd/amdgpu/atombios_dp.c u8 amdgpu_atombios_dp_get_sinktype(struct amdgpu_connector *amdgpu_connector) amdgpu_connector 313 drivers/gpu/drm/amd/amdgpu/atombios_dp.c struct drm_device *dev = amdgpu_connector->base.dev; amdgpu_connector 317 drivers/gpu/drm/amd/amdgpu/atombios_dp.c amdgpu_connector->ddc_bus->rec.i2c_id, 0); amdgpu_connector 320 drivers/gpu/drm/amd/amdgpu/atombios_dp.c static void amdgpu_atombios_dp_probe_oui(struct amdgpu_connector *amdgpu_connector) amdgpu_connector 322 drivers/gpu/drm/amd/amdgpu/atombios_dp.c struct amdgpu_connector_atom_dig *dig_connector = amdgpu_connector->con_priv; amdgpu_connector 328 drivers/gpu/drm/amd/amdgpu/atombios_dp.c if (drm_dp_dpcd_read(&amdgpu_connector->ddc_bus->aux, DP_SINK_OUI, buf, 3) == 3) amdgpu_connector 332 drivers/gpu/drm/amd/amdgpu/atombios_dp.c if (drm_dp_dpcd_read(&amdgpu_connector->ddc_bus->aux, DP_BRANCH_OUI, buf, 3) == 3) amdgpu_connector 337 drivers/gpu/drm/amd/amdgpu/atombios_dp.c int amdgpu_atombios_dp_get_dpcd(struct amdgpu_connector *amdgpu_connector) amdgpu_connector 339 drivers/gpu/drm/amd/amdgpu/atombios_dp.c struct amdgpu_connector_atom_dig *dig_connector = amdgpu_connector->con_priv; amdgpu_connector 343 drivers/gpu/drm/amd/amdgpu/atombios_dp.c ret = drm_dp_dpcd_read(&amdgpu_connector->ddc_bus->aux, DP_DPCD_REV, amdgpu_connector 351 drivers/gpu/drm/amd/amdgpu/atombios_dp.c amdgpu_atombios_dp_probe_oui(amdgpu_connector); amdgpu_connector 363 drivers/gpu/drm/amd/amdgpu/atombios_dp.c struct amdgpu_connector *amdgpu_connector = to_amdgpu_connector(connector); amdgpu_connector 369 drivers/gpu/drm/amd/amdgpu/atombios_dp.c if (!amdgpu_connector->con_priv) amdgpu_connector 372 drivers/gpu/drm/amd/amdgpu/atombios_dp.c dig_connector = amdgpu_connector->con_priv; amdgpu_connector 376 drivers/gpu/drm/amd/amdgpu/atombios_dp.c if (drm_dp_dpcd_readb(&amdgpu_connector->ddc_bus->aux, amdgpu_connector 388 drivers/gpu/drm/amd/amdgpu/atombios_dp.c if (drm_dp_dpcd_readb(&amdgpu_connector->ddc_bus->aux, amdgpu_connector 401 drivers/gpu/drm/amd/amdgpu/atombios_dp.c struct amdgpu_connector *amdgpu_connector = to_amdgpu_connector(connector); amdgpu_connector 405 drivers/gpu/drm/amd/amdgpu/atombios_dp.c if (!amdgpu_connector->con_priv) amdgpu_connector 407 drivers/gpu/drm/amd/amdgpu/atombios_dp.c dig_connector = amdgpu_connector->con_priv; amdgpu_connector 425 drivers/gpu/drm/amd/amdgpu/atombios_dp.c struct amdgpu_connector *amdgpu_connector = to_amdgpu_connector(connector); amdgpu_connector 430 drivers/gpu/drm/amd/amdgpu/atombios_dp.c if (!amdgpu_connector->con_priv) amdgpu_connector 432 drivers/gpu/drm/amd/amdgpu/atombios_dp.c dig_connector = amdgpu_connector->con_priv; amdgpu_connector 446 drivers/gpu/drm/amd/amdgpu/atombios_dp.c bool amdgpu_atombios_dp_needs_link_train(struct amdgpu_connector *amdgpu_connector) amdgpu_connector 449 drivers/gpu/drm/amd/amdgpu/atombios_dp.c struct amdgpu_connector_atom_dig *dig = amdgpu_connector->con_priv; amdgpu_connector 451 drivers/gpu/drm/amd/amdgpu/atombios_dp.c if (drm_dp_dpcd_read_link_status(&amdgpu_connector->ddc_bus->aux, link_status) amdgpu_connector 462 drivers/gpu/drm/amd/amdgpu/atombios_dp.c struct amdgpu_connector *amdgpu_connector = to_amdgpu_connector(connector); amdgpu_connector 465 drivers/gpu/drm/amd/amdgpu/atombios_dp.c if (!amdgpu_connector->con_priv) amdgpu_connector 468 drivers/gpu/drm/amd/amdgpu/atombios_dp.c dig_connector = amdgpu_connector->con_priv; amdgpu_connector 472 drivers/gpu/drm/amd/amdgpu/atombios_dp.c drm_dp_dpcd_writeb(&amdgpu_connector->ddc_bus->aux, amdgpu_connector 717 drivers/gpu/drm/amd/amdgpu/atombios_dp.c struct amdgpu_connector *amdgpu_connector; amdgpu_connector 726 drivers/gpu/drm/amd/amdgpu/atombios_dp.c amdgpu_connector = to_amdgpu_connector(connector); amdgpu_connector 727 drivers/gpu/drm/amd/amdgpu/atombios_dp.c if (!amdgpu_connector->con_priv) amdgpu_connector 729 drivers/gpu/drm/amd/amdgpu/atombios_dp.c dig_connector = amdgpu_connector->con_priv; amdgpu_connector 735 drivers/gpu/drm/amd/amdgpu/atombios_dp.c if (drm_dp_dpcd_readb(&amdgpu_connector->ddc_bus->aux, DP_MAX_LANE_COUNT, &tmp) amdgpu_connector 751 drivers/gpu/drm/amd/amdgpu/atombios_dp.c dp_info.aux = &amdgpu_connector->ddc_bus->aux; amdgpu_connector 27 drivers/gpu/drm/amd/amdgpu/atombios_dp.h void amdgpu_atombios_dp_aux_init(struct amdgpu_connector *amdgpu_connector); amdgpu_connector 28 drivers/gpu/drm/amd/amdgpu/atombios_dp.h u8 amdgpu_atombios_dp_get_sinktype(struct amdgpu_connector *amdgpu_connector); amdgpu_connector 29 drivers/gpu/drm/amd/amdgpu/atombios_dp.h int amdgpu_atombios_dp_get_dpcd(struct amdgpu_connector *amdgpu_connector); amdgpu_connector 36 drivers/gpu/drm/amd/amdgpu/atombios_dp.h bool amdgpu_atombios_dp_needs_link_train(struct amdgpu_connector *amdgpu_connector); amdgpu_connector 448 drivers/gpu/drm/amd/amdgpu/atombios_encoders.c struct amdgpu_connector *amdgpu_connector; amdgpu_connector 466 drivers/gpu/drm/amd/amdgpu/atombios_encoders.c amdgpu_connector = to_amdgpu_connector(connector); amdgpu_connector 472 drivers/gpu/drm/amd/amdgpu/atombios_encoders.c if (amdgpu_connector->use_digital && amdgpu_connector 473 drivers/gpu/drm/amd/amdgpu/atombios_encoders.c (amdgpu_connector->audio == AMDGPU_AUDIO_ENABLE)) amdgpu_connector 476 drivers/gpu/drm/amd/amdgpu/atombios_encoders.c (amdgpu_connector->audio == AMDGPU_AUDIO_AUTO)) amdgpu_connector 478 drivers/gpu/drm/amd/amdgpu/atombios_encoders.c else if (amdgpu_connector->use_digital) amdgpu_connector 482 drivers/gpu/drm/amd/amdgpu/atombios_encoders.c } else if (amdgpu_connector->use_digital) { amdgpu_connector 492 drivers/gpu/drm/amd/amdgpu/atombios_encoders.c if (amdgpu_connector->audio == AMDGPU_AUDIO_ENABLE) amdgpu_connector 495 drivers/gpu/drm/amd/amdgpu/atombios_encoders.c (amdgpu_connector->audio == AMDGPU_AUDIO_AUTO)) amdgpu_connector 507 drivers/gpu/drm/amd/amdgpu/atombios_encoders.c dig_connector = amdgpu_connector->con_priv; amdgpu_connector 512 drivers/gpu/drm/amd/amdgpu/atombios_encoders.c if (amdgpu_connector->audio == AMDGPU_AUDIO_ENABLE) amdgpu_connector 515 drivers/gpu/drm/amd/amdgpu/atombios_encoders.c (amdgpu_connector->audio == AMDGPU_AUDIO_AUTO)) amdgpu_connector 588 drivers/gpu/drm/amd/amdgpu/atombios_encoders.c struct amdgpu_connector *amdgpu_connector = to_amdgpu_connector(connector); amdgpu_connector 590 drivers/gpu/drm/amd/amdgpu/atombios_encoders.c amdgpu_connector->con_priv; amdgpu_connector 594 drivers/gpu/drm/amd/amdgpu/atombios_encoders.c hpd_id = amdgpu_connector->hpd.hpd; amdgpu_connector 791 drivers/gpu/drm/amd/amdgpu/atombios_encoders.c struct amdgpu_connector *amdgpu_connector = to_amdgpu_connector(connector); amdgpu_connector 793 drivers/gpu/drm/amd/amdgpu/atombios_encoders.c amdgpu_connector->con_priv; amdgpu_connector 795 drivers/gpu/drm/amd/amdgpu/atombios_encoders.c hpd_id = amdgpu_connector->hpd.hpd; amdgpu_connector 799 drivers/gpu/drm/amd/amdgpu/atombios_encoders.c (amdgpu_connector->connector_object_id & OBJECT_ID_MASK) >> OBJECT_ID_SHIFT; amdgpu_connector 1179 drivers/gpu/drm/amd/amdgpu/atombios_encoders.c struct amdgpu_connector *amdgpu_connector = to_amdgpu_connector(connector); amdgpu_connector 1180 drivers/gpu/drm/amd/amdgpu/atombios_encoders.c struct drm_device *dev = amdgpu_connector->base.dev; amdgpu_connector 1207 drivers/gpu/drm/amd/amdgpu/atombios_encoders.c if (amdgpu_display_hpd_sense(adev, amdgpu_connector->hpd.hpd)) amdgpu_connector 1246 drivers/gpu/drm/amd/amdgpu/atombios_encoders.c struct amdgpu_connector *amdgpu_connector = to_amdgpu_connector(connector); amdgpu_connector 1248 drivers/gpu/drm/amd/amdgpu/atombios_encoders.c amdgpu_connector->con_priv; amdgpu_connector 1253 drivers/gpu/drm/amd/amdgpu/atombios_encoders.c (amdgpu_connector->connector_object_id & OBJECT_ID_MASK) >> OBJECT_ID_SHIFT; amdgpu_connector 1334 drivers/gpu/drm/amd/amdgpu/atombios_encoders.c struct amdgpu_connector *amdgpu_connector = NULL; amdgpu_connector 1338 drivers/gpu/drm/amd/amdgpu/atombios_encoders.c amdgpu_connector = to_amdgpu_connector(connector); amdgpu_connector 1339 drivers/gpu/drm/amd/amdgpu/atombios_encoders.c amdgpu_dig_connector = amdgpu_connector->con_priv; amdgpu_connector 1706 drivers/gpu/drm/amd/amdgpu/atombios_encoders.c struct amdgpu_connector *amdgpu_connector = to_amdgpu_connector(connector); amdgpu_connector 1728 drivers/gpu/drm/amd/amdgpu/atombios_encoders.c if (amdgpu_connector->devices & ATOM_DEVICE_CRT1_SUPPORT) amdgpu_connector 1730 drivers/gpu/drm/amd/amdgpu/atombios_encoders.c else if (amdgpu_connector->devices & ATOM_DEVICE_CRT2_SUPPORT) amdgpu_connector 1732 drivers/gpu/drm/amd/amdgpu/atombios_encoders.c else if (amdgpu_connector->devices & ATOM_DEVICE_CV_SUPPORT) { amdgpu_connector 1736 drivers/gpu/drm/amd/amdgpu/atombios_encoders.c } else if (amdgpu_connector->devices & ATOM_DEVICE_TV1_SUPPORT) { amdgpu_connector 1756 drivers/gpu/drm/amd/amdgpu/atombios_encoders.c struct amdgpu_connector *amdgpu_connector = to_amdgpu_connector(connector); amdgpu_connector 1767 drivers/gpu/drm/amd/amdgpu/atombios_encoders.c if (amdgpu_connector->devices & ATOM_DEVICE_CRT1_SUPPORT) { amdgpu_connector 1771 drivers/gpu/drm/amd/amdgpu/atombios_encoders.c if (amdgpu_connector->devices & ATOM_DEVICE_CRT2_SUPPORT) { amdgpu_connector 1775 drivers/gpu/drm/amd/amdgpu/atombios_encoders.c if (amdgpu_connector->devices & ATOM_DEVICE_CV_SUPPORT) { amdgpu_connector 1779 drivers/gpu/drm/amd/amdgpu/atombios_encoders.c if (amdgpu_connector->devices & ATOM_DEVICE_TV1_SUPPORT) { amdgpu_connector 1795 drivers/gpu/drm/amd/amdgpu/atombios_encoders.c struct amdgpu_connector *amdgpu_connector = to_amdgpu_connector(connector); amdgpu_connector 1802 drivers/gpu/drm/amd/amdgpu/atombios_encoders.c if ((amdgpu_connector->devices & ATOM_DEVICE_CRT_SUPPORT) == 0) amdgpu_connector 1812 drivers/gpu/drm/amd/amdgpu/atombios_encoders.c if (amdgpu_connector->devices & ATOM_DEVICE_CRT1_SUPPORT) { amdgpu_connector 1816 drivers/gpu/drm/amd/amdgpu/atombios_encoders.c if (amdgpu_connector->devices & ATOM_DEVICE_CRT2_SUPPORT) { amdgpu_connector 1820 drivers/gpu/drm/amd/amdgpu/atombios_encoders.c if (amdgpu_connector->devices & ATOM_DEVICE_CV_SUPPORT) { amdgpu_connector 1824 drivers/gpu/drm/amd/amdgpu/atombios_encoders.c if (amdgpu_connector->devices & ATOM_DEVICE_TV1_SUPPORT) { amdgpu_connector 1852 drivers/gpu/drm/amd/amdgpu/atombios_encoders.c struct amdgpu_connector *amdgpu_connector = amdgpu_connector 1862 drivers/gpu/drm/amd/amdgpu/atombios_encoders.c (amdgpu_connector->devices & ATOM_DEVICE_LCD1_SUPPORT)) { amdgpu_connector 1876 drivers/gpu/drm/amd/amdgpu/atombios_encoders.c (amdgpu_connector->devices & ATOM_DEVICE_CRT1_SUPPORT)) { amdgpu_connector 1890 drivers/gpu/drm/amd/amdgpu/atombios_encoders.c (amdgpu_connector->devices & ATOM_DEVICE_CRT2_SUPPORT)) { amdgpu_connector 1904 drivers/gpu/drm/amd/amdgpu/atombios_encoders.c (amdgpu_connector->devices & ATOM_DEVICE_DFP1_SUPPORT)) { amdgpu_connector 1918 drivers/gpu/drm/amd/amdgpu/atombios_encoders.c (amdgpu_connector->devices & ATOM_DEVICE_DFP2_SUPPORT)) { amdgpu_connector 1932 drivers/gpu/drm/amd/amdgpu/atombios_encoders.c (amdgpu_connector->devices & ATOM_DEVICE_DFP3_SUPPORT)) { amdgpu_connector 1946 drivers/gpu/drm/amd/amdgpu/atombios_encoders.c (amdgpu_connector->devices & ATOM_DEVICE_DFP4_SUPPORT)) { amdgpu_connector 1960 drivers/gpu/drm/amd/amdgpu/atombios_encoders.c (amdgpu_connector->devices & ATOM_DEVICE_DFP5_SUPPORT)) { amdgpu_connector 1974 drivers/gpu/drm/amd/amdgpu/atombios_encoders.c (amdgpu_connector->devices & ATOM_DEVICE_DFP6_SUPPORT)) { amdgpu_connector 336 drivers/gpu/drm/amd/amdgpu/dce_v10_0.c struct amdgpu_connector *amdgpu_connector = to_amdgpu_connector(connector); amdgpu_connector 338 drivers/gpu/drm/amd/amdgpu/dce_v10_0.c if (amdgpu_connector->hpd.hpd >= adev->mode_info.num_hpd) amdgpu_connector 348 drivers/gpu/drm/amd/amdgpu/dce_v10_0.c tmp = RREG32(mmDC_HPD_INT_CONTROL + hpd_offsets[amdgpu_connector->hpd.hpd]); amdgpu_connector 350 drivers/gpu/drm/amd/amdgpu/dce_v10_0.c WREG32(mmDC_HPD_INT_CONTROL + hpd_offsets[amdgpu_connector->hpd.hpd], tmp); amdgpu_connector 354 drivers/gpu/drm/amd/amdgpu/dce_v10_0.c tmp = RREG32(mmDC_HPD_CONTROL + hpd_offsets[amdgpu_connector->hpd.hpd]); amdgpu_connector 356 drivers/gpu/drm/amd/amdgpu/dce_v10_0.c WREG32(mmDC_HPD_CONTROL + hpd_offsets[amdgpu_connector->hpd.hpd], tmp); amdgpu_connector 358 drivers/gpu/drm/amd/amdgpu/dce_v10_0.c tmp = RREG32(mmDC_HPD_TOGGLE_FILT_CNTL + hpd_offsets[amdgpu_connector->hpd.hpd]); amdgpu_connector 365 drivers/gpu/drm/amd/amdgpu/dce_v10_0.c WREG32(mmDC_HPD_TOGGLE_FILT_CNTL + hpd_offsets[amdgpu_connector->hpd.hpd], tmp); amdgpu_connector 367 drivers/gpu/drm/amd/amdgpu/dce_v10_0.c dce_v10_0_hpd_set_polarity(adev, amdgpu_connector->hpd.hpd); amdgpu_connector 369 drivers/gpu/drm/amd/amdgpu/dce_v10_0.c amdgpu_connector->hpd.hpd); amdgpu_connector 388 drivers/gpu/drm/amd/amdgpu/dce_v10_0.c struct amdgpu_connector *amdgpu_connector = to_amdgpu_connector(connector); amdgpu_connector 390 drivers/gpu/drm/amd/amdgpu/dce_v10_0.c if (amdgpu_connector->hpd.hpd >= adev->mode_info.num_hpd) amdgpu_connector 393 drivers/gpu/drm/amd/amdgpu/dce_v10_0.c tmp = RREG32(mmDC_HPD_CONTROL + hpd_offsets[amdgpu_connector->hpd.hpd]); amdgpu_connector 395 drivers/gpu/drm/amd/amdgpu/dce_v10_0.c WREG32(mmDC_HPD_CONTROL + hpd_offsets[amdgpu_connector->hpd.hpd], tmp); amdgpu_connector 398 drivers/gpu/drm/amd/amdgpu/dce_v10_0.c amdgpu_connector->hpd.hpd); amdgpu_connector 510 drivers/gpu/drm/amd/amdgpu/dce_v10_0.c struct amdgpu_connector *amdgpu_connector = to_amdgpu_connector(connector); amdgpu_connector 512 drivers/gpu/drm/amd/amdgpu/dce_v10_0.c dither = amdgpu_connector->dither; amdgpu_connector 1226 drivers/gpu/drm/amd/amdgpu/dce_v10_0.c struct amdgpu_connector *amdgpu_connector = NULL; amdgpu_connector 1235 drivers/gpu/drm/amd/amdgpu/dce_v10_0.c amdgpu_connector = to_amdgpu_connector(connector); amdgpu_connector 1240 drivers/gpu/drm/amd/amdgpu/dce_v10_0.c if (!amdgpu_connector) { amdgpu_connector 1268 drivers/gpu/drm/amd/amdgpu/dce_v10_0.c struct amdgpu_connector *amdgpu_connector = NULL; amdgpu_connector 1278 drivers/gpu/drm/amd/amdgpu/dce_v10_0.c amdgpu_connector = to_amdgpu_connector(connector); amdgpu_connector 1283 drivers/gpu/drm/amd/amdgpu/dce_v10_0.c if (!amdgpu_connector) { amdgpu_connector 1320 drivers/gpu/drm/amd/amdgpu/dce_v10_0.c struct amdgpu_connector *amdgpu_connector = NULL; amdgpu_connector 1344 drivers/gpu/drm/amd/amdgpu/dce_v10_0.c amdgpu_connector = to_amdgpu_connector(connector); amdgpu_connector 1349 drivers/gpu/drm/amd/amdgpu/dce_v10_0.c if (!amdgpu_connector) { amdgpu_connector 3344 drivers/gpu/drm/amd/amdgpu/dce_v10_0.c struct amdgpu_connector *amdgpu_connector = to_amdgpu_connector(connector); amdgpu_connector 3347 drivers/gpu/drm/amd/amdgpu/dce_v10_0.c if (amdgpu_connector->router.cd_valid) amdgpu_connector 3348 drivers/gpu/drm/amd/amdgpu/dce_v10_0.c amdgpu_i2c_router_select_cd_port(amdgpu_connector); amdgpu_connector 354 drivers/gpu/drm/amd/amdgpu/dce_v11_0.c struct amdgpu_connector *amdgpu_connector = to_amdgpu_connector(connector); amdgpu_connector 356 drivers/gpu/drm/amd/amdgpu/dce_v11_0.c if (amdgpu_connector->hpd.hpd >= adev->mode_info.num_hpd) amdgpu_connector 366 drivers/gpu/drm/amd/amdgpu/dce_v11_0.c tmp = RREG32(mmDC_HPD_INT_CONTROL + hpd_offsets[amdgpu_connector->hpd.hpd]); amdgpu_connector 368 drivers/gpu/drm/amd/amdgpu/dce_v11_0.c WREG32(mmDC_HPD_INT_CONTROL + hpd_offsets[amdgpu_connector->hpd.hpd], tmp); amdgpu_connector 372 drivers/gpu/drm/amd/amdgpu/dce_v11_0.c tmp = RREG32(mmDC_HPD_CONTROL + hpd_offsets[amdgpu_connector->hpd.hpd]); amdgpu_connector 374 drivers/gpu/drm/amd/amdgpu/dce_v11_0.c WREG32(mmDC_HPD_CONTROL + hpd_offsets[amdgpu_connector->hpd.hpd], tmp); amdgpu_connector 376 drivers/gpu/drm/amd/amdgpu/dce_v11_0.c tmp = RREG32(mmDC_HPD_TOGGLE_FILT_CNTL + hpd_offsets[amdgpu_connector->hpd.hpd]); amdgpu_connector 383 drivers/gpu/drm/amd/amdgpu/dce_v11_0.c WREG32(mmDC_HPD_TOGGLE_FILT_CNTL + hpd_offsets[amdgpu_connector->hpd.hpd], tmp); amdgpu_connector 385 drivers/gpu/drm/amd/amdgpu/dce_v11_0.c dce_v11_0_hpd_set_polarity(adev, amdgpu_connector->hpd.hpd); amdgpu_connector 386 drivers/gpu/drm/amd/amdgpu/dce_v11_0.c amdgpu_irq_get(adev, &adev->hpd_irq, amdgpu_connector->hpd.hpd); amdgpu_connector 405 drivers/gpu/drm/amd/amdgpu/dce_v11_0.c struct amdgpu_connector *amdgpu_connector = to_amdgpu_connector(connector); amdgpu_connector 407 drivers/gpu/drm/amd/amdgpu/dce_v11_0.c if (amdgpu_connector->hpd.hpd >= adev->mode_info.num_hpd) amdgpu_connector 410 drivers/gpu/drm/amd/amdgpu/dce_v11_0.c tmp = RREG32(mmDC_HPD_CONTROL + hpd_offsets[amdgpu_connector->hpd.hpd]); amdgpu_connector 412 drivers/gpu/drm/amd/amdgpu/dce_v11_0.c WREG32(mmDC_HPD_CONTROL + hpd_offsets[amdgpu_connector->hpd.hpd], tmp); amdgpu_connector 414 drivers/gpu/drm/amd/amdgpu/dce_v11_0.c amdgpu_irq_put(adev, &adev->hpd_irq, amdgpu_connector->hpd.hpd); amdgpu_connector 536 drivers/gpu/drm/amd/amdgpu/dce_v11_0.c struct amdgpu_connector *amdgpu_connector = to_amdgpu_connector(connector); amdgpu_connector 538 drivers/gpu/drm/amd/amdgpu/dce_v11_0.c dither = amdgpu_connector->dither; amdgpu_connector 1252 drivers/gpu/drm/amd/amdgpu/dce_v11_0.c struct amdgpu_connector *amdgpu_connector = NULL; amdgpu_connector 1261 drivers/gpu/drm/amd/amdgpu/dce_v11_0.c amdgpu_connector = to_amdgpu_connector(connector); amdgpu_connector 1266 drivers/gpu/drm/amd/amdgpu/dce_v11_0.c if (!amdgpu_connector) { amdgpu_connector 1294 drivers/gpu/drm/amd/amdgpu/dce_v11_0.c struct amdgpu_connector *amdgpu_connector = NULL; amdgpu_connector 1304 drivers/gpu/drm/amd/amdgpu/dce_v11_0.c amdgpu_connector = to_amdgpu_connector(connector); amdgpu_connector 1309 drivers/gpu/drm/amd/amdgpu/dce_v11_0.c if (!amdgpu_connector) { amdgpu_connector 1346 drivers/gpu/drm/amd/amdgpu/dce_v11_0.c struct amdgpu_connector *amdgpu_connector = NULL; amdgpu_connector 1370 drivers/gpu/drm/amd/amdgpu/dce_v11_0.c amdgpu_connector = to_amdgpu_connector(connector); amdgpu_connector 1375 drivers/gpu/drm/amd/amdgpu/dce_v11_0.c if (!amdgpu_connector) { amdgpu_connector 3470 drivers/gpu/drm/amd/amdgpu/dce_v11_0.c struct amdgpu_connector *amdgpu_connector = to_amdgpu_connector(connector); amdgpu_connector 3473 drivers/gpu/drm/amd/amdgpu/dce_v11_0.c if (amdgpu_connector->router.cd_valid) amdgpu_connector 3474 drivers/gpu/drm/amd/amdgpu/dce_v11_0.c amdgpu_i2c_router_select_cd_port(amdgpu_connector); amdgpu_connector 287 drivers/gpu/drm/amd/amdgpu/dce_v6_0.c struct amdgpu_connector *amdgpu_connector = to_amdgpu_connector(connector); amdgpu_connector 289 drivers/gpu/drm/amd/amdgpu/dce_v6_0.c if (amdgpu_connector->hpd.hpd >= adev->mode_info.num_hpd) amdgpu_connector 292 drivers/gpu/drm/amd/amdgpu/dce_v6_0.c tmp = RREG32(mmDC_HPD1_CONTROL + hpd_offsets[amdgpu_connector->hpd.hpd]); amdgpu_connector 294 drivers/gpu/drm/amd/amdgpu/dce_v6_0.c WREG32(mmDC_HPD1_CONTROL + hpd_offsets[amdgpu_connector->hpd.hpd], tmp); amdgpu_connector 303 drivers/gpu/drm/amd/amdgpu/dce_v6_0.c tmp = RREG32(mmDC_HPD1_INT_CONTROL + hpd_offsets[amdgpu_connector->hpd.hpd]); amdgpu_connector 305 drivers/gpu/drm/amd/amdgpu/dce_v6_0.c WREG32(mmDC_HPD1_INT_CONTROL + hpd_offsets[amdgpu_connector->hpd.hpd], tmp); amdgpu_connector 309 drivers/gpu/drm/amd/amdgpu/dce_v6_0.c dce_v6_0_hpd_set_polarity(adev, amdgpu_connector->hpd.hpd); amdgpu_connector 310 drivers/gpu/drm/amd/amdgpu/dce_v6_0.c amdgpu_irq_get(adev, &adev->hpd_irq, amdgpu_connector->hpd.hpd); amdgpu_connector 330 drivers/gpu/drm/amd/amdgpu/dce_v6_0.c struct amdgpu_connector *amdgpu_connector = to_amdgpu_connector(connector); amdgpu_connector 332 drivers/gpu/drm/amd/amdgpu/dce_v6_0.c if (amdgpu_connector->hpd.hpd >= adev->mode_info.num_hpd) amdgpu_connector 335 drivers/gpu/drm/amd/amdgpu/dce_v6_0.c tmp = RREG32(mmDC_HPD1_CONTROL + hpd_offsets[amdgpu_connector->hpd.hpd]); amdgpu_connector 337 drivers/gpu/drm/amd/amdgpu/dce_v6_0.c WREG32(mmDC_HPD1_CONTROL + hpd_offsets[amdgpu_connector->hpd.hpd], 0); amdgpu_connector 339 drivers/gpu/drm/amd/amdgpu/dce_v6_0.c amdgpu_irq_put(adev, &adev->hpd_irq, amdgpu_connector->hpd.hpd); amdgpu_connector 408 drivers/gpu/drm/amd/amdgpu/dce_v6_0.c struct amdgpu_connector *amdgpu_connector = to_amdgpu_connector(connector); amdgpu_connector 410 drivers/gpu/drm/amd/amdgpu/dce_v6_0.c dither = amdgpu_connector->dither; amdgpu_connector 1131 drivers/gpu/drm/amd/amdgpu/dce_v6_0.c struct amdgpu_connector *amdgpu_connector = NULL; amdgpu_connector 1137 drivers/gpu/drm/amd/amdgpu/dce_v6_0.c amdgpu_connector = to_amdgpu_connector(connector); amdgpu_connector 1142 drivers/gpu/drm/amd/amdgpu/dce_v6_0.c if (!amdgpu_connector) { amdgpu_connector 1171 drivers/gpu/drm/amd/amdgpu/dce_v6_0.c struct amdgpu_connector *amdgpu_connector = NULL; amdgpu_connector 1178 drivers/gpu/drm/amd/amdgpu/dce_v6_0.c amdgpu_connector = to_amdgpu_connector(connector); amdgpu_connector 1183 drivers/gpu/drm/amd/amdgpu/dce_v6_0.c if (!amdgpu_connector) { amdgpu_connector 1228 drivers/gpu/drm/amd/amdgpu/dce_v6_0.c struct amdgpu_connector *amdgpu_connector = NULL; amdgpu_connector 1249 drivers/gpu/drm/amd/amdgpu/dce_v6_0.c amdgpu_connector = to_amdgpu_connector(connector); amdgpu_connector 1254 drivers/gpu/drm/amd/amdgpu/dce_v6_0.c if (!amdgpu_connector) { amdgpu_connector 1635 drivers/gpu/drm/amd/amdgpu/dce_v6_0.c struct amdgpu_connector *amdgpu_connector = NULL; amdgpu_connector 1644 drivers/gpu/drm/amd/amdgpu/dce_v6_0.c amdgpu_connector = to_amdgpu_connector(connector); amdgpu_connector 1649 drivers/gpu/drm/amd/amdgpu/dce_v6_0.c if (!amdgpu_connector) { amdgpu_connector 3143 drivers/gpu/drm/amd/amdgpu/dce_v6_0.c struct amdgpu_connector *amdgpu_connector = to_amdgpu_connector(connector); amdgpu_connector 3146 drivers/gpu/drm/amd/amdgpu/dce_v6_0.c if (amdgpu_connector->router.cd_valid) amdgpu_connector 3147 drivers/gpu/drm/amd/amdgpu/dce_v6_0.c amdgpu_i2c_router_select_cd_port(amdgpu_connector); amdgpu_connector 281 drivers/gpu/drm/amd/amdgpu/dce_v8_0.c struct amdgpu_connector *amdgpu_connector = to_amdgpu_connector(connector); amdgpu_connector 283 drivers/gpu/drm/amd/amdgpu/dce_v8_0.c if (amdgpu_connector->hpd.hpd >= adev->mode_info.num_hpd) amdgpu_connector 286 drivers/gpu/drm/amd/amdgpu/dce_v8_0.c tmp = RREG32(mmDC_HPD1_CONTROL + hpd_offsets[amdgpu_connector->hpd.hpd]); amdgpu_connector 288 drivers/gpu/drm/amd/amdgpu/dce_v8_0.c WREG32(mmDC_HPD1_CONTROL + hpd_offsets[amdgpu_connector->hpd.hpd], tmp); amdgpu_connector 297 drivers/gpu/drm/amd/amdgpu/dce_v8_0.c tmp = RREG32(mmDC_HPD1_INT_CONTROL + hpd_offsets[amdgpu_connector->hpd.hpd]); amdgpu_connector 299 drivers/gpu/drm/amd/amdgpu/dce_v8_0.c WREG32(mmDC_HPD1_INT_CONTROL + hpd_offsets[amdgpu_connector->hpd.hpd], tmp); amdgpu_connector 303 drivers/gpu/drm/amd/amdgpu/dce_v8_0.c dce_v8_0_hpd_set_polarity(adev, amdgpu_connector->hpd.hpd); amdgpu_connector 304 drivers/gpu/drm/amd/amdgpu/dce_v8_0.c amdgpu_irq_get(adev, &adev->hpd_irq, amdgpu_connector->hpd.hpd); amdgpu_connector 323 drivers/gpu/drm/amd/amdgpu/dce_v8_0.c struct amdgpu_connector *amdgpu_connector = to_amdgpu_connector(connector); amdgpu_connector 325 drivers/gpu/drm/amd/amdgpu/dce_v8_0.c if (amdgpu_connector->hpd.hpd >= adev->mode_info.num_hpd) amdgpu_connector 328 drivers/gpu/drm/amd/amdgpu/dce_v8_0.c tmp = RREG32(mmDC_HPD1_CONTROL + hpd_offsets[amdgpu_connector->hpd.hpd]); amdgpu_connector 330 drivers/gpu/drm/amd/amdgpu/dce_v8_0.c WREG32(mmDC_HPD1_CONTROL + hpd_offsets[amdgpu_connector->hpd.hpd], 0); amdgpu_connector 332 drivers/gpu/drm/amd/amdgpu/dce_v8_0.c amdgpu_irq_put(adev, &adev->hpd_irq, amdgpu_connector->hpd.hpd); amdgpu_connector 450 drivers/gpu/drm/amd/amdgpu/dce_v8_0.c struct amdgpu_connector *amdgpu_connector = to_amdgpu_connector(connector); amdgpu_connector 452 drivers/gpu/drm/amd/amdgpu/dce_v8_0.c dither = amdgpu_connector->dither; amdgpu_connector 1164 drivers/gpu/drm/amd/amdgpu/dce_v8_0.c struct amdgpu_connector *amdgpu_connector = NULL; amdgpu_connector 1174 drivers/gpu/drm/amd/amdgpu/dce_v8_0.c amdgpu_connector = to_amdgpu_connector(connector); amdgpu_connector 1179 drivers/gpu/drm/amd/amdgpu/dce_v8_0.c if (!amdgpu_connector) { amdgpu_connector 1221 drivers/gpu/drm/amd/amdgpu/dce_v8_0.c struct amdgpu_connector *amdgpu_connector = NULL; amdgpu_connector 1233 drivers/gpu/drm/amd/amdgpu/dce_v8_0.c amdgpu_connector = to_amdgpu_connector(connector); amdgpu_connector 1238 drivers/gpu/drm/amd/amdgpu/dce_v8_0.c if (!amdgpu_connector) { amdgpu_connector 1271 drivers/gpu/drm/amd/amdgpu/dce_v8_0.c struct amdgpu_connector *amdgpu_connector = NULL; amdgpu_connector 1297 drivers/gpu/drm/amd/amdgpu/dce_v8_0.c amdgpu_connector = to_amdgpu_connector(connector); amdgpu_connector 1302 drivers/gpu/drm/amd/amdgpu/dce_v8_0.c if (!amdgpu_connector) { amdgpu_connector 3232 drivers/gpu/drm/amd/amdgpu/dce_v8_0.c struct amdgpu_connector *amdgpu_connector = to_amdgpu_connector(connector); amdgpu_connector 3235 drivers/gpu/drm/amd/amdgpu/dce_v8_0.c if (amdgpu_connector->router.cd_valid) amdgpu_connector 3236 drivers/gpu/drm/amd/amdgpu/dce_v8_0.c amdgpu_i2c_router_select_cd_port(amdgpu_connector);