Home
last modified time | relevance | path

Searched refs:__ETHTOOL_LINK_MODE_MASK_NBITS (Results 1 – 25 of 26) sorted by relevance

12

/linux/include/linux/
A Dlinkmode.h10 bitmap_zero(dst, __ETHTOOL_LINK_MODE_MASK_NBITS); in linkmode_zero()
15 bitmap_copy(dst, src, __ETHTOOL_LINK_MODE_MASK_NBITS); in linkmode_copy()
21 bitmap_and(dst, a, b, __ETHTOOL_LINK_MODE_MASK_NBITS); in linkmode_and()
27 bitmap_or(dst, a, b, __ETHTOOL_LINK_MODE_MASK_NBITS); in linkmode_or()
32 return bitmap_empty(src, __ETHTOOL_LINK_MODE_MASK_NBITS); in linkmode_empty()
38 return bitmap_andnot(dst, src1, src2, __ETHTOOL_LINK_MODE_MASK_NBITS); in linkmode_andnot()
82 return bitmap_equal(src1, src2, __ETHTOOL_LINK_MODE_MASK_NBITS); in linkmode_equal()
88 return bitmap_intersects(src1, src2, __ETHTOOL_LINK_MODE_MASK_NBITS); in linkmode_intersects()
94 return bitmap_subset(src1, src2, __ETHTOOL_LINK_MODE_MASK_NBITS); in linkmode_subset()
A Dethtool_netlink.h11 DIV_ROUND_UP(__ETHTOOL_LINK_MODE_MASK_NBITS, 32)
A Dethtool.h116 DECLARE_BITMAP(name, __ETHTOOL_LINK_MODE_MASK_NBITS)
137 bitmap_zero((ptr)->link_modes.name, __ETHTOOL_LINK_MODE_MASK_NBITS)
A Dphylink.h487 bitmap_zero(bm, __ETHTOOL_LINK_MODE_MASK_NBITS)
/linux/net/ethtool/
A Dlinkmodes.c53 __ETHTOOL_LINK_MODE_MASK_NBITS); in linkmodes_prepare_data()
76 __ETHTOOL_LINK_MODE_MASK_NBITS, in linkmodes_reply_size()
83 NULL, __ETHTOOL_LINK_MODE_MASK_NBITS, in linkmodes_reply_size()
115 __ETHTOOL_LINK_MODE_MASK_NBITS, link_mode_names, in linkmodes_fill_reply()
122 NULL, __ETHTOOL_LINK_MODE_MASK_NBITS, in linkmodes_fill_reply()
185 DECLARE_BITMAP(old_adv, __ETHTOOL_LINK_MODE_MASK_NBITS); in ethnl_auto_linkmodes()
188 bitmap_copy(old_adv, advertising, __ETHTOOL_LINK_MODE_MASK_NBITS); in ethnl_auto_linkmodes()
190 for (i = 0; i < __ETHTOOL_LINK_MODE_MASK_NBITS; i++) { in ethnl_auto_linkmodes()
205 __ETHTOOL_LINK_MODE_MASK_NBITS); in ethnl_auto_linkmodes()
288 __ETHTOOL_LINK_MODE_MASK_NBITS, in ethnl_update_linkmodes()
A Dfec.c65 if (!bitmap_empty(link_modes, __ETHTOOL_LINK_MODE_MASK_NBITS)) in ethtool_link_modes_to_fecparam()
130 __ETHTOOL_LINK_MODE_MASK_NBITS); in fec_prepare_data()
134 if (data->active_fec == __ETHTOOL_LINK_MODE_MASK_NBITS) in fec_prepare_data()
151 __ETHTOOL_LINK_MODE_MASK_NBITS, in fec_reply_size()
204 __ETHTOOL_LINK_MODE_MASK_NBITS, in fec_fill_reply()
274 __ETHTOOL_LINK_MODE_MASK_NBITS, in ethnl_set_fec()
A Dioctl.c185 return __ETHTOOL_LINK_MODE_MASK_NBITS; in __ethtool_get_sset_count()
374 if (__ETHTOOL_LINK_MODE_MASK_NBITS > 32) { in ethtool_convert_link_mode_to_legacy_u32()
438 DIV_ROUND_UP(__ETHTOOL_LINK_MODE_MASK_NBITS, 32)
478 __ETHTOOL_LINK_MODE_MASK_NBITS); in load_link_ksettings_from_user()
481 __ETHTOOL_LINK_MODE_MASK_NBITS); in load_link_ksettings_from_user()
484 __ETHTOOL_LINK_MODE_MASK_NBITS); in load_link_ksettings_from_user()
502 __ETHTOOL_LINK_MODE_MASK_NBITS) && in ethtool_virtdev_validate_cmd()
504 __ETHTOOL_LINK_MODE_MASK_NBITS); in ethtool_virtdev_validate_cmd()
520 __ETHTOOL_LINK_MODE_MASK_NBITS); in store_link_ksettings_for_user()
523 __ETHTOOL_LINK_MODE_MASK_NBITS); in store_link_ksettings_for_user()
[all …]
A Dcommon.c204 static_assert(ARRAY_SIZE(link_mode_names) == __ETHTOOL_LINK_MODE_MASK_NBITS);
352 static_assert(ARRAY_SIZE(link_mode_params) == __ETHTOOL_LINK_MODE_MASK_NBITS);
587 if (WARN_ON_ONCE(link_mode >= __ETHTOOL_LINK_MODE_MASK_NBITS)) in ethtool_params_from_link_mode()
A Dstrset.c50 .count = __ETHTOOL_LINK_MODE_MASK_NBITS,
/linux/drivers/net/pcs/
A Dpcs-xpcs.c27 __ETHTOOL_LINK_MODE_MASK_NBITS,
34 __ETHTOOL_LINK_MODE_MASK_NBITS,
64 __ETHTOOL_LINK_MODE_MASK_NBITS,
77 __ETHTOOL_LINK_MODE_MASK_NBITS,
86 __ETHTOOL_LINK_MODE_MASK_NBITS,
166 for (i = 0; compat->supported[i] != __ETHTOOL_LINK_MODE_MASK_NBITS; i++) in __xpcs_linkmode_supported()
569 for_each_set_bit(bit, adv, __ETHTOOL_LINK_MODE_MASK_NBITS) { in xpcs_get_max_xlgmii_speed()
657 for (i = 0; compat->supported[i] != __ETHTOOL_LINK_MODE_MASK_NBITS; i++) in xpcs_validate()
/linux/drivers/net/phy/
A Dphylink.c285 bitmap_fill(pl->supported, __ETHTOOL_LINK_MODE_MASK_NBITS); in phylink_parse_fixedlink()
479 __ETHTOOL_LINK_MODE_MASK_NBITS, state->advertising, in phylink_mac_config()
1068 __ETHTOOL_LINK_MODE_MASK_NBITS, phy->supported, in phylink_bringup_phy()
1069 __ETHTOOL_LINK_MODE_MASK_NBITS, config.advertising, in phylink_bringup_phy()
1100 __ETHTOOL_LINK_MODE_MASK_NBITS, pl->supported, in phylink_bringup_phy()
1101 __ETHTOOL_LINK_MODE_MASK_NBITS, phy->advertising); in phylink_bringup_phy()
1692 __ETHTOOL_LINK_MODE_MASK_NBITS, in phylink_ethtool_ksettings_set()
1703 __ETHTOOL_LINK_MODE_MASK_NBITS, support); in phylink_ethtool_ksettings_set()
2266 __ETHTOOL_LINK_MODE_MASK_NBITS, support, ret); in phylink_sfp_config()
2285 __ETHTOOL_LINK_MODE_MASK_NBITS, support, ret); in phylink_sfp_config()
[all …]
A Dphy-core.c16 BUILD_BUG_ON_MSG(__ETHTOOL_LINK_MODE_MASK_NBITS != 92, in phy_speed_to_str()
206 if (p->bit < __ETHTOOL_LINK_MODE_MASK_NBITS && in phy_lookup_setting()
238 if (settings[i].bit < __ETHTOOL_LINK_MODE_MASK_NBITS && in phy_speeds()
A Dsfp-bus.c366 if (bitmap_empty(modes, __ETHTOOL_LINK_MODE_MASK_NBITS) && br_nom) { in sfp_parse_support()
/linux/drivers/net/ethernet/mellanox/mlx5/core/
A Den_ethtool.c79 __ETHTOOL_LINK_MODE_MASK_NBITS); \
81 __ETHTOOL_LINK_MODE_MASK_NBITS); \
677 __ETHTOOL_LINK_MODE_MASK_NBITS); in ptys2ethtool_supported_link()
695 __ETHTOOL_LINK_MODE_MASK_NBITS); in ptys2ethtool_adver_link()
1076 __ETHTOOL_LINK_MODE_MASK_NBITS)) in mlx5e_ethtool2ptys_adver_link()
1094 link_modes, __ETHTOOL_LINK_MODE_MASK_NBITS); in mlx5e_ethtool2ptys_ext_adver_link()
1106 int size = __ETHTOOL_LINK_MODE_MASK_NBITS - MLX5E_MIN_PTYS_EXT_LINK_MODE_BIT; in ext_link_mode_requested()
1110 return bitmap_intersects(modes, adver, __ETHTOOL_LINK_MODE_MASK_NBITS); in ext_link_mode_requested()
/linux/drivers/net/ethernet/amd/xgbe/
A 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()
376 bitmap_empty(advertising, __ETHTOOL_LINK_MODE_MASK_NBITS)) { in xgbe_set_link_ksettings()
A Dxgbe.h345 __ETHTOOL_LINK_MODE_MASK_NBITS)
A Dxgbe-phy-v2.c3372 __ETHTOOL_LINK_MODE_MASK_NBITS, in xgbe_phy_init()
/linux/drivers/net/ethernet/marvell/prestera/
A Dprestera_ethtool.c231 .eth_mode = __ETHTOOL_LINK_MODE_MASK_NBITS,
259 .eth_mode = __ETHTOOL_LINK_MODE_MASK_NBITS,
450 __ETHTOOL_LINK_MODE_MASK_NBITS)) { in prestera_port_remote_cap_get()
/linux/drivers/net/ethernet/marvell/octeontx2/nic/
A Dotx2_ethtool.c1151 __ETHTOOL_LINK_MODE_MASK_NBITS); in otx2_get_advertised_mode()
1152 if (bit_pos != __ETHTOOL_LINK_MODE_MASK_NBITS) in otx2_get_advertised_mode()
/linux/include/uapi/linux/
A Dethtool.h1694 __ETHTOOL_LINK_MODE_MASK_NBITS enumerator
/linux/drivers/net/ethernet/sfc/
A Defx_common.c463 bitmap_zero(efx->link_advertising, __ETHTOOL_LINK_MODE_MASK_NBITS); in efx_link_clear_advertising()
A Dmcdi_port_common.c119 bitmap_zero(linkset, __ETHTOOL_LINK_MODE_MASK_NBITS); in mcdi_to_ethtool_linkset()
/linux/drivers/net/ethernet/mellanox/mlx4/
A Den_ethtool.c932 speed, __ETHTOOL_LINK_MODE_MASK_NBITS, in mlx4_en_set_link_ksettings()
/linux/drivers/net/ethernet/intel/ice/
A Dice_ethtool.c2258 __ETHTOOL_LINK_MODE_MASK_NBITS)) { in ice_set_link_ksettings()
/linux/drivers/net/ethernet/intel/i40e/
A Di40e_ethtool.c1205 __ETHTOOL_LINK_MODE_MASK_NBITS)) in i40e_set_link_ksettings()

Completed in 88 milliseconds

12