Lines Matching refs:linfo
216 struct cgx_link_user_info *linfo)
223 *linfo = lmac->link_info;
704 static int cgx_set_fec_stats_count(struct cgx_link_user_info *linfo)
706 if (!linfo->fec)
709 switch (linfo->lmac_type_id) {
723 if (linfo->fec == OTX2_FEC_BASER)
1223 struct cgx_link_user_info *linfo,
1226 linfo->link_up = FIELD_GET(RESP_LINKSTAT_UP, lstat);
1227 linfo->full_duplex = FIELD_GET(RESP_LINKSTAT_FDUPLEX, lstat);
1228 linfo->speed = cgx_speed_mbps[FIELD_GET(RESP_LINKSTAT_SPEED, lstat)];
1229 linfo->an = FIELD_GET(RESP_LINKSTAT_AN, lstat);
1230 linfo->fec = FIELD_GET(RESP_LINKSTAT_FEC, lstat);
1231 linfo->lmac_type_id = FIELD_GET(RESP_LINKSTAT_LMAC_TYPE, lstat);
1233 if (linfo->lmac_type_id >= LMAC_MODE_MAX) {
1235 linfo->lmac_type_id, cgx->cgx_id, lmac_id);
1236 strscpy(linfo->lmac_type, "Unknown", sizeof(linfo->lmac_type));
1240 strscpy(linfo->lmac_type, cgx_lmactype_string[linfo->lmac_type_id],
1241 sizeof(linfo->lmac_type));
1248 struct cgx_link_user_info *linfo;
1264 linfo = &lmac->link_info;
1281 linfo->link_up ? "UP" : "DOWN", linfo->speed);