Lines Matching refs:phy

387 	if (pdata->phy.autoneg == AUTONEG_ENABLE) {  in xgbe_use_xgmii_mode()
388 if (pdata->phy.advertising & ADVERTISED_10000baseKR_Full) in xgbe_use_xgmii_mode()
391 if (pdata->phy.speed == SPEED_10000) in xgbe_use_xgmii_mode()
400 if (pdata->phy.autoneg == AUTONEG_ENABLE) { in xgbe_use_gmii_2500_mode()
401 if (pdata->phy.advertising & ADVERTISED_2500baseX_Full) in xgbe_use_gmii_2500_mode()
404 if (pdata->phy.speed == SPEED_2500) in xgbe_use_gmii_2500_mode()
413 if (pdata->phy.autoneg == AUTONEG_ENABLE) { in xgbe_use_gmii_mode()
414 if (pdata->phy.advertising & ADVERTISED_1000baseKX_Full) in xgbe_use_gmii_mode()
417 if (pdata->phy.speed == SPEED_1000) in xgbe_use_gmii_mode()
598 if (!(pdata->phy.advertising & ADVERTISED_1000baseKX_Full) && in xgbe_an_incompat_link()
599 !(pdata->phy.advertising & ADVERTISED_2500baseX_Full)) in xgbe_an_incompat_link()
607 if (!(pdata->phy.advertising & ADVERTISED_10000baseKR_Full)) in xgbe_an_incompat_link()
783 if (pdata->phy.advertising & ADVERTISED_10000baseR_FEC) in xgbe_an_init()
792 if (pdata->phy.advertising & ADVERTISED_10000baseKR_Full) in xgbe_an_init()
797 if ((pdata->phy.advertising & ADVERTISED_1000baseKX_Full) || in xgbe_an_init()
798 (pdata->phy.advertising & ADVERTISED_2500baseX_Full)) in xgbe_an_init()
807 if (pdata->phy.advertising & ADVERTISED_Pause) in xgbe_an_init()
812 if (pdata->phy.advertising & ADVERTISED_Asym_Pause) in xgbe_an_init()
855 if (pdata->phy.link) in xgbe_phy_print_status()
858 xgbe_phy_speed_string(pdata->phy.speed), in xgbe_phy_print_status()
859 pdata->phy.duplex == DUPLEX_FULL ? "Full" : "Half", in xgbe_phy_print_status()
869 if (pdata->phy.link) { in xgbe_phy_adjust_link()
871 pdata->pause_autoneg = pdata->phy.pause_autoneg; in xgbe_phy_adjust_link()
873 if (pdata->tx_pause != pdata->phy.tx_pause) { in xgbe_phy_adjust_link()
876 pdata->tx_pause = pdata->phy.tx_pause; in xgbe_phy_adjust_link()
879 if (pdata->rx_pause != pdata->phy.rx_pause) { in xgbe_phy_adjust_link()
882 pdata->rx_pause = pdata->phy.rx_pause; in xgbe_phy_adjust_link()
886 if (pdata->phy_speed != pdata->phy.speed) { in xgbe_phy_adjust_link()
888 pdata->phy_speed = pdata->phy.speed; in xgbe_phy_adjust_link()
891 if (pdata->phy_link != pdata->phy.link) { in xgbe_phy_adjust_link()
893 pdata->phy_link = pdata->phy.link; in xgbe_phy_adjust_link()
913 switch (pdata->phy.speed) { in xgbe_phy_config_fixed()
928 if (pdata->phy.duplex != DUPLEX_FULL) in xgbe_phy_config_fixed()
939 if (pdata->phy.autoneg != AUTONEG_ENABLE) in __xgbe_phy_config_aneg()
948 if (pdata->phy.advertising & ADVERTISED_10000baseKR_Full) { in __xgbe_phy_config_aneg()
950 } else if ((pdata->phy.advertising & ADVERTISED_1000baseKX_Full) || in __xgbe_phy_config_aneg()
951 (pdata->phy.advertising & ADVERTISED_2500baseX_Full)) { in __xgbe_phy_config_aneg()
1017 pdata->phy.speed = SPEED_10000; in xgbe_phy_status_force()
1021 pdata->phy.speed = SPEED_1000; in xgbe_phy_status_force()
1025 pdata->phy.speed = SPEED_2500; in xgbe_phy_status_force()
1029 pdata->phy.duplex = DUPLEX_FULL; in xgbe_phy_status_force()
1036 pdata->phy.lp_advertising = 0; in xgbe_phy_status_aneg()
1038 if ((pdata->phy.autoneg != AUTONEG_ENABLE) || pdata->parallel_detect) in xgbe_phy_status_aneg()
1041 pdata->phy.lp_advertising |= ADVERTISED_Autoneg; in xgbe_phy_status_aneg()
1042 pdata->phy.lp_advertising |= ADVERTISED_Backplane; in xgbe_phy_status_aneg()
1048 pdata->phy.lp_advertising |= ADVERTISED_Pause; in xgbe_phy_status_aneg()
1050 pdata->phy.lp_advertising |= ADVERTISED_Asym_Pause; in xgbe_phy_status_aneg()
1052 if (pdata->phy.pause_autoneg) { in xgbe_phy_status_aneg()
1054 pdata->phy.tx_pause = 0; in xgbe_phy_status_aneg()
1055 pdata->phy.rx_pause = 0; in xgbe_phy_status_aneg()
1058 pdata->phy.tx_pause = 1; in xgbe_phy_status_aneg()
1059 pdata->phy.rx_pause = 1; in xgbe_phy_status_aneg()
1062 pdata->phy.rx_pause = 1; in xgbe_phy_status_aneg()
1064 pdata->phy.tx_pause = 1; in xgbe_phy_status_aneg()
1072 pdata->phy.lp_advertising |= ADVERTISED_10000baseKR_Full; in xgbe_phy_status_aneg()
1076 pdata->phy.lp_advertising |= ADVERTISED_1000baseKX_Full; in xgbe_phy_status_aneg()
1079 pdata->phy.lp_advertising |= ADVERTISED_2500baseX_Full; in xgbe_phy_status_aneg()
1086 pdata->phy.speed = SPEED_10000; in xgbe_phy_status_aneg()
1091 pdata->phy.speed = SPEED_1000; in xgbe_phy_status_aneg()
1095 pdata->phy.speed = SPEED_2500; in xgbe_phy_status_aneg()
1101 pdata->phy.speed = SPEED_UNKNOWN; in xgbe_phy_status_aneg()
1108 pdata->phy.lp_advertising |= ADVERTISED_10000baseR_FEC; in xgbe_phy_status_aneg()
1110 pdata->phy.duplex = DUPLEX_FULL; in xgbe_phy_status_aneg()
1120 pdata->phy.link = 0; in xgbe_phy_status()
1124 link_aneg = (pdata->phy.autoneg == AUTONEG_ENABLE); in xgbe_phy_status()
1131 pdata->phy.link = (reg & MDIO_STAT1_LSTATUS) ? 1 : 0; in xgbe_phy_status()
1133 if (pdata->phy.link) { in xgbe_phy_status()
1174 pdata->phy.link = 0; in xgbe_phy_stop()
1296 pdata->phy.supported = SUPPORTED_Autoneg; in xgbe_phy_init()
1297 pdata->phy.supported |= SUPPORTED_Pause | SUPPORTED_Asym_Pause; in xgbe_phy_init()
1298 pdata->phy.supported |= SUPPORTED_Backplane; in xgbe_phy_init()
1299 pdata->phy.supported |= SUPPORTED_10000baseKR_Full; in xgbe_phy_init()
1302 pdata->phy.supported |= SUPPORTED_1000baseKX_Full; in xgbe_phy_init()
1305 pdata->phy.supported |= SUPPORTED_2500baseX_Full; in xgbe_phy_init()
1314 pdata->phy.supported |= SUPPORTED_10000baseR_FEC; in xgbe_phy_init()
1316 pdata->phy.advertising = pdata->phy.supported; in xgbe_phy_init()
1318 pdata->phy.address = 0; in xgbe_phy_init()
1320 pdata->phy.autoneg = AUTONEG_ENABLE; in xgbe_phy_init()
1321 pdata->phy.speed = SPEED_UNKNOWN; in xgbe_phy_init()
1322 pdata->phy.duplex = DUPLEX_UNKNOWN; in xgbe_phy_init()
1324 pdata->phy.link = 0; in xgbe_phy_init()
1326 pdata->phy.pause_autoneg = pdata->pause_autoneg; in xgbe_phy_init()
1327 pdata->phy.tx_pause = pdata->tx_pause; in xgbe_phy_init()
1328 pdata->phy.rx_pause = pdata->rx_pause; in xgbe_phy_init()
1331 pdata->phy.advertising &= ~ADVERTISED_Pause; in xgbe_phy_init()
1332 pdata->phy.advertising &= ~ADVERTISED_Asym_Pause; in xgbe_phy_init()
1335 pdata->phy.advertising |= ADVERTISED_Pause; in xgbe_phy_init()
1336 pdata->phy.advertising |= ADVERTISED_Asym_Pause; in xgbe_phy_init()
1340 pdata->phy.advertising ^= ADVERTISED_Asym_Pause; in xgbe_phy_init()