/linux-6.3-rc2/drivers/net/ |
A D | mii.c | 96 ecmd->lp_advertising = mii_get_an(mii, MII_LPA); in mii_ethtool_gset() 97 ecmd->lp_advertising |= in mii_ethtool_gset() 100 ecmd->lp_advertising = 0; in mii_ethtool_gset() 103 nego = ecmd->advertising & ecmd->lp_advertising; in mii_ethtool_gset() 147 u32 nego, supported, advertising, lp_advertising; in mii_ethtool_get_link_ksettings() local 181 lp_advertising = mii_get_an(mii, MII_LPA); in mii_ethtool_get_link_ksettings() 182 lp_advertising |= in mii_ethtool_get_link_ksettings() 185 lp_advertising = 0; in mii_ethtool_get_link_ksettings() 188 nego = advertising & lp_advertising; in mii_ethtool_get_link_ksettings() 213 lp_advertising = 0; in mii_ethtool_get_link_ksettings() [all …]
|
A D | mdio.c | 282 ecmd->lp_advertising = in mdio45_ethtool_gset_npage() 285 ecmd->lp_advertising |= ADVERTISED_Autoneg; in mdio45_ethtool_gset_npage() 286 modes = ecmd->advertising & ecmd->lp_advertising; in mdio45_ethtool_gset_npage() 360 u32 speed, supported = 0, advertising = 0, lp_advertising = 0; in mdio45_ethtool_ksettings_get_npage() local 454 lp_advertising = in mdio45_ethtool_ksettings_get_npage() 457 lp_advertising |= ADVERTISED_Autoneg; in mdio45_ethtool_ksettings_get_npage() 458 modes = advertising & lp_advertising; in mdio45_ethtool_ksettings_get_npage() 497 ethtool_convert_legacy_u32_to_link_mode(cmd->link_modes.lp_advertising, in mdio45_ethtool_ksettings_get_npage() 498 lp_advertising); in mdio45_ethtool_ksettings_get_npage()
|
/linux-6.3-rc2/include/linux/ |
A D | mii.h | 412 static inline void mii_lpa_to_linkmode_lpa_t(unsigned long *lp_advertising, in mii_lpa_to_linkmode_lpa_t() argument 415 mii_adv_to_linkmode_adv_t(lp_advertising, lpa); in mii_lpa_to_linkmode_lpa_t() 419 lp_advertising); in mii_lpa_to_linkmode_lpa_t() 431 static inline void mii_lpa_mod_linkmode_lpa_t(unsigned long *lp_advertising, in mii_lpa_mod_linkmode_lpa_t() argument 434 mii_adv_mod_linkmode_adv_t(lp_advertising, lpa); in mii_lpa_mod_linkmode_lpa_t() 437 lp_advertising, lpa & LPA_LPACK); in mii_lpa_mod_linkmode_lpa_t()
|
A D | phylink.h | 101 __ETHTOOL_DECLARE_LINK_MODE_MASK(lp_advertising);
|
/linux-6.3-rc2/drivers/net/phy/ |
A D | phy-c45.c | 474 mii_t1_adv_l_mod_linkmode_t(phydev->lp_advertising, 0); in genphy_c45_baset1_read_lpa() 475 mii_t1_adv_m_mod_linkmode_t(phydev->lp_advertising, 0); in genphy_c45_baset1_read_lpa() 489 mii_t1_adv_l_mod_linkmode_t(phydev->lp_advertising, val); in genphy_c45_baset1_read_lpa() 497 mii_t1_adv_m_mod_linkmode_t(phydev->lp_advertising, val); in genphy_c45_baset1_read_lpa() 525 phydev->lp_advertising); in genphy_c45_read_lpa() 526 mii_10gbt_stat_mod_linkmode_lpa_t(phydev->lp_advertising, 0); in genphy_c45_read_lpa() 527 mii_adv_mod_linkmode_adv_t(phydev->lp_advertising, 0); in genphy_c45_read_lpa() 534 linkmode_mod_bit(ETHTOOL_LINK_MODE_Autoneg_BIT, phydev->lp_advertising, in genphy_c45_read_lpa() 542 mii_adv_mod_linkmode_adv_t(phydev->lp_advertising, val); in genphy_c45_read_lpa() 551 mii_10gbt_stat_mod_linkmode_lpa_t(phydev->lp_advertising, val); in genphy_c45_read_lpa() [all …]
|
A D | uPD60620.c | 45 linkmode_zero(phydev->lp_advertising); in upd60620_read_status() 68 mii_lpa_to_linkmode_lpa_t(phydev->lp_advertising, in upd60620_read_status()
|
A D | bcm84881.c | 158 linkmode_zero(phydev->lp_advertising); in bcm84881_read_status() 178 mii_stat1000_mod_linkmode_lpa_t(phydev->lp_advertising, val); in bcm84881_read_status()
|
A D | phy-core.c | 425 phydev->lp_advertising); in phy_resolve_aneg_pause() 428 phydev->lp_advertising); in phy_resolve_aneg_pause() 446 linkmode_and(common, phydev->lp_advertising, phydev->advertising); in phy_resolve_aneg_linkmode() 479 linkmode_and(common, phydev->lp_advertising, phydev->advertising); in phy_check_downshift() 502 linkmode_and(common, phydev->lp_advertising, phydev->advertising); in phy_resolve_min_speed()
|
A D | lxt.c | 249 mii_lpa_to_linkmode_lpa_t(phydev->lp_advertising, lpa); in lxt973a2_read_status() 274 linkmode_zero(phydev->lp_advertising); in lxt973a2_read_status()
|
A D | motorcomm.c | 1012 mii_stat1000_mod_linkmode_lpa_t(phydev->lp_advertising, in ytphy_utp_read_lpa() 1014 mii_lpa_mod_linkmode_lpa_t(phydev->lp_advertising, 0); in ytphy_utp_read_lpa() 1036 mii_stat1000_mod_linkmode_lpa_t(phydev->lp_advertising, in ytphy_utp_read_lpa() 1044 mii_lpa_mod_linkmode_lpa_t(phydev->lp_advertising, lpa); in ytphy_utp_read_lpa() 1046 linkmode_zero(phydev->lp_advertising); in ytphy_utp_read_lpa() 1116 phydev->lp_advertising, lpa & LPA_1000XFULL); in yt8521_adjust_status() 1150 linkmode_zero(phydev->lp_advertising); in yt8521_read_status_paged()
|
A D | phylink.c | 735 pl->link_config.lp_advertising); in phylink_parse_fixedlink() 738 pl->link_config.lp_advertising); in phylink_parse_fixedlink() 771 pl->link_config.lp_advertising); in phylink_parse_fixedlink() 774 pl->link_config.lp_advertising); in phylink_parse_fixedlink() 806 __set_bit(s->bit, pl->link_config.lp_advertising); in phylink_parse_fixedlink() 975 state->lp_advertising, in phylink_resolve_flow() 1139 linkmode_zero(state->lp_advertising); in phylink_mac_pcs_get_state() 2134 linkmode_copy(kset->link_modes.lp_advertising, state->lp_advertising); in phylink_get_ksettings() 2567 unsigned long *lpa = state->lp_advertising; in phylink_mii_emul_read() 3193 linkmode_test_bit(fd_bit, state->lp_advertising)) { in phylink_decode_c37_word() [all …]
|
A D | phy_device.c | 2382 mii_stat1000_mod_linkmode_lpa_t(phydev->lp_advertising, in genphy_read_lpa() 2384 mii_lpa_mod_linkmode_lpa_t(phydev->lp_advertising, 0); in genphy_read_lpa() 2406 mii_stat1000_mod_linkmode_lpa_t(phydev->lp_advertising, in genphy_read_lpa() 2414 mii_lpa_mod_linkmode_lpa_t(phydev->lp_advertising, lpa); in genphy_read_lpa() 2416 linkmode_zero(phydev->lp_advertising); in genphy_read_lpa() 2535 phydev->lp_advertising, lpa & LPA_LPACK); in genphy_c37_read_status() 2537 phydev->lp_advertising, lpa & LPA_1000XFULL); in genphy_c37_read_status() 2539 phydev->lp_advertising, lpa & LPA_1000XPAUSE); in genphy_c37_read_status() 2541 phydev->lp_advertising, in genphy_c37_read_status() 2883 phydev->lp_advertising, in phy_get_pause()
|
A D | dp83td510.c | 129 linkmode_zero(phydev->lp_advertising); in dp83td510_read_status()
|
A D | realtek.c | 689 phydev->lp_advertising, lpadv & RTL_LPADV_10000FULL); in rtl822x_read_status() 691 phydev->lp_advertising, lpadv & RTL_LPADV_5000FULL); in rtl822x_read_status() 693 phydev->lp_advertising, lpadv & RTL_LPADV_2500FULL); in rtl822x_read_status()
|
A D | aquantia_main.c | 353 phydev->lp_advertising, in aqr_read_status() 356 phydev->lp_advertising, in aqr_read_status()
|
/linux-6.3-rc2/drivers/net/pcs/ |
A D | pcs-xpcs.c | 525 phylink_clear(state->lp_advertising, Autoneg); in xpcs_read_lpa_c73() 529 phylink_set(state->lp_advertising, Autoneg); in xpcs_read_lpa_c73() 537 phylink_set(state->lp_advertising, 2500baseX_Full); in xpcs_read_lpa_c73() 544 phylink_set(state->lp_advertising, 1000baseKX_Full); in xpcs_read_lpa_c73() 546 phylink_set(state->lp_advertising, 10000baseKX4_Full); in xpcs_read_lpa_c73() 548 phylink_set(state->lp_advertising, 10000baseKR_Full); in xpcs_read_lpa_c73() 555 phylink_set(state->lp_advertising, Pause); in xpcs_read_lpa_c73() 557 phylink_set(state->lp_advertising, Asym_Pause); in xpcs_read_lpa_c73() 559 linkmode_and(state->lp_advertising, state->lp_advertising, in xpcs_read_lpa_c73() 567 int max_speed = xpcs_get_max_usxgmii_speed(state->lp_advertising); in xpcs_resolve_lpa_c73()
|
/linux-6.3-rc2/drivers/net/ethernet/stmicro/stmmac/ |
A D | stmmac_ethtool.c | 311 u32 supported, advertising, lp_advertising; in stmmac_ethtool_get_link_ksettings() local 333 &lp_advertising, cmd->link_modes.lp_advertising); in stmmac_ethtool_get_link_ksettings() 340 lp_advertising |= ADVERTISED_Pause; in stmmac_ethtool_get_link_ksettings() 342 lp_advertising |= ADVERTISED_Asym_Pause; in stmmac_ethtool_get_link_ksettings() 348 lp_advertising |= ADVERTISED_Autoneg; in stmmac_ethtool_get_link_ksettings() 366 lp_advertising |= (ADVERTISED_1000baseT_Full | in stmmac_ethtool_get_link_ksettings() 370 lp_advertising |= (ADVERTISED_1000baseT_Half | in stmmac_ethtool_get_link_ksettings() 380 cmd->link_modes.lp_advertising, lp_advertising); in stmmac_ethtool_get_link_ksettings()
|
/linux-6.3-rc2/net/ethtool/ |
A D | linkmodes.c | 52 bitmap_empty(data->ksettings.link_modes.lp_advertising, in linkmodes_prepare_data() 83 ret = ethnl_bitset_size(ksettings->link_modes.lp_advertising, in linkmodes_reply_size() 122 ksettings->link_modes.lp_advertising, in linkmodes_fill_reply()
|
A D | common.c | 495 link_ksettings->link_modes.lp_advertising, in convert_legacy_settings_to_link_ksettings() 496 legacy_settings->lp_advertising); in convert_legacy_settings_to_link_ksettings()
|
/linux-6.3-rc2/drivers/net/ethernet/marvell/prestera/ |
A D | prestera_ethtool.c | 446 prestera_modes_to_eth(ecmd->link_modes.lp_advertising, in prestera_port_remote_cap_get() 449 if (!bitmap_empty(ecmd->link_modes.lp_advertising, in prestera_port_remote_cap_get() 452 lp_advertising, in prestera_port_remote_cap_get() 461 lp_advertising, in prestera_port_remote_cap_get() 465 lp_advertising, in prestera_port_remote_cap_get() 520 ethtool_link_ksettings_zero_link_mode(ecmd, lp_advertising); in prestera_ethtool_get_link_ksettings()
|
/linux-6.3-rc2/drivers/net/ethernet/aquantia/atlantic/ |
A D | aq_nic.c | 1226 ethtool_link_ksettings_add_link_mode(cmd, lp_advertising, in aq_nic_get_link_ksettings() 1230 ethtool_link_ksettings_add_link_mode(cmd, lp_advertising, in aq_nic_get_link_ksettings() 1234 ethtool_link_ksettings_add_link_mode(cmd, lp_advertising, in aq_nic_get_link_ksettings() 1238 ethtool_link_ksettings_add_link_mode(cmd, lp_advertising, in aq_nic_get_link_ksettings() 1242 ethtool_link_ksettings_add_link_mode(cmd, lp_advertising, in aq_nic_get_link_ksettings() 1246 ethtool_link_ksettings_add_link_mode(cmd, lp_advertising, in aq_nic_get_link_ksettings() 1250 ethtool_link_ksettings_add_link_mode(cmd, lp_advertising, in aq_nic_get_link_ksettings() 1254 ethtool_link_ksettings_add_link_mode(cmd, lp_advertising, in aq_nic_get_link_ksettings() 1258 ethtool_link_ksettings_add_link_mode(cmd, lp_advertising, in aq_nic_get_link_ksettings() 1262 ethtool_link_ksettings_add_link_mode(cmd, lp_advertising, in aq_nic_get_link_ksettings() [all …]
|
/linux-6.3-rc2/drivers/net/ethernet/broadcom/bnx2x/ |
A D | bnx2x_ethtool.c | 267 u32 supported, advertising, lp_advertising; in bnx2x_get_link_ksettings() local 270 cmd->link_modes.lp_advertising); in bnx2x_get_link_ksettings() 309 lp_advertising |= ADVERTISED_Autoneg; in bnx2x_get_link_ksettings() 311 lp_advertising |= ADVERTISED_Pause; in bnx2x_get_link_ksettings() 313 lp_advertising |= ADVERTISED_Asym_Pause; in bnx2x_get_link_ksettings() 316 lp_advertising |= ADVERTISED_10baseT_Half; in bnx2x_get_link_ksettings() 327 lp_advertising |= in bnx2x_get_link_ksettings() 330 lp_advertising |= in bnx2x_get_link_ksettings() 338 lp_advertising |= in bnx2x_get_link_ksettings() 341 lp_advertising |= in bnx2x_get_link_ksettings() [all …]
|
/linux-6.3-rc2/drivers/net/ethernet/amd/xgbe/ |
A D | xgbe.h | 334 ethtool_link_ksettings_zero_link_mode((_ls), lp_advertising) 337 ethtool_link_ksettings_add_link_mode((_ls), lp_advertising, _mode) 340 ethtool_link_ksettings_del_link_mode((_ls), lp_advertising, _mode) 343 ethtool_link_ksettings_test_link_mode((_ls), lp_advertising, _mode)
|
/linux-6.3-rc2/drivers/net/ethernet/fungible/funeth/ |
A D | funeth_ethtool.c | 208 u64 lp_advertising; in fun_get_link_ksettings() local 213 ethtool_link_ksettings_zero_link_mode(ks, lp_advertising); in fun_get_link_ksettings() 221 lp_advertising = fp->lp_advertising; in fun_get_link_ksettings() 227 fun_link_modes_to_ethtool(lp_advertising, in fun_get_link_ksettings() 228 ks->link_modes.lp_advertising); in fun_get_link_ksettings()
|
A D | funeth.h | 102 u64 lp_advertising; member
|