Lines Matching full:fec

310 /* The semantics of the ethtool FEC mode bitmask are not well defined,
313 * OFF overrides any other bits, and means "disable all FEC" (with the
318 * AUTO and either RS or BASER means use the specified FEC type if cable and
320 * RS or BASER alone means use the specified FEC type if cable and link partner
321 * support it and either requests it, otherwise no FEC.
322 * Both RS and BASER (whether AUTO or not) means use FEC if cable and link
511 /* Record the initial FEC configuration (or nearest approximation in efx_siena_mcdi_phy_probe()
619 struct ethtool_fecparam *fec) in efx_siena_mcdi_phy_get_fecparam() argument
640 fec->fec = mcdi_fec_caps_to_ethtool(caps, is_25g); in efx_siena_mcdi_phy_get_fecparam()
643 fec->fec &= ~ETHTOOL_FEC_BASER; in efx_siena_mcdi_phy_get_fecparam()
648 fec->active_fec = ETHTOOL_FEC_OFF; in efx_siena_mcdi_phy_get_fecparam()
651 fec->active_fec = ETHTOOL_FEC_BASER; in efx_siena_mcdi_phy_get_fecparam()
654 fec->active_fec = ETHTOOL_FEC_RS; in efx_siena_mcdi_phy_get_fecparam()
663 fec->active_fec = ETHTOOL_FEC_AUTO; in efx_siena_mcdi_phy_get_fecparam()
671 * in fact supported by the adapter. Note that 'no FEC' is always supported.
685 const struct ethtool_fecparam *fec) in efx_siena_mcdi_phy_set_fecparam() argument
691 rc = ethtool_fec_supported(phy_cfg->supported_cap, fec->fec); in efx_siena_mcdi_phy_set_fecparam()
704 caps |= ethtool_fec_caps_to_mcdi(phy_cfg->supported_cap, fec->fec); in efx_siena_mcdi_phy_set_fecparam()
710 /* Record the new FEC setting for subsequent set_link calls */ in efx_siena_mcdi_phy_set_fecparam()
711 efx->fec_config = fec->fec; in efx_siena_mcdi_phy_set_fecparam()