Home
last modified time | relevance | path

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

12345678

/linux/include/linux/
H A Dmii.h20 int advertising; member
143 static inline u32 linkmode_adv_to_mii_adv_t(const 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()
219 linkmode_adv_to_mii_ctrl1000_t(const unsigned long *advertising) in linkmode_adv_to_mii_ctrl1000_t() argument
224 advertising)) in linkmode_adv_to_mii_ctrl1000_t()
[all …]
H A Dphylink.h118 __ETHTOOL_DECLARE_LINK_MODE_MASK(advertising);
447 const unsigned long *advertising,
527 phy_interface_t interface, const unsigned long *advertising,
676 const unsigned long *advertising);
679 const unsigned long *advertising,
/linux/drivers/net/
H A 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 …]
/linux/drivers/net/ethernet/atheros/alx/
H A 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/drivers/s390/net/
H A 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/drivers/net/ethernet/atheros/atl1e/
H A 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/drivers/net/phy/
H A Dphylink.c644 linkmode_and(state->advertising, state->advertising, mask); in phylink_validate_mask_caps()
683 linkmode_and(state->advertising, state->advertising, in phylink_validate_mac_and_pcs()
726 tmp_state.advertising); in phylink_validate_one()
744 linkmode_copy(state->advertising, all_adv); in phylink_validate_mask()
838 linkmode_copy(pl->link_config.advertising, pl->supported); in phylink_parse_fixedlink()
860 linkmode_and(pl->link_config.advertising, pl->link_config.advertising, in phylink_parse_fixedlink()
934 linkmode_copy(pl->link_config.advertising, pl->supported); in phylink_parse_mode()
951 state->advertising)) in phylink_apply_manual_flow()
964 linkmode_resolve_pause(state->advertising, in phylink_resolve_an_pause()
1016 state->advertising, permit_pause_to_mac); in phylink_pcs_config()
[all …]
H A 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()
391 mii_adv_mod_linkmode_adv_t(phydev->advertising, in phy_mii_ioctl()
396 mii_ctrl1000_mod_linkmode_adv_t(phydev->advertising, in phy_mii_ioctl()
666 phydev->advertising)) { in plca_check_valid()
1080 __ETHTOOL_DECLARE_LINK_MODE_MASK(advertising); in phy_ethtool_ksettings_set()
1088 linkmode_copy(advertising, cmd->link_modes.advertising); in phy_ethtool_ksettings_set()
1091 linkmode_and(advertising, advertising, phydev->supported); in phy_ethtool_ksettings_set()
1098 (linkmode_empty(advertising) || in phy_ethtool_ksettings_set()
[all …]
/linux/drivers/net/ethernet/intel/i40e/
H A Di40e_ethtool.c497 ethtool_link_ksettings_zero_link_mode(ks, advertising); in i40e_phy_type_to_ethtool()
503 ethtool_link_ksettings_add_link_mode(ks, advertising, in i40e_phy_type_to_ethtool()
508 ethtool_link_ksettings_add_link_mode(ks, advertising, in i40e_phy_type_to_ethtool()
520 ethtool_link_ksettings_add_link_mode(ks, advertising, in i40e_phy_type_to_ethtool()
527 ethtool_link_ksettings_add_link_mode(ks, advertising, in i40e_phy_type_to_ethtool()
534 ethtool_link_ksettings_add_link_mode(ks, advertising, in i40e_phy_type_to_ethtool()
541 ethtool_link_ksettings_add_link_mode(ks, advertising, in i40e_phy_type_to_ethtool()
554 ethtool_link_ksettings_add_link_mode(ks, advertising, in i40e_phy_type_to_ethtool()
561 ethtool_link_ksettings_add_link_mode(ks, advertising, in i40e_phy_type_to_ethtool()
568 ethtool_link_ksettings_add_link_mode(ks, advertising, in i40e_phy_type_to_ethtool()
[all …]
/linux/net/ethtool/
H A 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/drivers/net/ethernet/oki-semi/pch_gbe/
H A 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/drivers/net/ethernet/sfc/falcon/
H A 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/drivers/net/ethernet/fungible/funeth/
H A 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/drivers/net/pcs/
H A Dpcs-lynx.c116 const unsigned long *advertising, in lynx_pcs_config_giga() argument
147 return phylink_mii_c22_pcs_config(pcs, interface, advertising, in lynx_pcs_config_giga()
152 const unsigned long *advertising, in lynx_pcs_config_usxgmii() argument
172 const unsigned long *advertising, bool permit) in lynx_pcs_config() argument
180 return lynx_pcs_config_giga(lynx->mdio, ifmode, advertising, in lynx_pcs_config()
190 return lynx_pcs_config_usxgmii(lynx->mdio, advertising, in lynx_pcs_config()
/linux/drivers/net/ethernet/silan/
H A 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/drivers/net/ethernet/microchip/sparx5/
H A 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/drivers/net/ethernet/natsemi/
H A 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/drivers/net/ethernet/ibm/ehea/
H A 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/drivers/net/ethernet/chelsio/cxgb/
H A 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/drivers/net/ethernet/broadcom/bnx2x/
H A 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 …]
/linux/drivers/net/ethernet/intel/ixgbe/
H A Dixgbe_ethtool.c184 ethtool_link_ksettings_add_link_mode(cmd, advertising, in ixgbe_set_advertising_10gtypes()
195 (cmd, advertising, 10000baseKX4_Full); in ixgbe_set_advertising_10gtypes()
202 (cmd, advertising, 10000baseKR_Full); in ixgbe_set_advertising_10gtypes()
206 (cmd, advertising, 10000baseKX4_Full); in ixgbe_set_advertising_10gtypes()
208 (cmd, advertising, 10000baseKR_Full); in ixgbe_set_advertising_10gtypes()
222 ethtool_link_ksettings_zero_link_mode(cmd, advertising); in ixgbe_get_link_ksettings()
243 ethtool_link_ksettings_add_link_mode(cmd, advertising, in ixgbe_get_link_ksettings()
248 ethtool_link_ksettings_add_link_mode(cmd, advertising, in ixgbe_get_link_ksettings()
255 ethtool_link_ksettings_add_link_mode(cmd, advertising, in ixgbe_get_link_ksettings()
261 ethtool_link_ksettings_add_link_mode(cmd, advertising, in ixgbe_get_link_ksettings()
[all …]
/linux/drivers/net/ethernet/microchip/lan966x/
H A Dlan966x_phylink.c100 const unsigned long *advertising, in lan966x_pcs_config() argument
111 config.advertising = advertising; in lan966x_pcs_config()
/linux/drivers/net/ethernet/atheros/atl1c/
H A Datl1c_ethtool.c20 u32 supported, advertising; in atl1c_get_link_ksettings() local
31 advertising = ADVERTISED_TP; in atl1c_get_link_ksettings()
33 advertising |= hw->autoneg_advertised; in atl1c_get_link_ksettings()
53 ethtool_convert_legacy_u32_to_link_mode(cmd->link_modes.advertising, in atl1c_get_link_ksettings()
54 advertising); in atl1c_get_link_ksettings()
/linux/drivers/net/ethernet/dec/tulip/
H A 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()
419 negotiated = lpa & tp->advertising[0]; in tulip_check_duplex()
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()
/linux/drivers/net/ethernet/toshiba/
H A Dspider_net_ethtool.c47 ethtool_link_ksettings_zero_link_mode(cmd, advertising); in spider_net_ethtool_get_link_ksettings()
48 ethtool_link_ksettings_add_link_mode(cmd, advertising, 1000baseT_Full); in spider_net_ethtool_get_link_ksettings()
49 ethtool_link_ksettings_add_link_mode(cmd, advertising, FIBRE); in spider_net_ethtool_get_link_ksettings()

12345678