Home
last modified time | relevance | path

Searched refs:autoneg_advertised (Results 1 – 25 of 43) sorted by relevance

12

/openbmc/linux/drivers/net/ethernet/atheros/atl1c/
H A Datl1c_ethtool.c33 advertising |= hw->autoneg_advertised; in atl1c_get_link_ksettings()
64 u16 autoneg_advertised; in atl1c_set_link_ksettings() local
70 autoneg_advertised = ADVERTISED_Autoneg; in atl1c_set_link_ksettings()
81 autoneg_advertised = ADVERTISED_1000baseT_Full; in atl1c_set_link_ksettings()
84 autoneg_advertised = ADVERTISED_100baseT_Full; in atl1c_set_link_ksettings()
86 autoneg_advertised = ADVERTISED_100baseT_Half; in atl1c_set_link_ksettings()
89 autoneg_advertised = ADVERTISED_10baseT_Full; in atl1c_set_link_ksettings()
91 autoneg_advertised = ADVERTISED_10baseT_Half; in atl1c_set_link_ksettings()
95 if (hw->autoneg_advertised != autoneg_advertised) { in atl1c_set_link_ksettings()
96 hw->autoneg_advertised = autoneg_advertised; in atl1c_set_link_ksettings()
H A Datl1c_hw.c462 if (hw->autoneg_advertised & ADVERTISED_10baseT_Half) in atl1c_phy_setup_adv()
471 if (hw->autoneg_advertised & ADVERTISED_Autoneg) in atl1c_phy_setup_adv()
480 if (hw->autoneg_advertised & ADVERTISED_Autoneg) in atl1c_phy_setup_adv()
718 u16 autoneg_advertised = ADVERTISED_10baseT_Half; in atl1c_phy_to_ps_link() local
728 autoneg_advertised = ADVERTISED_10baseT_Full; in atl1c_phy_to_ps_link()
730 autoneg_advertised = ADVERTISED_10baseT_Half; in atl1c_phy_to_ps_link()
732 autoneg_advertised = ADVERTISED_100baseT_Half; in atl1c_phy_to_ps_link()
734 autoneg_advertised = ADVERTISED_100baseT_Full; in atl1c_phy_to_ps_link()
736 save_autoneg_advertised = hw->autoneg_advertised; in atl1c_phy_to_ps_link()
738 hw->autoneg_advertised = autoneg_advertised; in atl1c_phy_to_ps_link()
[all …]
/openbmc/linux/drivers/net/ethernet/oki-semi/pch_gbe/
H A Dpch_gbe_param.c313 hw->phy.autoneg_advertised = opt.def; in pch_gbe_check_copper_options()
318 hw->phy.autoneg_advertised = tmp; in pch_gbe_check_copper_options()
337 hw->phy.autoneg_advertised = PHY_ADVERTISE_10_HALF | in pch_gbe_check_copper_options()
348 hw->phy.autoneg_advertised = PHY_ADVERTISE_10_FULL | in pch_gbe_check_copper_options()
360 hw->phy.autoneg_advertised = PHY_ADVERTISE_10_HALF | in pch_gbe_check_copper_options()
368 hw->phy.autoneg_advertised = 0; in pch_gbe_check_copper_options()
375 hw->phy.autoneg_advertised = 0; in pch_gbe_check_copper_options()
385 hw->phy.autoneg_advertised = PHY_ADVERTISE_100_HALF | in pch_gbe_check_copper_options()
394 hw->phy.autoneg_advertised = 0; in pch_gbe_check_copper_options()
402 hw->phy.autoneg_advertised = 0; in pch_gbe_check_copper_options()
[all …]
H A Dpch_gbe_phy.c308 cmd.advertising = hw->phy.autoneg_advertised; in pch_gbe_phy_init_setting()
H A Dpch_gbe.h355 u16 autoneg_advertised; member
/openbmc/linux/drivers/net/ethernet/intel/igc/
H A Digc_phy.c228 phy->autoneg_advertised &= phy->autoneg_mask; in igc_phy_setup_autoneg()
274 if (phy->autoneg_advertised & ADVERTISE_10_HALF) { in igc_phy_setup_autoneg()
280 if (phy->autoneg_advertised & ADVERTISE_10_FULL) { in igc_phy_setup_autoneg()
286 if (phy->autoneg_advertised & ADVERTISE_100_HALF) { in igc_phy_setup_autoneg()
292 if (phy->autoneg_advertised & ADVERTISE_100_FULL) { in igc_phy_setup_autoneg()
298 if (phy->autoneg_advertised & ADVERTISE_1000_HALF) in igc_phy_setup_autoneg()
302 if (phy->autoneg_advertised & ADVERTISE_1000_FULL) { in igc_phy_setup_autoneg()
308 if (phy->autoneg_advertised & ADVERTISE_2500_HALF) in igc_phy_setup_autoneg()
442 phy->autoneg_advertised &= phy->autoneg_mask; in igc_copper_link_autoneg()
447 if (phy->autoneg_advertised == 0) in igc_copper_link_autoneg()
[all …]
H A Digc_ethtool.c1758 if (hw->phy.autoneg_advertised & ADVERTISE_10_HALF) in igc_ethtool_get_link_ksettings()
1760 if (hw->phy.autoneg_advertised & ADVERTISE_10_FULL) in igc_ethtool_get_link_ksettings()
1762 if (hw->phy.autoneg_advertised & ADVERTISE_100_HALF) in igc_ethtool_get_link_ksettings()
1764 if (hw->phy.autoneg_advertised & ADVERTISE_100_FULL) in igc_ethtool_get_link_ksettings()
1766 if (hw->phy.autoneg_advertised & ADVERTISE_1000_FULL) in igc_ethtool_get_link_ksettings()
1768 if (hw->phy.autoneg_advertised & ADVERTISE_2500_FULL) in igc_ethtool_get_link_ksettings()
1907 hw->phy.autoneg_advertised = advertised; in igc_ethtool_set_link_ksettings()
H A Digc_hw.h141 u16 autoneg_advertised; member
/openbmc/linux/drivers/net/ethernet/atheros/atl1e/
H A Datl1e_ethtool.c34 advertising |= hw->autoneg_advertised; in atl1e_get_link_ksettings()
78 hw->autoneg_advertised = in atl1e_set_link_ksettings()
88 hw->autoneg_advertised = in atl1e_set_link_ksettings()
91 advertising = hw->autoneg_advertised | in atl1e_set_link_ksettings()
96 if (hw->autoneg_advertised & ADVERTISE_10_HALF) in atl1e_set_link_ksettings()
98 if (hw->autoneg_advertised & ADVERTISE_10_FULL) in atl1e_set_link_ksettings()
100 if (hw->autoneg_advertised & ADVERTISE_100_HALF) in atl1e_set_link_ksettings()
102 if (hw->autoneg_advertised & ADVERTISE_100_FULL) in atl1e_set_link_ksettings()
104 if (hw->autoneg_advertised & ADVERTISE_1000_FULL) in atl1e_set_link_ksettings()
H A Datl1e_hw.c318 hw->autoneg_advertised = ADVERTISE_ALL; in atl1e_phy_setup_autoneg_adv()
321 hw->autoneg_advertised |= ADVERTISE_1000_FULL; in atl1e_phy_setup_autoneg_adv()
327 hw->autoneg_advertised = ADVERTISE_100_FULL; in atl1e_phy_setup_autoneg_adv()
332 hw->autoneg_advertised = ADVERTISE_100_HALF; in atl1e_phy_setup_autoneg_adv()
337 hw->autoneg_advertised = ADVERTISE_10_FULL; in atl1e_phy_setup_autoneg_adv()
342 hw->autoneg_advertised = ADVERTISE_10_HALF; in atl1e_phy_setup_autoneg_adv()
H A Datl1e.h326 u16 autoneg_advertised; member
/openbmc/linux/drivers/net/ethernet/intel/e1000/
H A De1000_param.c590 adapter->hw.autoneg_advertised = AUTONEG_ADV_DEFAULT; in e1000_check_copper_options()
641 adapter->hw.autoneg_advertised = an; in e1000_check_copper_options()
655 adapter->hw.autoneg_advertised = ADVERTISE_10_HALF | in e1000_check_copper_options()
662 adapter->hw.autoneg_advertised = ADVERTISE_10_FULL | in e1000_check_copper_options()
670 adapter->hw.autoneg_advertised = ADVERTISE_10_HALF | in e1000_check_copper_options()
677 adapter->hw.autoneg_advertised = 0; in e1000_check_copper_options()
683 adapter->hw.autoneg_advertised = 0; in e1000_check_copper_options()
689 adapter->hw.autoneg_advertised = ADVERTISE_100_HALF | in e1000_check_copper_options()
696 adapter->hw.autoneg_advertised = 0; in e1000_check_copper_options()
702 adapter->hw.autoneg_advertised = 0; in e1000_check_copper_options()
[all …]
H A De1000_hw.c1142 if (hw->autoneg_advertised == ADVERTISE_1000_FULL) { in e1000_copper_link_igp_setup()
1317 hw->autoneg_advertised &= AUTONEG_ADVERTISE_SPEED_DEFAULT; in e1000_copper_link_autoneg()
1322 if (hw->autoneg_advertised == 0) in e1000_copper_link_autoneg()
1327 hw->autoneg_advertised &= AUTONEG_ADVERTISE_10_100_ALL; in e1000_copper_link_autoneg()
1527 e_dbg("autoneg_advertised %x\n", hw->autoneg_advertised); in e1000_phy_setup_autoneg()
1530 if (hw->autoneg_advertised & ADVERTISE_10_HALF) { in e1000_phy_setup_autoneg()
1536 if (hw->autoneg_advertised & ADVERTISE_10_FULL) { in e1000_phy_setup_autoneg()
1542 if (hw->autoneg_advertised & ADVERTISE_100_HALF) { in e1000_phy_setup_autoneg()
1548 if (hw->autoneg_advertised & ADVERTISE_100_FULL) { in e1000_phy_setup_autoneg()
1554 if (hw->autoneg_advertised & ADVERTISE_1000_HALF) { in e1000_phy_setup_autoneg()
[all …]
H A De1000_ethtool.c106 advertising |= hw->autoneg_advertised; in e1000_get_link_ksettings()
195 hw->autoneg_advertised = ADVERTISED_1000baseT_Full | in e1000_set_link_ksettings()
199 hw->autoneg_advertised = advertising | in e1000_set_link_ksettings()
1522 u16 autoneg_advertised = hw->autoneg_advertised; in e1000_diag_test() local
1558 hw->autoneg_advertised = autoneg_advertised; in e1000_diag_test()
/openbmc/linux/drivers/net/ethernet/intel/e1000e/
H A Dphy.c966 phy->autoneg_advertised &= phy->autoneg_mask; in e1000_phy_setup_autoneg()
999 if (phy->autoneg_advertised & ADVERTISE_10_HALF) { in e1000_phy_setup_autoneg()
1005 if (phy->autoneg_advertised & ADVERTISE_10_FULL) { in e1000_phy_setup_autoneg()
1023 if (phy->autoneg_advertised & ADVERTISE_1000_HALF) in e1000_phy_setup_autoneg()
1056 phy->autoneg_advertised &= in e1000_phy_setup_autoneg()
1071 phy->autoneg_advertised |= in e1000_phy_setup_autoneg()
1081 phy->autoneg_advertised &= ~ADVERTISED_Pause; in e1000_phy_setup_autoneg()
1089 phy->autoneg_advertised |= in e1000_phy_setup_autoneg()
1127 phy->autoneg_advertised &= phy->autoneg_mask; in e1000_copper_link_autoneg()
1132 if (!phy->autoneg_advertised) in e1000_copper_link_autoneg()
[all …]
H A Dethtool.c134 advertising |= hw->phy.autoneg_advertised; in e1000_get_link_ksettings()
245 adapter->hw.phy.autoneg_advertised = in e1000_set_spd_dplx()
313 hw->phy.autoneg_advertised = ADVERTISED_1000baseT_Full | in e1000_set_link_ksettings()
316 hw->phy.autoneg_advertised = advertising | in e1000_set_link_ksettings()
318 advertising = hw->phy.autoneg_advertised; in e1000_set_link_ksettings()
1814 u16 autoneg_advertised; in e1000_diag_test() local
1839 autoneg_advertised = adapter->hw.phy.autoneg_advertised; in e1000_diag_test()
1873 adapter->hw.phy.autoneg_advertised = autoneg_advertised; in e1000_diag_test()
H A D82571.c627 } else if ((hw->phy.autoneg_advertised == E1000_ALL_SPEED_DUPLEX) || in e1000_set_d3_lplu_state_82574()
628 (hw->phy.autoneg_advertised == E1000_ALL_NOT_GIG) || in e1000_set_d3_lplu_state_82574()
629 (hw->phy.autoneg_advertised == E1000_ALL_10_SPEED)) { in e1000_set_d3_lplu_state_82574()
/openbmc/linux/drivers/net/ethernet/intel/igb/
H A De1000_phy.c792 if (phy->autoneg_advertised == ADVERTISE_1000_FULL) { in igb_copper_link_setup_igp()
870 phy->autoneg_advertised &= phy->autoneg_mask; in igb_copper_link_autoneg()
875 if (phy->autoneg_advertised == 0) in igb_copper_link_autoneg()
876 phy->autoneg_advertised = phy->autoneg_mask; in igb_copper_link_autoneg()
931 phy->autoneg_advertised &= phy->autoneg_mask; in igb_phy_setup_autoneg()
966 if (phy->autoneg_advertised & ADVERTISE_10_HALF) { in igb_phy_setup_autoneg()
972 if (phy->autoneg_advertised & ADVERTISE_10_FULL) { in igb_phy_setup_autoneg()
978 if (phy->autoneg_advertised & ADVERTISE_100_HALF) { in igb_phy_setup_autoneg()
984 if (phy->autoneg_advertised & ADVERTISE_100_FULL) { in igb_phy_setup_autoneg()
990 if (phy->autoneg_advertised & ADVERTISE_1000_HALF) in igb_phy_setup_autoneg()
[all …]
H A Digb_ethtool.c163 advertising |= hw->phy.autoneg_advertised; in igb_get_link_ksettings()
300 hw->phy.autoneg_advertised = advertising | in igb_set_link_ksettings()
305 hw->phy.autoneg_advertised = in igb_set_link_ksettings()
309 hw->phy.autoneg_advertised = in igb_set_link_ksettings()
313 hw->phy.autoneg_advertised = in igb_set_link_ksettings()
320 hw->phy.autoneg_advertised = advertising | in igb_set_link_ksettings()
324 advertising = hw->phy.autoneg_advertised; in igb_set_link_ksettings()
2017 u16 autoneg_advertised; in igb_diag_test() local
2030 autoneg_advertised = adapter->hw.phy.autoneg_advertised; in igb_diag_test()
2069 adapter->hw.phy.autoneg_advertised = autoneg_advertised; in igb_diag_test()
/openbmc/linux/drivers/net/ethernet/intel/ixgbe/
H A Dixgbe_phy.c1129 if ((hw->phy.autoneg_advertised & in ixgbe_setup_phy_link_generic()
1183 hw->phy.autoneg_advertised = 0; in ixgbe_setup_phy_link_speed_generic()
1186 hw->phy.autoneg_advertised |= IXGBE_LINK_SPEED_10GB_FULL; in ixgbe_setup_phy_link_speed_generic()
1189 hw->phy.autoneg_advertised |= IXGBE_LINK_SPEED_5GB_FULL; in ixgbe_setup_phy_link_speed_generic()
1192 hw->phy.autoneg_advertised |= IXGBE_LINK_SPEED_2_5GB_FULL; in ixgbe_setup_phy_link_speed_generic()
1195 hw->phy.autoneg_advertised |= IXGBE_LINK_SPEED_1GB_FULL; in ixgbe_setup_phy_link_speed_generic()
1198 hw->phy.autoneg_advertised |= IXGBE_LINK_SPEED_100_FULL; in ixgbe_setup_phy_link_speed_generic()
1201 hw->phy.autoneg_advertised |= IXGBE_LINK_SPEED_10_FULL; in ixgbe_setup_phy_link_speed_generic()
1344 if (hw->phy.autoneg_advertised & IXGBE_LINK_SPEED_10GB_FULL) in ixgbe_setup_phy_link_tnx()
1359 if (hw->phy.autoneg_advertised & IXGBE_LINK_SPEED_1GB_FULL) in ixgbe_setup_phy_link_tnx()
[all …]
H A Dixgbe_82599.c671 hw->phy.autoneg_advertised = 0; in ixgbe_setup_mac_link_smartspeed()
674 hw->phy.autoneg_advertised |= IXGBE_LINK_SPEED_10GB_FULL; in ixgbe_setup_mac_link_smartspeed()
677 hw->phy.autoneg_advertised |= IXGBE_LINK_SPEED_1GB_FULL; in ixgbe_setup_mac_link_smartspeed()
680 hw->phy.autoneg_advertised |= IXGBE_LINK_SPEED_100_FULL; in ixgbe_setup_mac_link_smartspeed()
H A Dixgbe_ethtool.c266 if (hw->phy.autoneg_advertised) { in ixgbe_get_link_ksettings()
268 if (hw->phy.autoneg_advertised & IXGBE_LINK_SPEED_10_FULL) in ixgbe_get_link_ksettings()
271 if (hw->phy.autoneg_advertised & IXGBE_LINK_SPEED_100_FULL) in ixgbe_get_link_ksettings()
274 if (hw->phy.autoneg_advertised & IXGBE_LINK_SPEED_10GB_FULL) in ixgbe_get_link_ksettings()
276 if (hw->phy.autoneg_advertised & IXGBE_LINK_SPEED_1GB_FULL) { in ixgbe_get_link_ksettings()
285 if (hw->phy.autoneg_advertised & IXGBE_LINK_SPEED_5GB_FULL) in ixgbe_get_link_ksettings()
288 if (hw->phy.autoneg_advertised & IXGBE_LINK_SPEED_2_5GB_FULL) in ixgbe_get_link_ksettings()
483 old = hw->phy.autoneg_advertised; in ixgbe_set_link_ksettings()
/openbmc/linux/drivers/net/ethernet/atheros/atlx/
H A Datl2.c1708 advertising |= hw->autoneg_advertised; in atl2_get_link_ksettings()
1755 hw->autoneg_advertised = MY_ADV_MASK; in atl2_set_link_ksettings()
1758 hw->autoneg_advertised = ADVERTISE_100_FULL; in atl2_set_link_ksettings()
1764 hw->autoneg_advertised = ADVERTISE_10_FULL; in atl2_set_link_ksettings()
1767 hw->autoneg_advertised = ADVERTISE_10_HALF; in atl2_set_link_ksettings()
1772 advertising = hw->autoneg_advertised | in atl2_set_link_ksettings()
2556 hw->autoneg_advertised = in atl2_phy_setup_autoneg_adv()
2564 hw->autoneg_advertised = ADVERTISE_100_FULL; in atl2_phy_setup_autoneg_adv()
2568 hw->autoneg_advertised = ADVERTISE_100_HALF; in atl2_phy_setup_autoneg_adv()
2572 hw->autoneg_advertised = ADVERTISE_10_FULL; in atl2_phy_setup_autoneg_adv()
[all …]
H A Datl2.h392 u16 autoneg_advertised; member
/openbmc/u-boot/drivers/net/
H A De1000.c2744 if (hw->autoneg_advertised == ADVERTISE_1000_FULL) { in e1000_copper_link_igp_setup()
3140 hw->autoneg_advertised &= AUTONEG_ADVERTISE_SPEED_DEFAULT; in e1000_copper_link_autoneg()
3145 if (hw->autoneg_advertised == 0) in e1000_copper_link_autoneg()
3146 hw->autoneg_advertised = AUTONEG_ADVERTISE_SPEED_DEFAULT; in e1000_copper_link_autoneg()
3150 hw->autoneg_advertised &= AUTONEG_ADVERTISE_10_100_ALL; in e1000_copper_link_autoneg()
3381 if (hw->autoneg_advertised & ADVERTISE_10_HALF) { in e1000_phy_setup_autoneg()
3387 if (hw->autoneg_advertised & ADVERTISE_10_FULL) { in e1000_phy_setup_autoneg()
3393 if (hw->autoneg_advertised & ADVERTISE_100_HALF) { in e1000_phy_setup_autoneg()
3399 if (hw->autoneg_advertised & ADVERTISE_100_FULL) { in e1000_phy_setup_autoneg()
3405 if (hw->autoneg_advertised & ADVERTISE_1000_HALF) { in e1000_phy_setup_autoneg()
[all …]

12