Lines Matching full:supported
56 __ETHTOOL_DECLARE_LINK_MODE_MASK(supported);
156 static int phylink_validate(struct phylink *pl, unsigned long *supported, in phylink_validate() argument
159 pl->mac_ops->validate(pl->config, supported, state); in phylink_validate()
161 return phylink_is_empty_linkmode(supported) ? -EINVAL : 0; in phylink_validate()
235 bitmap_fill(pl->supported, __ETHTOOL_LINK_MODE_MASK_NBITS); in phylink_parse_fixedlink()
236 linkmode_copy(pl->link_config.advertising, pl->supported); in phylink_parse_fixedlink()
237 phylink_validate(pl, pl->supported, &pl->link_config); in phylink_parse_fixedlink()
240 pl->supported, true); in phylink_parse_fixedlink()
241 linkmode_zero(pl->supported); in phylink_parse_fixedlink()
242 phylink_set(pl->supported, MII); in phylink_parse_fixedlink()
243 phylink_set(pl->supported, Pause); in phylink_parse_fixedlink()
244 phylink_set(pl->supported, Asym_Pause); in phylink_parse_fixedlink()
245 phylink_set(pl->supported, Autoneg); in phylink_parse_fixedlink()
247 __set_bit(s->bit, pl->supported); in phylink_parse_fixedlink()
256 pl->supported); in phylink_parse_fixedlink()
282 linkmode_zero(pl->supported); in phylink_parse_mode()
283 phylink_set(pl->supported, MII); in phylink_parse_mode()
284 phylink_set(pl->supported, Autoneg); in phylink_parse_mode()
285 phylink_set(pl->supported, Asym_Pause); in phylink_parse_mode()
286 phylink_set(pl->supported, Pause); in phylink_parse_mode()
293 phylink_set(pl->supported, 10baseT_Half); in phylink_parse_mode()
294 phylink_set(pl->supported, 10baseT_Full); in phylink_parse_mode()
295 phylink_set(pl->supported, 100baseT_Half); in phylink_parse_mode()
296 phylink_set(pl->supported, 100baseT_Full); in phylink_parse_mode()
297 phylink_set(pl->supported, 1000baseT_Half); in phylink_parse_mode()
298 phylink_set(pl->supported, 1000baseT_Full); in phylink_parse_mode()
302 phylink_set(pl->supported, 1000baseX_Full); in phylink_parse_mode()
306 phylink_set(pl->supported, 2500baseX_Full); in phylink_parse_mode()
312 phylink_set(pl->supported, 10baseT_Half); in phylink_parse_mode()
313 phylink_set(pl->supported, 10baseT_Full); in phylink_parse_mode()
314 phylink_set(pl->supported, 100baseT_Half); in phylink_parse_mode()
315 phylink_set(pl->supported, 100baseT_Full); in phylink_parse_mode()
316 phylink_set(pl->supported, 1000baseT_Half); in phylink_parse_mode()
317 phylink_set(pl->supported, 1000baseT_Full); in phylink_parse_mode()
318 phylink_set(pl->supported, 1000baseX_Full); in phylink_parse_mode()
319 phylink_set(pl->supported, 1000baseKX_Full); in phylink_parse_mode()
320 phylink_set(pl->supported, 2500baseT_Full); in phylink_parse_mode()
321 phylink_set(pl->supported, 2500baseX_Full); in phylink_parse_mode()
322 phylink_set(pl->supported, 5000baseT_Full); in phylink_parse_mode()
323 phylink_set(pl->supported, 10000baseT_Full); in phylink_parse_mode()
324 phylink_set(pl->supported, 10000baseKR_Full); in phylink_parse_mode()
325 phylink_set(pl->supported, 10000baseKX4_Full); in phylink_parse_mode()
326 phylink_set(pl->supported, 10000baseCR_Full); in phylink_parse_mode()
327 phylink_set(pl->supported, 10000baseSR_Full); in phylink_parse_mode()
328 phylink_set(pl->supported, 10000baseLR_Full); in phylink_parse_mode()
329 phylink_set(pl->supported, 10000baseLRM_Full); in phylink_parse_mode()
330 phylink_set(pl->supported, 10000baseER_Full); in phylink_parse_mode()
334 phylink_set(pl->supported, 25000baseCR_Full); in phylink_parse_mode()
335 phylink_set(pl->supported, 25000baseKR_Full); in phylink_parse_mode()
336 phylink_set(pl->supported, 25000baseSR_Full); in phylink_parse_mode()
337 phylink_set(pl->supported, 40000baseKR4_Full); in phylink_parse_mode()
338 phylink_set(pl->supported, 40000baseCR4_Full); in phylink_parse_mode()
339 phylink_set(pl->supported, 40000baseSR4_Full); in phylink_parse_mode()
340 phylink_set(pl->supported, 40000baseLR4_Full); in phylink_parse_mode()
341 phylink_set(pl->supported, 50000baseCR2_Full); in phylink_parse_mode()
342 phylink_set(pl->supported, 50000baseKR2_Full); in phylink_parse_mode()
343 phylink_set(pl->supported, 50000baseSR2_Full); in phylink_parse_mode()
344 phylink_set(pl->supported, 50000baseKR_Full); in phylink_parse_mode()
345 phylink_set(pl->supported, 50000baseSR_Full); in phylink_parse_mode()
346 phylink_set(pl->supported, 50000baseCR_Full); in phylink_parse_mode()
347 phylink_set(pl->supported, 50000baseLR_ER_FR_Full); in phylink_parse_mode()
348 phylink_set(pl->supported, 50000baseDR_Full); in phylink_parse_mode()
349 phylink_set(pl->supported, 100000baseKR4_Full); in phylink_parse_mode()
350 phylink_set(pl->supported, 100000baseSR4_Full); in phylink_parse_mode()
351 phylink_set(pl->supported, 100000baseCR4_Full); in phylink_parse_mode()
352 phylink_set(pl->supported, 100000baseLR4_ER4_Full); in phylink_parse_mode()
353 phylink_set(pl->supported, 100000baseKR2_Full); in phylink_parse_mode()
354 phylink_set(pl->supported, 100000baseSR2_Full); in phylink_parse_mode()
355 phylink_set(pl->supported, 100000baseCR2_Full); in phylink_parse_mode()
356 phylink_set(pl->supported, 100000baseLR2_ER2_FR2_Full); in phylink_parse_mode()
357 phylink_set(pl->supported, 100000baseDR2_Full); in phylink_parse_mode()
367 linkmode_copy(pl->link_config.advertising, pl->supported); in phylink_parse_mode()
369 if (phylink_validate(pl, pl->supported, &pl->link_config)) { in phylink_parse_mode()
376 pl->link_config.an_enabled = phylink_test(pl->supported, Autoneg); in phylink_parse_mode()
863 bitmap_fill(pl->supported, __ETHTOOL_LINK_MODE_MASK_NBITS); in phylink_create()
864 linkmode_copy(pl->link_config.advertising, pl->supported); in phylink_create()
865 phylink_validate(pl, pl->supported, &pl->link_config); in phylink_create()
904 * is not supported, and if a PCS is going to be used, it must be registered
965 __ETHTOOL_DECLARE_LINK_MODE_MASK(supported); in phylink_bringup_phy()
974 * clearing the bits from both supported and advertising fields. in phylink_bringup_phy()
979 linkmode_copy(supported, phy->supported); in phylink_bringup_phy()
985 * MAC supports to properly work out which linkmodes can be supported. in phylink_bringup_phy()
995 ret = phylink_validate(pl, supported, &config); in phylink_bringup_phy()
999 __ETHTOOL_LINK_MODE_MASK_NBITS, phy->supported, in phylink_bringup_phy()
1021 linkmode_copy(pl->supported, supported); in phylink_bringup_phy()
1030 "phy: setting supported %*pb advertising %*pb\n", in phylink_bringup_phy()
1031 __ETHTOOL_LINK_MODE_MASK_NBITS, pl->supported, in phylink_bringup_phy()
1064 * This updates the phylink's ethtool supported and advertising link mode
1310 wol->supported = 0; in phylink_ethtool_get_wol()
1386 linkmode_copy(kset->link_modes.supported, pl->supported); in phylink_ethtool_ksettings_get()
1392 * represent the supported speeds/duplex/pause modes. in phylink_ethtool_ksettings_get()
1455 linkmode_copy(support, pl->supported); in phylink_ethtool_ksettings_set()
1536 linkmode_copy(support, pl->supported); in phylink_ethtool_ksettings_set()
1632 if (!phylink_test(pl->supported, Pause) && in phylink_ethtool_set_pauseparam()
1633 !phylink_test(pl->supported, Asym_Pause)) in phylink_ethtool_set_pauseparam()
1636 if (!phylink_test(pl->supported, Asym_Pause) && in phylink_ethtool_set_pauseparam()
2009 * phylink_speed_down() - set the non-SFP PHY to lowest speed supported by both
2071 const unsigned long *supported, in phylink_sfp_config() argument
2081 linkmode_copy(support, supported); in phylink_sfp_config()
2125 changed = !linkmode_equal(pl->supported, support) || in phylink_sfp_config()
2129 linkmode_copy(pl->supported, support); in phylink_sfp_config()
2243 * clearing the bits from both supported and advertising fields. in phylink_sfp_connect_phy()
2253 ret = phylink_sfp_config(pl, mode, phy->supported, phy->advertising); in phylink_sfp_connect_phy()