Home
last modified time | relevance | path

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

12345678910>>...12

/linux/tools/testing/selftests/net/forwarding/
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 …]
A Dethtool_extended_state.sh40 autoneg() function
65 ethtool_set $swp1 speed $speed1 autoneg off
66 ethtool_set $swp2 speed $speed2 autoneg off
77 ethtool -s $swp2 autoneg on
78 ethtool -s $swp1 autoneg on
/linux/tools/testing/selftests/drivers/net/mlxsw/
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
A Dsch_ets.sh23 ethtool -s $h2 speed 1000 autoneg off
24 ethtool -s $swp2 speed 1000 autoneg off
58 ethtool -s $swp2 autoneg on
59 ethtool -s $h2 autoneg on
/linux/drivers/net/phy/
A Dphy.c75 if (phydev->autoneg == AUTONEG_DISABLE) in phy_pause_str()
265 cmd->base.autoneg = phydev->autoneg; in phy_ethtool_ksettings_get()
322 phydev->autoneg = AUTONEG_DISABLE; in phy_mii_ioctl()
335 phydev->autoneg = AUTONEG_ENABLE; in phy_mii_ioctl()
774 u8 autoneg = cmd->base.autoneg; in phy_ethtool_ksettings_set() local
787 if (autoneg != AUTONEG_ENABLE && autoneg != AUTONEG_DISABLE) in phy_ethtool_ksettings_set()
793 if (autoneg == AUTONEG_DISABLE && in phy_ethtool_ksettings_set()
802 phydev->autoneg = autoneg; in phy_ethtool_ksettings_set()
804 if (autoneg == AUTONEG_DISABLE) { in phy_ethtool_ksettings_set()
848 if (phydev->autoneg != AUTONEG_ENABLE) in phy_speed_down()
[all …]
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()
/linux/drivers/net/ethernet/oki-semi/pch_gbe/
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()
/linux/drivers/net/
A Dsungem_phy.c318 phy->autoneg = 1; in genmii_setup_aneg()
349 phy->autoneg = 0; in genmii_setup_forced()
395 if (phy->autoneg) { in genmii_read_link()
473 phy->autoneg = 1; in bcm54xx_setup_aneg()
517 phy->autoneg = 0; in bcm54xx_setup_forced()
657 if (!autoneg) { in bcm5421_enable_fiber()
663 phy->autoneg = autoneg; in bcm5421_enable_fiber()
731 if (autoneg) { in bcm5461_enable_fiber()
740 phy->autoneg = autoneg; in bcm5461_enable_fiber()
749 phy->autoneg = 1; in marvell_setup_aneg()
[all …]
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()
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()
/linux/drivers/net/ethernet/amd/xgbe/
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()
317 cmd->base.autoneg = pdata->phy.autoneg; in xgbe_get_link_ksettings()
347 if ((cmd->base.autoneg != AUTONEG_ENABLE) && in xgbe_set_link_ksettings()
348 (cmd->base.autoneg != AUTONEG_DISABLE)) { in xgbe_set_link_ksettings()
350 cmd->base.autoneg); in xgbe_set_link_ksettings()
354 if (cmd->base.autoneg == AUTONEG_DISABLE) { in xgbe_set_link_ksettings()
375 if ((cmd->base.autoneg == AUTONEG_ENABLE) && in xgbe_set_link_ksettings()
383 pdata->phy.autoneg = cmd->base.autoneg; in xgbe_set_link_ksettings()
[all …]
/linux/drivers/net/ethernet/intel/e1000/
A De1000_param.c648 adapter->hw.autoneg = adapter->fc_autoneg = 1; in e1000_check_copper_options()
656 adapter->hw.autoneg = adapter->fc_autoneg = 1; in e1000_check_copper_options()
663 adapter->hw.autoneg = adapter->fc_autoneg = 1; in e1000_check_copper_options()
671 adapter->hw.autoneg = adapter->fc_autoneg = 1; in e1000_check_copper_options()
677 adapter->hw.autoneg = adapter->fc_autoneg = 0; in e1000_check_copper_options()
683 adapter->hw.autoneg = adapter->fc_autoneg = 0; in e1000_check_copper_options()
690 adapter->hw.autoneg = adapter->fc_autoneg = 1; in e1000_check_copper_options()
696 adapter->hw.autoneg = adapter->fc_autoneg = 0; in e1000_check_copper_options()
702 adapter->hw.autoneg = adapter->fc_autoneg = 0; in e1000_check_copper_options()
716 adapter->hw.autoneg = adapter->fc_autoneg = 1; in e1000_check_copper_options()
/linux/drivers/net/ethernet/stmicro/stmmac/
A Daltr_tse_pcs.c195 if (pcs->autoneg == AUTONEG_ENABLE) in aneg_link_timer_callback()
197 else if (pcs->autoneg == AUTONEG_DISABLE) in aneg_link_timer_callback()
211 pcs->autoneg = phy_dev->autoneg; in tse_pcs_fix_mac_speed()
213 if (phy_dev->autoneg == AUTONEG_ENABLE) { in tse_pcs_fix_mac_speed()
231 } else if (phy_dev->autoneg == AUTONEG_DISABLE) { in tse_pcs_fix_mac_speed()
/linux/drivers/net/ethernet/mellanox/mlxsw/
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 …]
/linux/drivers/net/ethernet/atheros/alx/
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()
/linux/drivers/net/ethernet/huawei/hinic/
A Dhinic_ethtool.c73 u8 autoneg; member
393 u8 autoneg, u32 speed, u32 *set_settings) in get_link_settings_type() argument
406 if (autoneg == AUTONEG_ENABLE) { in get_link_settings_type()
425 u32 set_settings, u8 autoneg, in set_link_settings_separate_cmd() argument
433 (autoneg == AUTONEG_ENABLE)); in set_link_settings_separate_cmd()
436 (autoneg == AUTONEG_ENABLE) ? in set_link_settings_separate_cmd()
440 (autoneg == AUTONEG_ENABLE) ? in set_link_settings_separate_cmd()
484 settings.autoneg = autoneg; in hinic_set_settings_to_hw()
515 autoneg, speed); in set_link_settings()
835 pause->autoneg = pause_info.auto_neg; in hinic_get_pauseparam()
[all …]
/linux/drivers/net/ethernet/apm/xgene/
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()
/linux/drivers/net/ethernet/marvell/prestera/
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()
524 ecmd->base.autoneg = port->autoneg ? AUTONEG_ENABLE : AUTONEG_DISABLE; in prestera_ethtool_get_link_ksettings()
530 (port->autoneg || in prestera_ethtool_get_link_ksettings()
548 if (port->autoneg) { in prestera_ethtool_get_link_ksettings()
575 port->autoneg, in prestera_port_mdix_set()
623 port->autoneg = false; in prestera_port_link_mode_set()
664 if (ecmd->base.autoneg == AUTONEG_ENABLE) in prestera_ethtool_set_link_ksettings()
709 if (port->autoneg) { in prestera_ethtool_set_fecparam()
/linux/drivers/net/ethernet/qlogic/netxen/
A Dnetxen_nic_ethtool.c108 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()
479 pause->autoneg = 0; in netxen_nic_get_pauseparam()
[all …]
/linux/drivers/net/ethernet/microchip/
A Dencx24j600.c59 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/net/ethtool/
A Dlinkmodes.c109 if (nla_put_u8(skb, ETHTOOL_A_LINKMODES_AUTONEG, lsettings->autoneg)) in linkmodes_fill_reply()
266 ethnl_update_u8(&lsettings->autoneg, tb[ETHTOOL_A_LINKMODES_AUTONEG], in ethnl_update_linkmodes()
274 if (!lsettings->autoneg && in ethnl_update_linkmodes()
280 } else if (!lsettings->autoneg) { in ethnl_update_linkmodes()
300 if (!tb[ETHTOOL_A_LINKMODES_OURS] && lsettings->autoneg && in ethnl_update_linkmodes()
/linux/drivers/net/usb/
A Daqc111.c292 if (aqc111_data->autoneg) in aqc111_get_link_ksettings()
298 elk->base.autoneg = aqc111_data->autoneg; in aqc111_get_link_ksettings()
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()
399 aqc111_data->autoneg = AUTONEG_DISABLE; in aqc111_set_link_ksettings()
403 aqc111_set_phy_speed(dev, aqc111_data->autoneg, in aqc111_set_link_ksettings()
741 aqc111_data->autoneg = AUTONEG_ENABLE; in aqc111_bind()
[all …]
/linux/include/linux/
A Dsungem_phy.h16 int (*enable_fiber)(struct mii_phy *phy, int autoneg);
46 int autoneg; member
/linux/drivers/net/ethernet/intel/ixgbe/
A Dixgbe_82599.c339 *autoneg = true; in ixgbe_get_link_capabilities_82599()
356 *autoneg = false; in ixgbe_get_link_capabilities_82599()
361 *autoneg = false; in ixgbe_get_link_capabilities_82599()
366 *autoneg = true; in ixgbe_get_link_capabilities_82599()
371 *autoneg = false; in ixgbe_get_link_capabilities_82599()
383 *autoneg = true; in ixgbe_get_link_capabilities_82599()
394 *autoneg = true; in ixgbe_get_link_capabilities_82599()
399 *autoneg = false; in ixgbe_get_link_capabilities_82599()
414 *autoneg = true; in ixgbe_get_link_capabilities_82599()
790 &autoneg); in ixgbe_setup_mac_link_82599()
[all …]
/linux/drivers/net/ethernet/asix/
A Dax88796c_ioctl.c51 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()

Completed in 62 milliseconds

12345678910>>...12