/drivers/net/ethernet/marvell/octeon_ep/ |
D | octep_ethtool.c | 295 if (link_info->autoneg) { in octep_get_link_ksettings() 296 if (link_info->autoneg & OCTEP_LINK_MODE_AUTONEG_SUPPORTED) in octep_get_link_ksettings() 298 if (link_info->autoneg & OCTEP_LINK_MODE_AUTONEG_ADVERTISED) { in octep_get_link_ksettings() 300 cmd->base.autoneg = AUTONEG_ENABLE; in octep_get_link_ksettings() 302 cmd->base.autoneg = AUTONEG_DISABLE; in octep_get_link_ksettings() 305 cmd->base.autoneg = AUTONEG_DISABLE; in octep_get_link_ksettings() 336 u8 autoneg = 0; in octep_set_link_ksettings() local 349 if (cmd->base.autoneg == AUTONEG_ENABLE) { in octep_set_link_ksettings() 350 if (!(link_info->autoneg & OCTEP_LINK_MODE_AUTONEG_SUPPORTED)) in octep_set_link_ksettings() 352 autoneg = 1; in octep_set_link_ksettings() [all …]
|
D | octep_ctrl_net.c | 170 oct->link_info.autoneg = resp->link_info.autoneg; in octep_get_link_info() 185 req.link_info.info.autoneg = link_info->autoneg; in octep_set_link_info()
|
/drivers/net/phy/ |
D | phy.c | 88 if (phydev->autoneg == AUTONEG_DISABLE) in phy_pause_str() 306 cmd->base.autoneg = phydev->autoneg; in phy_ethtool_ksettings_get() 361 if (phydev->autoneg == AUTONEG_ENABLE) in phy_mii_ioctl() 363 phydev->autoneg = AUTONEG_DISABLE; in phy_mii_ioctl() 374 if (phydev->autoneg == AUTONEG_DISABLE) in phy_mii_ioctl() 376 phydev->autoneg = AUTONEG_ENABLE; in phy_mii_ioctl() 765 if (AUTONEG_DISABLE == phydev->autoneg) in _phy_start_aneg() 819 u8 autoneg = cmd->base.autoneg; in phy_ethtool_ksettings_set() local 832 if (autoneg != AUTONEG_ENABLE && autoneg != AUTONEG_DISABLE) in phy_ethtool_ksettings_set() 835 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()
|
/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()
|
/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()
|
/drivers/net/ethernet/stmicro/stmmac/ |
D | altr_tse_pcs.c | 191 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()
|
/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 …]
|
/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()
|
/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 …]
|
/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()
|
/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 …]
|
/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()
|
/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()
|
/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 …]
|
/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 …]
|
/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 …]
|
/drivers/net/ethernet/microchip/sparx5/ |
D | sparx5_phylink.c | 21 a->autoneg != b->autoneg || in port_conf_has_changed() 108 conf.autoneg = phylink_test(advertising, Autoneg); in sparx5_pcs_config()
|
/drivers/net/ethernet/intel/ixgbe/ |
D | ixgbe_82599.c | 327 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 …]
|
/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()
|
/drivers/net/ethernet/ibm/emac/ |
D | phy.c | 114 phy->autoneg = AUTONEG_ENABLE; in genmii_setup_aneg() 173 phy->autoneg = AUTONEG_DISABLE; in genmii_setup_forced() 215 if (phy->autoneg == AUTONEG_ENABLE && !(status & BMSR_ANEGCOMPLETE)) in genmii_poll_link() 222 if (phy->autoneg == AUTONEG_ENABLE) { in genmii_read_link() 516 phy->autoneg = AUTONEG_DISABLE; in emac_mii_phy_probe()
|
/drivers/net/ethernet/intel/e1000e/ |
D | ethtool.c | 129 if (hw->mac.autoneg == 1) { in e1000_get_link_ksettings() 176 cmd->base.autoneg = ((hw->phy.media_type == e1000_media_type_fiber) || in e1000_get_link_ksettings() 177 hw->mac.autoneg) ? AUTONEG_ENABLE : AUTONEG_DISABLE; in e1000_get_link_ksettings() 207 mac->autoneg = 0; in e1000_set_spd_dplx() 236 mac->autoneg = 1; in e1000_set_spd_dplx() 292 (cmd->base.autoneg != AUTONEG_ENABLE)) { in e1000_set_link_ksettings() 302 if (cmd->base.autoneg == AUTONEG_ENABLE) { in e1000_set_link_ksettings() 303 hw->mac.autoneg = 1; in e1000_set_link_ksettings() 353 pause->autoneg = in e1000_get_pauseparam() 373 adapter->fc_autoneg = pause->autoneg; in e1000_set_pauseparam() [all …]
|