Lines Matching refs:linfo
206 struct cgx_link_user_info *linfo) in cgx_get_link_info() argument
213 *linfo = lmac->link_info; in cgx_get_link_info()
634 static int cgx_set_fec_stats_count(struct cgx_link_user_info *linfo) in cgx_set_fec_stats_count() argument
636 if (!linfo->fec) in cgx_set_fec_stats_count()
639 switch (linfo->lmac_type_id) { in cgx_set_fec_stats_count()
653 if (linfo->fec == OTX2_FEC_BASER) in cgx_set_fec_stats_count()
1071 struct cgx_link_user_info *linfo, in link_status_user_format() argument
1076 linfo->link_up = FIELD_GET(RESP_LINKSTAT_UP, lstat); in link_status_user_format()
1077 linfo->full_duplex = FIELD_GET(RESP_LINKSTAT_FDUPLEX, lstat); in link_status_user_format()
1078 linfo->speed = cgx_speed_mbps[FIELD_GET(RESP_LINKSTAT_SPEED, lstat)]; in link_status_user_format()
1079 linfo->an = FIELD_GET(RESP_LINKSTAT_AN, lstat); in link_status_user_format()
1080 linfo->fec = FIELD_GET(RESP_LINKSTAT_FEC, lstat); in link_status_user_format()
1081 linfo->lmac_type_id = cgx_get_lmac_type(cgx, lmac_id); in link_status_user_format()
1082 lmac_string = cgx_lmactype_string[linfo->lmac_type_id]; in link_status_user_format()
1083 strncpy(linfo->lmac_type, lmac_string, LMACTYPE_STR_LEN - 1); in link_status_user_format()
1090 struct cgx_link_user_info *linfo; in cgx_link_change_handler() local
1106 linfo = &lmac->link_info; in cgx_link_change_handler()
1123 linfo->link_up ? "UP" : "DOWN", linfo->speed); in cgx_link_change_handler()