• Home
  • Raw
  • Download

Lines Matching full:modes

16 	void (*modes)(const struct sfp_eeprom_id *id, unsigned long *modes);  member
42 unsigned long *modes) in sfp_quirk_2500basex() argument
44 phylink_set(modes, 2500baseX_Full); in sfp_quirk_2500basex()
48 unsigned long *modes) in sfp_quirk_ubnt_uf_instant() argument
52 * modes and set only one mode which module supports: 1000baseX_Full. in sfp_quirk_ubnt_uf_instant()
54 phylink_zero(modes); in sfp_quirk_ubnt_uf_instant()
55 phylink_set(modes, 1000baseX_Full); in sfp_quirk_ubnt_uf_instant()
64 .modes = sfp_quirk_2500basex,
70 .modes = sfp_quirk_2500basex,
76 .modes = sfp_quirk_2500basex,
80 .modes = sfp_quirk_ubnt_uf_instant,
225 * sfp_parse_support() - Parse the eeprom id for supported link modes
231 * ethtool link modes for the module.
237 __ETHTOOL_DECLARE_LINK_MODE_MASK(modes) = { 0, }; in sfp_parse_support()
262 phylink_set(modes, 10000baseSR_Full); in sfp_parse_support()
264 phylink_set(modes, 10000baseLR_Full); in sfp_parse_support()
266 phylink_set(modes, 10000baseLRM_Full); in sfp_parse_support()
268 phylink_set(modes, 10000baseER_Full); in sfp_parse_support()
272 phylink_set(modes, 1000baseX_Full); in sfp_parse_support()
274 phylink_set(modes, 1000baseT_Half); in sfp_parse_support()
275 phylink_set(modes, 1000baseT_Full); in sfp_parse_support()
281 phylink_set(modes, 1000baseX_Full); in sfp_parse_support()
283 /* For active or passive cables, select the link modes in sfp_parse_support()
289 phylink_set(modes, 10000baseCR_Full); in sfp_parse_support()
291 phylink_set(modes, 2500baseX_Full); in sfp_parse_support()
293 phylink_set(modes, 1000baseX_Full); in sfp_parse_support()
297 phylink_set(modes, 10000baseCR_Full); in sfp_parse_support()
302 phylink_set(modes, 10000baseCR_Full); in sfp_parse_support()
310 phylink_set(modes, 100000baseSR4_Full); in sfp_parse_support()
311 phylink_set(modes, 25000baseSR_Full); in sfp_parse_support()
315 phylink_set(modes, 100000baseLR4_ER4_Full); in sfp_parse_support()
318 phylink_set(modes, 100000baseCR4_Full); in sfp_parse_support()
322 phylink_set(modes, 25000baseCR_Full); in sfp_parse_support()
326 phylink_set(modes, 10000baseT_Full); in sfp_parse_support()
329 phylink_set(modes, 5000baseT_Full); in sfp_parse_support()
332 phylink_set(modes, 2500baseT_Full); in sfp_parse_support()
341 /* For fibre channel SFP, derive possible BaseX modes */ in sfp_parse_support()
346 phylink_set(modes, 2500baseX_Full); in sfp_parse_support()
348 phylink_set(modes, 1000baseX_Full); in sfp_parse_support()
351 /* If we haven't discovered any modes that this module supports, try in sfp_parse_support()
352 * the bitrate to determine supported modes. Some BiDi modules (eg, in sfp_parse_support()
356 if (bitmap_empty(modes, __ETHTOOL_LINK_MODE_MASK_NBITS)) { in sfp_parse_support()
359 phylink_set(modes, 1000baseX_Full); in sfp_parse_support()
363 bus->sfp_quirk->modes(id, modes); in sfp_parse_support()
365 bitmap_or(support, support, modes, __ETHTOOL_LINK_MODE_MASK_NBITS); in sfp_parse_support()
376 * @link_modes: ethtool link modes mask
379 * modes mask.