Lines Matching refs:supported

58 	__ETHTOOL_DECLARE_LINK_MODE_MASK(supported);
169 static int phylink_validate_any(struct phylink *pl, unsigned long *supported, in phylink_validate_any() argument
180 linkmode_copy(s, supported); in phylink_validate_any()
190 linkmode_copy(supported, all_s); in phylink_validate_any()
193 return phylink_is_empty_linkmode(supported) ? -EINVAL : 0; in phylink_validate_any()
196 static int phylink_validate(struct phylink *pl, unsigned long *supported, in phylink_validate() argument
201 return phylink_validate_any(pl, supported, state); in phylink_validate()
208 pl->mac_ops->validate(pl->config, supported, state); in phylink_validate()
210 return phylink_is_empty_linkmode(supported) ? -EINVAL : 0; in phylink_validate()
285 bitmap_fill(pl->supported, __ETHTOOL_LINK_MODE_MASK_NBITS); in phylink_parse_fixedlink()
286 linkmode_copy(pl->link_config.advertising, pl->supported); in phylink_parse_fixedlink()
287 phylink_validate(pl, pl->supported, &pl->link_config); in phylink_parse_fixedlink()
290 pl->supported, true); in phylink_parse_fixedlink()
291 linkmode_zero(pl->supported); in phylink_parse_fixedlink()
292 phylink_set(pl->supported, MII); in phylink_parse_fixedlink()
293 phylink_set(pl->supported, Pause); in phylink_parse_fixedlink()
294 phylink_set(pl->supported, Asym_Pause); in phylink_parse_fixedlink()
295 phylink_set(pl->supported, Autoneg); in phylink_parse_fixedlink()
297 __set_bit(s->bit, pl->supported); in phylink_parse_fixedlink()
306 pl->supported); in phylink_parse_fixedlink()
333 linkmode_zero(pl->supported); in phylink_parse_mode()
334 phylink_set(pl->supported, MII); in phylink_parse_mode()
335 phylink_set(pl->supported, Autoneg); in phylink_parse_mode()
336 phylink_set(pl->supported, Asym_Pause); in phylink_parse_mode()
337 phylink_set(pl->supported, Pause); in phylink_parse_mode()
344 phylink_set(pl->supported, 10baseT_Half); in phylink_parse_mode()
345 phylink_set(pl->supported, 10baseT_Full); in phylink_parse_mode()
346 phylink_set(pl->supported, 100baseT_Half); in phylink_parse_mode()
347 phylink_set(pl->supported, 100baseT_Full); in phylink_parse_mode()
348 phylink_set(pl->supported, 1000baseT_Half); in phylink_parse_mode()
349 phylink_set(pl->supported, 1000baseT_Full); in phylink_parse_mode()
353 phylink_set(pl->supported, 1000baseX_Full); in phylink_parse_mode()
357 phylink_set(pl->supported, 2500baseX_Full); in phylink_parse_mode()
361 phylink_set(pl->supported, 5000baseT_Full); in phylink_parse_mode()
365 phylink_set(pl->supported, 25000baseCR_Full); in phylink_parse_mode()
366 phylink_set(pl->supported, 25000baseKR_Full); in phylink_parse_mode()
367 phylink_set(pl->supported, 25000baseSR_Full); in phylink_parse_mode()
372 phylink_set(pl->supported, 10baseT_Half); in phylink_parse_mode()
373 phylink_set(pl->supported, 10baseT_Full); in phylink_parse_mode()
374 phylink_set(pl->supported, 100baseT_Half); in phylink_parse_mode()
375 phylink_set(pl->supported, 100baseT_Full); in phylink_parse_mode()
376 phylink_set(pl->supported, 1000baseT_Half); in phylink_parse_mode()
377 phylink_set(pl->supported, 1000baseT_Full); in phylink_parse_mode()
378 phylink_set(pl->supported, 1000baseX_Full); in phylink_parse_mode()
379 phylink_set(pl->supported, 1000baseKX_Full); in phylink_parse_mode()
380 phylink_set(pl->supported, 2500baseT_Full); in phylink_parse_mode()
381 phylink_set(pl->supported, 2500baseX_Full); in phylink_parse_mode()
382 phylink_set(pl->supported, 5000baseT_Full); in phylink_parse_mode()
383 phylink_set(pl->supported, 10000baseT_Full); in phylink_parse_mode()
384 phylink_set(pl->supported, 10000baseKR_Full); in phylink_parse_mode()
385 phylink_set(pl->supported, 10000baseKX4_Full); in phylink_parse_mode()
386 phylink_set(pl->supported, 10000baseCR_Full); in phylink_parse_mode()
387 phylink_set(pl->supported, 10000baseSR_Full); in phylink_parse_mode()
388 phylink_set(pl->supported, 10000baseLR_Full); in phylink_parse_mode()
389 phylink_set(pl->supported, 10000baseLRM_Full); in phylink_parse_mode()
390 phylink_set(pl->supported, 10000baseER_Full); in phylink_parse_mode()
394 phylink_set(pl->supported, 25000baseCR_Full); in phylink_parse_mode()
395 phylink_set(pl->supported, 25000baseKR_Full); in phylink_parse_mode()
396 phylink_set(pl->supported, 25000baseSR_Full); in phylink_parse_mode()
397 phylink_set(pl->supported, 40000baseKR4_Full); in phylink_parse_mode()
398 phylink_set(pl->supported, 40000baseCR4_Full); in phylink_parse_mode()
399 phylink_set(pl->supported, 40000baseSR4_Full); in phylink_parse_mode()
400 phylink_set(pl->supported, 40000baseLR4_Full); in phylink_parse_mode()
401 phylink_set(pl->supported, 50000baseCR2_Full); in phylink_parse_mode()
402 phylink_set(pl->supported, 50000baseKR2_Full); in phylink_parse_mode()
403 phylink_set(pl->supported, 50000baseSR2_Full); in phylink_parse_mode()
404 phylink_set(pl->supported, 50000baseKR_Full); in phylink_parse_mode()
405 phylink_set(pl->supported, 50000baseSR_Full); in phylink_parse_mode()
406 phylink_set(pl->supported, 50000baseCR_Full); in phylink_parse_mode()
407 phylink_set(pl->supported, 50000baseLR_ER_FR_Full); in phylink_parse_mode()
408 phylink_set(pl->supported, 50000baseDR_Full); in phylink_parse_mode()
409 phylink_set(pl->supported, 100000baseKR4_Full); in phylink_parse_mode()
410 phylink_set(pl->supported, 100000baseSR4_Full); in phylink_parse_mode()
411 phylink_set(pl->supported, 100000baseCR4_Full); in phylink_parse_mode()
412 phylink_set(pl->supported, 100000baseLR4_ER4_Full); in phylink_parse_mode()
413 phylink_set(pl->supported, 100000baseKR2_Full); in phylink_parse_mode()
414 phylink_set(pl->supported, 100000baseSR2_Full); in phylink_parse_mode()
415 phylink_set(pl->supported, 100000baseCR2_Full); in phylink_parse_mode()
416 phylink_set(pl->supported, 100000baseLR2_ER2_FR2_Full); in phylink_parse_mode()
417 phylink_set(pl->supported, 100000baseDR2_Full); in phylink_parse_mode()
427 linkmode_copy(pl->link_config.advertising, pl->supported); in phylink_parse_mode()
429 if (phylink_validate(pl, pl->supported, &pl->link_config)) { in phylink_parse_mode()
436 pl->link_config.an_enabled = phylink_test(pl->supported, Autoneg); in phylink_parse_mode()
931 bitmap_fill(pl->supported, __ETHTOOL_LINK_MODE_MASK_NBITS); in phylink_create()
932 linkmode_copy(pl->link_config.advertising, pl->supported); in phylink_create()
933 phylink_validate(pl, pl->supported, &pl->link_config); in phylink_create()
1034 __ETHTOOL_DECLARE_LINK_MODE_MASK(supported); in phylink_bringup_phy()
1048 linkmode_copy(supported, phy->supported); in phylink_bringup_phy()
1064 ret = phylink_validate(pl, supported, &config); in phylink_bringup_phy()
1068 __ETHTOOL_LINK_MODE_MASK_NBITS, phy->supported, in phylink_bringup_phy()
1090 linkmode_copy(pl->supported, supported); in phylink_bringup_phy()
1100 __ETHTOOL_LINK_MODE_MASK_NBITS, pl->supported, in phylink_bringup_phy()
1480 wol->supported = 0; in phylink_ethtool_get_wol()
1555 linkmode_copy(kset->link_modes.supported, pl->supported); in phylink_ethtool_ksettings_get()
1628 pl->supported); in phylink_ethtool_ksettings_set()
1637 pl->supported, false); in phylink_ethtool_ksettings_set()
1698 linkmode_copy(support, pl->supported); in phylink_ethtool_ksettings_set()
1708 linkmode_copy(support, pl->supported); in phylink_ethtool_ksettings_set()
1803 if (!phylink_test(pl->supported, Pause) && in phylink_ethtool_set_pauseparam()
1804 !phylink_test(pl->supported, Asym_Pause)) in phylink_ethtool_set_pauseparam()
1807 if (!phylink_test(pl->supported, Asym_Pause) && in phylink_ethtool_set_pauseparam()
2242 const unsigned long *supported, in phylink_sfp_config() argument
2252 linkmode_copy(support, supported); in phylink_sfp_config()
2296 changed = !linkmode_equal(pl->supported, support) || in phylink_sfp_config()
2300 linkmode_copy(pl->supported, support); in phylink_sfp_config()
2424 ret = phylink_sfp_config(pl, mode, phy->supported, phy->advertising); in phylink_sfp_connect_phy()