Lines Matching refs:fec
616 int efx_mcdi_phy_get_fecparam(struct efx_nic *efx, struct ethtool_fecparam *fec) in efx_mcdi_phy_get_fecparam() argument
637 fec->fec = mcdi_fec_caps_to_ethtool(caps, is_25g); in efx_mcdi_phy_get_fecparam()
640 fec->fec &= ~ETHTOOL_FEC_BASER; in efx_mcdi_phy_get_fecparam()
645 fec->active_fec = ETHTOOL_FEC_OFF; in efx_mcdi_phy_get_fecparam()
648 fec->active_fec = ETHTOOL_FEC_BASER; in efx_mcdi_phy_get_fecparam()
651 fec->active_fec = ETHTOOL_FEC_RS; in efx_mcdi_phy_get_fecparam()
660 fec->active_fec = ETHTOOL_FEC_AUTO; in efx_mcdi_phy_get_fecparam()
681 int efx_mcdi_phy_set_fecparam(struct efx_nic *efx, const struct ethtool_fecparam *fec) in efx_mcdi_phy_set_fecparam() argument
687 rc = ethtool_fec_supported(phy_cfg->supported_cap, fec->fec); in efx_mcdi_phy_set_fecparam()
700 caps |= ethtool_fec_caps_to_mcdi(phy_cfg->supported_cap, fec->fec); in efx_mcdi_phy_set_fecparam()
707 efx->fec_config = fec->fec; in efx_mcdi_phy_set_fecparam()