Lines Matching refs:sfp_base
363 enum xgbe_sfp_base sfp_base; member
751 switch (phy_data->sfp_base) { in xgbe_phy_sfp_phy_settings()
763 if (phy_data->sfp_base == XGBE_SFP_BASE_1000_T) { in xgbe_phy_sfp_phy_settings()
783 switch (phy_data->sfp_base) { in xgbe_phy_sfp_phy_settings()
812 switch (phy_data->sfp_base) { in xgbe_phy_sfp_phy_settings()
829 u8 *sfp_base, min, max; in xgbe_phy_sfp_bit_rate() local
831 sfp_base = sfp_eeprom->base; in xgbe_phy_sfp_bit_rate()
850 return ((sfp_base[XGBE_SFP_BASE_BR] >= min) && in xgbe_phy_sfp_bit_rate()
851 (sfp_base[XGBE_SFP_BASE_BR] <= max)); in xgbe_phy_sfp_bit_rate()
1079 if (phy_data->sfp_base != XGBE_SFP_BASE_1000_T) in xgbe_phy_sfp_external_phy()
1138 u8 *sfp_base; in xgbe_phy_sfp_parse_eeprom() local
1140 sfp_base = sfp_eeprom->base; in xgbe_phy_sfp_parse_eeprom()
1142 if (sfp_base[XGBE_SFP_BASE_ID] != XGBE_SFP_ID_SFP) in xgbe_phy_sfp_parse_eeprom()
1145 if (sfp_base[XGBE_SFP_BASE_EXT_ID] != XGBE_SFP_EXT_ID_SFP) in xgbe_phy_sfp_parse_eeprom()
1153 if (sfp_base[XGBE_SFP_BASE_CABLE] & XGBE_SFP_BASE_CABLE_PASSIVE) { in xgbe_phy_sfp_parse_eeprom()
1155 phy_data->sfp_cable_len = sfp_base[XGBE_SFP_BASE_CU_CABLE_LEN]; in xgbe_phy_sfp_parse_eeprom()
1163 phy_data->sfp_base = XGBE_SFP_BASE_10000_CR; in xgbe_phy_sfp_parse_eeprom()
1164 else if (sfp_base[XGBE_SFP_BASE_10GBE_CC] & XGBE_SFP_BASE_10GBE_CC_SR) in xgbe_phy_sfp_parse_eeprom()
1165 phy_data->sfp_base = XGBE_SFP_BASE_10000_SR; in xgbe_phy_sfp_parse_eeprom()
1166 else if (sfp_base[XGBE_SFP_BASE_10GBE_CC] & XGBE_SFP_BASE_10GBE_CC_LR) in xgbe_phy_sfp_parse_eeprom()
1167 phy_data->sfp_base = XGBE_SFP_BASE_10000_LR; in xgbe_phy_sfp_parse_eeprom()
1168 else if (sfp_base[XGBE_SFP_BASE_10GBE_CC] & XGBE_SFP_BASE_10GBE_CC_LRM) in xgbe_phy_sfp_parse_eeprom()
1169 phy_data->sfp_base = XGBE_SFP_BASE_10000_LRM; in xgbe_phy_sfp_parse_eeprom()
1170 else if (sfp_base[XGBE_SFP_BASE_10GBE_CC] & XGBE_SFP_BASE_10GBE_CC_ER) in xgbe_phy_sfp_parse_eeprom()
1171 phy_data->sfp_base = XGBE_SFP_BASE_10000_ER; in xgbe_phy_sfp_parse_eeprom()
1172 else if (sfp_base[XGBE_SFP_BASE_1GBE_CC] & XGBE_SFP_BASE_1GBE_CC_SX) in xgbe_phy_sfp_parse_eeprom()
1173 phy_data->sfp_base = XGBE_SFP_BASE_1000_SX; in xgbe_phy_sfp_parse_eeprom()
1174 else if (sfp_base[XGBE_SFP_BASE_1GBE_CC] & XGBE_SFP_BASE_1GBE_CC_LX) in xgbe_phy_sfp_parse_eeprom()
1175 phy_data->sfp_base = XGBE_SFP_BASE_1000_LX; in xgbe_phy_sfp_parse_eeprom()
1176 else if (sfp_base[XGBE_SFP_BASE_1GBE_CC] & XGBE_SFP_BASE_1GBE_CC_CX) in xgbe_phy_sfp_parse_eeprom()
1177 phy_data->sfp_base = XGBE_SFP_BASE_1000_CX; in xgbe_phy_sfp_parse_eeprom()
1178 else if (sfp_base[XGBE_SFP_BASE_1GBE_CC] & XGBE_SFP_BASE_1GBE_CC_T) in xgbe_phy_sfp_parse_eeprom()
1179 phy_data->sfp_base = XGBE_SFP_BASE_1000_T; in xgbe_phy_sfp_parse_eeprom()
1181 switch (phy_data->sfp_base) { in xgbe_phy_sfp_parse_eeprom()
1342 phy_data->sfp_base = XGBE_SFP_BASE_UNKNOWN; in xgbe_phy_sfp_reset()
1665 switch (phy_data->sfp_base) { in xgbe_phy_an73_redrv_outcome()
1820 switch (phy_data->sfp_base) { in xgbe_phy_an_advertising()
1868 switch (phy_data->sfp_base) { in xgbe_phy_an_sfp_mode()
1950 (phy_data->sfp_base != XGBE_SFP_BASE_1000_CX) && in xgbe_phy_set_redrv_mode()
1951 (phy_data->sfp_base != XGBE_SFP_BASE_10000_CR)) in xgbe_phy_set_redrv_mode()
2282 if (phy_data->sfp_base == XGBE_SFP_BASE_1000_T) in xgbe_phy_get_sfp_mode()
2434 if (phy_data->sfp_base == XGBE_SFP_BASE_1000_T) in xgbe_phy_use_sfp_mode()
2439 if (phy_data->sfp_base != XGBE_SFP_BASE_1000_T) in xgbe_phy_use_sfp_mode()
2444 if (phy_data->sfp_base != XGBE_SFP_BASE_1000_T) in xgbe_phy_use_sfp_mode()