/linux-6.6.21/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 | 309 static inline u32 linkmode_adv_to_mii_10gbt_adv_t(unsigned long *advertising) in linkmode_adv_to_mii_10gbt_adv_t() argument 314 advertising)) in linkmode_adv_to_mii_10gbt_adv_t() 317 advertising)) in linkmode_adv_to_mii_10gbt_adv_t() 320 advertising)) in linkmode_adv_to_mii_10gbt_adv_t() 334 static inline void mii_10gbt_stat_mod_linkmode_lpa_t(unsigned long *advertising, in mii_10gbt_stat_mod_linkmode_lpa_t() argument 338 advertising, lpa & MDIO_AN_10GBT_STAT_LP2_5G); in mii_10gbt_stat_mod_linkmode_lpa_t() 340 advertising, lpa & MDIO_AN_10GBT_STAT_LP5G); in mii_10gbt_stat_mod_linkmode_lpa_t() 342 advertising, lpa & MDIO_AN_10GBT_STAT_LP10G); in mii_10gbt_stat_mod_linkmode_lpa_t() 354 static inline void mii_t1_adv_l_mod_linkmode_t(unsigned long *advertising, u32 lpa) in mii_t1_adv_l_mod_linkmode_t() argument 356 linkmode_mod_bit(ETHTOOL_LINK_MODE_Pause_BIT, advertising, in mii_t1_adv_l_mod_linkmode_t() [all …]
|
D | phylink.h | 122 const unsigned long *advertising) in phylink_pcs_neg_mode() argument 153 advertising)) in phylink_pcs_neg_mode() 184 __ETHTOOL_DECLARE_LINK_MODE_MASK(advertising); 524 const unsigned long *advertising, 606 phy_interface_t interface, const unsigned long *advertising, 733 const unsigned long *advertising); 736 const unsigned long *advertising,
|
/linux-6.6.21/drivers/net/ethernet/marvell/octeon_ep/ |
D | octep_ethtool.c | 287 ethtool_link_ksettings_zero_link_mode(cmd, advertising); in octep_get_link_ksettings() 296 OCTEP_SET_ETHTOOL_LINK_MODES_BITMAP(advertised_modes, cmd, advertising); in octep_get_link_ksettings() 302 ethtool_link_ksettings_add_link_mode(cmd, advertising, Autoneg); in octep_get_link_ksettings() 315 ethtool_link_ksettings_add_link_mode(cmd, advertising, Pause); in octep_get_link_ksettings() 320 ethtool_link_ksettings_add_link_mode(cmd, advertising, FIBRE); in octep_get_link_ksettings() 358 if (!bitmap_subset(cmd->link_modes.advertising, in octep_set_link_ksettings() 363 if (ethtool_link_ksettings_test_link_mode(cmd, advertising, in octep_set_link_ksettings() 366 if (ethtool_link_ksettings_test_link_mode(cmd, advertising, in octep_set_link_ksettings() 369 if (ethtool_link_ksettings_test_link_mode(cmd, advertising, in octep_set_link_ksettings() 372 if (ethtool_link_ksettings_test_link_mode(cmd, advertising, in octep_set_link_ksettings() [all …]
|
/linux-6.6.21/drivers/net/ |
D | mii.c | 77 ecmd->advertising = ADVERTISED_TP | ADVERTISED_MII; in mii_ethtool_gset() 86 ecmd->advertising |= mii_get_an(mii, MII_ADVERTISE); in mii_ethtool_gset() 88 ecmd->advertising |= in mii_ethtool_gset() 92 ecmd->advertising |= ADVERTISED_Autoneg; 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 163 advertising = ADVERTISED_TP | ADVERTISED_MII; in mii_ethtool_get_link_ksettings() 172 advertising |= mii_get_an(mii, MII_ADVERTISE); in mii_ethtool_get_link_ksettings() 174 advertising |= mii_ctrl1000_to_ethtool_adv_t(ctrl1000); in mii_ethtool_get_link_ksettings() 177 advertising |= ADVERTISED_Autoneg; 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-6.6.21/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() 173 ethtool_convert_legacy_u32_to_link_mode(cmd->link_modes.advertising, in alx_get_link_ksettings() 174 advertising); in alx_get_link_ksettings() 185 u32 advertising; in alx_set_link_ksettings() local 188 ethtool_convert_link_mode_to_legacy_u32(&advertising, in alx_set_link_ksettings() [all …]
|
/linux-6.6.21/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-6.6.21/drivers/s390/net/ |
D | qeth_ethtool.c | 334 ethtool_link_ksettings_zero_link_mode(cmd, advertising); in qeth_set_ethtool_link_modes() 338 ethtool_link_ksettings_add_link_mode(cmd, advertising, Autoneg); in qeth_set_ethtool_link_modes() 343 ethtool_link_ksettings_add_link_mode(cmd, advertising, TP); in qeth_set_ethtool_link_modes() 349 ethtool_link_ksettings_add_link_mode(cmd, advertising, in qeth_set_ethtool_link_modes() 355 ethtool_link_ksettings_add_link_mode(cmd, advertising, in qeth_set_ethtool_link_modes() 359 ethtool_link_ksettings_add_link_mode(cmd, advertising, in qeth_set_ethtool_link_modes() 365 ethtool_link_ksettings_add_link_mode(cmd, advertising, in qeth_set_ethtool_link_modes() 369 ethtool_link_ksettings_add_link_mode(cmd, advertising, in qeth_set_ethtool_link_modes() 375 ethtool_link_ksettings_add_link_mode(cmd, advertising, in qeth_set_ethtool_link_modes() 379 ethtool_link_ksettings_add_link_mode(cmd, advertising, in qeth_set_ethtool_link_modes() [all …]
|
/linux-6.6.21/drivers/net/phy/ |
D | phylink.c | 635 linkmode_and(state->advertising, state->advertising, mask); in phylink_validate_mask_caps() 693 linkmode_and(state->advertising, state->advertising, in phylink_validate_mac_and_pcs() 725 linkmode_or(all_adv, all_adv, t.advertising); in phylink_validate_mask() 731 linkmode_copy(state->advertising, all_adv); in phylink_validate_mask() 824 linkmode_copy(pl->link_config.advertising, pl->supported); in phylink_parse_fixedlink() 853 linkmode_and(pl->link_config.advertising, pl->link_config.advertising, in phylink_parse_fixedlink() 982 linkmode_copy(pl->link_config.advertising, pl->supported); in phylink_parse_mode() 999 state->advertising)) in phylink_apply_manual_flow() 1012 linkmode_resolve_pause(state->advertising, in phylink_resolve_an_pause() 1064 state->advertising, permit_pause_to_mac); in phylink_pcs_config() [all …]
|
D | phy.c | 94 phydev->advertising); in phy_pause_str() 96 phydev->advertising); in phy_pause_str() 293 linkmode_copy(cmd->link_modes.advertising, phydev->advertising); in phy_ethtool_ksettings_get() 382 mii_adv_mod_linkmode_adv_t(phydev->advertising, in phy_mii_ioctl() 387 mii_ctrl1000_mod_linkmode_adv_t(phydev->advertising, in phy_mii_ioctl() 641 phydev->advertising)) { in plca_check_valid() 1046 __ETHTOOL_DECLARE_LINK_MODE_MASK(advertising); in phy_ethtool_ksettings_set() 1054 linkmode_copy(advertising, cmd->link_modes.advertising); in phy_ethtool_ksettings_set() 1057 linkmode_and(advertising, advertising, phydev->supported); in phy_ethtool_ksettings_set() 1063 if (autoneg == AUTONEG_ENABLE && linkmode_empty(advertising)) in phy_ethtool_ksettings_set() [all …]
|
/linux-6.6.21/drivers/net/ethernet/intel/i40e/ |
D | i40e_ethtool.c | 495 ethtool_link_ksettings_zero_link_mode(ks, advertising); in i40e_phy_type_to_ethtool() 501 ethtool_link_ksettings_add_link_mode(ks, advertising, in i40e_phy_type_to_ethtool() 506 ethtool_link_ksettings_add_link_mode(ks, advertising, in i40e_phy_type_to_ethtool() 518 ethtool_link_ksettings_add_link_mode(ks, advertising, in i40e_phy_type_to_ethtool() 525 ethtool_link_ksettings_add_link_mode(ks, advertising, in i40e_phy_type_to_ethtool() 532 ethtool_link_ksettings_add_link_mode(ks, advertising, in i40e_phy_type_to_ethtool() 539 ethtool_link_ksettings_add_link_mode(ks, advertising, in i40e_phy_type_to_ethtool() 552 ethtool_link_ksettings_add_link_mode(ks, advertising, in i40e_phy_type_to_ethtool() 559 ethtool_link_ksettings_add_link_mode(ks, advertising, in i40e_phy_type_to_ethtool() 566 ethtool_link_ksettings_add_link_mode(ks, advertising, in i40e_phy_type_to_ethtool() [all …]
|
/linux-6.6.21/net/ethtool/ |
D | linkmodes.c | 75 ret = ethnl_bitset_size(ksettings->link_modes.advertising, in linkmodes_reply_size() 114 ksettings->link_modes.advertising, in linkmodes_fill_reply() 176 unsigned long *advertising = ksettings->link_modes.advertising; in ethnl_auto_linkmodes() local 181 bitmap_copy(old_adv, advertising, __ETHTOOL_LINK_MODE_MASK_NBITS); in ethnl_auto_linkmodes() 192 set_bit(i, advertising); in ethnl_auto_linkmodes() 194 clear_bit(i, advertising); in ethnl_auto_linkmodes() 197 return !bitmap_equal(old_adv, advertising, in ethnl_auto_linkmodes() 281 ret = ethnl_update_bitset(ksettings->link_modes.advertising, in ethnl_update_linkmodes()
|
/linux-6.6.21/drivers/net/ethernet/oki-semi/pch_gbe/ |
D | pch_gbe_ethtool.c | 78 u32 supported, advertising; in pch_gbe_get_link_ksettings() local 84 ethtool_convert_link_mode_to_legacy_u32(&advertising, in pch_gbe_get_link_ksettings() 85 ecmd->link_modes.advertising); in pch_gbe_get_link_ksettings() 88 advertising &= ~(ADVERTISED_TP | ADVERTISED_1000baseT_Half); in pch_gbe_get_link_ksettings() 92 ethtool_convert_legacy_u32_to_link_mode(ecmd->link_modes.advertising, in pch_gbe_get_link_ksettings() 93 advertising); in pch_gbe_get_link_ksettings() 116 u32 advertising; in pch_gbe_set_link_ksettings() local 138 &advertising, copy_ecmd.link_modes.advertising); in pch_gbe_set_link_ksettings() 139 hw->phy.autoneg_advertised = advertising; in pch_gbe_set_link_ksettings()
|
/linux-6.6.21/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-6.6.21/drivers/net/ethernet/fungible/funeth/ |
D | funeth_ethtool.c | 177 static void set_asym_pause(u64 advertising, struct ethtool_link_ksettings *ks) in set_asym_pause() argument 181 rx_pause = advertising & FUN_PORT_CAP_RX_PAUSE; in set_asym_pause() 182 tx_pause = advertising & FUN_PORT_CAP_TX_PAUSE; in set_asym_pause() 184 ethtool_link_ksettings_add_link_mode(ks, advertising, in set_asym_pause() 212 ethtool_link_ksettings_zero_link_mode(ks, advertising); in fun_get_link_ksettings() 234 ks->base.autoneg = (fp->advertising & FUN_PORT_CAP_AUTONEG) ? in fun_get_link_ksettings() 242 fun_link_modes_to_ethtool(fp->advertising, ks->link_modes.advertising); in fun_get_link_ksettings() 243 set_asym_pause(fp->advertising, ks); in fun_get_link_ksettings() 252 ethtool_link_ksettings_test_link_mode(ks, advertising, mode) in fun_advert_modes() 304 if (new_advert == fp->advertising) in fun_change_advert() [all …]
|
/linux-6.6.21/drivers/net/pcs/ |
D | pcs-lynx.c | 117 const unsigned long *advertising, in lynx_pcs_config_giga() argument 148 return phylink_mii_c22_pcs_config(pcs, interface, advertising, in lynx_pcs_config_giga() 153 const unsigned long *advertising, in lynx_pcs_config_usxgmii() argument 173 const unsigned long *advertising, bool permit) in lynx_pcs_config() argument 181 return lynx_pcs_config_giga(lynx->mdio, ifmode, advertising, in lynx_pcs_config() 191 return lynx_pcs_config_usxgmii(lynx->mdio, advertising, in lynx_pcs_config()
|
/linux-6.6.21/drivers/net/ethernet/microchip/sparx5/ |
D | sparx5_phylink.c | 96 const unsigned long *advertising, in sparx5_pcs_config() argument 110 if (phylink_test(advertising, Pause)) in sparx5_pcs_config() 112 if (phylink_test(advertising, Asym_Pause)) in sparx5_pcs_config() 115 if (phylink_test(advertising, FIBRE)) in sparx5_pcs_config()
|
/linux-6.6.21/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-6.6.21/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-6.6.21/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() 1156 np->advertising != mdio_read(dev, MII_ADVERTISE)) in init_phy_fixup() 1160 mdio_write(dev, MII_ADVERTISE, np->advertising); in init_phy_fixup() 1681 np->advertising & mdio_read(dev, MII_LPA)); in check_link() 2407 np->advertising, lpa); in netdev_error() [all …]
|
/linux-6.6.21/drivers/net/ethernet/intel/ice/ |
D | ice_ethtool.c | 1680 ks->link_modes.advertising); in ice_linkmode_set_bit() 1758 linkmode_zero(ks->link_modes.advertising); in ice_phy_type_to_ethtool() 1902 ethtool_link_ksettings_zero_link_mode(ks, advertising); in ice_get_link_ksettings() 1924 ethtool_link_ksettings_add_link_mode(ks, advertising, TP); in ice_get_link_ksettings() 1929 ethtool_link_ksettings_add_link_mode(ks, advertising, in ice_get_link_ksettings() 1935 ethtool_link_ksettings_add_link_mode(ks, advertising, FIBRE); in ice_get_link_ksettings() 1958 ethtool_link_ksettings_add_link_mode(ks, advertising, Pause); in ice_get_link_ksettings() 1959 ethtool_link_ksettings_add_link_mode(ks, advertising, in ice_get_link_ksettings() 1962 ethtool_link_ksettings_add_link_mode(ks, advertising, in ice_get_link_ksettings() 1965 ethtool_link_ksettings_add_link_mode(ks, advertising, Pause); in ice_get_link_ksettings() [all …]
|
/linux-6.6.21/drivers/net/ethernet/chelsio/cxgb/ |
D | cxgb2.c | 572 u32 supported, advertising; in get_link_ksettings() local 575 advertising = p->link_config.advertising; in get_link_ksettings() 591 ethtool_convert_legacy_u32_to_link_mode(cmd->link_modes.advertising, in get_link_ksettings() 592 advertising); in get_link_ksettings() 638 u32 advertising; in set_link_ksettings() local 640 ethtool_convert_link_mode_to_legacy_u32(&advertising, in set_link_ksettings() 641 cmd->link_modes.advertising); in set_link_ksettings() 654 lc->advertising = 0; in set_link_ksettings() 656 advertising &= ADVERTISED_MASK; in set_link_ksettings() 657 if (advertising & (advertising - 1)) in set_link_ksettings() [all …]
|
/linux-6.6.21/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-6.6.21/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 …]
|