/Linux-v5.10/include/linux/ |
D | mii.h | 20 int advertising; member 143 static inline u32 linkmode_adv_to_mii_adv_t(unsigned long *advertising) in linkmode_adv_to_mii_adv_t() argument 147 if (linkmode_test_bit(ETHTOOL_LINK_MODE_10baseT_Half_BIT, advertising)) in linkmode_adv_to_mii_adv_t() 149 if (linkmode_test_bit(ETHTOOL_LINK_MODE_10baseT_Full_BIT, advertising)) in linkmode_adv_to_mii_adv_t() 151 if (linkmode_test_bit(ETHTOOL_LINK_MODE_100baseT_Half_BIT, advertising)) in linkmode_adv_to_mii_adv_t() 153 if (linkmode_test_bit(ETHTOOL_LINK_MODE_100baseT_Full_BIT, advertising)) in linkmode_adv_to_mii_adv_t() 155 if (linkmode_test_bit(ETHTOOL_LINK_MODE_Pause_BIT, advertising)) in linkmode_adv_to_mii_adv_t() 157 if (linkmode_test_bit(ETHTOOL_LINK_MODE_Asym_Pause_BIT, advertising)) in linkmode_adv_to_mii_adv_t() 218 static inline u32 linkmode_adv_to_mii_ctrl1000_t(unsigned long *advertising) in linkmode_adv_to_mii_ctrl1000_t() argument 223 advertising)) in linkmode_adv_to_mii_ctrl1000_t() [all …]
|
D | mdio.h | 289 static inline u32 linkmode_adv_to_mii_10gbt_adv_t(unsigned long *advertising) in linkmode_adv_to_mii_10gbt_adv_t() argument 294 advertising)) in linkmode_adv_to_mii_10gbt_adv_t() 297 advertising)) in linkmode_adv_to_mii_10gbt_adv_t() 300 advertising)) in linkmode_adv_to_mii_10gbt_adv_t() 314 static inline void mii_10gbt_stat_mod_linkmode_lpa_t(unsigned long *advertising, in mii_10gbt_stat_mod_linkmode_lpa_t() argument 318 advertising, lpa & MDIO_AN_10GBT_STAT_LP2_5G); in mii_10gbt_stat_mod_linkmode_lpa_t() 320 advertising, lpa & MDIO_AN_10GBT_STAT_LP5G); in mii_10gbt_stat_mod_linkmode_lpa_t() 322 advertising, lpa & MDIO_AN_10GBT_STAT_LP10G); in mii_10gbt_stat_mod_linkmode_lpa_t()
|
D | phylink.h | 44 __ETHTOOL_DECLARE_LINK_MODE_MASK(advertising); 356 const unsigned long *advertising, 405 phy_interface_t interface, const unsigned long *advertising, 485 const unsigned long *advertising); 488 const unsigned long *advertising);
|
/Linux-v5.10/drivers/net/ |
D | mii.c | 79 ecmd->advertising = ADVERTISED_TP | ADVERTISED_MII; in mii_ethtool_gset() 88 ecmd->advertising |= ADVERTISED_Autoneg; in mii_ethtool_gset() 91 ecmd->advertising |= mii_get_an(mii, MII_ADVERTISE); in mii_ethtool_gset() 93 ecmd->advertising |= in mii_ethtool_gset() 104 nego = ecmd->advertising & ecmd->lp_advertising; in mii_ethtool_gset() 150 u32 nego, supported, advertising, lp_advertising; in mii_ethtool_get_link_ksettings() local 166 advertising = ADVERTISED_TP | ADVERTISED_MII; in mii_ethtool_get_link_ksettings() 175 advertising |= ADVERTISED_Autoneg; in mii_ethtool_get_link_ksettings() 178 advertising |= mii_get_an(mii, MII_ADVERTISE); in mii_ethtool_get_link_ksettings() 180 advertising |= mii_ctrl1000_to_ethtool_adv_t(ctrl1000); in mii_ethtool_get_link_ksettings() [all …]
|
D | mdio.c | 220 ecmd->advertising = ADVERTISED_TP; in mdio45_ethtool_gset_npage() 226 ecmd->advertising = 0; in mdio45_ethtool_gset_npage() 246 ecmd->advertising = ADVERTISED_Backplane; in mdio45_ethtool_gset_npage() 253 ecmd->advertising = ADVERTISED_FIBRE; in mdio45_ethtool_gset_npage() 263 ecmd->advertising |= in mdio45_ethtool_gset_npage() 286 modes = ecmd->advertising & ecmd->lp_advertising; in mdio45_ethtool_gset_npage() 289 modes = ecmd->advertising; in mdio45_ethtool_gset_npage() 360 u32 speed, supported = 0, advertising = 0, lp_advertising = 0; in mdio45_ethtool_ksettings_get_npage() local 391 advertising = ADVERTISED_TP; in mdio45_ethtool_ksettings_get_npage() 397 advertising = 0; in mdio45_ethtool_ksettings_get_npage() [all …]
|
/Linux-v5.10/drivers/net/ethernet/atheros/alx/ |
D | ethtool.c | 133 u32 supported, advertising; in alx_get_link_ksettings() local 143 advertising = ADVERTISED_TP; in alx_get_link_ksettings() 145 advertising |= hw->adv_cfg; in alx_get_link_ksettings() 157 advertising |= ADVERTISED_Pause; in alx_get_link_ksettings() 160 advertising |= ADVERTISED_Asym_Pause; in alx_get_link_ksettings() 162 advertising |= ADVERTISED_Asym_Pause; in alx_get_link_ksettings() 171 ethtool_convert_legacy_u32_to_link_mode(cmd->link_modes.advertising, in alx_get_link_ksettings() 172 advertising); in alx_get_link_ksettings() 183 u32 advertising; in alx_set_link_ksettings() local 187 ethtool_convert_link_mode_to_legacy_u32(&advertising, in alx_set_link_ksettings() [all …]
|
/Linux-v5.10/drivers/net/ethernet/atheros/atl1e/ |
D | atl1e_ethtool.c | 20 u32 supported, advertising; in atl1e_get_link_ksettings() local 31 advertising = ADVERTISED_TP; in atl1e_get_link_ksettings() 33 advertising |= ADVERTISED_Autoneg; in atl1e_get_link_ksettings() 34 advertising |= hw->autoneg_advertised; in atl1e_get_link_ksettings() 54 ethtool_convert_legacy_u32_to_link_mode(cmd->link_modes.advertising, in atl1e_get_link_ksettings() 55 advertising); in atl1e_get_link_ksettings() 65 u32 advertising; in atl1e_set_link_ksettings() local 67 ethtool_convert_link_mode_to_legacy_u32(&advertising, in atl1e_set_link_ksettings() 68 cmd->link_modes.advertising); in atl1e_set_link_ksettings() 76 if (advertising & ADVERTISE_1000_FULL) { in atl1e_set_link_ksettings() [all …]
|
/Linux-v5.10/drivers/net/phy/ |
D | phy.c | 79 phydev->advertising); in phy_pause_str() 81 phydev->advertising); in phy_pause_str() 266 __ETHTOOL_DECLARE_LINK_MODE_MASK(advertising); in phy_ethtool_ksettings_set() 274 linkmode_copy(advertising, cmd->link_modes.advertising); in phy_ethtool_ksettings_set() 277 linkmode_and(advertising, advertising, phydev->supported); in phy_ethtool_ksettings_set() 283 if (autoneg == AUTONEG_ENABLE && linkmode_empty(advertising)) in phy_ethtool_ksettings_set() 298 linkmode_copy(phydev->advertising, advertising); in phy_ethtool_ksettings_set() 301 phydev->advertising, autoneg == AUTONEG_ENABLE); in phy_ethtool_ksettings_set() 318 linkmode_copy(cmd->link_modes.advertising, phydev->advertising); in phy_ethtool_ksettings_get() 406 mii_adv_mod_linkmode_adv_t(phydev->advertising, in phy_mii_ioctl() [all …]
|
D | phylink.c | 236 linkmode_copy(pl->link_config.advertising, pl->supported); in phylink_parse_fixedlink() 255 linkmode_and(pl->link_config.advertising, pl->link_config.advertising, in phylink_parse_fixedlink() 367 linkmode_copy(pl->link_config.advertising, pl->supported); in phylink_parse_mode() 400 linkmode_resolve_pause(state->advertising, in phylink_resolve_flow() 419 __ETHTOOL_LINK_MODE_MASK_NBITS, state->advertising, in phylink_mac_config() 459 state->advertising, in phylink_major_config() 503 __ETHTOOL_LINK_MODE_MASK_NBITS, pl->link_config.advertising, in phylink_change_inband_advert() 512 pl->link_config.advertising, in phylink_change_inband_advert() 526 linkmode_copy(state->advertising, pl->link_config.advertising); in phylink_mac_pcs_get_state() 840 linkmode_copy(pl->link_config.advertising, pl->supported); in phylink_create() [all …]
|
/Linux-v5.10/drivers/net/ethernet/intel/i40e/ |
D | i40e_ethtool.c | 480 ethtool_link_ksettings_zero_link_mode(ks, advertising); in i40e_phy_type_to_ethtool() 486 ethtool_link_ksettings_add_link_mode(ks, advertising, in i40e_phy_type_to_ethtool() 491 ethtool_link_ksettings_add_link_mode(ks, advertising, in i40e_phy_type_to_ethtool() 503 ethtool_link_ksettings_add_link_mode(ks, advertising, in i40e_phy_type_to_ethtool() 510 ethtool_link_ksettings_add_link_mode(ks, advertising, in i40e_phy_type_to_ethtool() 517 ethtool_link_ksettings_add_link_mode(ks, advertising, in i40e_phy_type_to_ethtool() 524 ethtool_link_ksettings_add_link_mode(ks, advertising, in i40e_phy_type_to_ethtool() 537 ethtool_link_ksettings_add_link_mode(ks, advertising, in i40e_phy_type_to_ethtool() 544 ethtool_link_ksettings_add_link_mode(ks, advertising, in i40e_phy_type_to_ethtool() 551 ethtool_link_ksettings_add_link_mode(ks, advertising, in i40e_phy_type_to_ethtool() [all …]
|
/Linux-v5.10/drivers/s390/net/ |
D | qeth_ethtool.c | 331 ethtool_link_ksettings_zero_link_mode(cmd, advertising); in qeth_set_cmd_adv_sup() 335 ethtool_link_ksettings_add_link_mode(cmd, advertising, Autoneg); in qeth_set_cmd_adv_sup() 340 ethtool_link_ksettings_add_link_mode(cmd, advertising, TP); in qeth_set_cmd_adv_sup() 344 ethtool_link_ksettings_add_link_mode(cmd, advertising, FIBRE); in qeth_set_cmd_adv_sup() 348 ethtool_link_ksettings_add_link_mode(cmd, advertising, TP); in qeth_set_cmd_adv_sup() 357 ethtool_link_ksettings_add_link_mode(cmd, advertising, in qeth_set_cmd_adv_sup() 363 ethtool_link_ksettings_add_link_mode(cmd, advertising, in qeth_set_cmd_adv_sup() 369 ethtool_link_ksettings_add_link_mode(cmd, advertising, in qeth_set_cmd_adv_sup() 373 ethtool_link_ksettings_add_link_mode(cmd, advertising, in qeth_set_cmd_adv_sup() 379 ethtool_link_ksettings_add_link_mode(cmd, advertising, in qeth_set_cmd_adv_sup() [all …]
|
/Linux-v5.10/drivers/net/ethernet/oki-semi/pch_gbe/ |
D | pch_gbe_ethtool.c | 76 u32 supported, advertising; in pch_gbe_get_link_ksettings() local 82 ethtool_convert_link_mode_to_legacy_u32(&advertising, in pch_gbe_get_link_ksettings() 83 ecmd->link_modes.advertising); in pch_gbe_get_link_ksettings() 86 advertising &= ~(ADVERTISED_TP | ADVERTISED_1000baseT_Half); in pch_gbe_get_link_ksettings() 90 ethtool_convert_legacy_u32_to_link_mode(ecmd->link_modes.advertising, in pch_gbe_get_link_ksettings() 91 advertising); in pch_gbe_get_link_ksettings() 114 u32 advertising; in pch_gbe_set_link_ksettings() local 136 &advertising, copy_ecmd.link_modes.advertising); in pch_gbe_set_link_ksettings() 137 hw->phy.autoneg_advertised = advertising; in pch_gbe_set_link_ksettings()
|
/Linux-v5.10/drivers/net/ethernet/sfc/falcon/ |
D | mdio_10g.c | 236 u32 prev_advertising, advertising; in ef4_mdio_set_link_ksettings() local 241 ethtool_convert_link_mode_to_legacy_u32(&advertising, in ef4_mdio_set_link_ksettings() 242 cmd->link_modes.advertising); in ef4_mdio_set_link_ksettings() 244 prev.link_modes.advertising); in ef4_mdio_set_link_ksettings() 248 if (advertising == prev_advertising && in ef4_mdio_set_link_ksettings() 261 (advertising | SUPPORTED_Autoneg) & ~prev_supported) in ef4_mdio_set_link_ksettings() 264 ef4_link_set_advertising(efx, advertising | ADVERTISED_Autoneg); in ef4_mdio_set_link_ksettings()
|
/Linux-v5.10/drivers/net/pcs/ |
D | pcs-lynx.c | 112 const unsigned long *advertising) in lynx_pcs_config_sgmii() argument 137 advertising); in lynx_pcs_config_sgmii() 141 const unsigned long *advertising) in lynx_pcs_config_usxgmii() argument 160 const unsigned long *advertising, in lynx_pcs_config() argument 168 return lynx_pcs_config_sgmii(lynx->mdio, mode, advertising); in lynx_pcs_config() 177 return lynx_pcs_config_usxgmii(lynx->mdio, mode, advertising); in lynx_pcs_config()
|
/Linux-v5.10/net/ethtool/ |
D | linkmodes.c | 68 ret = ethnl_bitset_size(ksettings->link_modes.advertising, in linkmodes_reply_size() 107 ksettings->link_modes.advertising, in linkmodes_fill_reply() 288 unsigned long *advertising = ksettings->link_modes.advertising; in ethnl_auto_linkmodes() local 296 bitmap_copy(old_adv, advertising, __ETHTOOL_LINK_MODE_MASK_NBITS); in ethnl_auto_linkmodes() 306 set_bit(i, advertising); in ethnl_auto_linkmodes() 308 clear_bit(i, advertising); in ethnl_auto_linkmodes() 311 return !bitmap_equal(old_adv, advertising, in ethnl_auto_linkmodes() 360 ret = ethnl_update_bitset(ksettings->link_modes.advertising, in ethnl_update_linkmodes()
|
/Linux-v5.10/drivers/net/ethernet/silan/ |
D | sc92031.c | 1126 u32 supported, advertising; in sc92031_ethtool_get_link_ksettings() local 1142 advertising = ADVERTISED_TP | ADVERTISED_MII; in sc92031_ethtool_get_link_ksettings() 1146 advertising |= ADVERTISED_Autoneg; in sc92031_ethtool_get_link_ksettings() 1149 advertising |= ADVERTISED_10baseT_Half; in sc92031_ethtool_get_link_ksettings() 1153 advertising |= ADVERTISED_10baseT_Full; in sc92031_ethtool_get_link_ksettings() 1156 advertising |= ADVERTISED_100baseT_Half; in sc92031_ethtool_get_link_ksettings() 1160 advertising |= ADVERTISED_100baseT_Full; in sc92031_ethtool_get_link_ksettings() 1163 advertising |= ADVERTISED_Autoneg; in sc92031_ethtool_get_link_ksettings() 1174 ethtool_convert_legacy_u32_to_link_mode(cmd->link_modes.advertising, in sc92031_ethtool_get_link_ksettings() 1175 advertising); in sc92031_ethtool_get_link_ksettings() [all …]
|
/Linux-v5.10/drivers/net/ethernet/ibm/ehea/ |
D | ehea_ethtool.c | 24 u32 supported, advertising; in ehea_get_link_ksettings() local 61 advertising = (ADVERTISED_10000baseT_Full | ADVERTISED_FIBRE); in ehea_get_link_ksettings() 68 advertising = (ADVERTISED_1000baseT_Full | ADVERTISED_Autoneg in ehea_get_link_ksettings() 78 ethtool_convert_legacy_u32_to_link_mode(cmd->link_modes.advertising, in ehea_get_link_ksettings() 79 advertising); in ehea_get_link_ksettings()
|
/Linux-v5.10/drivers/net/ethernet/natsemi/ |
D | natsemi.c | 590 u16 advertising; member 762 np->advertising= mdio_read(dev, MII_ADVERTISE); in natsemi_init_media() 764 if ((np->advertising & ADVERTISE_ALL) != ADVERTISE_ALL && in natsemi_init_media() 771 (np->advertising & in natsemi_init_media() 774 (np->advertising & in natsemi_init_media() 782 np->advertising); in natsemi_init_media() 1159 np->advertising != mdio_read(dev, MII_ADVERTISE)) in init_phy_fixup() 1163 mdio_write(dev, MII_ADVERTISE, np->advertising); in init_phy_fixup() 1684 np->advertising & mdio_read(dev, MII_LPA)); in check_link() 2410 np->advertising, lpa); in netdev_error() [all …]
|
/Linux-v5.10/drivers/net/ethernet/intel/ice/ |
D | ice_ethtool.c | 1473 ethtool_link_ksettings_add_link_mode(ks, advertising,\ 1545 ethtool_link_ksettings_zero_link_mode(ks, advertising); in ice_phy_type_to_ethtool() 1815 ethtool_link_ksettings_add_link_mode(ks, advertising, in ice_phy_type_to_ethtool() 1824 ethtool_link_ksettings_add_link_mode(ks, advertising, in ice_phy_type_to_ethtool() 1833 ethtool_link_ksettings_add_link_mode(ks, advertising, in ice_phy_type_to_ethtool() 1966 ethtool_link_ksettings_zero_link_mode(ks, advertising); in ice_get_link_ksettings() 1988 ethtool_link_ksettings_add_link_mode(ks, advertising, TP); in ice_get_link_ksettings() 1994 ethtool_link_ksettings_add_link_mode(ks, advertising, Autoneg); in ice_get_link_ksettings() 1995 ethtool_link_ksettings_add_link_mode(ks, advertising, in ice_get_link_ksettings() 2001 ethtool_link_ksettings_add_link_mode(ks, advertising, FIBRE); in ice_get_link_ksettings() [all …]
|
/Linux-v5.10/drivers/net/ethernet/qlogic/netxen/ |
D | netxen_nic_ethtool.c | 88 u32 supported, advertising; in netxen_nic_get_link_ksettings() local 99 advertising = (ADVERTISED_100baseT_Half | in netxen_nic_get_link_ksettings() 116 advertising = ADVERTISED_1000baseT_Full; in netxen_nic_get_link_ksettings() 119 advertising = ADVERTISED_10000baseT_Full; in netxen_nic_get_link_ksettings() 155 advertising |= ADVERTISED_Autoneg; in netxen_nic_get_link_ksettings() 162 advertising |= ADVERTISED_TP; in netxen_nic_get_link_ksettings() 174 advertising |= ADVERTISED_MII; in netxen_nic_get_link_ksettings() 181 advertising |= ADVERTISED_TP; in netxen_nic_get_link_ksettings() 189 advertising |= ADVERTISED_FIBRE; in netxen_nic_get_link_ksettings() 197 advertising |= in netxen_nic_get_link_ksettings() [all …]
|
/Linux-v5.10/drivers/net/ethernet/broadcom/bnx2x/ |
D | bnx2x_ethtool.c | 225 u32 supported, advertising; in bnx2x_get_vf_link_ksettings() local 229 ethtool_convert_link_mode_to_legacy_u32(&advertising, in bnx2x_get_vf_link_ksettings() 230 cmd->link_modes.advertising); in bnx2x_get_vf_link_ksettings() 253 cmd->base.cmd, supported, advertising, in bnx2x_get_vf_link_ksettings() 267 u32 supported, advertising, lp_advertising; in bnx2x_get_link_ksettings() local 276 advertising = bp->port.advertising[cfg_idx]; in bnx2x_get_link_ksettings() 280 advertising &= ~(ADVERTISED_10000baseT_Full); in bnx2x_get_link_ksettings() 351 ethtool_convert_legacy_u32_to_link_mode(cmd->link_modes.advertising, in bnx2x_get_link_ksettings() 352 advertising); in bnx2x_get_link_ksettings() 360 cmd->base.cmd, supported, advertising, in bnx2x_get_link_ksettings() [all …]
|
/Linux-v5.10/drivers/net/ethernet/intel/ixgbe/ |
D | ixgbe_ethtool.c | 184 ethtool_link_ksettings_add_link_mode(cmd, advertising, in ixgbe_set_advertising_10gtypes() 195 (cmd, advertising, 10000baseKX4_Full); in ixgbe_set_advertising_10gtypes() 202 (cmd, advertising, 10000baseKR_Full); in ixgbe_set_advertising_10gtypes() 206 (cmd, advertising, 10000baseKX4_Full); in ixgbe_set_advertising_10gtypes() 208 (cmd, advertising, 10000baseKR_Full); in ixgbe_set_advertising_10gtypes() 222 ethtool_link_ksettings_zero_link_mode(cmd, advertising); in ixgbe_get_link_ksettings() 243 ethtool_link_ksettings_add_link_mode(cmd, advertising, in ixgbe_get_link_ksettings() 248 ethtool_link_ksettings_add_link_mode(cmd, advertising, in ixgbe_get_link_ksettings() 255 ethtool_link_ksettings_add_link_mode(cmd, advertising, in ixgbe_get_link_ksettings() 261 ethtool_link_ksettings_add_link_mode(cmd, advertising, in ixgbe_get_link_ksettings() [all …]
|
/Linux-v5.10/drivers/net/ethernet/chelsio/cxgb/ |
D | cxgb2.c | 571 u32 supported, advertising; in get_link_ksettings() local 574 advertising = p->link_config.advertising; in get_link_ksettings() 590 ethtool_convert_legacy_u32_to_link_mode(cmd->link_modes.advertising, in get_link_ksettings() 591 advertising); in get_link_ksettings() 637 u32 advertising; in set_link_ksettings() local 639 ethtool_convert_link_mode_to_legacy_u32(&advertising, in set_link_ksettings() 640 cmd->link_modes.advertising); in set_link_ksettings() 653 lc->advertising = 0; in set_link_ksettings() 655 advertising &= ADVERTISED_MASK; in set_link_ksettings() 656 if (advertising & (advertising - 1)) in set_link_ksettings() [all …]
|
/Linux-v5.10/drivers/net/ethernet/atheros/atl1c/ |
D | atl1c_ethtool.c | 20 u32 supported, advertising; in atl1c_get_link_ksettings() local 31 advertising = ADVERTISED_TP; in atl1c_get_link_ksettings() 33 advertising |= hw->autoneg_advertised; in atl1c_get_link_ksettings() 53 ethtool_convert_legacy_u32_to_link_mode(cmd->link_modes.advertising, in atl1c_get_link_ksettings() 54 advertising); in atl1c_get_link_ksettings()
|
/Linux-v5.10/drivers/net/ethernet/toshiba/ |
D | spider_net_ethtool.c | 47 ethtool_link_ksettings_zero_link_mode(cmd, advertising); in spider_net_ethtool_get_link_ksettings() 48 ethtool_link_ksettings_add_link_mode(cmd, advertising, 1000baseT_Full); in spider_net_ethtool_get_link_ksettings() 49 ethtool_link_ksettings_add_link_mode(cmd, advertising, FIBRE); in spider_net_ethtool_get_link_ksettings()
|