Home
last modified time | relevance | path

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

123

/linux-6.1.9/drivers/net/phy/
Dphy-c45.c467 linkmode_clear_bit(ETHTOOL_LINK_MODE_Autoneg_BIT, phydev->lp_advertising); in genphy_c45_baset1_read_lpa()
468 mii_t1_adv_l_mod_linkmode_t(phydev->lp_advertising, 0); in genphy_c45_baset1_read_lpa()
469 mii_t1_adv_m_mod_linkmode_t(phydev->lp_advertising, 0); in genphy_c45_baset1_read_lpa()
477 linkmode_mod_bit(ETHTOOL_LINK_MODE_Autoneg_BIT, phydev->lp_advertising, 1); in genphy_c45_baset1_read_lpa()
483 mii_t1_adv_l_mod_linkmode_t(phydev->lp_advertising, val); in genphy_c45_baset1_read_lpa()
491 mii_t1_adv_m_mod_linkmode_t(phydev->lp_advertising, val); in genphy_c45_baset1_read_lpa()
519 phydev->lp_advertising); in genphy_c45_read_lpa()
520 mii_10gbt_stat_mod_linkmode_lpa_t(phydev->lp_advertising, 0); in genphy_c45_read_lpa()
521 mii_adv_mod_linkmode_adv_t(phydev->lp_advertising, 0); in genphy_c45_read_lpa()
528 linkmode_mod_bit(ETHTOOL_LINK_MODE_Autoneg_BIT, phydev->lp_advertising, in genphy_c45_read_lpa()
[all …]
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()
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()
Dphy-core.c413 phydev->lp_advertising); in phy_resolve_aneg_pause()
416 phydev->lp_advertising); in phy_resolve_aneg_pause()
434 linkmode_and(common, phydev->lp_advertising, phydev->advertising); in phy_resolve_aneg_linkmode()
467 linkmode_and(common, phydev->lp_advertising, phydev->advertising); in phy_check_downshift()
490 linkmode_and(common, phydev->lp_advertising, phydev->advertising); in phy_resolve_min_speed()
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()
Dphylink.c711 pl->link_config.lp_advertising); in phylink_parse_fixedlink()
714 pl->link_config.lp_advertising); in phylink_parse_fixedlink()
747 pl->link_config.lp_advertising); in phylink_parse_fixedlink()
750 pl->link_config.lp_advertising); in phylink_parse_fixedlink()
772 __set_bit(s->bit, pl->link_config.lp_advertising); in phylink_parse_fixedlink()
941 state->lp_advertising, in phylink_resolve_flow()
1105 linkmode_zero(state->lp_advertising); in phylink_mac_pcs_get_state()
2101 linkmode_copy(kset->link_modes.lp_advertising, state->lp_advertising); in phylink_get_ksettings()
2534 unsigned long *lpa = state->lp_advertising; in phylink_mii_emul_read()
3157 mii_lpa_mod_linkmode_x(state->lp_advertising, config_reg, fd_bit); in phylink_decode_c37_word()
[all …]
Dphy_device.c2330 mii_stat1000_mod_linkmode_lpa_t(phydev->lp_advertising, in genphy_read_lpa()
2332 mii_lpa_mod_linkmode_lpa_t(phydev->lp_advertising, 0); in genphy_read_lpa()
2354 mii_stat1000_mod_linkmode_lpa_t(phydev->lp_advertising, in genphy_read_lpa()
2362 mii_lpa_mod_linkmode_lpa_t(phydev->lp_advertising, lpa); in genphy_read_lpa()
2364 linkmode_zero(phydev->lp_advertising); in genphy_read_lpa()
2483 phydev->lp_advertising, lpa & LPA_LPACK); in genphy_c37_read_status()
2485 phydev->lp_advertising, lpa & LPA_1000XFULL); in genphy_c37_read_status()
2487 phydev->lp_advertising, lpa & LPA_1000XPAUSE); in genphy_c37_read_status()
2489 phydev->lp_advertising, in genphy_c37_read_status()
2826 phydev->lp_advertising, in phy_get_pause()
Ddp83td510.c129 linkmode_zero(phydev->lp_advertising); in dp83td510_read_status()
Drealtek.c689 phydev->lp_advertising, lpadv & RTL_LPADV_10000FULL); in rtl822x_read_status()
691 phydev->lp_advertising, lpadv & RTL_LPADV_5000FULL); in rtl822x_read_status()
693 phydev->lp_advertising, lpadv & RTL_LPADV_2500FULL); in rtl822x_read_status()
Daquantia_main.c351 phydev->lp_advertising, in aqr_read_status()
354 phydev->lp_advertising, in aqr_read_status()
Dmxl-gpy.c502 mii_stat1000_mod_linkmode_lpa_t(phydev->lp_advertising, ret); in gpy_read_status()
504 linkmode_zero(phydev->lp_advertising); in gpy_read_status()
/linux-6.1.9/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()
/linux-6.1.9/include/linux/
Dmii.h412 static inline void mii_lpa_to_linkmode_lpa_t(unsigned long *lp_advertising, in mii_lpa_to_linkmode_lpa_t() argument
415 mii_adv_to_linkmode_adv_t(lp_advertising, lpa); in mii_lpa_to_linkmode_lpa_t()
419 lp_advertising); in mii_lpa_to_linkmode_lpa_t()
431 static inline void mii_lpa_mod_linkmode_lpa_t(unsigned long *lp_advertising, in mii_lpa_mod_linkmode_lpa_t() argument
434 mii_adv_mod_linkmode_adv_t(lp_advertising, lpa); in mii_lpa_mod_linkmode_lpa_t()
437 lp_advertising, lpa & LPA_LPACK); in mii_lpa_mod_linkmode_lpa_t()
Dphylink.h101 __ETHTOOL_DECLARE_LINK_MODE_MASK(lp_advertising);
/linux-6.1.9/drivers/net/pcs/
Dpcs-xpcs.c533 phylink_clear(state->lp_advertising, Autoneg); in xpcs_read_lpa_c73()
537 phylink_set(state->lp_advertising, Autoneg); in xpcs_read_lpa_c73()
545 phylink_set(state->lp_advertising, 2500baseX_Full); in xpcs_read_lpa_c73()
552 phylink_set(state->lp_advertising, 1000baseKX_Full); in xpcs_read_lpa_c73()
554 phylink_set(state->lp_advertising, 10000baseKX4_Full); in xpcs_read_lpa_c73()
556 phylink_set(state->lp_advertising, 10000baseKR_Full); in xpcs_read_lpa_c73()
563 phylink_set(state->lp_advertising, Pause); in xpcs_read_lpa_c73()
565 phylink_set(state->lp_advertising, Asym_Pause); in xpcs_read_lpa_c73()
567 linkmode_and(state->lp_advertising, state->lp_advertising, in xpcs_read_lpa_c73()
575 int max_speed = xpcs_get_max_usxgmii_speed(state->lp_advertising); in xpcs_resolve_lpa_c73()
/linux-6.1.9/drivers/net/ethernet/stmicro/stmmac/
Dstmmac_ethtool.c311 u32 supported, advertising, lp_advertising; in stmmac_ethtool_get_link_ksettings() local
333 &lp_advertising, cmd->link_modes.lp_advertising); in stmmac_ethtool_get_link_ksettings()
340 lp_advertising |= ADVERTISED_Pause; in stmmac_ethtool_get_link_ksettings()
342 lp_advertising |= ADVERTISED_Asym_Pause; in stmmac_ethtool_get_link_ksettings()
348 lp_advertising |= ADVERTISED_Autoneg; in stmmac_ethtool_get_link_ksettings()
366 lp_advertising |= (ADVERTISED_1000baseT_Full | in stmmac_ethtool_get_link_ksettings()
370 lp_advertising |= (ADVERTISED_1000baseT_Half | in stmmac_ethtool_get_link_ksettings()
380 cmd->link_modes.lp_advertising, lp_advertising); in stmmac_ethtool_get_link_ksettings()
/linux-6.1.9/drivers/net/ethernet/marvell/prestera/
Dprestera_ethtool.c446 prestera_modes_to_eth(ecmd->link_modes.lp_advertising, in prestera_port_remote_cap_get()
449 if (!bitmap_empty(ecmd->link_modes.lp_advertising, in prestera_port_remote_cap_get()
452 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()
520 ethtool_link_ksettings_zero_link_mode(ecmd, lp_advertising); in prestera_ethtool_get_link_ksettings()
/linux-6.1.9/net/ethtool/
Dlinkmodes.c52 bitmap_empty(data->ksettings.link_modes.lp_advertising, in linkmodes_prepare_data()
83 ret = ethnl_bitset_size(ksettings->link_modes.lp_advertising, in linkmodes_reply_size()
122 ksettings->link_modes.lp_advertising, in linkmodes_fill_reply()
Dcommon.c472 link_ksettings->link_modes.lp_advertising, in convert_legacy_settings_to_link_ksettings()
473 legacy_settings->lp_advertising); in convert_legacy_settings_to_link_ksettings()
/linux-6.1.9/drivers/net/ethernet/aquantia/atlantic/
Daq_nic.c1217 ethtool_link_ksettings_zero_link_mode(cmd, lp_advertising); in aq_nic_get_link_ksettings()
1221 ethtool_link_ksettings_add_link_mode(cmd, lp_advertising, in aq_nic_get_link_ksettings()
1225 ethtool_link_ksettings_add_link_mode(cmd, lp_advertising, in aq_nic_get_link_ksettings()
1229 ethtool_link_ksettings_add_link_mode(cmd, lp_advertising, in aq_nic_get_link_ksettings()
1233 ethtool_link_ksettings_add_link_mode(cmd, lp_advertising, in aq_nic_get_link_ksettings()
1237 ethtool_link_ksettings_add_link_mode(cmd, lp_advertising, in aq_nic_get_link_ksettings()
1241 ethtool_link_ksettings_add_link_mode(cmd, lp_advertising, in aq_nic_get_link_ksettings()
1245 ethtool_link_ksettings_add_link_mode(cmd, lp_advertising, in aq_nic_get_link_ksettings()
1249 ethtool_link_ksettings_add_link_mode(cmd, lp_advertising, in aq_nic_get_link_ksettings()
1253 ethtool_link_ksettings_add_link_mode(cmd, lp_advertising, in aq_nic_get_link_ksettings()
[all …]
/linux-6.1.9/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 …]
/linux-6.1.9/drivers/net/ethernet/amd/xgbe/
Dxgbe.h333 ethtool_link_ksettings_zero_link_mode((_ls), lp_advertising)
336 ethtool_link_ksettings_add_link_mode((_ls), lp_advertising, _mode)
339 ethtool_link_ksettings_del_link_mode((_ls), lp_advertising, _mode)
342 ethtool_link_ksettings_test_link_mode((_ls), lp_advertising, _mode)
/linux-6.1.9/drivers/net/ethernet/fungible/funeth/
Dfuneth_ethtool.c208 u64 lp_advertising; in fun_get_link_ksettings() local
213 ethtool_link_ksettings_zero_link_mode(ks, lp_advertising); in fun_get_link_ksettings()
221 lp_advertising = fp->lp_advertising; in fun_get_link_ksettings()
227 fun_link_modes_to_ethtool(lp_advertising, in fun_get_link_ksettings()
228 ks->link_modes.lp_advertising); in fun_get_link_ksettings()
Dfuneth.h102 u64 lp_advertising; member

123