/linux-6.12.1/include/linux/ |
D | mii.h | 20 int advertising; member 137 * @advertising: the linkmode advertisement settings 143 static inline u32 linkmode_adv_to_mii_adv_t(const 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() 212 * @advertising: the linkmode advertisement settings [all …]
|
D | mdio.h | 297 * @advertising: the linkmode advertisement settings 303 static inline u32 linkmode_adv_to_mii_10gbt_adv_t(unsigned long *advertising) in linkmode_adv_to_mii_10gbt_adv_t() argument 308 advertising)) in linkmode_adv_to_mii_10gbt_adv_t() 311 advertising)) in linkmode_adv_to_mii_10gbt_adv_t() 314 advertising)) in linkmode_adv_to_mii_10gbt_adv_t() 322 * @advertising: target the linkmode advertisement settings 326 * to linkmode advertisement settings. Other bits in advertising aren't changed. 328 static inline void mii_10gbt_stat_mod_linkmode_lpa_t(unsigned long *advertising, in mii_10gbt_stat_mod_linkmode_lpa_t() argument 332 advertising, lpa & MDIO_AN_10GBT_STAT_LP2_5G); in mii_10gbt_stat_mod_linkmode_lpa_t() 334 advertising, lpa & MDIO_AN_10GBT_STAT_LP5G); in mii_10gbt_stat_mod_linkmode_lpa_t() [all …]
|
D | phylink.h | 103 * @advertising: ethtool bitmask containing advertised link modes 118 __ETHTOOL_DECLARE_LINK_MODE_MASK(advertising); 281 * @state->advertising may be used, but is not required. 289 * Valid state members: interface, advertising. 305 * according to the @state->an_enabled and @state->advertising 316 * Valid state members: interface, an_enabled, pause, advertising. 447 const unsigned long *advertising, 462 * Validate the interface mode, and advertising's autoneg bit, removing any 464 * mask. Phylink will propagate the changes to the advertising mask. See the 505 * @advertising: adertisement ethtool link mode mask [all …]
|
/linux-6.12.1/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.12.1/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.12.1/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.12.1/drivers/s390/net/ |
D | qeth_ethtool.c | 326 /* Helper function to fill 'advertising' and 'supported' which are the same. */ 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() [all …]
|
/linux-6.12.1/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.12.1/drivers/net/phy/ |
D | phylink.c | 652 linkmode_and(state->advertising, state->advertising, mask); in phylink_validate_mask_caps() 690 /* Ensure the advertising mask is a subset of the in phylink_validate_mac_and_pcs() 693 linkmode_and(state->advertising, state->advertising, in phylink_validate_mac_and_pcs() 736 tmp_state.advertising); in phylink_validate_one() 754 linkmode_copy(state->advertising, all_adv); in phylink_validate_mask() 848 linkmode_copy(pl->link_config.advertising, pl->supported); in phylink_parse_fixedlink() 877 linkmode_and(pl->link_config.advertising, pl->link_config.advertising, in phylink_parse_fixedlink() 951 linkmode_copy(pl->link_config.advertising, pl->supported); in phylink_parse_mode() 968 state->advertising)) in phylink_apply_manual_flow() 981 linkmode_resolve_pause(state->advertising, in phylink_resolve_an_pause() [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() 391 mii_adv_mod_linkmode_adv_t(phydev->advertising, in phy_mii_ioctl() 396 mii_ctrl1000_mod_linkmode_adv_t(phydev->advertising, in phy_mii_ioctl() 666 phydev->advertising)) { in plca_check_valid() 1080 __ETHTOOL_DECLARE_LINK_MODE_MASK(advertising); in phy_ethtool_ksettings_set() 1088 linkmode_copy(advertising, cmd->link_modes.advertising); in phy_ethtool_ksettings_set() 1091 linkmode_and(advertising, advertising, phydev->supported); in phy_ethtool_ksettings_set() 1098 (linkmode_empty(advertising) || in phy_ethtool_ksettings_set() [all …]
|
/linux-6.12.1/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.12.1/drivers/net/ethernet/intel/i40e/ |
D | i40e_ethtool.c | 497 ethtool_link_ksettings_zero_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() 508 ethtool_link_ksettings_add_link_mode(ks, advertising, in i40e_phy_type_to_ethtool() 520 ethtool_link_ksettings_add_link_mode(ks, advertising, in i40e_phy_type_to_ethtool() 527 ethtool_link_ksettings_add_link_mode(ks, advertising, in i40e_phy_type_to_ethtool() 534 ethtool_link_ksettings_add_link_mode(ks, advertising, in i40e_phy_type_to_ethtool() 541 ethtool_link_ksettings_add_link_mode(ks, advertising, in i40e_phy_type_to_ethtool() 554 ethtool_link_ksettings_add_link_mode(ks, advertising, in i40e_phy_type_to_ethtool() 561 ethtool_link_ksettings_add_link_mode(ks, advertising, in i40e_phy_type_to_ethtool() 568 ethtool_link_ksettings_add_link_mode(ks, advertising, in i40e_phy_type_to_ethtool() [all …]
|
/linux-6.12.1/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() 270 * ef4_mdio_an_reconfigure - Push advertising flags and restart autonegotiation
|
/linux-6.12.1/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.12.1/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.12.1/drivers/net/ethernet/dec/tulip/ |
D | media.c | 309 tp->advertising[phy_num] = tmp_info | 1; in tulip_select_media() 312 tp->mii_advertise = tp->advertising[phy_num]; in tulip_select_media() 314 netdev_dbg(dev, " Advertising %04x on MII %d\n", in tulip_select_media() 419 negotiated = lpa & tp->advertising[0]; in tulip_check_duplex() 470 /* if not advertising at all, gen an in tulip_find_mii() 471 * advertising value from the capability in tulip_find_mii() 480 tp->advertising[phy_idx] = in tulip_find_mii() 482 } else if (tp->advertising[phy_idx]) { in tulip_find_mii() 483 to_advert = tp->advertising[phy_idx]; in tulip_find_mii() 485 tp->advertising[phy_idx] = in tulip_find_mii() [all …]
|
/linux-6.12.1/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.12.1/Documentation/devicetree/bindings/net/ |
D | ethernet-phy.yaml | 129 broken and request the ethernet to stop advertising it. 135 broken and request the ethernet to stop advertising it. 141 broken and request the ethernet to stop advertising it. 147 broken and request the ethernet to stop advertising it. 153 broken and request the ethernet to stop advertising it. 159 broken and request the ethernet to stop advertising it.
|
/linux-6.12.1/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.12.1/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.12.1/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.12.1/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() 250 " supported 0x%x advertising 0x%x speed %u\n" 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() [all …]
|
/linux-6.12.1/drivers/net/pcs/ |
D | pcs-lynx.c | 116 const unsigned long *advertising, in lynx_pcs_config_giga() argument 147 return phylink_mii_c22_pcs_config(pcs, interface, advertising, in lynx_pcs_config_giga() 152 const unsigned long *advertising, in lynx_pcs_config_usxgmii() argument 172 const unsigned long *advertising, bool permit) in lynx_pcs_config() argument 180 return lynx_pcs_config_giga(lynx->mdio, ifmode, advertising, in lynx_pcs_config() 190 return lynx_pcs_config_usxgmii(lynx->mdio, advertising, in lynx_pcs_config()
|
/linux-6.12.1/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 …]
|