Lines Matching refs:supported
61 __ETHTOOL_DECLARE_LINK_MODE_MASK(supported);
621 void phylink_validate_mask_caps(unsigned long *supported, in phylink_validate_mask_caps() argument
634 linkmode_and(supported, supported, mask); in phylink_validate_mask_caps()
649 unsigned long *supported, in phylink_generic_validate() argument
652 phylink_validate_mask_caps(supported, state, config->mac_capabilities); in phylink_generic_validate()
657 unsigned long *supported, in phylink_validate_mac_and_pcs() argument
686 ret = pcs->ops->pcs_validate(pcs, supported, state); in phylink_validate_mac_and_pcs()
687 if (ret < 0 || phylink_is_empty_linkmode(supported)) in phylink_validate_mac_and_pcs()
694 supported); in phylink_validate_mac_and_pcs()
700 pl->mac_ops->validate(pl->config, supported, state); in phylink_validate_mac_and_pcs()
702 phylink_generic_validate(pl->config, supported, state); in phylink_validate_mac_and_pcs()
704 return phylink_is_empty_linkmode(supported) ? -EINVAL : 0; in phylink_validate_mac_and_pcs()
707 static int phylink_validate_mask(struct phylink *pl, unsigned long *supported, in phylink_validate_mask() argument
719 linkmode_copy(s, supported); in phylink_validate_mask()
730 linkmode_copy(supported, all_s); in phylink_validate_mask()
733 return phylink_is_empty_linkmode(supported) ? -EINVAL : 0; in phylink_validate_mask()
736 static int phylink_validate(struct phylink *pl, unsigned long *supported, in phylink_validate() argument
742 return phylink_validate_mask(pl, supported, state, interfaces); in phylink_validate()
747 return phylink_validate_mac_and_pcs(pl, supported, state); in phylink_validate()
823 bitmap_fill(pl->supported, __ETHTOOL_LINK_MODE_MASK_NBITS); in phylink_parse_fixedlink()
824 linkmode_copy(pl->link_config.advertising, pl->supported); in phylink_parse_fixedlink()
825 phylink_validate(pl, pl->supported, &pl->link_config); in phylink_parse_fixedlink()
827 pause = phylink_test(pl->supported, Pause); in phylink_parse_fixedlink()
828 asym_pause = phylink_test(pl->supported, Asym_Pause); in phylink_parse_fixedlink()
829 autoneg = phylink_test(pl->supported, Autoneg); in phylink_parse_fixedlink()
831 pl->supported, true); in phylink_parse_fixedlink()
832 linkmode_zero(pl->supported); in phylink_parse_fixedlink()
833 phylink_set(pl->supported, MII); in phylink_parse_fixedlink()
836 phylink_set(pl->supported, Pause); in phylink_parse_fixedlink()
839 phylink_set(pl->supported, Asym_Pause); in phylink_parse_fixedlink()
842 phylink_set(pl->supported, Autoneg); in phylink_parse_fixedlink()
845 __set_bit(s->bit, pl->supported); in phylink_parse_fixedlink()
854 pl->supported); in phylink_parse_fixedlink()
882 linkmode_zero(pl->supported); in phylink_parse_mode()
883 phylink_set(pl->supported, MII); in phylink_parse_mode()
884 phylink_set(pl->supported, Autoneg); in phylink_parse_mode()
885 phylink_set(pl->supported, Asym_Pause); in phylink_parse_mode()
886 phylink_set(pl->supported, Pause); in phylink_parse_mode()
899 phylink_set(pl->supported, 10baseT_Half); in phylink_parse_mode()
900 phylink_set(pl->supported, 10baseT_Full); in phylink_parse_mode()
901 phylink_set(pl->supported, 100baseT_Half); in phylink_parse_mode()
902 phylink_set(pl->supported, 100baseT_Full); in phylink_parse_mode()
903 phylink_set(pl->supported, 1000baseT_Half); in phylink_parse_mode()
904 phylink_set(pl->supported, 1000baseT_Full); in phylink_parse_mode()
908 phylink_set(pl->supported, 1000baseX_Full); in phylink_parse_mode()
912 phylink_set(pl->supported, 2500baseX_Full); in phylink_parse_mode()
916 phylink_set(pl->supported, 5000baseT_Full); in phylink_parse_mode()
920 phylink_set(pl->supported, 25000baseCR_Full); in phylink_parse_mode()
921 phylink_set(pl->supported, 25000baseKR_Full); in phylink_parse_mode()
922 phylink_set(pl->supported, 25000baseSR_Full); in phylink_parse_mode()
927 phylink_set(pl->supported, 10baseT_Half); in phylink_parse_mode()
928 phylink_set(pl->supported, 10baseT_Full); in phylink_parse_mode()
929 phylink_set(pl->supported, 100baseT_Half); in phylink_parse_mode()
930 phylink_set(pl->supported, 100baseT_Full); in phylink_parse_mode()
931 phylink_set(pl->supported, 1000baseT_Half); in phylink_parse_mode()
932 phylink_set(pl->supported, 1000baseT_Full); in phylink_parse_mode()
933 phylink_set(pl->supported, 1000baseX_Full); in phylink_parse_mode()
934 phylink_set(pl->supported, 1000baseKX_Full); in phylink_parse_mode()
935 phylink_set(pl->supported, 2500baseT_Full); in phylink_parse_mode()
936 phylink_set(pl->supported, 2500baseX_Full); in phylink_parse_mode()
937 phylink_set(pl->supported, 5000baseT_Full); in phylink_parse_mode()
938 phylink_set(pl->supported, 10000baseT_Full); in phylink_parse_mode()
939 phylink_set(pl->supported, 10000baseKR_Full); in phylink_parse_mode()
940 phylink_set(pl->supported, 10000baseKX4_Full); in phylink_parse_mode()
941 phylink_set(pl->supported, 10000baseCR_Full); in phylink_parse_mode()
942 phylink_set(pl->supported, 10000baseSR_Full); in phylink_parse_mode()
943 phylink_set(pl->supported, 10000baseLR_Full); in phylink_parse_mode()
944 phylink_set(pl->supported, 10000baseLRM_Full); in phylink_parse_mode()
945 phylink_set(pl->supported, 10000baseER_Full); in phylink_parse_mode()
949 phylink_set(pl->supported, 25000baseCR_Full); in phylink_parse_mode()
950 phylink_set(pl->supported, 25000baseKR_Full); in phylink_parse_mode()
951 phylink_set(pl->supported, 25000baseSR_Full); in phylink_parse_mode()
952 phylink_set(pl->supported, 40000baseKR4_Full); in phylink_parse_mode()
953 phylink_set(pl->supported, 40000baseCR4_Full); in phylink_parse_mode()
954 phylink_set(pl->supported, 40000baseSR4_Full); in phylink_parse_mode()
955 phylink_set(pl->supported, 40000baseLR4_Full); in phylink_parse_mode()
956 phylink_set(pl->supported, 50000baseCR2_Full); in phylink_parse_mode()
957 phylink_set(pl->supported, 50000baseKR2_Full); in phylink_parse_mode()
958 phylink_set(pl->supported, 50000baseSR2_Full); in phylink_parse_mode()
959 phylink_set(pl->supported, 50000baseKR_Full); in phylink_parse_mode()
960 phylink_set(pl->supported, 50000baseSR_Full); in phylink_parse_mode()
961 phylink_set(pl->supported, 50000baseCR_Full); in phylink_parse_mode()
962 phylink_set(pl->supported, 50000baseLR_ER_FR_Full); in phylink_parse_mode()
963 phylink_set(pl->supported, 50000baseDR_Full); in phylink_parse_mode()
964 phylink_set(pl->supported, 100000baseKR4_Full); in phylink_parse_mode()
965 phylink_set(pl->supported, 100000baseSR4_Full); in phylink_parse_mode()
966 phylink_set(pl->supported, 100000baseCR4_Full); in phylink_parse_mode()
967 phylink_set(pl->supported, 100000baseLR4_ER4_Full); in phylink_parse_mode()
968 phylink_set(pl->supported, 100000baseKR2_Full); in phylink_parse_mode()
969 phylink_set(pl->supported, 100000baseSR2_Full); in phylink_parse_mode()
970 phylink_set(pl->supported, 100000baseCR2_Full); in phylink_parse_mode()
971 phylink_set(pl->supported, 100000baseLR2_ER2_FR2_Full); in phylink_parse_mode()
972 phylink_set(pl->supported, 100000baseDR2_Full); in phylink_parse_mode()
982 linkmode_copy(pl->link_config.advertising, pl->supported); in phylink_parse_mode()
984 if (phylink_validate(pl, pl->supported, &pl->link_config)) { in phylink_parse_mode()
1657 bitmap_fill(pl->supported, __ETHTOOL_LINK_MODE_MASK_NBITS); in phylink_create()
1658 linkmode_copy(pl->link_config.advertising, pl->supported); in phylink_create()
1659 phylink_validate(pl, pl->supported, &pl->link_config); in phylink_create()
1760 __ETHTOOL_DECLARE_LINK_MODE_MASK(supported); in phylink_bringup_phy()
1774 linkmode_copy(supported, phy->supported); in phylink_bringup_phy()
1801 ret = phylink_validate(pl, supported, &config); in phylink_bringup_phy()
1805 __ETHTOOL_LINK_MODE_MASK_NBITS, phy->supported, in phylink_bringup_phy()
1828 linkmode_copy(pl->supported, supported); in phylink_bringup_phy()
1839 __ETHTOOL_LINK_MODE_MASK_NBITS, pl->supported, in phylink_bringup_phy()
2251 wol->supported = 0; in phylink_ethtool_get_wol()
2329 linkmode_copy(kset->link_modes.supported, pl->supported); in phylink_ethtool_ksettings_get()
2381 pl->supported); in phylink_ethtool_ksettings_set()
2407 pl->supported); in phylink_ethtool_ksettings_set()
2416 pl->supported, false); in phylink_ethtool_ksettings_set()
2476 linkmode_copy(support, pl->supported); in phylink_ethtool_ksettings_set()
2486 linkmode_copy(support, pl->supported); in phylink_ethtool_ksettings_set()
2582 if (!phylink_test(pl->supported, Pause) && in phylink_ethtool_set_pauseparam()
2583 !phylink_test(pl->supported, Asym_Pause)) in phylink_ethtool_set_pauseparam()
2586 if (!phylink_test(pl->supported, Asym_Pause) && in phylink_ethtool_set_pauseparam()
3052 unsigned long *supported, in phylink_sfp_set_config() argument
3059 __ETHTOOL_LINK_MODE_MASK_NBITS, supported); in phylink_sfp_set_config()
3061 if (!linkmode_equal(pl->supported, supported)) { in phylink_sfp_set_config()
3062 linkmode_copy(pl->supported, supported); in phylink_sfp_set_config()
3097 linkmode_copy(support, phy->supported); in phylink_sfp_config_phy()