/drivers/net/phy/ |
D | sfp-bus.c | 399 unsigned long *link_modes) in sfp_select_interface() argument 401 if (phylink_test(link_modes, 25000baseCR_Full) || in sfp_select_interface() 402 phylink_test(link_modes, 25000baseKR_Full) || in sfp_select_interface() 403 phylink_test(link_modes, 25000baseSR_Full)) in sfp_select_interface() 406 if (phylink_test(link_modes, 10000baseCR_Full) || in sfp_select_interface() 407 phylink_test(link_modes, 10000baseSR_Full) || in sfp_select_interface() 408 phylink_test(link_modes, 10000baseLR_Full) || in sfp_select_interface() 409 phylink_test(link_modes, 10000baseLRM_Full) || in sfp_select_interface() 410 phylink_test(link_modes, 10000baseER_Full) || in sfp_select_interface() 411 phylink_test(link_modes, 10000baseT_Full)) in sfp_select_interface() [all …]
|
D | phy.c | 263 linkmode_copy(cmd->link_modes.supported, phydev->supported); in phy_ethtool_ksettings_get() 264 linkmode_copy(cmd->link_modes.advertising, phydev->advertising); in phy_ethtool_ksettings_get() 265 linkmode_copy(cmd->link_modes.lp_advertising, phydev->lp_advertising); in phy_ethtool_ksettings_get() 794 linkmode_copy(advertising, cmd->link_modes.advertising); in phy_ethtool_ksettings_set()
|
/drivers/net/ethernet/marvell/prestera/ |
D | prestera_ethtool.c | 331 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 …]
|
D | prestera_main.c | 239 u64 link_modes; in prestera_port_autoneg_set() local 249 link_modes = port->caps.supp_link_modes & adver_link_modes; in prestera_port_autoneg_set() 252 if (!link_modes && !fec) in prestera_port_autoneg_set() 255 if (link_modes && port->adver_link_modes != link_modes) { in prestera_port_autoneg_set() 256 port->adver_link_modes = link_modes; in prestera_port_autoneg_set()
|
D | prestera_hw.h | 135 bool autoneg, u64 link_modes, u8 fec);
|
/drivers/net/ethernet/mellanox/mlx5/core/ |
D | en_ethtool.c | 727 link_ksettings->link_modes.supported);\ 766 link_ksettings->link_modes.advertising); in get_fec_supported_advertised() 880 unsigned long *supported = link_ksettings->link_modes.supported; in get_supported() 890 unsigned long *advertising = link_ksettings->link_modes.advertising; in get_advertising() 945 unsigned long *lp_advertising = link_ksettings->link_modes.lp_advertising; in get_lp_advertising() 1054 const unsigned long link_modes, u8 autoneg) in mlx5e_speed_validate() argument 1060 if ((link_modes & MLX5E_PROT_MASK(MLX5E_56GBASE_R4)) && in mlx5e_speed_validate() 1069 static u32 mlx5e_ethtool2ptys_adver_link(const unsigned long *link_modes) in mlx5e_ethtool2ptys_adver_link() argument 1077 link_modes, in mlx5e_ethtool2ptys_adver_link() 1085 static u32 mlx5e_ethtool2ptys_ext_adver_link(const unsigned long *link_modes) in mlx5e_ethtool2ptys_ext_adver_link() argument [all …]
|
/drivers/net/ethernet/oki-semi/pch_gbe/ |
D | pch_gbe_ethtool.c | 83 ecmd->link_modes.supported); in pch_gbe_get_link_ksettings() 85 ecmd->link_modes.advertising); in pch_gbe_get_link_ksettings() 90 ethtool_convert_legacy_u32_to_link_mode(ecmd->link_modes.supported, in pch_gbe_get_link_ksettings() 92 ethtool_convert_legacy_u32_to_link_mode(ecmd->link_modes.advertising, in pch_gbe_get_link_ksettings() 138 &advertising, copy_ecmd.link_modes.advertising); in pch_gbe_set_link_ksettings()
|
/drivers/net/ethernet/apm/xgene/ |
D | xgene_enet_ethtool.c | 136 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()
|
/drivers/net/ethernet/atheros/alx/ |
D | ethtool.c | 171 ethtool_convert_legacy_u32_to_link_mode(cmd->link_modes.supported, in alx_get_link_ksettings() 173 ethtool_convert_legacy_u32_to_link_mode(cmd->link_modes.advertising, in alx_get_link_ksettings() 189 cmd->link_modes.advertising); in alx_set_link_ksettings()
|
/drivers/net/ethernet/marvell/octeontx2/nic/ |
D | otx2_ethtool.c | 1036 linkmode_or(link_ksettings->link_modes.advertising, in otx2_get_fec_info() 1037 link_ksettings->link_modes.advertising, in otx2_get_fec_info() 1040 linkmode_or(link_ksettings->link_modes.supported, in otx2_get_fec_info() 1041 link_ksettings->link_modes.supported, in otx2_get_fec_info() 1102 linkmode_copy(link_ksettings->link_modes.advertising, in otx2_get_link_mode_info() 1105 linkmode_copy(link_ksettings->link_modes.supported, in otx2_get_link_mode_info() 1147 bit_pos = find_first_bit(cmd->link_modes.advertising, in otx2_get_advertised_mode() 1175 if (!bitmap_subset(cmd->link_modes.advertising, in otx2_set_link_ksettings() 1176 cur_ks.link_modes.supported, in otx2_set_link_ksettings()
|
/drivers/net/ethernet/sfc/falcon/ |
D | mdio_10g.c | 242 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()
|
/drivers/net/ethernet/atheros/atl1e/ |
D | atl1e_ethtool.c | 52 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()
|
/drivers/net/ethernet/amd/xgbe/ |
D | xgbe-ethtool.c | 374 __ETHTOOL_LINK_MODE_MASK_NBITS, cmd->link_modes.advertising, in xgbe_set_link_ksettings() 375 __ETHTOOL_LINK_MODE_MASK_NBITS, lks->link_modes.supported); in xgbe_set_link_ksettings() 378 cmd->link_modes.advertising, lks->link_modes.supported, in xgbe_set_link_ksettings() 392 bitmap_copy(lks->link_modes.advertising, advertising, in xgbe_set_link_ksettings()
|
/drivers/net/ |
D | mii.c | 218 ethtool_convert_legacy_u32_to_link_mode(cmd->link_modes.supported, in mii_ethtool_get_link_ksettings() 220 ethtool_convert_legacy_u32_to_link_mode(cmd->link_modes.advertising, in mii_ethtool_get_link_ksettings() 222 ethtool_convert_legacy_u32_to_link_mode(cmd->link_modes.lp_advertising, in mii_ethtool_get_link_ksettings() 357 &advertising, cmd->link_modes.advertising); in mii_ethtool_set_link_ksettings()
|
D | mdio.c | 493 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()
|
/drivers/net/ethernet/ibm/ehea/ |
D | ehea_ethtool.c | 76 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()
|
/drivers/net/ethernet/mellanox/mlx4/ |
D | en_ethtool.c | 698 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()
|
/drivers/net/ethernet/stmicro/stmmac/ |
D | stmmac_ethtool.c | 330 &supported, cmd->link_modes.supported); in stmmac_ethtool_get_link_ksettings() 332 &advertising, cmd->link_modes.advertising); in stmmac_ethtool_get_link_ksettings() 334 &lp_advertising, cmd->link_modes.lp_advertising); in stmmac_ethtool_get_link_ksettings() 377 cmd->link_modes.supported, supported); in stmmac_ethtool_get_link_ksettings() 379 cmd->link_modes.advertising, advertising); in stmmac_ethtool_get_link_ksettings() 381 cmd->link_modes.lp_advertising, lp_advertising); in stmmac_ethtool_get_link_ksettings()
|
/drivers/scsi/fcoe/ |
D | fcoe_transport.c | 128 if (ecmd.link_modes.supported[0] & ( in fcoe_link_speed_update() 134 if (ecmd.link_modes.supported[0] & ( in fcoe_link_speed_update() 141 if (ecmd.link_modes.supported[0] & ( in fcoe_link_speed_update() 146 if (ecmd.link_modes.supported[0] & ( in fcoe_link_speed_update()
|
/drivers/net/ethernet/mellanox/mlx5/core/en/ |
D | port.c | 243 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()
|
/drivers/net/ethernet/atheros/atl1c/ |
D | atl1c_ethtool.c | 51 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()
|
/drivers/net/ethernet/sfc/ |
D | mcdi_port_common.c | 555 cmd->link_modes.supported); in efx_mcdi_phy_get_link_ksettings() 556 memcpy(cmd->link_modes.advertising, efx->link_advertising, in efx_mcdi_phy_get_link_ksettings() 566 cmd->link_modes.lp_advertising); in efx_mcdi_phy_get_link_ksettings() 576 caps = (ethtool_linkset_to_mcdi_cap(cmd->link_modes.advertising) | in efx_mcdi_phy_set_link_ksettings() 607 efx_link_set_advertising(efx, cmd->link_modes.advertising); in efx_mcdi_phy_set_link_ksettings()
|
/drivers/net/ethernet/hisilicon/hns/ |
D | hns_ethtool.c | 138 cmd->link_modes.supported); in hns_nic_get_link_ksettings() 140 cmd->link_modes.advertising); in hns_nic_get_link_ksettings() 183 ethtool_convert_legacy_u32_to_link_mode(cmd->link_modes.supported, in hns_nic_get_link_ksettings() 185 ethtool_convert_legacy_u32_to_link_mode(cmd->link_modes.advertising, in hns_nic_get_link_ksettings()
|
/drivers/net/ethernet/qlogic/qede/ |
D | qede_ethtool.c | 520 typeof(cmd->link_modes) *link_modes = &cmd->link_modes; in qede_get_link_ksettings() local 530 linkmode_copy(link_modes->supported, current_link.supported_caps); in qede_get_link_ksettings() 531 linkmode_copy(link_modes->advertising, current_link.advertised_caps); in qede_get_link_ksettings() 532 linkmode_copy(link_modes->lp_advertising, current_link.lp_caps); in qede_get_link_ksettings() 581 linkmode_copy(params.adv_speeds, cmd->link_modes.advertising); in qede_set_link_ksettings()
|
/drivers/net/ethernet/broadcom/bnx2x/ |
D | bnx2x_ethtool.c | 228 cmd->link_modes.supported); in bnx2x_get_vf_link_ksettings() 230 cmd->link_modes.advertising); in bnx2x_get_vf_link_ksettings() 270 cmd->link_modes.lp_advertising); in bnx2x_get_link_ksettings() 349 ethtool_convert_legacy_u32_to_link_mode(cmd->link_modes.supported, in bnx2x_get_link_ksettings() 351 ethtool_convert_legacy_u32_to_link_mode(cmd->link_modes.advertising, in bnx2x_get_link_ksettings() 353 ethtool_convert_legacy_u32_to_link_mode(cmd->link_modes.lp_advertising, in bnx2x_get_link_ksettings() 378 cmd->link_modes.supported); in bnx2x_set_link_ksettings() 380 cmd->link_modes.advertising); in bnx2x_set_link_ksettings()
|