Home
last modified time | relevance | path

Searched refs:autoneg (Results 1 – 25 of 315) sorted by relevance

12345678910>>...13

/openbmc/linux/tools/testing/selftests/net/forwarding/
H A Dethtool.sh72 ethtool -s $h2 autoneg on
73 ethtool -s $h1 autoneg on
96 ethtool -s $h2 autoneg on
97 ethtool -s $h1 autoneg on
119 ethtool -s $h1 autoneg on
215 ethtool -s $h2 autoneg on
216 ethtool -s $h1 autoneg on
256 ethtool -s $h2 autoneg on
257 ethtool -s $h1 autoneg on
285 ethtool -s $h2 autoneg on
[all …]
H A Dethtool_extended_state.sh45 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
/openbmc/qemu/hw/net/rocker/
H A Drocker_fp.c38 uint8_t autoneg; member
63 value->autoneg = port->autoneg; in fp_port_get_info()
90 uint8_t *duplex, uint8_t *autoneg) in fp_port_get_settings() argument
94 *autoneg = port->autoneg; in fp_port_get_settings()
100 uint8_t duplex, uint8_t autoneg) in fp_port_set_settings() argument
106 port->autoneg = autoneg; in fp_port_set_settings()
266 port->autoneg = 0; in fp_port_reset()
H A Drocker_fp.h37 uint8_t *duplex, uint8_t *autoneg);
39 uint8_t duplex, uint8_t autoneg);
/openbmc/linux/tools/testing/selftests/drivers/net/mlxsw/
H A Dethtool_lanes.sh56 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
/openbmc/linux/drivers/net/ethernet/marvell/octeon_ep/
H A Doctep_ethtool.c298 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()
355 autoneg = 1; in octep_set_link_ksettings()
438 cmd->base.autoneg == link_info->autoneg) in octep_set_link_ksettings()
[all …]
/openbmc/linux/drivers/net/ethernet/oki-semi/pch_gbe/
H A Dpch_gbe_param.c324 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()
/openbmc/linux/drivers/net/
H A Dsungem_phy.c314 phy->autoneg = 1; in genmii_setup_aneg()
345 phy->autoneg = 0; in genmii_setup_forced()
391 if (phy->autoneg) { in genmii_read_link()
470 phy->autoneg = 1; in bcm54xx_setup_aneg()
514 phy->autoneg = 0; in bcm54xx_setup_forced()
654 if (!autoneg) { in bcm5421_enable_fiber()
660 phy->autoneg = autoneg; in bcm5421_enable_fiber()
728 if (autoneg) { in bcm5461_enable_fiber()
737 phy->autoneg = autoneg; in bcm5461_enable_fiber()
746 phy->autoneg = 1; in marvell_setup_aneg()
[all …]
H A Dmii.c93 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()
H A Dmdio.c262 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()
/openbmc/linux/drivers/net/ethernet/intel/e1000/
H A De1000_param.c646 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()
/openbmc/linux/drivers/net/phy/
H A Dphy.c90 if (phydev->autoneg == AUTONEG_DISABLE) in phy_pause_str()
308 cmd->base.autoneg = phydev->autoneg; in phy_ethtool_ksettings_get()
365 phydev->autoneg = AUTONEG_DISABLE; in phy_mii_ioctl()
378 phydev->autoneg = AUTONEG_ENABLE; in phy_mii_ioctl()
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()
1066 if (autoneg == AUTONEG_DISABLE && in phy_ethtool_ksettings_set()
1075 phydev->autoneg = autoneg; in phy_ethtool_ksettings_set()
1077 if (autoneg == AUTONEG_DISABLE) { in phy_ethtool_ksettings_set()
1123 if (phydev->autoneg != AUTONEG_ENABLE) in phy_speed_down()
[all …]
H A Dbcm84881.c91 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()
H A Ddp83td510.c126 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()
/openbmc/linux/drivers/net/ethernet/amd/xgbe/
H A Dxgbe-ethtool.c265 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 …]
/openbmc/linux/drivers/net/ethernet/atheros/alx/
H A Dethtool.c151 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()
/openbmc/linux/drivers/net/ethernet/mellanox/mlxsw/
H A Dspectrum_ethtool.c111 link_ext_state_info->autoneg = in mlxsw_sp_port_set_link_ext_state()
223 if (pause->autoneg) { in mlxsw_sp_port_set_pauseparam()
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()
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()
1004 eth_proto_new = autoneg ? in mlxsw_sp_port_set_link_ksettings()
1021 mlxsw_sp_port->link.autoneg = autoneg; in mlxsw_sp_port_set_link_ksettings()
[all …]
/openbmc/linux/drivers/net/ethernet/apm/xgene/
H A Dxgene_enet_ethtool.c145 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()
/openbmc/linux/drivers/net/ethernet/huawei/hinic/
H A Dhinic_ethtool.c72 u8 autoneg; member
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()
483 settings.autoneg = autoneg; in hinic_set_settings_to_hw()
514 autoneg, speed); in set_link_settings()
838 pause->autoneg = pause_info.auto_neg; in hinic_get_pauseparam()
[all …]
/openbmc/linux/net/ethtool/
H A Dlinkmodes.c110 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()
/openbmc/linux/drivers/net/ethernet/microchip/sparx5/
H A Dsparx5_phylink.c21 a->autoneg != b->autoneg || in port_conf_has_changed()
108 conf.autoneg = neg_mode == PHYLINK_PCS_NEG_INBAND_ENABLED; in sparx5_pcs_config()
/openbmc/linux/drivers/net/ethernet/marvell/prestera/
H A Dprestera_ethtool.c337 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()
/openbmc/linux/include/linux/
H A Dsungem_phy.h18 int (*enable_fiber)(struct mii_phy *phy, int autoneg);
48 int autoneg; member
/openbmc/qemu/qapi/
H A Drocker.json58 # An enumeration of port autoneg states.
60 # @off: autoneg is off
62 # @on: autoneg is on
83 # @autoneg: port link autoneg
90 'autoneg': 'RockerPortAutoneg' } }
/openbmc/u-boot/drivers/qe/
H A Duec_phy.c307 if (mii_info->autoneg) { in gbit_config_aneg()
349 if (mii_info->autoneg) { in genmii_config_aneg()
418 if (mii_info->autoneg) { in genmii_read_status()
531 if (mii_info->autoneg && mii_info->link) { in marvell_read_status()
614 if (mii_info->autoneg && mii_info->link) { in dm9161_read_status()
654 mii_info->autoneg = 0; /* Turn off auto negotiation for fixed phy */ in fixed_phy_aneg()
694 if (mii_info->autoneg && mii_info->link) { in smsc_read_status()
898 if (mii_info->autoneg) { in marvell_phy_interface_mode()

12345678910>>...13