Home
last modified time | relevance | path

Searched full:advertising (Results 1 – 25 of 365) sorted by relevance

12345678910>>...15

/Linux-v6.6/include/linux/
Dmii.h20 int advertising; member
137 * @advertising: the linkmode advertisement settings
143 static inline u32 linkmode_adv_to_mii_adv_t(unsigned long *advertising) in linkmode_adv_to_mii_adv_t() argument
147 if (linkmode_test_bit(ETHTOOL_LINK_MODE_10baseT_Half_BIT, advertising)) in linkmode_adv_to_mii_adv_t()
149 if (linkmode_test_bit(ETHTOOL_LINK_MODE_10baseT_Full_BIT, advertising)) in linkmode_adv_to_mii_adv_t()
151 if (linkmode_test_bit(ETHTOOL_LINK_MODE_100baseT_Half_BIT, advertising)) in linkmode_adv_to_mii_adv_t()
153 if (linkmode_test_bit(ETHTOOL_LINK_MODE_100baseT_Full_BIT, advertising)) in linkmode_adv_to_mii_adv_t()
155 if (linkmode_test_bit(ETHTOOL_LINK_MODE_Pause_BIT, advertising)) in linkmode_adv_to_mii_adv_t()
157 if (linkmode_test_bit(ETHTOOL_LINK_MODE_Asym_Pause_BIT, advertising)) in linkmode_adv_to_mii_adv_t()
212 * @advertising: the linkmode advertisement settings
[all …]
Dmdio.h303 * @advertising: the linkmode advertisement settings
309 static inline u32 linkmode_adv_to_mii_10gbt_adv_t(unsigned long *advertising) in linkmode_adv_to_mii_10gbt_adv_t() argument
314 advertising)) in linkmode_adv_to_mii_10gbt_adv_t()
317 advertising)) in linkmode_adv_to_mii_10gbt_adv_t()
320 advertising)) in linkmode_adv_to_mii_10gbt_adv_t()
328 * @advertising: target the linkmode advertisement settings
332 * to linkmode advertisement settings. Other bits in advertising aren't changed.
334 static inline void mii_10gbt_stat_mod_linkmode_lpa_t(unsigned long *advertising, in mii_10gbt_stat_mod_linkmode_lpa_t() argument
338 advertising, lpa & MDIO_AN_10GBT_STAT_LP2_5G); in mii_10gbt_stat_mod_linkmode_lpa_t()
340 advertising, lpa & MDIO_AN_10GBT_STAT_LP5G); in mii_10gbt_stat_mod_linkmode_lpa_t()
[all …]
Dphylink.h105 * @advertising: adertisement ethtool link mode mask
122 const unsigned long *advertising) in phylink_pcs_neg_mode() argument
153 advertising)) in phylink_pcs_neg_mode()
169 * @advertising: ethtool bitmask containing advertised link modes
184 __ETHTOOL_DECLARE_LINK_MODE_MASK(advertising);
267 * Clear bits in the @supported and @state->advertising masks that
365 * @state->advertising may be used, but is not required.
373 * Valid state members: interface, advertising.
389 * according to the @state->an_enabled and @state->advertising
400 * Valid state members: interface, an_enabled, pause, advertising.
[all …]
/Linux-v6.6/drivers/net/ethernet/marvell/octeon_ep/
Doctep_ethtool.c287 ethtool_link_ksettings_zero_link_mode(cmd, advertising); in octep_get_link_ksettings()
296 OCTEP_SET_ETHTOOL_LINK_MODES_BITMAP(advertised_modes, cmd, advertising); in octep_get_link_ksettings()
302 ethtool_link_ksettings_add_link_mode(cmd, advertising, Autoneg); in octep_get_link_ksettings()
315 ethtool_link_ksettings_add_link_mode(cmd, advertising, Pause); in octep_get_link_ksettings()
320 ethtool_link_ksettings_add_link_mode(cmd, advertising, FIBRE); in octep_get_link_ksettings()
358 if (!bitmap_subset(cmd->link_modes.advertising, in octep_set_link_ksettings()
363 if (ethtool_link_ksettings_test_link_mode(cmd, advertising, in octep_set_link_ksettings()
366 if (ethtool_link_ksettings_test_link_mode(cmd, advertising, in octep_set_link_ksettings()
369 if (ethtool_link_ksettings_test_link_mode(cmd, advertising, in octep_set_link_ksettings()
372 if (ethtool_link_ksettings_test_link_mode(cmd, advertising, in octep_set_link_ksettings()
[all …]
/Linux-v6.6/drivers/net/
Dmii.c77 ecmd->advertising = ADVERTISED_TP | ADVERTISED_MII; in mii_ethtool_gset()
86 ecmd->advertising |= mii_get_an(mii, MII_ADVERTISE); in mii_ethtool_gset()
88 ecmd->advertising |= in mii_ethtool_gset()
92 ecmd->advertising |= ADVERTISED_Autoneg; 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
163 advertising = ADVERTISED_TP | ADVERTISED_MII; in mii_ethtool_get_link_ksettings()
172 advertising |= mii_get_an(mii, MII_ADVERTISE); in mii_ethtool_get_link_ksettings()
174 advertising |= mii_ctrl1000_to_ethtool_adv_t(ctrl1000); in mii_ethtool_get_link_ksettings()
177 advertising |= ADVERTISED_Autoneg; in mii_ethtool_get_link_ksettings()
[all …]
Dmdio.c220 ecmd->advertising = ADVERTISED_TP; in mdio45_ethtool_gset_npage()
226 ecmd->advertising = 0; in mdio45_ethtool_gset_npage()
246 ecmd->advertising = ADVERTISED_Backplane; in mdio45_ethtool_gset_npage()
253 ecmd->advertising = ADVERTISED_FIBRE; in mdio45_ethtool_gset_npage()
263 ecmd->advertising |= in mdio45_ethtool_gset_npage()
286 modes = ecmd->advertising & ecmd->lp_advertising; in mdio45_ethtool_gset_npage()
289 modes = ecmd->advertising; in mdio45_ethtool_gset_npage()
360 u32 speed, supported = 0, advertising = 0, lp_advertising = 0; in mdio45_ethtool_ksettings_get_npage() local
391 advertising = ADVERTISED_TP; in mdio45_ethtool_ksettings_get_npage()
397 advertising = 0; in mdio45_ethtool_ksettings_get_npage()
[all …]
/Linux-v6.6/drivers/net/ethernet/atheros/alx/
Dethtool.c133 u32 supported, advertising; in alx_get_link_ksettings() local
143 advertising = ADVERTISED_TP; in alx_get_link_ksettings()
145 advertising |= hw->adv_cfg; in alx_get_link_ksettings()
157 advertising |= ADVERTISED_Pause; in alx_get_link_ksettings()
160 advertising |= ADVERTISED_Asym_Pause; in alx_get_link_ksettings()
162 advertising |= ADVERTISED_Asym_Pause; in alx_get_link_ksettings()
173 ethtool_convert_legacy_u32_to_link_mode(cmd->link_modes.advertising, in alx_get_link_ksettings()
174 advertising); in alx_get_link_ksettings()
185 u32 advertising; in alx_set_link_ksettings() local
188 ethtool_convert_link_mode_to_legacy_u32(&advertising, in alx_set_link_ksettings()
[all …]
/Linux-v6.6/drivers/s390/net/
Dqeth_ethtool.c326 /* Helper function to fill 'advertising' and 'supported' which are the same. */
334 ethtool_link_ksettings_zero_link_mode(cmd, advertising); in qeth_set_ethtool_link_modes()
338 ethtool_link_ksettings_add_link_mode(cmd, advertising, Autoneg); in qeth_set_ethtool_link_modes()
343 ethtool_link_ksettings_add_link_mode(cmd, advertising, TP); in qeth_set_ethtool_link_modes()
349 ethtool_link_ksettings_add_link_mode(cmd, advertising, in qeth_set_ethtool_link_modes()
355 ethtool_link_ksettings_add_link_mode(cmd, advertising, in qeth_set_ethtool_link_modes()
359 ethtool_link_ksettings_add_link_mode(cmd, advertising, in qeth_set_ethtool_link_modes()
365 ethtool_link_ksettings_add_link_mode(cmd, advertising, in qeth_set_ethtool_link_modes()
369 ethtool_link_ksettings_add_link_mode(cmd, advertising, in qeth_set_ethtool_link_modes()
375 ethtool_link_ksettings_add_link_mode(cmd, advertising, in qeth_set_ethtool_link_modes()
[all …]
/Linux-v6.6/drivers/net/ethernet/atheros/atl1e/
Datl1e_ethtool.c20 u32 supported, advertising; in atl1e_get_link_ksettings() local
31 advertising = ADVERTISED_TP; in atl1e_get_link_ksettings()
33 advertising |= ADVERTISED_Autoneg; in atl1e_get_link_ksettings()
34 advertising |= hw->autoneg_advertised; in atl1e_get_link_ksettings()
54 ethtool_convert_legacy_u32_to_link_mode(cmd->link_modes.advertising, in atl1e_get_link_ksettings()
55 advertising); in atl1e_get_link_ksettings()
65 u32 advertising; in atl1e_set_link_ksettings() local
67 ethtool_convert_link_mode_to_legacy_u32(&advertising, in atl1e_set_link_ksettings()
68 cmd->link_modes.advertising); in atl1e_set_link_ksettings()
76 if (advertising & ADVERTISE_1000_FULL) { in atl1e_set_link_ksettings()
[all …]
/Linux-v6.6/drivers/net/phy/
Dphylink.c635 linkmode_and(state->advertising, state->advertising, mask); in phylink_validate_mask_caps()
690 /* Ensure the advertising mask is a subset of the in phylink_validate_mac_and_pcs()
693 linkmode_and(state->advertising, state->advertising, in phylink_validate_mac_and_pcs()
725 linkmode_or(all_adv, all_adv, t.advertising); in phylink_validate_mask()
731 linkmode_copy(state->advertising, all_adv); in phylink_validate_mask()
824 linkmode_copy(pl->link_config.advertising, pl->supported); in phylink_parse_fixedlink()
853 linkmode_and(pl->link_config.advertising, pl->link_config.advertising, in phylink_parse_fixedlink()
982 linkmode_copy(pl->link_config.advertising, pl->supported); in phylink_parse_mode()
999 state->advertising)) in phylink_apply_manual_flow()
1012 linkmode_resolve_pause(state->advertising, in phylink_resolve_an_pause()
[all …]
Dphy.c94 phydev->advertising); in phy_pause_str()
96 phydev->advertising); in phy_pause_str()
293 linkmode_copy(cmd->link_modes.advertising, phydev->advertising); in phy_ethtool_ksettings_get()
382 mii_adv_mod_linkmode_adv_t(phydev->advertising, in phy_mii_ioctl()
387 mii_ctrl1000_mod_linkmode_adv_t(phydev->advertising, in phy_mii_ioctl()
641 phydev->advertising)) { in plca_check_valid()
1046 __ETHTOOL_DECLARE_LINK_MODE_MASK(advertising); in phy_ethtool_ksettings_set()
1054 linkmode_copy(advertising, cmd->link_modes.advertising); in phy_ethtool_ksettings_set()
1057 linkmode_and(advertising, advertising, phydev->supported); in phy_ethtool_ksettings_set()
1063 if (autoneg == AUTONEG_ENABLE && linkmode_empty(advertising)) in phy_ethtool_ksettings_set()
[all …]
/Linux-v6.6/net/ethtool/
Dlinkmodes.c75 ret = ethnl_bitset_size(ksettings->link_modes.advertising, in linkmodes_reply_size()
114 ksettings->link_modes.advertising, in linkmodes_fill_reply()
176 unsigned long *advertising = ksettings->link_modes.advertising; in ethnl_auto_linkmodes() local
181 bitmap_copy(old_adv, advertising, __ETHTOOL_LINK_MODE_MASK_NBITS); in ethnl_auto_linkmodes()
192 set_bit(i, advertising); in ethnl_auto_linkmodes()
194 clear_bit(i, advertising); in ethnl_auto_linkmodes()
197 return !bitmap_equal(old_adv, advertising, in ethnl_auto_linkmodes()
281 ret = ethnl_update_bitset(ksettings->link_modes.advertising, in ethnl_update_linkmodes()
/Linux-v6.6/drivers/net/ethernet/intel/i40e/
Di40e_ethtool.c495 ethtool_link_ksettings_zero_link_mode(ks, advertising); in i40e_phy_type_to_ethtool()
501 ethtool_link_ksettings_add_link_mode(ks, advertising, in i40e_phy_type_to_ethtool()
506 ethtool_link_ksettings_add_link_mode(ks, advertising, in i40e_phy_type_to_ethtool()
518 ethtool_link_ksettings_add_link_mode(ks, advertising, in i40e_phy_type_to_ethtool()
525 ethtool_link_ksettings_add_link_mode(ks, advertising, in i40e_phy_type_to_ethtool()
532 ethtool_link_ksettings_add_link_mode(ks, advertising, in i40e_phy_type_to_ethtool()
539 ethtool_link_ksettings_add_link_mode(ks, advertising, in i40e_phy_type_to_ethtool()
552 ethtool_link_ksettings_add_link_mode(ks, advertising, in i40e_phy_type_to_ethtool()
559 ethtool_link_ksettings_add_link_mode(ks, advertising, in i40e_phy_type_to_ethtool()
566 ethtool_link_ksettings_add_link_mode(ks, advertising, in i40e_phy_type_to_ethtool()
[all …]
/Linux-v6.6/drivers/net/ethernet/sfc/falcon/
Dmdio_10g.c236 u32 prev_advertising, advertising; in ef4_mdio_set_link_ksettings() local
241 ethtool_convert_link_mode_to_legacy_u32(&advertising, in ef4_mdio_set_link_ksettings()
242 cmd->link_modes.advertising); in ef4_mdio_set_link_ksettings()
244 prev.link_modes.advertising); in ef4_mdio_set_link_ksettings()
248 if (advertising == prev_advertising && in ef4_mdio_set_link_ksettings()
261 (advertising | SUPPORTED_Autoneg) & ~prev_supported) in ef4_mdio_set_link_ksettings()
264 ef4_link_set_advertising(efx, advertising | ADVERTISED_Autoneg); in ef4_mdio_set_link_ksettings()
270 * ef4_mdio_an_reconfigure - Push advertising flags and restart autonegotiation
/Linux-v6.6/drivers/net/ethernet/oki-semi/pch_gbe/
Dpch_gbe_ethtool.c78 u32 supported, advertising; in pch_gbe_get_link_ksettings() local
84 ethtool_convert_link_mode_to_legacy_u32(&advertising, in pch_gbe_get_link_ksettings()
85 ecmd->link_modes.advertising); in pch_gbe_get_link_ksettings()
88 advertising &= ~(ADVERTISED_TP | ADVERTISED_1000baseT_Half); in pch_gbe_get_link_ksettings()
92 ethtool_convert_legacy_u32_to_link_mode(ecmd->link_modes.advertising, in pch_gbe_get_link_ksettings()
93 advertising); in pch_gbe_get_link_ksettings()
116 u32 advertising; in pch_gbe_set_link_ksettings() local
138 &advertising, copy_ecmd.link_modes.advertising); in pch_gbe_set_link_ksettings()
139 hw->phy.autoneg_advertised = advertising; in pch_gbe_set_link_ksettings()
/Linux-v6.6/drivers/net/ethernet/fungible/funeth/
Dfuneth_ethtool.c177 static void set_asym_pause(u64 advertising, struct ethtool_link_ksettings *ks) in set_asym_pause() argument
181 rx_pause = advertising & FUN_PORT_CAP_RX_PAUSE; in set_asym_pause()
182 tx_pause = advertising & FUN_PORT_CAP_TX_PAUSE; in set_asym_pause()
184 ethtool_link_ksettings_add_link_mode(ks, advertising, in set_asym_pause()
212 ethtool_link_ksettings_zero_link_mode(ks, advertising); in fun_get_link_ksettings()
234 ks->base.autoneg = (fp->advertising & FUN_PORT_CAP_AUTONEG) ? in fun_get_link_ksettings()
242 fun_link_modes_to_ethtool(fp->advertising, ks->link_modes.advertising); in fun_get_link_ksettings()
243 set_asym_pause(fp->advertising, ks); in fun_get_link_ksettings()
252 ethtool_link_ksettings_test_link_mode(ks, advertising, mode) in fun_advert_modes()
304 if (new_advert == fp->advertising) in fun_change_advert()
[all …]
/Linux-v6.6/drivers/net/ethernet/dec/tulip/
Dmedia.c309 tp->advertising[phy_num] = tmp_info | 1; in tulip_select_media()
312 tp->mii_advertise = tp->advertising[phy_num]; in tulip_select_media()
314 netdev_dbg(dev, " Advertising %04x on MII %d\n", in tulip_select_media()
419 negotiated = lpa & tp->advertising[0]; in tulip_check_duplex()
470 /* if not advertising at all, gen an in tulip_find_mii()
471 * advertising value from the capability in tulip_find_mii()
480 tp->advertising[phy_idx] = in tulip_find_mii()
482 } else if (tp->advertising[phy_idx]) { in tulip_find_mii()
483 to_advert = tp->advertising[phy_idx]; in tulip_find_mii()
485 tp->advertising[phy_idx] = in tulip_find_mii()
[all …]
/Linux-v6.6/Documentation/devicetree/bindings/net/
Dethernet-phy.yaml121 broken and request the ethernet to stop advertising it.
127 broken and request the ethernet to stop advertising it.
133 broken and request the ethernet to stop advertising it.
139 broken and request the ethernet to stop advertising it.
145 broken and request the ethernet to stop advertising it.
151 broken and request the ethernet to stop advertising it.
/Linux-v6.6/drivers/net/ethernet/microchip/sparx5/
Dsparx5_phylink.c96 const unsigned long *advertising, in sparx5_pcs_config() argument
110 if (phylink_test(advertising, Pause)) in sparx5_pcs_config()
112 if (phylink_test(advertising, Asym_Pause)) in sparx5_pcs_config()
115 if (phylink_test(advertising, FIBRE)) in sparx5_pcs_config()
/Linux-v6.6/drivers/net/ethernet/qlogic/netxen/
Dnetxen_nic_ethtool.c88 u32 supported, advertising; in netxen_nic_get_link_ksettings() local
99 advertising = (ADVERTISED_100baseT_Half | in netxen_nic_get_link_ksettings()
116 advertising = ADVERTISED_1000baseT_Full; in netxen_nic_get_link_ksettings()
119 advertising = ADVERTISED_10000baseT_Full; in netxen_nic_get_link_ksettings()
155 advertising |= ADVERTISED_Autoneg; in netxen_nic_get_link_ksettings()
162 advertising |= ADVERTISED_TP; in netxen_nic_get_link_ksettings()
174 advertising |= ADVERTISED_MII; in netxen_nic_get_link_ksettings()
181 advertising |= ADVERTISED_TP; in netxen_nic_get_link_ksettings()
189 advertising |= ADVERTISED_FIBRE; in netxen_nic_get_link_ksettings()
197 advertising |= in netxen_nic_get_link_ksettings()
[all …]
/Linux-v6.6/drivers/net/ethernet/intel/ice/
Dice_ethtool.c1680 ks->link_modes.advertising); in ice_linkmode_set_bit()
1707 * media. The Advertising link mode is either 1. the user requested in ice_phy_type_to_ethtool()
1711 * and Advertising link modes are the media PHY type or the speed in ice_phy_type_to_ethtool()
1730 * Advertising link mode is the intersection of the PHY in ice_phy_type_to_ethtool()
1749 /* If Advertising link mode PHY type is not using override PHY type, in ice_phy_type_to_ethtool()
1758 linkmode_zero(ks->link_modes.advertising); in ice_phy_type_to_ethtool()
1902 ethtool_link_ksettings_zero_link_mode(ks, advertising); in ice_get_link_ksettings()
1924 ethtool_link_ksettings_add_link_mode(ks, advertising, TP); in ice_get_link_ksettings()
1929 ethtool_link_ksettings_add_link_mode(ks, advertising, in ice_get_link_ksettings()
1935 ethtool_link_ksettings_add_link_mode(ks, advertising, FIBRE); in ice_get_link_ksettings()
[all …]
/Linux-v6.6/drivers/net/ethernet/ibm/ehea/
Dehea_ethtool.c24 u32 supported, advertising; in ehea_get_link_ksettings() local
61 advertising = (ADVERTISED_10000baseT_Full | ADVERTISED_FIBRE); in ehea_get_link_ksettings()
68 advertising = (ADVERTISED_1000baseT_Full | ADVERTISED_Autoneg in ehea_get_link_ksettings()
78 ethtool_convert_legacy_u32_to_link_mode(cmd->link_modes.advertising, in ehea_get_link_ksettings()
79 advertising); in ehea_get_link_ksettings()
/Linux-v6.6/drivers/net/ethernet/silan/
Dsc92031.c1126 u32 supported, advertising; in sc92031_ethtool_get_link_ksettings() local
1142 advertising = ADVERTISED_TP | ADVERTISED_MII; in sc92031_ethtool_get_link_ksettings()
1146 advertising |= ADVERTISED_Autoneg; in sc92031_ethtool_get_link_ksettings()
1149 advertising |= ADVERTISED_10baseT_Half; in sc92031_ethtool_get_link_ksettings()
1153 advertising |= ADVERTISED_10baseT_Full; in sc92031_ethtool_get_link_ksettings()
1156 advertising |= ADVERTISED_100baseT_Half; in sc92031_ethtool_get_link_ksettings()
1160 advertising |= ADVERTISED_100baseT_Full; in sc92031_ethtool_get_link_ksettings()
1163 advertising |= ADVERTISED_Autoneg; in sc92031_ethtool_get_link_ksettings()
1174 ethtool_convert_legacy_u32_to_link_mode(cmd->link_modes.advertising, in sc92031_ethtool_get_link_ksettings()
1175 advertising); in sc92031_ethtool_get_link_ksettings()
[all …]
/Linux-v6.6/drivers/net/ethernet/broadcom/bnx2x/
Dbnx2x_ethtool.c225 u32 supported, advertising; in bnx2x_get_vf_link_ksettings() local
229 ethtool_convert_link_mode_to_legacy_u32(&advertising, in bnx2x_get_vf_link_ksettings()
230 cmd->link_modes.advertising); in bnx2x_get_vf_link_ksettings()
250 " supported 0x%x advertising 0x%x speed %u\n" in bnx2x_get_vf_link_ksettings()
253 cmd->base.cmd, supported, advertising, in bnx2x_get_vf_link_ksettings()
267 u32 supported, advertising, lp_advertising; in bnx2x_get_link_ksettings() local
276 advertising = bp->port.advertising[cfg_idx]; in bnx2x_get_link_ksettings()
280 advertising &= ~(ADVERTISED_10000baseT_Full); in bnx2x_get_link_ksettings()
351 ethtool_convert_legacy_u32_to_link_mode(cmd->link_modes.advertising, in bnx2x_get_link_ksettings()
352 advertising); in bnx2x_get_link_ksettings()
[all …]
/Linux-v6.6/drivers/net/pcs/
Dpcs-lynx.c117 const unsigned long *advertising, in lynx_pcs_config_giga() argument
148 return phylink_mii_c22_pcs_config(pcs, interface, advertising, in lynx_pcs_config_giga()
153 const unsigned long *advertising, in lynx_pcs_config_usxgmii() argument
173 const unsigned long *advertising, bool permit) in lynx_pcs_config() argument
181 return lynx_pcs_config_giga(lynx->mdio, ifmode, advertising, in lynx_pcs_config()
191 return lynx_pcs_config_usxgmii(lynx->mdio, advertising, in lynx_pcs_config()

12345678910>>...15