/linux-6.6.21/tools/testing/selftests/net/forwarding/ |
D | ethtool.sh | 61 ethtool_set $h1 speed $speed autoneg off 62 ethtool_set $h2 speed $speed autoneg off 72 ethtool -s $h2 autoneg on 73 ethtool -s $h1 autoneg on 86 ethtool_set $h1 speed $speed1 autoneg off 87 ethtool_set $h2 speed $speed2 autoneg off 96 ethtool -s $h2 autoneg on 97 ethtool -s $h1 autoneg on 109 ethtool_set $h1 speed $speed autoneg off 119 ethtool -s $h1 autoneg on [all …]
|
D | ethtool_extended_state.sh | 45 autoneg() function 75 ethtool_set $swp1 speed $speed1 autoneg off 76 ethtool_set $swp2 speed $speed2 autoneg off 88 ethtool -s $swp2 autoneg on 89 ethtool -s $swp1 autoneg on
|
/linux-6.6.21/tools/testing/selftests/drivers/net/mlxsw/ |
D | ethtool_lanes.sh | 56 local autoneg=$1; shift 61 if [[ $autoneg -eq 0 ]]; then 104 autoneg() function 159 ethtool_set $swp1 speed $max_speed lanes $lanes autoneg off 160 ethtool_set $swp2 speed $max_speed lanes $lanes autoneg off 178 ethtool -s $swp2 autoneg on 179 ethtool -s $swp1 autoneg on
|
/linux-6.6.21/drivers/net/ethernet/marvell/octeon_ep/ |
D | octep_ethtool.c | 298 if (link_info->autoneg) { in octep_get_link_ksettings() 299 if (link_info->autoneg & OCTEP_LINK_MODE_AUTONEG_SUPPORTED) in octep_get_link_ksettings() 301 if (link_info->autoneg & OCTEP_LINK_MODE_AUTONEG_ADVERTISED) { in octep_get_link_ksettings() 303 cmd->base.autoneg = AUTONEG_ENABLE; in octep_get_link_ksettings() 305 cmd->base.autoneg = AUTONEG_DISABLE; in octep_get_link_ksettings() 308 cmd->base.autoneg = AUTONEG_DISABLE; in octep_get_link_ksettings() 339 u8 autoneg = 0; in octep_set_link_ksettings() local 352 if (cmd->base.autoneg == AUTONEG_ENABLE) { in octep_set_link_ksettings() 353 if (!(link_info->autoneg & OCTEP_LINK_MODE_AUTONEG_SUPPORTED)) in octep_set_link_ksettings() 355 autoneg = 1; in octep_set_link_ksettings() [all …]
|
/linux-6.6.21/drivers/net/ethernet/oki-semi/pch_gbe/ |
D | pch_gbe_param.c | 324 hw->mac.autoneg = hw->mac.fc_autoneg = 1; in pch_gbe_check_copper_options() 336 hw->mac.autoneg = hw->mac.fc_autoneg = 1; in pch_gbe_check_copper_options() 347 hw->mac.autoneg = hw->mac.fc_autoneg = 1; in pch_gbe_check_copper_options() 359 hw->mac.autoneg = hw->mac.fc_autoneg = 1; in pch_gbe_check_copper_options() 367 hw->mac.autoneg = hw->mac.fc_autoneg = 0; in pch_gbe_check_copper_options() 374 hw->mac.autoneg = hw->mac.fc_autoneg = 0; in pch_gbe_check_copper_options() 384 hw->mac.autoneg = hw->mac.fc_autoneg = 1; in pch_gbe_check_copper_options() 393 hw->mac.autoneg = hw->mac.fc_autoneg = 0; in pch_gbe_check_copper_options() 401 hw->mac.autoneg = hw->mac.fc_autoneg = 0; in pch_gbe_check_copper_options() 418 hw->mac.autoneg = hw->mac.fc_autoneg = 1; in pch_gbe_check_copper_options()
|
/linux-6.6.21/drivers/net/ |
D | sungem_phy.c | 314 phy->autoneg = 1; in genmii_setup_aneg() 345 phy->autoneg = 0; in genmii_setup_forced() 382 if (phy->autoneg && !(status & BMSR_ANEGCOMPLETE)) in genmii_poll_link() 391 if (phy->autoneg) { in genmii_read_link() 470 phy->autoneg = 1; in bcm54xx_setup_aneg() 514 phy->autoneg = 0; in bcm54xx_setup_forced() 550 if (phy->autoneg) { in bcm54xx_read_link() 647 static int bcm5421_enable_fiber(struct mii_phy* phy, int autoneg) in bcm5421_enable_fiber() argument 654 if (!autoneg) { in bcm5421_enable_fiber() 660 phy->autoneg = autoneg; in bcm5421_enable_fiber() [all …]
|
D | mii.c | 93 ecmd->autoneg = AUTONEG_ENABLE; in mii_ethtool_gset() 118 ecmd->autoneg = AUTONEG_DISABLE; in mii_ethtool_gset() 178 cmd->base.autoneg = AUTONEG_ENABLE; in mii_ethtool_get_link_ksettings() 203 cmd->base.autoneg = AUTONEG_DISABLE; in mii_ethtool_get_link_ksettings() 252 if (ecmd->autoneg != AUTONEG_DISABLE && ecmd->autoneg != AUTONEG_ENABLE) in mii_ethtool_sset() 259 if (ecmd->autoneg == AUTONEG_ENABLE) { in mii_ethtool_sset() 343 if (cmd->base.autoneg != AUTONEG_DISABLE && in mii_ethtool_set_link_ksettings() 344 cmd->base.autoneg != AUTONEG_ENABLE) in mii_ethtool_set_link_ksettings() 351 if (cmd->base.autoneg == AUTONEG_ENABLE) { in mii_ethtool_set_link_ksettings()
|
D | mdio.c | 262 ecmd->autoneg = AUTONEG_ENABLE; in mdio45_ethtool_gset_npage() 268 ecmd->autoneg = AUTONEG_DISABLE; in mdio45_ethtool_gset_npage() 271 ecmd->autoneg = AUTONEG_DISABLE; in mdio45_ethtool_gset_npage() 274 if (ecmd->autoneg) { in mdio45_ethtool_gset_npage() 433 cmd->base.autoneg = AUTONEG_ENABLE; in mdio45_ethtool_ksettings_get_npage() 439 cmd->base.autoneg = AUTONEG_DISABLE; in mdio45_ethtool_ksettings_get_npage() 442 cmd->base.autoneg = AUTONEG_DISABLE; in mdio45_ethtool_ksettings_get_npage() 445 if (cmd->base.autoneg) { in mdio45_ethtool_ksettings_get_npage()
|
/linux-6.6.21/drivers/net/ethernet/intel/e1000/ |
D | e1000_param.c | 646 adapter->hw.autoneg = adapter->fc_autoneg = 1; in e1000_check_copper_options() 654 adapter->hw.autoneg = adapter->fc_autoneg = 1; in e1000_check_copper_options() 661 adapter->hw.autoneg = adapter->fc_autoneg = 1; in e1000_check_copper_options() 669 adapter->hw.autoneg = adapter->fc_autoneg = 1; in e1000_check_copper_options() 675 adapter->hw.autoneg = adapter->fc_autoneg = 0; in e1000_check_copper_options() 681 adapter->hw.autoneg = adapter->fc_autoneg = 0; in e1000_check_copper_options() 688 adapter->hw.autoneg = adapter->fc_autoneg = 1; in e1000_check_copper_options() 694 adapter->hw.autoneg = adapter->fc_autoneg = 0; in e1000_check_copper_options() 700 adapter->hw.autoneg = adapter->fc_autoneg = 0; in e1000_check_copper_options() 714 adapter->hw.autoneg = adapter->fc_autoneg = 1; in e1000_check_copper_options()
|
/linux-6.6.21/drivers/net/phy/ |
D | phy.c | 90 if (phydev->autoneg == AUTONEG_DISABLE) in phy_pause_str() 308 cmd->base.autoneg = phydev->autoneg; in phy_ethtool_ksettings_get() 363 if (phydev->autoneg == AUTONEG_ENABLE) in phy_mii_ioctl() 365 phydev->autoneg = AUTONEG_DISABLE; in phy_mii_ioctl() 376 if (phydev->autoneg == AUTONEG_DISABLE) in phy_mii_ioctl() 378 phydev->autoneg = AUTONEG_ENABLE; in phy_mii_ioctl() 993 if (AUTONEG_DISABLE == phydev->autoneg) in _phy_start_aneg() 1047 u8 autoneg = cmd->base.autoneg; in phy_ethtool_ksettings_set() local 1060 if (autoneg != AUTONEG_ENABLE && autoneg != AUTONEG_DISABLE) in phy_ethtool_ksettings_set() 1063 if (autoneg == AUTONEG_ENABLE && linkmode_empty(advertising)) in phy_ethtool_ksettings_set() [all …]
|
D | bcm84881.c | 91 if (phydev->autoneg == AUTONEG_DISABLE) in bcm84881_config_aneg() 155 if (phydev->autoneg == AUTONEG_ENABLE && !phydev->autoneg_complete) in bcm84881_read_status() 180 if (phydev->autoneg == AUTONEG_ENABLE) in bcm84881_read_status() 184 if (phydev->autoneg == AUTONEG_DISABLE) { in bcm84881_read_status()
|
D | dp83td510.c | 126 if (phydev->autoneg == AUTONEG_ENABLE) { in dp83td510_read_status() 135 if (phydev->autoneg == AUTONEG_ENABLE) { in dp83td510_read_status() 163 if (phydev->autoneg == AUTONEG_DISABLE) in dp83td510_config_aneg()
|
/linux-6.6.21/drivers/net/ethernet/amd/xgbe/ |
D | xgbe-ethtool.c | 265 pause->autoneg = pdata->phy.pause_autoneg; in xgbe_get_pauseparam() 277 if (pause->autoneg && (pdata->phy.autoneg != AUTONEG_ENABLE)) { in xgbe_set_pauseparam() 283 pdata->phy.pause_autoneg = pause->autoneg; in xgbe_set_pauseparam() 325 cmd->base.autoneg = pdata->phy.autoneg; in xgbe_get_link_ksettings() 352 if ((cmd->base.autoneg != AUTONEG_ENABLE) && in xgbe_set_link_ksettings() 353 (cmd->base.autoneg != AUTONEG_DISABLE)) { in xgbe_set_link_ksettings() 355 cmd->base.autoneg); in xgbe_set_link_ksettings() 359 if (cmd->base.autoneg == AUTONEG_DISABLE) { in xgbe_set_link_ksettings() 380 if ((cmd->base.autoneg == AUTONEG_ENABLE) && in xgbe_set_link_ksettings() 388 pdata->phy.autoneg = cmd->base.autoneg; in xgbe_set_link_ksettings() [all …]
|
/linux-6.6.21/drivers/net/ethernet/atheros/alx/ |
D | ethtool.c | 151 cmd->base.autoneg = AUTONEG_ENABLE; in alx_get_link_ksettings() 153 cmd->base.autoneg = AUTONEG_DISABLE; in alx_get_link_ksettings() 191 if (cmd->base.autoneg == AUTONEG_ENABLE) { in alx_set_link_ksettings() 219 pause->autoneg = !!(hw->flowctrl & ALX_FC_ANEG && in alx_get_pauseparam() 240 if (pause->autoneg) in alx_set_pauseparam()
|
/linux-6.6.21/drivers/net/ethernet/mellanox/mlxsw/ |
D | spectrum_ethtool.c | 111 link_ext_state_info->autoneg = in mlxsw_sp_port_set_link_ext_state() 223 if (pause->autoneg) { in mlxsw_sp_port_set_pauseparam() 885 u32 eth_proto_admin, bool autoneg, in mlxsw_sp_port_get_link_advertise() argument 892 if (!autoneg) in mlxsw_sp_port_get_link_advertise() 959 bool autoneg; in mlxsw_sp_port_get_link_ksettings() local 968 autoneg = mlxsw_sp_port->link.autoneg; in mlxsw_sp_port_get_link_ksettings() 972 mlxsw_sp_port_get_link_advertise(mlxsw_sp, eth_proto_admin, autoneg, cmd); in mlxsw_sp_port_get_link_ksettings() 974 cmd->base.autoneg = autoneg ? AUTONEG_ENABLE : AUTONEG_DISABLE; in mlxsw_sp_port_get_link_ksettings() 991 bool autoneg; in mlxsw_sp_port_set_link_ksettings() local 1003 autoneg = cmd->base.autoneg == AUTONEG_ENABLE; in mlxsw_sp_port_set_link_ksettings() [all …]
|
/linux-6.6.21/drivers/net/ethernet/apm/xgene/ |
D | xgene_enet_ethtool.c | 145 cmd->base.autoneg = AUTONEG_ENABLE; in xgene_get_link_ksettings() 158 cmd->base.autoneg = AUTONEG_DISABLE; in xgene_get_link_ksettings() 285 pp->autoneg = pdata->pause_autoneg; in xgene_get_pauseparam() 304 pdata->pause_autoneg = pp->autoneg; in xgene_set_pauseparam() 310 if (!pp->autoneg) { in xgene_set_pauseparam() 315 if (pp->autoneg) in xgene_set_pauseparam()
|
/linux-6.6.21/drivers/net/ethernet/huawei/hinic/ |
D | hinic_ethtool.c | 72 u8 autoneg; member 271 link_ksettings->base.autoneg = AUTONEG_DISABLE; in hinic_get_link_ksettings() 297 link_ksettings->base.autoneg = AUTONEG_ENABLE; in hinic_get_link_ksettings() 392 u8 autoneg, u32 speed, u32 *set_settings) in get_link_settings_type() argument 405 if (autoneg == AUTONEG_ENABLE) { in get_link_settings_type() 424 u32 set_settings, u8 autoneg, in set_link_settings_separate_cmd() argument 432 (autoneg == AUTONEG_ENABLE)); in set_link_settings_separate_cmd() 435 (autoneg == AUTONEG_ENABLE) ? in set_link_settings_separate_cmd() 439 (autoneg == AUTONEG_ENABLE) ? in set_link_settings_separate_cmd() 458 u32 set_settings, u8 autoneg, u32 speed) in hinic_set_settings_to_hw() argument [all …]
|
/linux-6.6.21/net/ethtool/ |
D | linkmodes.c | 110 if (nla_put_u8(skb, ETHTOOL_A_LINKMODES_AUTONEG, lsettings->autoneg)) in linkmodes_fill_reply() 259 ethnl_update_u8(&lsettings->autoneg, tb[ETHTOOL_A_LINKMODES_AUTONEG], in ethnl_update_linkmodes() 267 if (!lsettings->autoneg && in ethnl_update_linkmodes() 273 } else if (!lsettings->autoneg && ksettings->lanes) { in ethnl_update_linkmodes() 294 if (!tb[ETHTOOL_A_LINKMODES_OURS] && lsettings->autoneg && in ethnl_update_linkmodes()
|
/linux-6.6.21/drivers/net/ethernet/marvell/prestera/ |
D | prestera_ethtool.c | 337 if (type != port->caps.type && ecmd->base.autoneg == AUTONEG_ENABLE) in prestera_port_type_set() 354 port->autoneg = false; in prestera_port_type_set() 527 ecmd->base.autoneg = port->autoneg ? AUTONEG_ENABLE : AUTONEG_DISABLE; in prestera_ethtool_get_link_ksettings() 533 (port->autoneg || in prestera_ethtool_get_link_ksettings() 551 if (port->autoneg) { in prestera_ethtool_get_link_ksettings() 578 port->autoneg, in prestera_port_mdix_set() 626 port->autoneg = false; in prestera_port_link_mode_set() 670 if (ecmd->base.autoneg == AUTONEG_ENABLE) in prestera_ethtool_set_link_ksettings() 715 if (port->autoneg) { in prestera_ethtool_set_fecparam()
|
/linux-6.6.21/drivers/net/ethernet/microchip/sparx5/ |
D | sparx5_phylink.c | 21 a->autoneg != b->autoneg || in port_conf_has_changed() 108 conf.autoneg = neg_mode == PHYLINK_PCS_NEG_INBAND_ENABLED; in sparx5_pcs_config()
|
/linux-6.6.21/drivers/net/ethernet/qlogic/netxen/ |
D | netxen_nic_ethtool.c | 108 cmd->base.autoneg = adapter->link_autoneg; in netxen_nic_get_link_ksettings() 124 cmd->base.autoneg = adapter->link_autoneg; in netxen_nic_get_link_ksettings() 141 cmd->base.autoneg = AUTONEG_DISABLE; in netxen_nic_get_link_ksettings() 164 cmd->base.autoneg = (adapter->ahw.board_type == in netxen_nic_get_link_ksettings() 176 cmd->base.autoneg = AUTONEG_DISABLE; in netxen_nic_get_link_ksettings() 191 cmd->base.autoneg = AUTONEG_DISABLE; in netxen_nic_get_link_ksettings() 195 cmd->base.autoneg = AUTONEG_DISABLE; in netxen_nic_get_link_ksettings() 261 cmd->base.autoneg); in netxen_nic_set_link_ksettings() 269 adapter->link_autoneg = cmd->base.autoneg; in netxen_nic_set_link_ksettings() 483 pause->autoneg = 0; in netxen_nic_get_pauseparam() [all …]
|
/linux-6.6.21/drivers/net/ethernet/microchip/ |
D | encx24j600.c | 59 bool autoneg; member 201 if (priv->autoneg == AUTONEG_ENABLE) { in encx24j600_update_phcon1() 233 priv->autoneg = AUTONEG_DISABLE; in encx24j600_wait_for_autoneg() 272 if (priv->autoneg == AUTONEG_ENABLE) in encx24j600_check_link_status() 283 priv->autoneg = AUTONEG_ENABLE; in encx24j600_check_link_status() 631 if ((priv->autoneg == AUTONEG_DISABLE) && priv->full_duplex) in encx24j600_hw_init() 679 static int encx24j600_setlink(struct net_device *dev, u8 autoneg, u16 speed, in encx24j600_setlink() argument 690 priv->autoneg = (autoneg == AUTONEG_ENABLE); in encx24j600_setlink() 950 cmd->base.autoneg = priv->autoneg ? AUTONEG_ENABLE : AUTONEG_DISABLE; in encx24j600_get_link_ksettings() 959 return encx24j600_setlink(dev, cmd->base.autoneg, in encx24j600_set_link_ksettings() [all …]
|
/linux-6.6.21/include/linux/ |
D | sungem_phy.h | 18 int (*enable_fiber)(struct mii_phy *phy, int autoneg); 48 int autoneg; member
|
/linux-6.6.21/drivers/net/usb/ |
D | aqc111.c | 292 if (aqc111_data->autoneg) in aqc111_get_link_ksettings() 298 elk->base.autoneg = aqc111_data->autoneg; in aqc111_get_link_ksettings() 320 static void aqc111_set_phy_speed(struct usbnet *dev, u8 autoneg, u16 speed) in aqc111_set_phy_speed() argument 332 if (autoneg == AUTONEG_ENABLE) { in aqc111_set_phy_speed() 373 u8 autoneg = elk->base.autoneg; in aqc111_set_link_ksettings() local 376 if (autoneg == AUTONEG_ENABLE) { in aqc111_set_link_ksettings() 377 if (aqc111_data->autoneg != AUTONEG_ENABLE) { in aqc111_set_link_ksettings() 378 aqc111_data->autoneg = AUTONEG_ENABLE; in aqc111_set_link_ksettings() 382 aqc111_set_phy_speed(dev, aqc111_data->autoneg, in aqc111_set_link_ksettings() 399 aqc111_data->autoneg = AUTONEG_DISABLE; in aqc111_set_link_ksettings() [all …]
|
/linux-6.6.21/drivers/net/ethernet/asix/ |
D | ax88796c_ioctl.c | 51 pause->autoneg = (ax_local->flowctrl & AX_FC_ANEG) ? in ax88796c_get_pauseparam() 65 fc |= pause->autoneg ? AX_FC_ANEG : 0; in ax88796c_set_pauseparam() 69 if (pause->autoneg) { in ax88796c_set_pauseparam()
|