Lines Matching full:fec
136 sprintf(data, "Fec Corrected Errors: "); in otx2_get_strings()
138 sprintf(data, "Fec Uncorrected Errors: "); in otx2_get_strings()
222 * latest PHY FEC stats. in otx2_get_ethtool_stats()
228 if (pfvf->linfo.fec == OTX2_FEC_BASER) { in otx2_get_ethtool_stats()
931 const int fec[] = { in otx2_get_fecparam() local
937 if (pfvf->linfo.fec < FEC_MAX_INDEX) in otx2_get_fecparam()
938 fecparam->active_fec = fec[pfvf->linfo.fec]; in otx2_get_fecparam()
946 fecparam->fec = ETHTOOL_FEC_NONE; in otx2_get_fecparam()
948 fecparam->fec = fec[rsp->fwdata.supported_fec]; in otx2_get_fecparam()
959 int err = 0, fec = 0; in otx2_set_fecparam() local
961 switch (fecparam->fec) { in otx2_set_fecparam()
965 fec = OTX2_FEC_OFF; in otx2_set_fecparam()
968 fec = OTX2_FEC_RS; in otx2_set_fecparam()
971 fec = OTX2_FEC_BASER; in otx2_set_fecparam()
974 netdev_warn(pfvf->netdev, "Unsupported FEC mode: %d", in otx2_set_fecparam()
975 fecparam->fec); in otx2_set_fecparam()
979 if (fec == pfvf->linfo.fec) in otx2_set_fecparam()
988 req->fec = fec; in otx2_set_fecparam()
995 if (rsp->fec >= 0) in otx2_set_fecparam()
996 pfvf->linfo.fec = rsp->fec; in otx2_set_fecparam()
998 err = rsp->fec; in otx2_set_fecparam()
1030 /* Add fec modes to existing modes */ in otx2_get_fec_info()