/linux/include/linux/ |
A D | linkmode.h | 10 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 D | ethtool_netlink.h | 11 DIV_ROUND_UP(__ETHTOOL_LINK_MODE_MASK_NBITS, 32)
|
A D | ethtool.h | 116 DECLARE_BITMAP(name, __ETHTOOL_LINK_MODE_MASK_NBITS) 137 bitmap_zero((ptr)->link_modes.name, __ETHTOOL_LINK_MODE_MASK_NBITS)
|
A D | phylink.h | 487 bitmap_zero(bm, __ETHTOOL_LINK_MODE_MASK_NBITS)
|
/linux/net/ethtool/ |
A D | linkmodes.c | 53 __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 D | fec.c | 65 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 D | ioctl.c | 185 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 D | common.c | 204 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 D | strset.c | 50 .count = __ETHTOOL_LINK_MODE_MASK_NBITS,
|
/linux/drivers/net/pcs/ |
A D | pcs-xpcs.c | 27 __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 D | phylink.c | 285 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 D | phy-core.c | 16 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 D | sfp-bus.c | 366 if (bitmap_empty(modes, __ETHTOOL_LINK_MODE_MASK_NBITS) && br_nom) { in sfp_parse_support()
|
/linux/drivers/net/ethernet/mellanox/mlx5/core/ |
A D | en_ethtool.c | 79 __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 D | xgbe-ethtool.c | 369 __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 D | xgbe.h | 345 __ETHTOOL_LINK_MODE_MASK_NBITS)
|
A D | xgbe-phy-v2.c | 3372 __ETHTOOL_LINK_MODE_MASK_NBITS, in xgbe_phy_init()
|
/linux/drivers/net/ethernet/marvell/prestera/ |
A D | prestera_ethtool.c | 231 .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 D | otx2_ethtool.c | 1151 __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 D | ethtool.h | 1694 __ETHTOOL_LINK_MODE_MASK_NBITS enumerator
|
/linux/drivers/net/ethernet/sfc/ |
A D | efx_common.c | 463 bitmap_zero(efx->link_advertising, __ETHTOOL_LINK_MODE_MASK_NBITS); in efx_link_clear_advertising()
|
A D | mcdi_port_common.c | 119 bitmap_zero(linkset, __ETHTOOL_LINK_MODE_MASK_NBITS); in mcdi_to_ethtool_linkset()
|
/linux/drivers/net/ethernet/mellanox/mlx4/ |
A D | en_ethtool.c | 932 speed, __ETHTOOL_LINK_MODE_MASK_NBITS, in mlx4_en_set_link_ksettings()
|
/linux/drivers/net/ethernet/intel/ice/ |
A D | ice_ethtool.c | 2258 __ETHTOOL_LINK_MODE_MASK_NBITS)) { in ice_set_link_ksettings()
|
/linux/drivers/net/ethernet/intel/i40e/ |
A D | i40e_ethtool.c | 1205 __ETHTOOL_LINK_MODE_MASK_NBITS)) in i40e_set_link_ksettings()
|