Home
last modified time | relevance | path

Searched refs:advertising (Results 1 – 25 of 223) sorted by relevance

123456789

/linux-6.1.9/include/linux/ !
Dmii.h20 int advertising; member
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()
218 static inline u32 linkmode_adv_to_mii_ctrl1000_t(unsigned long *advertising) in linkmode_adv_to_mii_ctrl1000_t() argument
223 advertising)) in linkmode_adv_to_mii_ctrl1000_t()
[all …]
Dmdio.h307 static inline u32 linkmode_adv_to_mii_10gbt_adv_t(unsigned long *advertising) in linkmode_adv_to_mii_10gbt_adv_t() argument
312 advertising)) in linkmode_adv_to_mii_10gbt_adv_t()
315 advertising)) in linkmode_adv_to_mii_10gbt_adv_t()
318 advertising)) in linkmode_adv_to_mii_10gbt_adv_t()
332 static inline void mii_10gbt_stat_mod_linkmode_lpa_t(unsigned long *advertising, in mii_10gbt_stat_mod_linkmode_lpa_t() argument
336 advertising, lpa & MDIO_AN_10GBT_STAT_LP2_5G); in mii_10gbt_stat_mod_linkmode_lpa_t()
338 advertising, lpa & MDIO_AN_10GBT_STAT_LP5G); in mii_10gbt_stat_mod_linkmode_lpa_t()
340 advertising, lpa & MDIO_AN_10GBT_STAT_LP10G); in mii_10gbt_stat_mod_linkmode_lpa_t()
352 static inline void mii_t1_adv_l_mod_linkmode_t(unsigned long *advertising, u32 lpa) in mii_t1_adv_l_mod_linkmode_t() argument
354 linkmode_mod_bit(ETHTOOL_LINK_MODE_Pause_BIT, advertising, in mii_t1_adv_l_mod_linkmode_t()
[all …]
Dphylink.h100 __ETHTOOL_DECLARE_LINK_MODE_MASK(advertising);
462 const unsigned long *advertising,
528 phy_interface_t interface, const unsigned long *advertising,
621 const unsigned long *advertising);
624 const unsigned long *advertising);
/linux-6.1.9/drivers/net/ethernet/marvell/octeon_ep/ !
Doctep_ethtool.c284 ethtool_link_ksettings_zero_link_mode(cmd, advertising); in octep_get_link_ksettings()
293 OCTEP_SET_ETHTOOL_LINK_MODES_BITMAP(advertised_modes, cmd, advertising); in octep_get_link_ksettings()
299 ethtool_link_ksettings_add_link_mode(cmd, advertising, Autoneg); in octep_get_link_ksettings()
312 ethtool_link_ksettings_add_link_mode(cmd, advertising, Pause); in octep_get_link_ksettings()
317 ethtool_link_ksettings_add_link_mode(cmd, advertising, FIBRE); in octep_get_link_ksettings()
355 if (!bitmap_subset(cmd->link_modes.advertising, in octep_set_link_ksettings()
360 if (ethtool_link_ksettings_test_link_mode(cmd, 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()
[all …]
/linux-6.1.9/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-6.1.9/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-6.1.9/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-6.1.9/drivers/s390/net/ !
Dqeth_ethtool.c334 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()
379 ethtool_link_ksettings_add_link_mode(cmd, advertising, in qeth_set_ethtool_link_modes()
[all …]
/linux-6.1.9/drivers/net/phy/ !
Dphy.c80 phydev->advertising); in phy_pause_str()
82 phydev->advertising); in phy_pause_str()
279 linkmode_copy(cmd->link_modes.advertising, phydev->advertising); in phy_ethtool_ksettings_get()
368 mii_adv_mod_linkmode_adv_t(phydev->advertising, in phy_mii_ioctl()
373 mii_ctrl1000_mod_linkmode_adv_t(phydev->advertising, in phy_mii_ioctl()
806 __ETHTOOL_DECLARE_LINK_MODE_MASK(advertising); in phy_ethtool_ksettings_set()
814 linkmode_copy(advertising, cmd->link_modes.advertising); in phy_ethtool_ksettings_set()
817 linkmode_and(advertising, advertising, phydev->supported); in phy_ethtool_ksettings_set()
823 if (autoneg == AUTONEG_ENABLE && linkmode_empty(advertising)) in phy_ethtool_ksettings_set()
842 linkmode_copy(phydev->advertising, advertising); in phy_ethtool_ksettings_set()
[all …]
Dphylink.c589 linkmode_and(state->advertising, state->advertising, mask); in phylink_generic_validate()
630 linkmode_and(state->advertising, state->advertising, in phylink_validate_mac_and_pcs()
659 linkmode_or(all_adv, all_adv, t.advertising); in phylink_validate_mask()
665 linkmode_copy(state->advertising, all_adv); in phylink_validate_mask()
760 linkmode_copy(pl->link_config.advertising, pl->supported); in phylink_parse_fixedlink()
779 linkmode_and(pl->link_config.advertising, pl->link_config.advertising, in phylink_parse_fixedlink()
907 linkmode_copy(pl->link_config.advertising, pl->supported); in phylink_parse_mode()
940 linkmode_resolve_pause(state->advertising, in phylink_resolve_flow()
972 __ETHTOOL_LINK_MODE_MASK_NBITS, state->advertising, in phylink_mac_config()
1034 state->advertising, in phylink_major_config()
[all …]
/linux-6.1.9/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-6.1.9/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()
188 unsigned long *advertising = ksettings->link_modes.advertising; in ethnl_auto_linkmodes() local
193 bitmap_copy(old_adv, advertising, __ETHTOOL_LINK_MODE_MASK_NBITS); in ethnl_auto_linkmodes()
204 set_bit(i, advertising); in ethnl_auto_linkmodes()
206 clear_bit(i, advertising); in ethnl_auto_linkmodes()
209 return !bitmap_equal(old_adv, advertising, in ethnl_auto_linkmodes()
292 ret = ethnl_update_bitset(ksettings->link_modes.advertising, in ethnl_update_linkmodes()
/linux-6.1.9/drivers/net/ethernet/microchip/sparx5/ !
Dsparx5_phylink.c97 const unsigned long *advertising, in sparx5_pcs_config() argument
108 conf.autoneg = phylink_test(advertising, Autoneg); in sparx5_pcs_config()
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-6.1.9/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-6.1.9/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()
/linux-6.1.9/drivers/net/ethernet/microchip/lan966x/ !
Dlan966x_phylink.c102 const unsigned long *advertising, in lan966x_pcs_config() argument
112 config.autoneg = phylink_test(advertising, Autoneg); in lan966x_pcs_config()
113 config.advertising = advertising; in lan966x_pcs_config()
/linux-6.1.9/drivers/net/pcs/ !
Dpcs-lynx.c127 const unsigned long *advertising) in lynx_pcs_config_giga() argument
157 return phylink_mii_c22_pcs_config(pcs, mode, interface, advertising); in lynx_pcs_config_giga()
161 const unsigned long *advertising) in lynx_pcs_config_usxgmii() argument
180 const unsigned long *advertising, in lynx_pcs_config() argument
190 advertising); in lynx_pcs_config()
199 return lynx_pcs_config_usxgmii(lynx->mdio, mode, advertising); in lynx_pcs_config()
/linux-6.1.9/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-6.1.9/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-6.1.9/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-6.1.9/drivers/net/ethernet/natsemi/ !
Dnatsemi.c590 u16 advertising; member
762 np->advertising= mdio_read(dev, MII_ADVERTISE); in natsemi_init_media()
764 if ((np->advertising & ADVERTISE_ALL) != ADVERTISE_ALL && in natsemi_init_media()
771 (np->advertising & in natsemi_init_media()
774 (np->advertising & in natsemi_init_media()
782 np->advertising); in natsemi_init_media()
1156 np->advertising != mdio_read(dev, MII_ADVERTISE)) in init_phy_fixup()
1160 mdio_write(dev, MII_ADVERTISE, np->advertising); in init_phy_fixup()
1681 np->advertising & mdio_read(dev, MII_LPA)); in check_link()
2407 np->advertising, lpa); in netdev_error()
[all …]
/linux-6.1.9/drivers/net/ethernet/chelsio/cxgb/ !
Dcxgb2.c572 u32 supported, advertising; in get_link_ksettings() local
575 advertising = p->link_config.advertising; in get_link_ksettings()
591 ethtool_convert_legacy_u32_to_link_mode(cmd->link_modes.advertising, in get_link_ksettings()
592 advertising); in get_link_ksettings()
638 u32 advertising; in set_link_ksettings() local
640 ethtool_convert_link_mode_to_legacy_u32(&advertising, in set_link_ksettings()
641 cmd->link_modes.advertising); in set_link_ksettings()
654 lc->advertising = 0; in set_link_ksettings()
656 advertising &= ADVERTISED_MASK; in set_link_ksettings()
657 if (advertising & (advertising - 1)) in set_link_ksettings()
[all …]
/linux-6.1.9/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-6.1.9/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()
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()
360 cmd->base.cmd, supported, advertising, in bnx2x_get_link_ksettings()
[all …]

123456789