/openbmc/linux/include/linux/ |
H 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() 77 return bitmap_equal(src1, src2, __ETHTOOL_LINK_MODE_MASK_NBITS); in linkmode_equal() 83 return bitmap_intersects(src1, src2, __ETHTOOL_LINK_MODE_MASK_NBITS); in linkmode_intersects() 89 return bitmap_subset(src1, src2, __ETHTOOL_LINK_MODE_MASK_NBITS); in linkmode_subset()
|
H A D | ethtool_netlink.h | 11 DIV_ROUND_UP(__ETHTOOL_LINK_MODE_MASK_NBITS, 32)
|
H A D | ethtool.h | 162 DECLARE_BITMAP(name, __ETHTOOL_LINK_MODE_MASK_NBITS) 183 bitmap_zero((ptr)->link_modes.name, __ETHTOOL_LINK_MODE_MASK_NBITS)
|
H A D | phylink.h | 694 bitmap_zero(bm, __ETHTOOL_LINK_MODE_MASK_NBITS)
|
/openbmc/linux/net/ethtool/ |
H A D | linkmodes.c | 53 __ETHTOOL_LINK_MODE_MASK_NBITS); in linkmodes_prepare_data() 77 __ETHTOOL_LINK_MODE_MASK_NBITS, in linkmodes_reply_size() 84 NULL, __ETHTOOL_LINK_MODE_MASK_NBITS, in linkmodes_reply_size() 116 __ETHTOOL_LINK_MODE_MASK_NBITS, link_mode_names, in linkmodes_fill_reply() 123 NULL, __ETHTOOL_LINK_MODE_MASK_NBITS, in linkmodes_fill_reply() 178 DECLARE_BITMAP(old_adv, __ETHTOOL_LINK_MODE_MASK_NBITS); in ethnl_auto_linkmodes() 181 bitmap_copy(old_adv, advertising, __ETHTOOL_LINK_MODE_MASK_NBITS); in ethnl_auto_linkmodes() 183 for (i = 0; i < __ETHTOOL_LINK_MODE_MASK_NBITS; i++) { in ethnl_auto_linkmodes() 198 __ETHTOOL_LINK_MODE_MASK_NBITS); in ethnl_auto_linkmodes() 282 __ETHTOOL_LINK_MODE_MASK_NBITS, in ethnl_update_linkmodes()
|
H 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() 254 __ETHTOOL_LINK_MODE_MASK_NBITS, in ethnl_set_fec()
|
H A D | ioctl.c | 180 return __ETHTOOL_LINK_MODE_MASK_NBITS; in __ethtool_get_sset_count() 368 __ETHTOOL_LINK_MODE_MASK_NBITS; in ethtool_convert_link_mode_to_legacy_u32() 420 DIV_ROUND_UP(__ETHTOOL_LINK_MODE_MASK_NBITS, 32) 463 __ETHTOOL_LINK_MODE_MASK_NBITS); in load_link_ksettings_from_user() 466 __ETHTOOL_LINK_MODE_MASK_NBITS); in load_link_ksettings_from_user() 469 __ETHTOOL_LINK_MODE_MASK_NBITS); in load_link_ksettings_from_user() 487 __ETHTOOL_LINK_MODE_MASK_NBITS) && in ethtool_virtdev_validate_cmd() 489 __ETHTOOL_LINK_MODE_MASK_NBITS); in ethtool_virtdev_validate_cmd() 505 __ETHTOOL_LINK_MODE_MASK_NBITS); in store_link_ksettings_for_user() 508 __ETHTOOL_LINK_MODE_MASK_NBITS); in store_link_ksettings_for_user() [all …]
|
H A D | common.c | 215 static_assert(ARRAY_SIZE(link_mode_names) == __ETHTOOL_LINK_MODE_MASK_NBITS); 378 static_assert(ARRAY_SIZE(link_mode_params) == __ETHTOOL_LINK_MODE_MASK_NBITS); 679 if (WARN_ON_ONCE(link_mode >= __ETHTOOL_LINK_MODE_MASK_NBITS)) in ethtool_params_from_link_mode()
|
H A D | strset.c | 50 .count = __ETHTOOL_LINK_MODE_MASK_NBITS,
|
/openbmc/linux/drivers/net/pcs/ |
H A D | pcs-xpcs.c | 27 __ETHTOOL_LINK_MODE_MASK_NBITS, 34 __ETHTOOL_LINK_MODE_MASK_NBITS, 64 __ETHTOOL_LINK_MODE_MASK_NBITS, 74 __ETHTOOL_LINK_MODE_MASK_NBITS, 87 __ETHTOOL_LINK_MODE_MASK_NBITS, 95 __ETHTOOL_LINK_MODE_MASK_NBITS, 104 __ETHTOOL_LINK_MODE_MASK_NBITS, 194 for (i = 0; compat->supported[i] != __ETHTOOL_LINK_MODE_MASK_NBITS; i++) in __xpcs_linkmode_supported() 541 for_each_set_bit(bit, adv, __ETHTOOL_LINK_MODE_MASK_NBITS) { in xpcs_get_max_xlgmii_speed() 623 for (i = 0; compat->supported[i] != __ETHTOOL_LINK_MODE_MASK_NBITS; i++) in xpcs_validate()
|
/openbmc/linux/drivers/net/phy/ |
H A D | phylink.c | 1104 __ETHTOOL_LINK_MODE_MASK_NBITS, st.advertising, in phylink_mac_config() 1806 __ETHTOOL_LINK_MODE_MASK_NBITS, phy->supported, in phylink_bringup_phy() 1840 __ETHTOOL_LINK_MODE_MASK_NBITS, pl->supported, in phylink_bringup_phy() 1841 __ETHTOOL_LINK_MODE_MASK_NBITS, phy->advertising); in phylink_bringup_phy() 2471 __ETHTOOL_LINK_MODE_MASK_NBITS, in phylink_ethtool_ksettings_set() 2482 __ETHTOOL_LINK_MODE_MASK_NBITS, support); in phylink_ethtool_ksettings_set() 3060 __ETHTOOL_LINK_MODE_MASK_NBITS, supported); in phylink_sfp_set_config() 3111 __ETHTOOL_LINK_MODE_MASK_NBITS, support, in phylink_sfp_config_phy() 3132 __ETHTOOL_LINK_MODE_MASK_NBITS, support, in phylink_sfp_config_phy() 3181 __ETHTOOL_LINK_MODE_MASK_NBITS, support); in phylink_sfp_config_optical() [all …]
|
H A D | phy-core.c | 16 BUILD_BUG_ON_MSG(__ETHTOOL_LINK_MODE_MASK_NBITS != 102, in phy_speed_to_str() 295 if (p->bit < __ETHTOOL_LINK_MODE_MASK_NBITS && in phy_lookup_setting() 327 if (settings[i].bit < __ETHTOOL_LINK_MODE_MASK_NBITS && in phy_speeds()
|
H A D | sfp-bus.c | 327 if (bitmap_empty(modes, __ETHTOOL_LINK_MODE_MASK_NBITS) && br_nom) { in sfp_parse_support()
|
/openbmc/linux/drivers/net/ethernet/amd/xgbe/ |
H A 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() 381 bitmap_empty(advertising, __ETHTOOL_LINK_MODE_MASK_NBITS)) { in xgbe_set_link_ksettings()
|
H A D | xgbe.h | 348 __ETHTOOL_LINK_MODE_MASK_NBITS)
|
/openbmc/linux/drivers/net/ethernet/marvell/prestera/ |
H 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()
|
/openbmc/linux/drivers/net/ethernet/mellanox/mlx5/core/ |
H A D | en_ethtool.c | 86 __ETHTOOL_LINK_MODE_MASK_NBITS); \ 88 __ETHTOOL_LINK_MODE_MASK_NBITS); \ 731 __ETHTOOL_LINK_MODE_MASK_NBITS); in ptys2ethtool_supported_link() 749 __ETHTOOL_LINK_MODE_MASK_NBITS); in ptys2ethtool_adver_link() 1130 __ETHTOOL_LINK_MODE_MASK_NBITS)) in mlx5e_ethtool2ptys_adver_link() 1148 link_modes, __ETHTOOL_LINK_MODE_MASK_NBITS); in mlx5e_ethtool2ptys_ext_adver_link() 1160 int size = __ETHTOOL_LINK_MODE_MASK_NBITS - MLX5E_MIN_PTYS_EXT_LINK_MODE_BIT; in ext_link_mode_requested() 1164 return bitmap_intersects(modes, adver, __ETHTOOL_LINK_MODE_MASK_NBITS); in ext_link_mode_requested()
|
/openbmc/linux/drivers/net/ethernet/marvell/octeon_ep/ |
H A D | octep_ethtool.c | 360 __ETHTOOL_LINK_MODE_MASK_NBITS)) in octep_set_link_ksettings()
|
/openbmc/linux/drivers/net/ethernet/marvell/octeontx2/nic/ |
H A D | otx2_ethtool.c | 1234 __ETHTOOL_LINK_MODE_MASK_NBITS); in otx2_get_advertised_mode() 1235 if (bit_pos != __ETHTOOL_LINK_MODE_MASK_NBITS) in otx2_get_advertised_mode()
|
/openbmc/linux/include/uapi/linux/ |
H A D | ethtool.h | 1792 __ETHTOOL_LINK_MODE_MASK_NBITS enumerator
|
/openbmc/qemu/include/standard-headers/linux/ |
H A D | ethtool.h | 1850 __ETHTOOL_LINK_MODE_MASK_NBITS enumerator
|
/openbmc/linux/drivers/net/ethernet/sfc/ |
H A D | efx_common.c | 460 bitmap_zero(efx->link_advertising, __ETHTOOL_LINK_MODE_MASK_NBITS); in efx_link_clear_advertising()
|
H A D | mcdi_port_common.c | 117 bitmap_zero(linkset, __ETHTOOL_LINK_MODE_MASK_NBITS); in mcdi_to_ethtool_linkset()
|
/openbmc/linux/drivers/net/ethernet/sfc/siena/ |
H A D | efx_common.c | 464 bitmap_zero(efx->link_advertising, __ETHTOOL_LINK_MODE_MASK_NBITS); in efx_siena_link_clear_advertising()
|
H A D | mcdi_port_common.c | 118 bitmap_zero(linkset, __ETHTOOL_LINK_MODE_MASK_NBITS); in mcdi_to_ethtool_linkset()
|