Lines Matching defs:radeon_connector
51 struct radeon_connector *radeon_connector = to_radeon_connector(connector);
56 if (radeon_connector->hpd.hpd == RADEON_HPD_NONE)
59 radeon_hpd_set_polarity(rdev, radeon_connector->hpd.hpd);
70 if (!radeon_hpd_sense(rdev, radeon_connector->hpd.hpd))
72 else if (radeon_dp_needs_link_train(radeon_connector))
178 struct radeon_connector *radeon_conflict;
395 struct radeon_connector *radeon_connector =
399 radeon_connector->dac_load_detect = false;
401 radeon_connector->dac_load_detect = true;
470 struct radeon_connector *radeon_connector = to_radeon_connector(connector);
475 if (radeon_connector->ddc_bus) {
476 ret = radeon_ddc_get_modes(radeon_connector);
540 struct radeon_connector *radeon_connector = to_radeon_connector(connector);
555 if (radeon_connector->edid)
558 if (radeon_connector->ddc_bus) {
559 radeon_connector->edid = drm_get_edid(&radeon_connector->base,
560 &radeon_connector->ddc_bus->adapter);
561 if (radeon_connector->edid)
573 struct radeon_connector *radeon_connector = to_radeon_connector(connector);
575 if (radeon_connector->edid)
576 kfree(radeon_connector->edid);
577 kfree(radeon_connector->con_priv);
635 struct radeon_connector *radeon_connector = to_radeon_connector(connector);
638 ret = radeon_ddc_get_modes(radeon_connector);
662 struct radeon_connector *radeon_connector = to_radeon_connector(connector);
672 if (radeon_connector->ddc_bus)
673 dret = radeon_ddc_probe(radeon_connector);
675 radeon_connector->detected_by_load = false;
676 if (radeon_connector->edid) {
677 kfree(radeon_connector->edid);
678 radeon_connector->edid = NULL;
680 radeon_connector->edid = drm_get_edid(&radeon_connector->base, &radeon_connector->ddc_bus->adapter);
682 if (!radeon_connector->edid) {
687 radeon_connector->use_digital = !!(radeon_connector->edid->input & DRM_EDID_INPUT_DIGITAL);
692 if (radeon_connector->use_digital && radeon_connector->shared_ddc) {
693 kfree(radeon_connector->edid);
694 radeon_connector->edid = NULL;
706 if (radeon_connector->detected_by_load)
712 if (radeon_connector->dac_load_detect && encoder) {
716 radeon_connector->detected_by_load = true;
788 struct radeon_connector *radeon_connector = to_radeon_connector(connector);
791 if (!radeon_connector->dac_load_detect)
823 struct radeon_connector *radeon_connector = to_radeon_connector(connector);
826 ret = radeon_ddc_get_modes(radeon_connector);
846 struct radeon_connector *radeon_connector = to_radeon_connector(connector);
854 if (radeon_connector->ddc_bus)
855 dret = radeon_ddc_probe(radeon_connector);
857 radeon_connector->detected_by_load = false;
858 if (radeon_connector->edid) {
859 kfree(radeon_connector->edid);
860 radeon_connector->edid = NULL;
862 radeon_connector->edid = drm_get_edid(&radeon_connector->base, &radeon_connector->ddc_bus->adapter);
864 if (!radeon_connector->edid) {
869 if ((rdev->family == CHIP_RS690 || rdev->family == CHIP_RS740) && radeon_connector->base.null_edid_counter) {
872 radeon_connector->ddc_bus = NULL;
875 radeon_connector->use_digital = !!(radeon_connector->edid->input & DRM_EDID_INPUT_DIGITAL);
880 if ((!radeon_connector->use_digital) && radeon_connector->shared_ddc) {
881 kfree(radeon_connector->edid);
882 radeon_connector->edid = NULL;
892 if (radeon_connector->shared_ddc && (ret == connector_status_connected)) {
894 struct radeon_connector *list_radeon_connector;
901 radeon_connector->ddc_bus->rec.i2c_id)) {
905 if (!radeon_hpd_sense(rdev, radeon_connector->hpd.hpd)) {
906 kfree(radeon_connector->edid);
907 radeon_connector->edid = NULL;
917 if ((ret == connector_status_connected) && (radeon_connector->use_digital == true))
930 if (radeon_connector->detected_by_load)
936 if (radeon_connector->dac_load_detect) {
954 radeon_connector->use_digital = false;
957 radeon_connector->detected_by_load = true;
964 if ((ret == connector_status_connected) && (radeon_connector->use_digital == false) &&
978 radeon_connector->use_digital = true;
992 struct radeon_connector *radeon_connector = to_radeon_connector(connector);
1006 if (radeon_connector->use_digital == true) {
1032 struct radeon_connector *radeon_connector = to_radeon_connector(connector);
1034 radeon_connector->use_digital = false;
1036 radeon_connector->use_digital = true;
1044 struct radeon_connector *radeon_connector = to_radeon_connector(connector);
1049 if (radeon_connector->use_digital &&
1054 if (radeon_connector->use_digital && (mode->clock > 165000)) {
1055 if ((radeon_connector->connector_object_id == CONNECTOR_OBJECT_ID_DUAL_LINK_DVI_I) ||
1056 (radeon_connector->connector_object_id == CONNECTOR_OBJECT_ID_DUAL_LINK_DVI_D) ||
1057 (radeon_connector->connector_object_id == CONNECTOR_OBJECT_ID_HDMI_TYPE_B))
1059 else if (radeon_connector->connector_object_id == CONNECTOR_OBJECT_ID_HDMI_TYPE_A) {
1096 struct radeon_connector *radeon_connector = to_radeon_connector(connector);
1097 struct radeon_connector_atom_dig *radeon_dig_connector = radeon_connector->con_priv;
1099 if (radeon_connector->edid)
1100 kfree(radeon_connector->edid);
1103 kfree(radeon_connector->con_priv);
1111 struct radeon_connector *radeon_connector = to_radeon_connector(connector);
1112 struct radeon_connector_atom_dig *radeon_dig_connector = radeon_connector->con_priv;
1124 ret = radeon_ddc_get_modes(radeon_connector);
1135 ret = radeon_ddc_get_modes(radeon_connector);
1168 ret = radeon_ddc_get_modes(radeon_connector);
1248 struct radeon_connector *radeon_connector = to_radeon_connector(connector);
1250 struct radeon_connector_atom_dig *radeon_dig_connector = radeon_connector->con_priv;
1253 if (radeon_connector->edid) {
1254 kfree(radeon_connector->edid);
1255 radeon_connector->edid = NULL;
1273 if (radeon_dp_getdpcd(radeon_connector))
1283 radeon_dp_getdpcd(radeon_connector);
1288 if (radeon_ddc_probe(radeon_connector)) /* try DDC */
1290 else if (radeon_connector->dac_load_detect) { /* try load detection */
1296 radeon_dig_connector->dp_sink_type = radeon_dp_getsinktype(radeon_connector);
1297 if (radeon_hpd_sense(rdev, radeon_connector->hpd.hpd)) {
1300 radeon_dp_getdpcd(radeon_connector);
1303 if (radeon_dp_getdpcd(radeon_connector))
1306 if (radeon_ddc_probe(radeon_connector))
1319 struct radeon_connector *radeon_connector = to_radeon_connector(connector);
1320 struct radeon_connector_atom_dig *radeon_dig_connector = radeon_connector->con_priv;
1387 struct radeon_connector *radeon_connector;
1407 radeon_connector = to_radeon_connector(connector);
1408 if (radeon_connector->connector_id == connector_id) {
1409 radeon_connector->devices |= supported_device;
1412 if (radeon_connector->ddc_bus && i2c_bus->valid) {
1413 if (radeon_connector->ddc_bus->rec.i2c_id == i2c_bus->i2c_id) {
1414 radeon_connector->shared_ddc = true;
1417 if (radeon_connector->router_bus && router->ddc_valid &&
1418 (radeon_connector->router.router_id == router->router_id)) {
1419 radeon_connector->shared_ddc = false;
1440 radeon_connector = kzalloc(sizeof(struct radeon_connector), GFP_KERNEL);
1441 if (!radeon_connector)
1444 connector = &radeon_connector->base;
1446 radeon_connector->connector_id = connector_id;
1447 radeon_connector->devices = supported_device;
1448 radeon_connector->shared_ddc = shared_ddc;
1449 radeon_connector->connector_object_id = connector_object_id;
1450 radeon_connector->hpd = *hpd;
1452 radeon_connector->router = *router;
1454 radeon_connector->router_bus = radeon_i2c_lookup(rdev, &router->i2c_info);
1455 if (!radeon_connector->router_bus)
1464 radeon_connector->con_priv = radeon_dig_connector;
1465 drm_connector_init(dev, &radeon_connector->base, &radeon_dp_connector_funcs, connector_type);
1466 drm_connector_helper_add(&radeon_connector->base, &radeon_dp_connector_helper_funcs);
1475 radeon_connector->ddc_bus = radeon_i2c_lookup(rdev, i2c_bus);
1476 if (!radeon_connector->ddc_bus)
1485 radeon_connector->dac_load_detect = true;
1486 drm_connector_attach_property(&radeon_connector->base,
1495 drm_connector_attach_property(&radeon_connector->base,
1498 drm_connector_attach_property(&radeon_connector->base,
1501 drm_connector_attach_property(&radeon_connector->base,
1511 radeon_connector->dac_load_detect = true;
1512 drm_connector_attach_property(&radeon_connector->base,
1519 drm_connector_attach_property(&radeon_connector->base,
1530 drm_connector_init(dev, &radeon_connector->base, &radeon_vga_connector_funcs, connector_type);
1531 drm_connector_helper_add(&radeon_connector->base, &radeon_vga_connector_helper_funcs);
1533 radeon_connector->ddc_bus = radeon_i2c_lookup(rdev, i2c_bus);
1534 if (!radeon_connector->ddc_bus)
1537 radeon_connector->dac_load_detect = true;
1538 drm_connector_attach_property(&radeon_connector->base,
1542 radeon_connector->hpd.hpd = RADEON_HPD_NONE;
1548 drm_connector_init(dev, &radeon_connector->base, &radeon_vga_connector_funcs, connector_type);
1549 drm_connector_helper_add(&radeon_connector->base, &radeon_vga_connector_helper_funcs);
1551 radeon_connector->ddc_bus = radeon_i2c_lookup(rdev, i2c_bus);
1552 if (!radeon_connector->ddc_bus)
1555 radeon_connector->dac_load_detect = true;
1556 drm_connector_attach_property(&radeon_connector->base,
1560 radeon_connector->hpd.hpd = RADEON_HPD_NONE;
1570 radeon_connector->con_priv = radeon_dig_connector;
1571 drm_connector_init(dev, &radeon_connector->base, &radeon_dvi_connector_funcs, connector_type);
1572 drm_connector_helper_add(&radeon_connector->base, &radeon_dvi_connector_helper_funcs);
1574 radeon_connector->ddc_bus = radeon_i2c_lookup(rdev, i2c_bus);
1575 if (!radeon_connector->ddc_bus)
1579 drm_connector_attach_property(&radeon_connector->base,
1583 drm_connector_attach_property(&radeon_connector->base,
1586 drm_connector_attach_property(&radeon_connector->base,
1589 drm_connector_attach_property(&radeon_connector->base,
1594 radeon_connector->dac_load_detect = true;
1595 drm_connector_attach_property(&radeon_connector->base,
1611 radeon_connector->con_priv = radeon_dig_connector;
1612 drm_connector_init(dev, &radeon_connector->base, &radeon_dvi_connector_funcs, connector_type);
1613 drm_connector_helper_add(&radeon_connector->base, &radeon_dvi_connector_helper_funcs);
1615 radeon_connector->ddc_bus = radeon_i2c_lookup(rdev, i2c_bus);
1616 if (!radeon_connector->ddc_bus)
1619 drm_connector_attach_property(&radeon_connector->base,
1623 drm_connector_attach_property(&radeon_connector->base,
1626 drm_connector_attach_property(&radeon_connector->base,
1629 drm_connector_attach_property(&radeon_connector->base,
1645 radeon_connector->con_priv = radeon_dig_connector;
1646 drm_connector_init(dev, &radeon_connector->base, &radeon_dp_connector_funcs, connector_type);
1647 drm_connector_helper_add(&radeon_connector->base, &radeon_dp_connector_helper_funcs);
1653 radeon_connector->ddc_bus = radeon_i2c_lookup(rdev, i2c_bus);
1654 if (!radeon_connector->ddc_bus)
1658 drm_connector_attach_property(&radeon_connector->base,
1662 drm_connector_attach_property(&radeon_connector->base,
1665 drm_connector_attach_property(&radeon_connector->base,
1668 drm_connector_attach_property(&radeon_connector->base,
1681 radeon_connector->con_priv = radeon_dig_connector;
1682 drm_connector_init(dev, &radeon_connector->base, &radeon_dp_connector_funcs, connector_type);
1683 drm_connector_helper_add(&radeon_connector->base, &radeon_dp_connector_helper_funcs);
1689 radeon_connector->ddc_bus = radeon_i2c_lookup(rdev, i2c_bus);
1690 if (!radeon_connector->ddc_bus)
1693 drm_connector_attach_property(&radeon_connector->base,
1703 drm_connector_init(dev, &radeon_connector->base, &radeon_tv_connector_funcs, connector_type);
1704 drm_connector_helper_add(&radeon_connector->base, &radeon_tv_connector_helper_funcs);
1705 radeon_connector->dac_load_detect = true;
1706 drm_connector_attach_property(&radeon_connector->base,
1709 drm_connector_attach_property(&radeon_connector->base,
1713 radeon_connector->hpd.hpd = RADEON_HPD_NONE;
1722 radeon_connector->con_priv = radeon_dig_connector;
1723 drm_connector_init(dev, &radeon_connector->base, &radeon_lvds_connector_funcs, connector_type);
1724 drm_connector_helper_add(&radeon_connector->base, &radeon_lvds_connector_helper_funcs);
1726 radeon_connector->ddc_bus = radeon_i2c_lookup(rdev, i2c_bus);
1727 if (!radeon_connector->ddc_bus)
1730 drm_connector_attach_property(&radeon_connector->base,
1740 if (radeon_connector->hpd.hpd == RADEON_HPD_NONE) {
1766 struct radeon_connector *radeon_connector;
1781 radeon_connector = to_radeon_connector(connector);
1782 if (radeon_connector->connector_id == connector_id) {
1783 radeon_connector->devices |= supported_device;
1788 radeon_connector = kzalloc(sizeof(struct radeon_connector), GFP_KERNEL);
1789 if (!radeon_connector)
1792 connector = &radeon_connector->base;
1794 radeon_connector->connector_id = connector_id;
1795 radeon_connector->devices = supported_device;
1796 radeon_connector->connector_object_id = connector_object_id;
1797 radeon_connector->hpd = *hpd;
1801 drm_connector_init(dev, &radeon_connector->base, &radeon_vga_connector_funcs, connector_type);
1802 drm_connector_helper_add(&radeon_connector->base, &radeon_vga_connector_helper_funcs);
1804 radeon_connector->ddc_bus = radeon_i2c_lookup(rdev, i2c_bus);
1805 if (!radeon_connector->ddc_bus)
1808 radeon_connector->dac_load_detect = true;
1809 drm_connector_attach_property(&radeon_connector->base,
1813 radeon_connector->hpd.hpd = RADEON_HPD_NONE;
1819 drm_connector_init(dev, &radeon_connector->base, &radeon_vga_connector_funcs, connector_type);
1820 drm_connector_helper_add(&radeon_connector->base, &radeon_vga_connector_helper_funcs);
1822 radeon_connector->ddc_bus = radeon_i2c_lookup(rdev, i2c_bus);
1823 if (!radeon_connector->ddc_bus)
1826 radeon_connector->dac_load_detect = true;
1827 drm_connector_attach_property(&radeon_connector->base,
1831 radeon_connector->hpd.hpd = RADEON_HPD_NONE;
1837 drm_connector_init(dev, &radeon_connector->base, &radeon_dvi_connector_funcs, connector_type);
1838 drm_connector_helper_add(&radeon_connector->base, &radeon_dvi_connector_helper_funcs);
1840 radeon_connector->ddc_bus = radeon_i2c_lookup(rdev, i2c_bus);
1841 if (!radeon_connector->ddc_bus)
1845 radeon_connector->dac_load_detect = true;
1846 drm_connector_attach_property(&radeon_connector->base,
1860 drm_connector_init(dev, &radeon_connector->base, &radeon_tv_connector_funcs, connector_type);
1861 drm_connector_helper_add(&radeon_connector->base, &radeon_tv_connector_helper_funcs);
1862 radeon_connector->dac_load_detect = true;
1869 radeon_connector->dac_load_detect = false;
1870 drm_connector_attach_property(&radeon_connector->base,
1872 radeon_connector->dac_load_detect);
1873 drm_connector_attach_property(&radeon_connector->base,
1877 radeon_connector->hpd.hpd = RADEON_HPD_NONE;
1882 drm_connector_init(dev, &radeon_connector->base, &radeon_lvds_connector_funcs, connector_type);
1883 drm_connector_helper_add(&radeon_connector->base, &radeon_lvds_connector_helper_funcs);
1885 radeon_connector->ddc_bus = radeon_i2c_lookup(rdev, i2c_bus);
1886 if (!radeon_connector->ddc_bus)
1889 drm_connector_attach_property(&radeon_connector->base,
1898 if (radeon_connector->hpd.hpd == RADEON_HPD_NONE) {