Lines Matching refs:rsp
203 struct cgx_fw_data *rsp; in otx2_get_ethtool_stats() local
230 rsp = otx2_get_fwdata(pfvf); in otx2_get_ethtool_stats()
231 if (!IS_ERR(rsp) && rsp->fwdata.phy.misc.has_fec_stats && in otx2_get_ethtool_stats()
236 rsp = otx2_get_fwdata(pfvf); in otx2_get_ethtool_stats()
237 if (!IS_ERR(rsp)) { in otx2_get_ethtool_stats()
238 struct fec_stats_s *p = &rsp->fwdata.phy.fec_stats; in otx2_get_ethtool_stats()
331 struct cgx_pause_frm_cfg *req, *rsp; in otx2_get_pauseparam() local
344 rsp = (struct cgx_pause_frm_cfg *) in otx2_get_pauseparam()
346 pause->rx_pause = rsp->rx_pause; in otx2_get_pauseparam()
347 pause->tx_pause = rsp->tx_pause; in otx2_get_pauseparam()
993 struct cgx_fw_data *rsp = NULL; in otx2_get_fwdata() local
1006 rsp = (struct cgx_fw_data *) in otx2_get_fwdata()
1009 rsp = ERR_PTR(err); in otx2_get_fwdata()
1013 return rsp; in otx2_get_fwdata()
1020 struct cgx_fw_data *rsp; in otx2_get_fecparam() local
1030 rsp = otx2_get_fwdata(pfvf); in otx2_get_fecparam()
1031 if (IS_ERR(rsp)) in otx2_get_fecparam()
1032 return PTR_ERR(rsp); in otx2_get_fecparam()
1034 if (rsp->fwdata.supported_fec < FEC_MAX_INDEX) { in otx2_get_fecparam()
1035 if (!rsp->fwdata.supported_fec) in otx2_get_fecparam()
1038 fecparam->fec = fec[rsp->fwdata.supported_fec]; in otx2_get_fecparam()
1048 struct fec_mode *req, *rsp; in otx2_set_fecparam() local
1083 rsp = (struct fec_mode *)otx2_mbox_get_rsp(&pfvf->mbox.mbox, in otx2_set_fecparam()
1085 if (rsp->fec >= 0) in otx2_set_fecparam()
1086 pfvf->linfo.fec = rsp->fec; in otx2_set_fecparam()
1088 err = rsp->fec; in otx2_set_fecparam()
1199 struct cgx_fw_data *rsp = NULL; in otx2_get_link_ksettings() local
1205 rsp = otx2_get_fwdata(pfvf); in otx2_get_link_ksettings()
1206 if (IS_ERR(rsp)) in otx2_get_link_ksettings()
1207 return PTR_ERR(rsp); in otx2_get_link_ksettings()
1209 if (rsp->fwdata.supported_an) in otx2_get_link_ksettings()
1214 otx2_get_link_mode_info(rsp->fwdata.advertised_link_modes, in otx2_get_link_ksettings()
1216 otx2_get_fec_info(rsp->fwdata.advertised_fec, in otx2_get_link_ksettings()
1218 otx2_get_link_mode_info(rsp->fwdata.supported_link_modes, in otx2_get_link_ksettings()
1220 otx2_get_fec_info(rsp->fwdata.supported_fec, in otx2_get_link_ksettings()
1290 struct cgx_fw_data *rsp; in otx2_get_fec_stats() local
1298 rsp = otx2_get_fwdata(pfvf); in otx2_get_fec_stats()
1299 if (!IS_ERR(rsp) && rsp->fwdata.phy.misc.has_fec_stats && in otx2_get_fec_stats()
1304 rsp = otx2_get_fwdata(pfvf); in otx2_get_fec_stats()
1305 if (!IS_ERR(rsp)) { in otx2_get_fec_stats()
1306 struct fec_stats_s *p = &rsp->fwdata.phy.fec_stats; in otx2_get_fec_stats()