Home
last modified time | relevance | path

Searched refs:lp_advertising (Results 1 – 25 of 37) sorted by relevance

12

/drivers/net/
Dmii.c96 ecmd->lp_advertising = mii_get_an(mii, MII_LPA); in mii_ethtool_gset()
97 ecmd->lp_advertising |= in mii_ethtool_gset()
100 ecmd->lp_advertising = 0; in mii_ethtool_gset()
103 nego = ecmd->advertising & ecmd->lp_advertising; in mii_ethtool_gset()
147 u32 nego, supported, advertising, lp_advertising; in mii_ethtool_get_link_ksettings() local
181 lp_advertising = mii_get_an(mii, MII_LPA); in mii_ethtool_get_link_ksettings()
182 lp_advertising |= in mii_ethtool_get_link_ksettings()
185 lp_advertising = 0; in mii_ethtool_get_link_ksettings()
188 nego = advertising & lp_advertising; in mii_ethtool_get_link_ksettings()
213 lp_advertising = 0; in mii_ethtool_get_link_ksettings()
[all …]
Dmdio.c282 ecmd->lp_advertising = in mdio45_ethtool_gset_npage()
285 ecmd->lp_advertising |= ADVERTISED_Autoneg; in mdio45_ethtool_gset_npage()
286 modes = ecmd->advertising & ecmd->lp_advertising; in mdio45_ethtool_gset_npage()
360 u32 speed, supported = 0, advertising = 0, lp_advertising = 0; in mdio45_ethtool_ksettings_get_npage() local
454 lp_advertising = in mdio45_ethtool_ksettings_get_npage()
457 lp_advertising |= ADVERTISED_Autoneg; in mdio45_ethtool_ksettings_get_npage()
458 modes = advertising & lp_advertising; in mdio45_ethtool_ksettings_get_npage()
497 ethtool_convert_legacy_u32_to_link_mode(cmd->link_modes.lp_advertising, in mdio45_ethtool_ksettings_get_npage()
498 lp_advertising); in mdio45_ethtool_ksettings_get_npage()
/drivers/net/phy/
Dphy-c45.c330 phydev->lp_advertising); in genphy_c45_read_lpa()
331 mii_10gbt_stat_mod_linkmode_lpa_t(phydev->lp_advertising, 0); in genphy_c45_read_lpa()
332 mii_adv_mod_linkmode_adv_t(phydev->lp_advertising, 0); in genphy_c45_read_lpa()
339 linkmode_mod_bit(ETHTOOL_LINK_MODE_Autoneg_BIT, phydev->lp_advertising, in genphy_c45_read_lpa()
347 mii_adv_mod_linkmode_adv_t(phydev->lp_advertising, val); in genphy_c45_read_lpa()
356 mii_10gbt_stat_mod_linkmode_lpa_t(phydev->lp_advertising, val); in genphy_c45_read_lpa()
370 linkmode_zero(phydev->lp_advertising); in genphy_c45_read_pma()
DuPD60620.c45 linkmode_zero(phydev->lp_advertising); in upd60620_read_status()
68 mii_lpa_to_linkmode_lpa_t(phydev->lp_advertising, in upd60620_read_status()
Dphy-core.c346 phydev->lp_advertising); in phy_resolve_aneg_pause()
349 phydev->lp_advertising); in phy_resolve_aneg_pause()
367 linkmode_and(common, phydev->lp_advertising, phydev->advertising); in phy_resolve_aneg_linkmode()
400 linkmode_and(common, phydev->lp_advertising, phydev->advertising); in phy_check_downshift()
423 linkmode_and(common, phydev->lp_advertising, phydev->advertising); in phy_resolve_min_speed()
Dbcm84881.c158 linkmode_zero(phydev->lp_advertising); in bcm84881_read_status()
178 mii_stat1000_mod_linkmode_lpa_t(phydev->lp_advertising, val); in bcm84881_read_status()
Dphylink.c190 pl->link_config.lp_advertising); in phylink_parse_fixedlink()
193 pl->link_config.lp_advertising); in phylink_parse_fixedlink()
226 pl->link_config.lp_advertising); in phylink_parse_fixedlink()
229 pl->link_config.lp_advertising); in phylink_parse_fixedlink()
251 __set_bit(s->bit, pl->link_config.lp_advertising); in phylink_parse_fixedlink()
414 state->lp_advertising, in phylink_resolve_flow()
540 linkmode_zero(state->lp_advertising); in phylink_mac_pcs_get_state()
1473 linkmode_copy(kset->link_modes.lp_advertising, state->lp_advertising); in phylink_get_ksettings()
1904 unsigned long *lpa = state->lp_advertising; in phylink_mii_emul_read()
2444 mii_lpa_mod_linkmode_x(state->lp_advertising, config_reg, fd_bit); in phylink_decode_c37_word()
[all …]
Dlxt.c249 mii_lpa_to_linkmode_lpa_t(phydev->lp_advertising, lpa); in lxt973a2_read_status()
274 linkmode_zero(phydev->lp_advertising); in lxt973a2_read_status()
Dphy_device.c2316 mii_stat1000_mod_linkmode_lpa_t(phydev->lp_advertising, in genphy_read_lpa()
2318 mii_lpa_mod_linkmode_lpa_t(phydev->lp_advertising, 0); in genphy_read_lpa()
2340 mii_stat1000_mod_linkmode_lpa_t(phydev->lp_advertising, in genphy_read_lpa()
2348 mii_lpa_mod_linkmode_lpa_t(phydev->lp_advertising, lpa); in genphy_read_lpa()
2350 linkmode_zero(phydev->lp_advertising); in genphy_read_lpa()
2465 phydev->lp_advertising, lpa & LPA_LPACK); in genphy_c37_read_status()
2467 phydev->lp_advertising, lpa & LPA_1000XFULL); in genphy_c37_read_status()
2469 phydev->lp_advertising, lpa & LPA_1000XPAUSE); in genphy_c37_read_status()
2471 phydev->lp_advertising, in genphy_c37_read_status()
2814 phydev->lp_advertising, in phy_get_pause()
Drealtek.c681 phydev->lp_advertising, lpadv & RTL_LPADV_10000FULL); in rtl822x_read_status()
683 phydev->lp_advertising, lpadv & RTL_LPADV_5000FULL); in rtl822x_read_status()
685 phydev->lp_advertising, lpadv & RTL_LPADV_2500FULL); in rtl822x_read_status()
Daquantia_main.c334 phydev->lp_advertising, in aqr_read_status()
337 phydev->lp_advertising, in aqr_read_status()
Dmxl-gpy.c323 mii_stat1000_mod_linkmode_lpa_t(phydev->lp_advertising, ret); in gpy_read_status()
325 linkmode_zero(phydev->lp_advertising); in gpy_read_status()
Dmarvell10g.c854 mii_stat1000_mod_linkmode_lpa_t(phydev->lp_advertising, val); in mv3310_read_status_copper()
869 linkmode_zero(phydev->lp_advertising); in mv3310_read_status()
Dphy.c264 linkmode_copy(cmd->link_modes.lp_advertising, phydev->lp_advertising); in phy_ethtool_ksettings_get()
/drivers/net/pcs/
Dpcs-xpcs.c504 phylink_clear(state->lp_advertising, Autoneg); in xpcs_read_lpa_c73()
508 phylink_set(state->lp_advertising, Autoneg); in xpcs_read_lpa_c73()
516 phylink_set(state->lp_advertising, 2500baseX_Full); in xpcs_read_lpa_c73()
523 phylink_set(state->lp_advertising, 1000baseKX_Full); in xpcs_read_lpa_c73()
525 phylink_set(state->lp_advertising, 10000baseKX4_Full); in xpcs_read_lpa_c73()
527 phylink_set(state->lp_advertising, 10000baseKR_Full); in xpcs_read_lpa_c73()
534 phylink_set(state->lp_advertising, Pause); in xpcs_read_lpa_c73()
536 phylink_set(state->lp_advertising, Asym_Pause); in xpcs_read_lpa_c73()
538 linkmode_and(state->lp_advertising, state->lp_advertising, in xpcs_read_lpa_c73()
546 int max_speed = xpcs_get_max_usxgmii_speed(state->lp_advertising); in xpcs_resolve_lpa_c73()
/drivers/net/ethernet/stmicro/stmmac/
Dstmmac_ethtool.c312 u32 supported, advertising, lp_advertising; in stmmac_ethtool_get_link_ksettings() local
334 &lp_advertising, cmd->link_modes.lp_advertising); in stmmac_ethtool_get_link_ksettings()
341 lp_advertising |= ADVERTISED_Pause; in stmmac_ethtool_get_link_ksettings()
343 lp_advertising |= ADVERTISED_Asym_Pause; in stmmac_ethtool_get_link_ksettings()
349 lp_advertising |= ADVERTISED_Autoneg; in stmmac_ethtool_get_link_ksettings()
367 lp_advertising |= (ADVERTISED_1000baseT_Full | in stmmac_ethtool_get_link_ksettings()
371 lp_advertising |= (ADVERTISED_1000baseT_Half | in stmmac_ethtool_get_link_ksettings()
381 cmd->link_modes.lp_advertising, lp_advertising); in stmmac_ethtool_get_link_ksettings()
/drivers/net/ethernet/marvell/prestera/
Dprestera_ethtool.c444 prestera_modes_to_eth(ecmd->link_modes.lp_advertising, in prestera_port_remote_cap_get()
447 if (!bitmap_empty(ecmd->link_modes.lp_advertising, in prestera_port_remote_cap_get()
450 lp_advertising, in prestera_port_remote_cap_get()
461 lp_advertising, in prestera_port_remote_cap_get()
465 lp_advertising, in prestera_port_remote_cap_get()
503 ethtool_link_ksettings_zero_link_mode(ecmd, lp_advertising); in prestera_ethtool_get_link_ksettings()
/drivers/net/ethernet/aquantia/atlantic/
Daq_nic.c1075 ethtool_link_ksettings_zero_link_mode(cmd, lp_advertising); in aq_nic_get_link_ksettings()
1079 ethtool_link_ksettings_add_link_mode(cmd, lp_advertising, in aq_nic_get_link_ksettings()
1083 ethtool_link_ksettings_add_link_mode(cmd, lp_advertising, in aq_nic_get_link_ksettings()
1087 ethtool_link_ksettings_add_link_mode(cmd, lp_advertising, in aq_nic_get_link_ksettings()
1091 ethtool_link_ksettings_add_link_mode(cmd, lp_advertising, in aq_nic_get_link_ksettings()
1095 ethtool_link_ksettings_add_link_mode(cmd, lp_advertising, in aq_nic_get_link_ksettings()
1099 ethtool_link_ksettings_add_link_mode(cmd, lp_advertising, in aq_nic_get_link_ksettings()
1103 ethtool_link_ksettings_add_link_mode(cmd, lp_advertising, in aq_nic_get_link_ksettings()
1107 ethtool_link_ksettings_add_link_mode(cmd, lp_advertising, in aq_nic_get_link_ksettings()
1111 ethtool_link_ksettings_add_link_mode(cmd, lp_advertising, in aq_nic_get_link_ksettings()
[all …]
/drivers/net/ethernet/broadcom/bnx2x/
Dbnx2x_ethtool.c267 u32 supported, advertising, lp_advertising; in bnx2x_get_link_ksettings() local
269 ethtool_convert_link_mode_to_legacy_u32(&lp_advertising, in bnx2x_get_link_ksettings()
270 cmd->link_modes.lp_advertising); in bnx2x_get_link_ksettings()
309 lp_advertising |= ADVERTISED_Autoneg; in bnx2x_get_link_ksettings()
311 lp_advertising |= ADVERTISED_Pause; in bnx2x_get_link_ksettings()
313 lp_advertising |= ADVERTISED_Asym_Pause; in bnx2x_get_link_ksettings()
316 lp_advertising |= ADVERTISED_10baseT_Half; in bnx2x_get_link_ksettings()
318 lp_advertising |= ADVERTISED_10baseT_Full; in bnx2x_get_link_ksettings()
320 lp_advertising |= ADVERTISED_100baseT_Half; in bnx2x_get_link_ksettings()
322 lp_advertising |= ADVERTISED_100baseT_Full; in bnx2x_get_link_ksettings()
[all …]
/drivers/net/ethernet/amd/xgbe/
Dxgbe.h332 ethtool_link_ksettings_zero_link_mode((_ls), lp_advertising)
335 ethtool_link_ksettings_add_link_mode((_ls), lp_advertising, _mode)
338 ethtool_link_ksettings_del_link_mode((_ls), lp_advertising, _mode)
341 ethtool_link_ksettings_test_link_mode((_ls), lp_advertising, _mode)
Dxgbe-ethtool.c330 XGBE_LM_COPY(cmd, lp_advertising, lks, lp_advertising); in xgbe_get_link_ksettings()
/drivers/net/ethernet/intel/ice/
Dice_ethtool.c1841 ethtool_link_ksettings_add_link_mode(ks, lp_advertising, in ice_get_settings_link_up()
1847 ethtool_link_ksettings_add_link_mode(ks, lp_advertising, Pause); in ice_get_settings_link_up()
1850 ethtool_link_ksettings_add_link_mode(ks, lp_advertising, Pause); in ice_get_settings_link_up()
1851 ethtool_link_ksettings_add_link_mode(ks, lp_advertising, in ice_get_settings_link_up()
1855 ethtool_link_ksettings_add_link_mode(ks, lp_advertising, in ice_get_settings_link_up()
1860 ethtool_link_ksettings_del_link_mode(ks, lp_advertising, Pause); in ice_get_settings_link_up()
1861 ethtool_link_ksettings_del_link_mode(ks, lp_advertising, in ice_get_settings_link_up()
1908 ethtool_link_ksettings_zero_link_mode(ks, lp_advertising); in ice_get_link_ksettings()
/drivers/net/ethernet/mellanox/mlx5/core/
Den_ethtool.c945 unsigned long *lp_advertising = link_ksettings->link_modes.lp_advertising; in get_lp_advertising() local
948 ptys2ethtool_adver_link(lp_advertising, eth_proto_lp, ext); in get_lp_advertising()
1023 lp_advertising, Autoneg); in mlx5e_ethtool_get_link_ksettings()
/drivers/s390/net/
Dqeth_ethtool.c333 ethtool_link_ksettings_zero_link_mode(cmd, lp_advertising); in qeth_set_ethtool_link_modes()
/drivers/net/dsa/mv88e6xxx/
Dserdes.c107 mii_lpa_mod_linkmode_x(state->lp_advertising, lpa, in mv88e6xxx_serdes_pcs_get_state()
110 mii_lpa_mod_linkmode_x(state->lp_advertising, lpa, in mv88e6xxx_serdes_pcs_get_state()

12