Home
last modified time | relevance | path

Searched refs:link_modes (Results 1 – 25 of 99) sorted by relevance

1234

/Linux-v5.10/net/ethtool/
Dlinkmodes.c47 bitmap_empty(data->ksettings.link_modes.lp_advertising, in linkmodes_prepare_data()
68 ret = ethnl_bitset_size(ksettings->link_modes.advertising, in linkmodes_reply_size()
69 ksettings->link_modes.supported, in linkmodes_reply_size()
76 ret = ethnl_bitset_size(ksettings->link_modes.lp_advertising, in linkmodes_reply_size()
107 ksettings->link_modes.advertising, in linkmodes_fill_reply()
108 ksettings->link_modes.supported, in linkmodes_fill_reply()
115 ksettings->link_modes.lp_advertising, in linkmodes_fill_reply()
288 unsigned long *advertising = ksettings->link_modes.advertising; in ethnl_auto_linkmodes()
289 unsigned long *supported = ksettings->link_modes.supported; in ethnl_auto_linkmodes()
360 ret = ethnl_update_bitset(ksettings->link_modes.advertising, in ethnl_update_linkmodes()
Dioctl.c325 dst->link_modes.supported[idx] &= in ethtool_intersect_link_masks()
326 src->link_modes.supported[idx]; in ethtool_intersect_link_masks()
327 dst->link_modes.advertising[idx] &= in ethtool_intersect_link_masks()
328 src->link_modes.advertising[idx]; in ethtool_intersect_link_masks()
384 link_ksettings->link_modes.supported); in convert_link_ksettings_to_legacy_settings()
387 link_ksettings->link_modes.advertising); in convert_link_ksettings_to_legacy_settings()
390 link_ksettings->link_modes.lp_advertising); in convert_link_ksettings_to_legacy_settings()
422 } link_modes; member
451 bitmap_from_arr32(to->link_modes.supported, in load_link_ksettings_from_user()
452 link_usettings.link_modes.supported, in load_link_ksettings_from_user()
[all …]
Dcommon.c307 link_ksettings->link_modes.supported, in convert_legacy_settings_to_link_ksettings()
310 link_ksettings->link_modes.advertising, in convert_legacy_settings_to_link_ksettings()
313 link_ksettings->link_modes.lp_advertising, in convert_legacy_settings_to_link_ksettings()
/Linux-v5.10/drivers/net/phy/
Dsfp-bus.c368 unsigned long *link_modes) in sfp_select_interface() argument
370 if (phylink_test(link_modes, 10000baseCR_Full) || in sfp_select_interface()
371 phylink_test(link_modes, 10000baseSR_Full) || in sfp_select_interface()
372 phylink_test(link_modes, 10000baseLR_Full) || in sfp_select_interface()
373 phylink_test(link_modes, 10000baseLRM_Full) || in sfp_select_interface()
374 phylink_test(link_modes, 10000baseER_Full) || in sfp_select_interface()
375 phylink_test(link_modes, 10000baseT_Full)) in sfp_select_interface()
378 if (phylink_test(link_modes, 2500baseX_Full)) in sfp_select_interface()
381 if (phylink_test(link_modes, 1000baseT_Half) || in sfp_select_interface()
382 phylink_test(link_modes, 1000baseT_Full)) in sfp_select_interface()
[all …]
Dphy.c274 linkmode_copy(advertising, cmd->link_modes.advertising); in phy_ethtool_ksettings_set()
317 linkmode_copy(cmd->link_modes.supported, phydev->supported); in phy_ethtool_ksettings_get()
318 linkmode_copy(cmd->link_modes.advertising, phydev->advertising); in phy_ethtool_ksettings_get()
319 linkmode_copy(cmd->link_modes.lp_advertising, phydev->lp_advertising); in phy_ethtool_ksettings_get()
/Linux-v5.10/drivers/net/ethernet/marvell/prestera/
Dprestera_ethtool.c331 ecmd->link_modes.supported)) { in prestera_port_type_set()
365 static void prestera_modes_to_eth(unsigned long *eth_modes, u64 link_modes, in prestera_modes_to_eth() argument
371 if ((port_link_modes[mode].pr_mask & link_modes) == 0) in prestera_modes_to_eth()
390 u64 *link_modes, u8 *fec, u8 type) in prestera_modes_from_eth() argument
413 *link_modes = adver_modes; in prestera_modes_from_eth()
430 ecmd->link_modes.supported); in prestera_port_supp_types_get()
444 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()
517 prestera_modes_to_eth(ecmd->link_modes.supported, in prestera_ethtool_get_link_ksettings()
536 prestera_modes_to_eth(ecmd->link_modes.advertising, in prestera_ethtool_get_link_ksettings()
[all …]
Dprestera_main.c221 u64 link_modes; in prestera_port_autoneg_set() local
231 link_modes = port->caps.supp_link_modes & adver_link_modes; in prestera_port_autoneg_set()
234 if (!link_modes && !fec) in prestera_port_autoneg_set()
237 if (link_modes && port->adver_link_modes != link_modes) { in prestera_port_autoneg_set()
238 port->adver_link_modes = link_modes; in prestera_port_autoneg_set()
/Linux-v5.10/include/linux/
Dethtool.h130 } link_modes; member
139 bitmap_zero((ptr)->link_modes.name, __ETHTOOL_LINK_MODE_MASK_NBITS)
150 __set_bit(ETHTOOL_LINK_MODE_ ## mode ## _BIT, (ptr)->link_modes.name)
161 __clear_bit(ETHTOOL_LINK_MODE_ ## mode ## _BIT, (ptr)->link_modes.name)
173 test_bit(ETHTOOL_LINK_MODE_ ## mode ## _BIT, (ptr)->link_modes.name)
Dsfp.h540 unsigned long *link_modes);
573 unsigned long *link_modes) in sfp_select_interface() argument
/Linux-v5.10/drivers/net/ethernet/atheros/alx/
Dethtool.c169 ethtool_convert_legacy_u32_to_link_mode(cmd->link_modes.supported, in alx_get_link_ksettings()
171 ethtool_convert_legacy_u32_to_link_mode(cmd->link_modes.advertising, in alx_get_link_ksettings()
188 cmd->link_modes.advertising); in alx_set_link_ksettings()
/Linux-v5.10/drivers/net/ethernet/mellanox/mlx5/core/
Den_ethtool.c684 link_ksettings->link_modes.supported);\
723 link_ksettings->link_modes.advertising); in get_fec_supported_advertised()
837 unsigned long *supported = link_ksettings->link_modes.supported; in get_supported()
847 unsigned long *advertising = link_ksettings->link_modes.advertising; in get_advertising()
902 unsigned long *lp_advertising = link_ksettings->link_modes.lp_advertising; in get_lp_advertising()
1010 static u32 mlx5e_ethtool2ptys_adver_link(const unsigned long *link_modes) in mlx5e_ethtool2ptys_adver_link() argument
1018 link_modes, in mlx5e_ethtool2ptys_adver_link()
1026 static u32 mlx5e_ethtool2ptys_ext_adver_link(const unsigned long *link_modes) in mlx5e_ethtool2ptys_ext_adver_link() argument
1037 link_modes, __ETHTOOL_LINK_MODE_MASK_NBITS); in mlx5e_ethtool2ptys_ext_adver_link()
1074 u32 link_modes; in mlx5e_ethtool_set_link_ksettings() local
[all …]
/Linux-v5.10/drivers/net/ethernet/oki-semi/pch_gbe/
Dpch_gbe_ethtool.c81 ecmd->link_modes.supported); in pch_gbe_get_link_ksettings()
83 ecmd->link_modes.advertising); in pch_gbe_get_link_ksettings()
88 ethtool_convert_legacy_u32_to_link_mode(ecmd->link_modes.supported, in pch_gbe_get_link_ksettings()
90 ethtool_convert_legacy_u32_to_link_mode(ecmd->link_modes.advertising, in pch_gbe_get_link_ksettings()
136 &advertising, copy_ecmd.link_modes.advertising); in pch_gbe_set_link_ksettings()
/Linux-v5.10/drivers/net/ethernet/apm/xgene/
Dxgene_enet_ethtool.c136 cmd->link_modes.supported, in xgene_get_link_ksettings()
139 cmd->link_modes.advertising, in xgene_get_link_ksettings()
149 cmd->link_modes.supported, in xgene_get_link_ksettings()
152 cmd->link_modes.advertising, in xgene_get_link_ksettings()
/Linux-v5.10/drivers/net/ethernet/sfc/falcon/
Dmdio_10g.c242 cmd->link_modes.advertising); in ef4_mdio_set_link_ksettings()
244 prev.link_modes.advertising); in ef4_mdio_set_link_ksettings()
246 prev.link_modes.supported); in ef4_mdio_set_link_ksettings()
/Linux-v5.10/drivers/net/ethernet/atheros/atl1e/
Datl1e_ethtool.c52 ethtool_convert_legacy_u32_to_link_mode(cmd->link_modes.supported, in atl1e_get_link_ksettings()
54 ethtool_convert_legacy_u32_to_link_mode(cmd->link_modes.advertising, in atl1e_get_link_ksettings()
68 cmd->link_modes.advertising); in atl1e_set_link_ksettings()
/Linux-v5.10/drivers/net/ethernet/amd/xgbe/
Dxgbe-ethtool.c369 __ETHTOOL_LINK_MODE_MASK_NBITS, cmd->link_modes.advertising, in xgbe_set_link_ksettings()
370 __ETHTOOL_LINK_MODE_MASK_NBITS, lks->link_modes.supported); in xgbe_set_link_ksettings()
373 cmd->link_modes.advertising, lks->link_modes.supported, in xgbe_set_link_ksettings()
387 bitmap_copy(lks->link_modes.advertising, advertising, in xgbe_set_link_ksettings()
/Linux-v5.10/drivers/net/ethernet/ibm/ehea/
Dehea_ethtool.c76 ethtool_convert_legacy_u32_to_link_mode(cmd->link_modes.supported, in ehea_get_link_ksettings()
78 ethtool_convert_legacy_u32_to_link_mode(cmd->link_modes.advertising, in ehea_get_link_ksettings()
/Linux-v5.10/drivers/net/
Dmii.c220 ethtool_convert_legacy_u32_to_link_mode(cmd->link_modes.supported, in mii_ethtool_get_link_ksettings()
222 ethtool_convert_legacy_u32_to_link_mode(cmd->link_modes.advertising, in mii_ethtool_get_link_ksettings()
224 ethtool_convert_legacy_u32_to_link_mode(cmd->link_modes.lp_advertising, in mii_ethtool_get_link_ksettings()
359 &advertising, cmd->link_modes.advertising); in mii_ethtool_set_link_ksettings()
Dmdio.c493 ethtool_convert_legacy_u32_to_link_mode(cmd->link_modes.supported, in mdio45_ethtool_ksettings_get_npage()
495 ethtool_convert_legacy_u32_to_link_mode(cmd->link_modes.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()
/Linux-v5.10/drivers/net/ethernet/stmicro/stmmac/
Dstmmac_ethtool.c300 &supported, cmd->link_modes.supported); in stmmac_ethtool_get_link_ksettings()
302 &advertising, cmd->link_modes.advertising); in stmmac_ethtool_get_link_ksettings()
304 &lp_advertising, cmd->link_modes.lp_advertising); in stmmac_ethtool_get_link_ksettings()
347 cmd->link_modes.supported, supported); in stmmac_ethtool_get_link_ksettings()
349 cmd->link_modes.advertising, advertising); in stmmac_ethtool_get_link_ksettings()
351 cmd->link_modes.lp_advertising, lp_advertising); in stmmac_ethtool_get_link_ksettings()
/Linux-v5.10/drivers/net/ethernet/mellanox/mlx4/
Den_ethtool.c698 static void ptys2ethtool_update_link_modes(unsigned long *link_modes, in ptys2ethtool_update_link_modes() argument
705 bitmap_or(link_modes, link_modes, in ptys2ethtool_update_link_modes()
712 static u32 ethtool2ptys_link_modes(const unsigned long *link_modes, in ethtool2ptys_link_modes() argument
722 link_modes, in ethtool2ptys_link_modes()
776 ptys2ethtool_update_supported_port(link_ksettings->link_modes.supported, in ethtool_get_ptys_link_ksettings()
780 ptys2ethtool_update_link_modes(link_ksettings->link_modes.supported, in ethtool_get_ptys_link_ksettings()
784 ptys2ethtool_update_link_modes(link_ksettings->link_modes.advertising, in ethtool_get_ptys_link_ksettings()
816 link_ksettings->link_modes.lp_advertising, in ethtool_get_ptys_link_ksettings()
924 link_ksettings->link_modes.advertising, ADVERTISED); in mlx4_en_set_link_ksettings()
930 link_ksettings->link_modes.advertising, in mlx4_en_set_link_ksettings()
/Linux-v5.10/drivers/net/ethernet/atheros/atl1c/
Datl1c_ethtool.c51 ethtool_convert_legacy_u32_to_link_mode(cmd->link_modes.supported, in atl1c_get_link_ksettings()
53 ethtool_convert_legacy_u32_to_link_mode(cmd->link_modes.advertising, in atl1c_get_link_ksettings()
/Linux-v5.10/drivers/scsi/fcoe/
Dfcoe_transport.c127 if (ecmd.link_modes.supported[0] & ( in fcoe_link_speed_update()
133 if (ecmd.link_modes.supported[0] & ( in fcoe_link_speed_update()
140 if (ecmd.link_modes.supported[0] & ( in fcoe_link_speed_update()
145 if (ecmd.link_modes.supported[0] & ( in fcoe_link_speed_update()
/Linux-v5.10/drivers/net/ethernet/mellanox/mlx5/core/en/
Dport.c243 u32 link_modes = 0; in mlx5e_port_speed2linkmodes() local
251 link_modes |= MLX5E_PROT_MASK(i); in mlx5e_port_speed2linkmodes()
253 return link_modes; in mlx5e_port_speed2linkmodes()
/Linux-v5.10/drivers/net/ethernet/sfc/
Dmcdi_port_common.c540 cmd->link_modes.supported); in efx_mcdi_phy_get_link_ksettings()
541 memcpy(cmd->link_modes.advertising, efx->link_advertising, in efx_mcdi_phy_get_link_ksettings()
551 cmd->link_modes.lp_advertising); in efx_mcdi_phy_get_link_ksettings()
561 caps = (ethtool_linkset_to_mcdi_cap(cmd->link_modes.advertising) | in efx_mcdi_phy_set_link_ksettings()
592 efx_link_set_advertising(efx, cmd->link_modes.advertising); in efx_mcdi_phy_set_link_ksettings()

1234