Home
last modified time | relevance | path

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

12345678910>>...12

/kernel/linux/linux-5.10/tools/testing/selftests/net/forwarding/
Dethtool.sh61 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 …]
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
/kernel/linux/linux-5.10/tools/testing/selftests/drivers/net/mlxsw/
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
Dsch_red_core.sh139 ethtool -s $h2 speed 1000 autoneg off
144 ethtool -s $h2 autoneg on
152 ethtool -s $h3 speed 1000 autoneg off
157 ethtool -s $h3 autoneg on
202 ethtool -s $intf speed 1000 autoneg off
230 ethtool -s $intf autoneg on
/kernel/linux/linux-5.10/drivers/net/ethernet/oki-semi/pch_gbe/
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()
/kernel/linux/linux-5.10/drivers/net/phy/
Dphy.c75 if (phydev->autoneg == AUTONEG_DISABLE) in phy_pause_str()
287 cmd->base.autoneg = phydev->autoneg; in phy_ethtool_ksettings_get()
342 if (phydev->autoneg == AUTONEG_ENABLE) in phy_mii_ioctl()
344 phydev->autoneg = AUTONEG_DISABLE; in phy_mii_ioctl()
356 if (phydev->autoneg == AUTONEG_DISABLE) in phy_mii_ioctl()
358 phydev->autoneg = AUTONEG_ENABLE; in phy_mii_ioctl()
741 if (AUTONEG_DISABLE == phydev->autoneg) in _phy_start_aneg()
795 u8 autoneg = cmd->base.autoneg; in phy_ethtool_ksettings_set() local
808 if (autoneg != AUTONEG_ENABLE && autoneg != AUTONEG_DISABLE) in phy_ethtool_ksettings_set()
811 if (autoneg == AUTONEG_ENABLE && linkmode_empty(advertising)) in phy_ethtool_ksettings_set()
[all …]
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()
/kernel/linux/linux-5.10/drivers/net/ethernet/stmicro/stmmac/
Daltr_tse_pcs.c191 if (pcs->autoneg == AUTONEG_ENABLE) in aneg_link_timer_callback()
193 else if (pcs->autoneg == AUTONEG_DISABLE) in aneg_link_timer_callback()
203 pcs->autoneg = phy_dev->autoneg; in tse_pcs_fix_mac_speed()
205 if (phy_dev->autoneg == AUTONEG_ENABLE) { in tse_pcs_fix_mac_speed()
223 } else if (phy_dev->autoneg == AUTONEG_DISABLE) { in tse_pcs_fix_mac_speed()
/kernel/linux/linux-5.10/drivers/net/
Dsungem_phy.c318 phy->autoneg = 1; in genmii_setup_aneg()
349 phy->autoneg = 0; in genmii_setup_forced()
386 if (phy->autoneg && !(status & BMSR_ANEGCOMPLETE)) in genmii_poll_link()
395 if (phy->autoneg) { in genmii_read_link()
474 phy->autoneg = 1; in bcm54xx_setup_aneg()
518 phy->autoneg = 0; in bcm54xx_setup_forced()
554 if (phy->autoneg) { in bcm54xx_read_link()
651 static int bcm5421_enable_fiber(struct mii_phy* phy, int autoneg) in bcm5421_enable_fiber() argument
658 if (!autoneg) { in bcm5421_enable_fiber()
664 phy->autoneg = autoneg; in bcm5421_enable_fiber()
[all …]
Dmii.c89 ecmd->autoneg = AUTONEG_ENABLE; in mii_ethtool_gset()
119 ecmd->autoneg = AUTONEG_DISABLE; in mii_ethtool_gset()
176 cmd->base.autoneg = AUTONEG_ENABLE; in mii_ethtool_get_link_ksettings()
205 cmd->base.autoneg = AUTONEG_DISABLE; in mii_ethtool_get_link_ksettings()
254 if (ecmd->autoneg != AUTONEG_DISABLE && ecmd->autoneg != AUTONEG_ENABLE) in mii_ethtool_sset()
261 if (ecmd->autoneg == AUTONEG_ENABLE) { in mii_ethtool_sset()
345 if (cmd->base.autoneg != AUTONEG_DISABLE && in mii_ethtool_set_link_ksettings()
346 cmd->base.autoneg != AUTONEG_ENABLE) in mii_ethtool_set_link_ksettings()
353 if (cmd->base.autoneg == AUTONEG_ENABLE) { in mii_ethtool_set_link_ksettings()
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()
/kernel/linux/linux-5.10/drivers/net/ethernet/intel/e1000/
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()
/kernel/linux/linux-5.10/drivers/net/ethernet/amd/xgbe/
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()
376 if ((cmd->base.autoneg == AUTONEG_ENABLE) && in xgbe_set_link_ksettings()
384 pdata->phy.autoneg = cmd->base.autoneg; in xgbe_set_link_ksettings()
[all …]
/kernel/linux/linux-5.10/drivers/net/ethernet/atheros/alx/
Dethtool.c151 cmd->base.autoneg = AUTONEG_ENABLE; in alx_get_link_ksettings()
153 cmd->base.autoneg = AUTONEG_DISABLE; in alx_get_link_ksettings()
190 if (cmd->base.autoneg == AUTONEG_ENABLE) { in alx_set_link_ksettings()
212 pause->autoneg = !!(hw->flowctrl & ALX_FC_ANEG && in alx_get_pauseparam()
232 if (pause->autoneg) in alx_set_pauseparam()
/kernel/linux/linux-5.10/drivers/net/ethernet/mellanox/mlxsw/
Dspectrum_ethtool.c108 link_ext_state_info->autoneg = in mlxsw_sp_port_set_link_ext_state()
216 if (pause->autoneg) { in mlxsw_sp_port_set_pauseparam()
878 u32 eth_proto_admin, bool autoneg, u8 width, in mlxsw_sp_port_get_link_advertise() argument
885 if (!autoneg) in mlxsw_sp_port_get_link_advertise()
952 bool autoneg; in mlxsw_sp_port_get_link_ksettings() local
961 autoneg = mlxsw_sp_port->link.autoneg; in mlxsw_sp_port_get_link_ksettings()
966 mlxsw_sp_port_get_link_advertise(mlxsw_sp, eth_proto_admin, autoneg, in mlxsw_sp_port_get_link_ksettings()
969 cmd->base.autoneg = autoneg ? AUTONEG_ENABLE : AUTONEG_DISABLE; in mlxsw_sp_port_get_link_ksettings()
986 bool autoneg; in mlxsw_sp_port_set_link_ksettings() local
998 autoneg = cmd->base.autoneg == AUTONEG_ENABLE; in mlxsw_sp_port_set_link_ksettings()
[all …]
/kernel/linux/linux-5.10/drivers/net/ethernet/apm/xgene/
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()
/kernel/linux/linux-5.10/drivers/net/ethernet/huawei/hinic/
Dhinic_ethtool.c73 u8 autoneg; member
272 link_ksettings->base.autoneg = AUTONEG_DISABLE; in hinic_get_link_ksettings()
298 link_ksettings->base.autoneg = AUTONEG_ENABLE; in hinic_get_link_ksettings()
395 u8 autoneg, u32 speed, u32 *set_settings) in get_link_settings_type() argument
408 if (autoneg == AUTONEG_ENABLE) { in get_link_settings_type()
427 u32 set_settings, u8 autoneg, in set_link_settings_separate_cmd() argument
435 (autoneg == AUTONEG_ENABLE)); in set_link_settings_separate_cmd()
438 (autoneg == AUTONEG_ENABLE) ? in set_link_settings_separate_cmd()
442 (autoneg == AUTONEG_ENABLE) ? in set_link_settings_separate_cmd()
461 u32 set_settings, u8 autoneg, u32 speed) in hinic_set_settings_to_hw() argument
[all …]
/kernel/linux/linux-5.10/drivers/net/netdevsim/
Dethtool.c27 pause->autoneg = 0; /* We don't support ksettings, so can't pretend */ in nsim_get_pauseparam()
37 if (pause->autoneg) in nsim_set_pauseparam()
/kernel/linux/linux-5.10/drivers/net/ethernet/marvell/prestera/
Dprestera_ethtool.c338 if (type != port->caps.type && ecmd->base.autoneg == AUTONEG_ENABLE) in prestera_port_type_set()
360 port->autoneg = false; in prestera_port_type_set()
505 ecmd->base.autoneg = port->autoneg ? AUTONEG_ENABLE : AUTONEG_DISABLE; in prestera_ethtool_get_link_ksettings()
511 (port->autoneg || in prestera_ethtool_get_link_ksettings()
534 if (port->autoneg) { in prestera_ethtool_get_link_ksettings()
649 ecmd->base.autoneg == AUTONEG_ENABLE, in prestera_ethtool_set_link_ksettings()
654 if (ecmd->base.autoneg == AUTONEG_DISABLE) { in prestera_ethtool_set_link_ksettings()
700 if (port->autoneg) { in prestera_ethtool_set_fecparam()
/kernel/linux/linux-5.10/drivers/net/ethernet/qlogic/netxen/
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 …]
/kernel/linux/linux-5.10/include/linux/
Dsungem_phy.h16 int (*enable_fiber)(struct mii_phy *phy, int autoneg);
46 int autoneg; member
/kernel/linux/linux-5.10/drivers/net/ethernet/microchip/
Dencx24j600.c59 bool autoneg; member
201 if (priv->autoneg == AUTONEG_ENABLE) { in encx24j600_update_phcon1()
234 priv->autoneg = AUTONEG_DISABLE; in encx24j600_wait_for_autoneg()
273 if (priv->autoneg == AUTONEG_ENABLE) in encx24j600_check_link_status()
284 priv->autoneg = AUTONEG_ENABLE; in encx24j600_check_link_status()
632 if ((priv->autoneg == AUTONEG_DISABLE) && priv->full_duplex) in encx24j600_hw_init()
680 static int encx24j600_setlink(struct net_device *dev, u8 autoneg, u16 speed, in encx24j600_setlink() argument
691 priv->autoneg = (autoneg == AUTONEG_ENABLE); in encx24j600_setlink()
951 cmd->base.autoneg = priv->autoneg ? AUTONEG_ENABLE : AUTONEG_DISABLE; in encx24j600_get_link_ksettings()
960 return encx24j600_setlink(dev, cmd->base.autoneg, in encx24j600_set_link_ksettings()
[all …]
/kernel/linux/linux-5.10/drivers/net/ethernet/hisilicon/hns3/
Dhns3_ethtool.c642 h->ae_algo->ops->get_pauseparam(h, &param->autoneg, in hns3_get_pauseparam()
653 param->autoneg, param->rx_pause, param->tx_pause); in hns3_set_pauseparam()
656 return h->ae_algo->ops->set_pauseparam(h, param->autoneg, in hns3_set_pauseparam()
670 &cmd->base.autoneg, in hns3_get_ksettings()
750 u8 autoneg; in hns3_check_ksettings_param() local
758 if (cmd->base.autoneg) in hns3_check_ksettings_param()
762 ops->get_ksettings_an_result(handle, &autoneg, &speed, &duplex); in hns3_check_ksettings_param()
763 if (cmd->base.autoneg == autoneg && cmd->base.speed == speed && in hns3_check_ksettings_param()
804 cmd->base.autoneg, cmd->base.speed, cmd->base.duplex); in hns3_set_link_ksettings()
809 cmd->base.autoneg == AUTONEG_DISABLE) in hns3_set_link_ksettings()
[all …]
/kernel/linux/linux-5.10/drivers/net/usb/
Daqc111.c292 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 …]
/kernel/linux/linux-5.10/drivers/net/ethernet/intel/ixgbe/
Dixgbe_82599.c327 bool *autoneg) in ixgbe_get_link_capabilities_82599() argument
339 *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()
412 *autoneg = false; in ixgbe_get_link_capabilities_82599()
[all …]

12345678910>>...12