/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() 172 if ((ecmd->advertising & (ADVERTISED_10baseT_Half | in mii_ethtool_sset() 187 tmp |= ethtool_adv_to_mii_adv_t(ecmd->advertising); in mii_ethtool_sset() 191 ethtool_adv_to_mii_ctrl1000_t(ecmd->advertising); in mii_ethtool_sset() 194 mii->advertising = tmp; in mii_ethtool_sset() 349 if ((!init_media) && (mii->advertising)) in mii_check_media() [all …]
|
D | mdio.c | 223 ecmd->advertising = ADVERTISED_TP; in mdio45_ethtool_gset_npage() 229 ecmd->advertising = 0; in mdio45_ethtool_gset_npage() 249 ecmd->advertising = ADVERTISED_Backplane; in mdio45_ethtool_gset_npage() 256 ecmd->advertising = ADVERTISED_FIBRE; in mdio45_ethtool_gset_npage() 266 ecmd->advertising |= in mdio45_ethtool_gset_npage() 289 modes = ecmd->advertising & ecmd->lp_advertising; in mdio45_ethtool_gset_npage() 292 modes = ecmd->advertising; in mdio45_ethtool_gset_npage()
|
/drivers/net/ethernet/atheros/alx/ |
D | ethtool.c | 141 ecmd->advertising = ADVERTISED_TP; in alx_get_settings() 143 ecmd->advertising |= hw->adv_cfg; in alx_get_settings() 156 ecmd->advertising |= ADVERTISED_Pause; in alx_get_settings() 159 ecmd->advertising |= ADVERTISED_Asym_Pause; in alx_get_settings() 161 ecmd->advertising |= ADVERTISED_Asym_Pause; in alx_get_settings() 180 if (ecmd->advertising & ~alx_get_supported_speeds(hw)) in alx_set_settings() 182 adv_cfg = ecmd->advertising | ADVERTISED_Autoneg; in alx_set_settings()
|
/drivers/net/ethernet/amd/xgbe/ |
D | xgbe-ethtool.c | 263 phydev->advertising |= ADVERTISED_Pause; in xgbe_set_pauseparam() 264 phydev->advertising |= ADVERTISED_Asym_Pause; in xgbe_set_pauseparam() 267 phydev->advertising &= ~ADVERTISED_Pause; in xgbe_set_pauseparam() 268 phydev->advertising &= ~ADVERTISED_Asym_Pause; in xgbe_set_pauseparam() 337 cmd->advertising &= phydev->supported; in xgbe_set_settings() 338 if ((cmd->autoneg == AUTONEG_ENABLE) && !cmd->advertising) in xgbe_set_settings() 345 phydev->advertising = cmd->advertising; in xgbe_set_settings() 348 phydev->advertising |= ADVERTISED_Autoneg; in xgbe_set_settings() 350 phydev->advertising &= ~ADVERTISED_Autoneg; in xgbe_set_settings()
|
/drivers/net/ethernet/atheros/atl1e/ |
D | atl1e_ethtool.c | 44 ecmd->advertising = ADVERTISED_TP; in atl1e_get_settings() 46 ecmd->advertising |= ADVERTISED_Autoneg; in atl1e_get_settings() 47 ecmd->advertising |= hw->autoneg_advertised; in atl1e_get_settings() 80 if ((ecmd->advertising&ADVERTISE_1000_FULL)) { in atl1e_set_settings() 83 ecmd->advertising & AT_ADV_MASK; in atl1e_set_settings() 88 } else if (ecmd->advertising&ADVERTISE_1000_HALF) { in atl1e_set_settings() 93 ecmd->advertising & AT_ADV_MASK; in atl1e_set_settings() 95 ecmd->advertising = hw->autoneg_advertised | in atl1e_set_settings()
|
/drivers/net/ethernet/natsemi/ |
D | natsemi.c | 590 u16 advertising; member 760 np->advertising= mdio_read(dev, MII_ADVERTISE); in natsemi_init_media() 762 if ((np->advertising & ADVERTISE_ALL) != ADVERTISE_ALL && in natsemi_init_media() 769 (np->advertising & in natsemi_init_media() 772 (np->advertising & in natsemi_init_media() 780 np->advertising); in natsemi_init_media() 1153 np->advertising != mdio_read(dev, MII_ADVERTISE)) in init_phy_fixup() 1157 mdio_write(dev, MII_ADVERTISE, np->advertising); in init_phy_fixup() 1680 np->advertising & mdio_read(dev, MII_LPA)); in check_link() 2395 np->advertising, lpa); in netdev_error() [all …]
|
/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() 424 negotiated = lpa & tp->advertising[0]; in tulip_check_duplex() 485 tp->advertising[phy_idx] = in tulip_find_mii() 487 } else if (tp->advertising[phy_idx]) { in tulip_find_mii() 488 to_advert = tp->advertising[phy_idx]; in tulip_find_mii() 490 tp->advertising[phy_idx] = in tulip_find_mii()
|
/drivers/net/ethernet/intel/i40e/ |
D | i40e_ethtool.c | 253 ecmd->advertising = ADVERTISED_40000baseSR4_Full | in i40e_get_settings() 260 ecmd->advertising = ADVERTISED_40000baseKR4_Full; in i40e_get_settings() 265 ecmd->advertising = ADVERTISED_10000baseKR_Full; in i40e_get_settings() 271 ecmd->advertising = ADVERTISED_10000baseT_Full | in i40e_get_settings() 285 ecmd->advertising = ADVERTISED_Autoneg | in i40e_get_settings() 291 ecmd->advertising = ADVERTISED_Autoneg | in i40e_get_settings() 305 ecmd->advertising = ADVERTISED_Autoneg | in i40e_get_settings() 311 ecmd->advertising = ADVERTISED_Autoneg | in i40e_get_settings() 326 ecmd->advertising = ADVERTISED_Autoneg | in i40e_get_settings() 339 ecmd->advertising = ADVERTISED_Autoneg | in i40e_get_settings() [all …]
|
/drivers/net/phy/ |
D | phy.c | 301 cmd->advertising &= phydev->supported; in phy_ethtool_sset() 307 if (cmd->autoneg == AUTONEG_ENABLE && cmd->advertising == 0) in phy_ethtool_sset() 322 phydev->advertising = cmd->advertising; in phy_ethtool_sset() 325 phydev->advertising |= ADVERTISED_Autoneg; in phy_ethtool_sset() 327 phydev->advertising &= ~ADVERTISED_Autoneg; in phy_ethtool_sset() 342 cmd->advertising = phydev->advertising; in phy_ethtool_gset() 411 phydev->advertising = mii_adv_to_ethtool_adv_t(val); in phy_mii_ioctl()
|
/drivers/net/ethernet/qlogic/netxen/ |
D | netxen_nic_ethtool.c | 115 ecmd->advertising = (ADVERTISED_100baseT_Half | in netxen_nic_get_settings() 132 ecmd->advertising = ADVERTISED_1000baseT_Full; in netxen_nic_get_settings() 135 ecmd->advertising = ADVERTISED_10000baseT_Full; in netxen_nic_get_settings() 173 ecmd->advertising |= ADVERTISED_Autoneg; in netxen_nic_get_settings() 179 ecmd->advertising |= ADVERTISED_TP; in netxen_nic_get_settings() 191 ecmd->advertising |= ADVERTISED_MII; in netxen_nic_get_settings() 198 ecmd->advertising |= ADVERTISED_TP; in netxen_nic_get_settings() 205 ecmd->advertising |= ADVERTISED_FIBRE; in netxen_nic_get_settings() 213 ecmd->advertising |= in netxen_nic_get_settings() 220 ecmd->advertising |= in netxen_nic_get_settings()
|
/drivers/net/ethernet/micrel/ |
D | ks8695net.c | 874 cmd->advertising = ADVERTISED_TP | ADVERTISED_MII; in ks8695_wan_get_settings() 882 cmd->advertising |= ADVERTISED_Autoneg; in ks8695_wan_get_settings() 884 cmd->advertising |= ADVERTISED_100baseT_Full; in ks8695_wan_get_settings() 886 cmd->advertising |= ADVERTISED_100baseT_Half; in ks8695_wan_get_settings() 888 cmd->advertising |= ADVERTISED_10baseT_Full; in ks8695_wan_get_settings() 890 cmd->advertising |= ADVERTISED_10baseT_Half; in ks8695_wan_get_settings() 892 cmd->advertising |= ADVERTISED_Pause; in ks8695_wan_get_settings() 936 if ((cmd->advertising & (ADVERTISED_10baseT_Half | in ks8695_wan_set_settings() 946 if (cmd->advertising & ADVERTISED_100baseT_Full) in ks8695_wan_set_settings() 948 if (cmd->advertising & ADVERTISED_100baseT_Half) in ks8695_wan_set_settings() [all …]
|
/drivers/net/ethernet/broadcom/bnx2x/ |
D | bnx2x_ethtool.c | 248 cmd->cmd, cmd->supported, cmd->advertising, in bnx2x_get_vf_settings() 265 cmd->advertising = bp->port.advertising[cfg_idx]; in bnx2x_get_settings() 269 cmd->advertising &= ~(ADVERTISED_10000baseT_Full); in bnx2x_get_settings() 332 cmd->cmd, cmd->supported, cmd->advertising, in bnx2x_get_settings() 343 u32 advertising, cfg_idx, old_multi_phy_config, new_multi_phy_config; in bnx2x_set_settings() local 353 cmd->cmd, cmd->supported, cmd->advertising, in bnx2x_set_settings() 461 if (cmd->advertising & ~an_supported_speed) { in bnx2x_set_settings() 469 bp->port.advertising[cfg_idx] = (ADVERTISED_Autoneg | in bnx2x_set_settings() 470 cmd->advertising); in bnx2x_set_settings() 471 if (cmd->advertising) { in bnx2x_set_settings() [all …]
|
/drivers/net/ethernet/sfc/ |
D | mdio_10g.c | 239 if (ecmd->advertising == prev.advertising && in efx_mdio_set_settings() 252 (ecmd->advertising | SUPPORTED_Autoneg) & ~prev.supported) in efx_mdio_set_settings() 255 efx_link_set_advertising(efx, ecmd->advertising | ADVERTISED_Autoneg); in efx_mdio_set_settings()
|
/drivers/net/ethernet/silan/ |
D | sc92031.c | 1149 cmd->advertising = ADVERTISED_TP | ADVERTISED_MII; in sc92031_ethtool_get_settings() 1153 cmd->advertising |= ADVERTISED_Autoneg; in sc92031_ethtool_get_settings() 1156 cmd->advertising |= ADVERTISED_10baseT_Half; in sc92031_ethtool_get_settings() 1160 cmd->advertising |= ADVERTISED_10baseT_Full; in sc92031_ethtool_get_settings() 1163 cmd->advertising |= ADVERTISED_100baseT_Half; in sc92031_ethtool_get_settings() 1167 cmd->advertising |= ADVERTISED_100baseT_Full; in sc92031_ethtool_get_settings() 1170 cmd->advertising |= ADVERTISED_Autoneg; in sc92031_ethtool_get_settings() 1206 if (!(cmd->advertising & (ADVERTISED_Autoneg in sc92031_ethtool_set_settings() 1216 if (cmd->advertising & ADVERTISED_Autoneg) in sc92031_ethtool_set_settings() 1218 if (cmd->advertising & ADVERTISED_100baseT_Full) in sc92031_ethtool_set_settings() [all …]
|
/drivers/net/ethernet/chelsio/cxgb/ |
D | cxgb2.c | 577 cmd->advertising = p->link_config.advertising; in get_settings() 648 lc->advertising = 0; in set_settings() 650 cmd->advertising &= ADVERTISED_MASK; in set_settings() 651 if (cmd->advertising & (cmd->advertising - 1)) in set_settings() 652 cmd->advertising = lc->supported; in set_settings() 653 cmd->advertising &= lc->supported; in set_settings() 654 if (!cmd->advertising) in set_settings() 658 lc->advertising = cmd->advertising | ADVERTISED_Autoneg; in set_settings()
|
D | subr.c | 628 lc->advertising &= ~(ADVERTISED_ASYM_PAUSE | ADVERTISED_PAUSE); in t1_link_start() 632 lc->advertising |= ADVERTISED_PAUSE; in t1_link_start() 634 lc->advertising |= ADVERTISED_ASYM_PAUSE; in t1_link_start() 636 lc->advertising |= ADVERTISED_PAUSE; in t1_link_start() 639 phy->ops->advertise(phy, lc->advertising); in t1_link_start() 1038 lc->advertising = lc->supported; in init_link_config() 1042 lc->advertising = 0; in init_link_config()
|
/drivers/net/ethernet/intel/ixgbe/ |
D | ixgbe_ethtool.c | 177 ecmd->advertising |= ADVERTISED_100baseT_Full; in ixgbe_get_settings() 179 ecmd->advertising |= ADVERTISED_10000baseT_Full; in ixgbe_get_settings() 181 ecmd->advertising |= ADVERTISED_1000baseT_Full; in ixgbe_get_settings() 185 ecmd->advertising |= ADVERTISED_10000baseT_Full; in ixgbe_get_settings() 187 ecmd->advertising |= ADVERTISED_1000baseT_Full; in ixgbe_get_settings() 189 ecmd->advertising |= ADVERTISED_100baseT_Full; in ixgbe_get_settings() 193 ecmd->advertising = ADVERTISED_10000baseT_Full; in ixgbe_get_settings() 199 ecmd->advertising |= ADVERTISED_Autoneg; in ixgbe_get_settings() 212 ecmd->advertising |= ADVERTISED_TP; in ixgbe_get_settings() 217 ecmd->advertising |= ADVERTISED_FIBRE; in ixgbe_get_settings() [all …]
|
/drivers/net/ethernet/apm/xgene/ |
D | xgene_enet_ethtool.c | 70 cmd->advertising = cmd->supported; in xgene_get_settings() 78 cmd->advertising = cmd->supported; in xgene_get_settings()
|
/drivers/net/ethernet/broadcom/ |
D | b44.c | 1851 cmd->advertising = 0; in b44_get_settings() 1853 cmd->advertising |= ADVERTISED_10baseT_Half; in b44_get_settings() 1855 cmd->advertising |= ADVERTISED_10baseT_Full; in b44_get_settings() 1857 cmd->advertising |= ADVERTISED_100baseT_Half; in b44_get_settings() 1859 cmd->advertising |= ADVERTISED_100baseT_Full; in b44_get_settings() 1860 cmd->advertising |= ADVERTISED_Pause | ADVERTISED_Asym_Pause; in b44_get_settings() 1872 cmd->advertising |= ADVERTISED_Autoneg; in b44_get_settings() 1905 if (cmd->advertising & in b44_set_settings() 1926 if (cmd->advertising == 0) { in b44_set_settings() 1932 if (cmd->advertising & ADVERTISED_10baseT_Half) in b44_set_settings() [all …]
|
D | bnx2.c | 1394 bp->advertising |= ADVERTISED_2500baseX_Full; in bnx2_test_and_enable_2g5() 1690 if (bp->advertising & ADVERTISED_10baseT_Half) in bnx2_setup_remote_phy() 1692 if (bp->advertising & ADVERTISED_10baseT_Full) in bnx2_setup_remote_phy() 1694 if (bp->advertising & ADVERTISED_100baseT_Half) in bnx2_setup_remote_phy() 1696 if (bp->advertising & ADVERTISED_100baseT_Full) in bnx2_setup_remote_phy() 1698 if (bp->advertising & ADVERTISED_1000baseT_Full) in bnx2_setup_remote_phy() 1700 if (bp->advertising & ADVERTISED_2500baseX_Full) in bnx2_setup_remote_phy() 1815 if (bp->advertising & ADVERTISED_1000baseT_Full) in bnx2_setup_serdes_phy() 1883 bp->advertising = ADVERTISED_Autoneg; in bnx2_set_default_remote_link() 1885 bp->advertising |= ADVERTISED_10baseT_Half; in bnx2_set_default_remote_link() [all …]
|
/drivers/net/ethernet/stmicro/stmmac/ |
D | stmmac_ethtool.c | 272 cmd->advertising |= ADVERTISED_Pause; in stmmac_ethtool_getsettings() 274 cmd->advertising |= ADVERTISED_Asym_Pause; in stmmac_ethtool_getsettings() 283 cmd->advertising |= ADVERTISED_Autoneg; in stmmac_ethtool_getsettings() 290 cmd->advertising |= (ADVERTISED_1000baseT_Full | in stmmac_ethtool_getsettings() 297 cmd->advertising |= (ADVERTISED_1000baseT_Half | in stmmac_ethtool_getsettings()
|
/drivers/net/ethernet/3com/ |
D | 3c574_cs.c | 199 u16 advertising, partner; /* NWay media advertisement */ member 416 lp->advertising = mdio_read(ioaddr, lp->phys, 4); in tc574_config() 419 lp->advertising &= ~0x02a0; in tc574_config() 420 mdio_write(ioaddr, lp->phys, 4, lp->advertising); in tc574_config() 650 mdio_write(ioaddr, lp->phys, 4, lp->advertising); in tc574_reset() 908 partner &= lp->advertising; in media_check()
|
/drivers/net/ethernet/ibm/ehea/ |
D | ehea_ethtool.c | 73 cmd->advertising = (ADVERTISED_10000baseT_Full | ADVERTISED_FIBRE); in ehea_get_settings() 80 cmd->advertising = (ADVERTISED_1000baseT_Full | ADVERTISED_Autoneg in ehea_get_settings()
|
/drivers/net/ethernet/emulex/benet/ |
D | be_ethtool.c | 630 ecmd->advertising = in be_get_settings() 638 ecmd->advertising |= ADVERTISED_Autoneg; in be_get_settings() 643 ecmd->advertising |= ADVERTISED_Pause; in be_get_settings() 665 adapter->phy.advertising = ecmd->advertising; in be_get_settings() 672 ecmd->advertising = adapter->phy.advertising; in be_get_settings()
|
/drivers/net/ethernet/qlogic/qlcnic/ |
D | qlcnic_ethtool.c | 305 ecmd->advertising = (ADVERTISED_100baseT_Half | in qlcnic_82xx_get_settings() 320 ecmd->advertising = ADVERTISED_1000baseT_Full; in qlcnic_82xx_get_settings() 323 ecmd->advertising = ADVERTISED_10000baseT_Full; in qlcnic_82xx_get_settings() 356 ecmd->advertising |= ADVERTISED_Autoneg; in qlcnic_82xx_get_settings() 361 ecmd->advertising |= ADVERTISED_TP; in qlcnic_82xx_get_settings() 369 ecmd->advertising |= ADVERTISED_MII; in qlcnic_82xx_get_settings() 376 ecmd->advertising |= ADVERTISED_TP; in qlcnic_82xx_get_settings() 382 ecmd->advertising |= ADVERTISED_FIBRE; in qlcnic_82xx_get_settings() 390 ecmd->advertising |= in qlcnic_82xx_get_settings() 398 ecmd->advertising |= in qlcnic_82xx_get_settings()
|