Lines Matching refs:pcaps

181 		    struct ice_aqc_get_phy_caps_data *pcaps,  in ice_aq_get_phy_caps()  argument
185 u16 pcaps_size = sizeof(*pcaps); in ice_aq_get_phy_caps()
192 if (!pcaps || (report_mode & ~ICE_AQC_REPORT_MODE_M) || !pi) in ice_aq_get_phy_caps()
206 status = ice_aq_send_cmd(hw, &desc, pcaps, pcaps_size, cd); in ice_aq_get_phy_caps()
211 (unsigned long long)le64_to_cpu(pcaps->phy_type_low)); in ice_aq_get_phy_caps()
213 (unsigned long long)le64_to_cpu(pcaps->phy_type_high)); in ice_aq_get_phy_caps()
214 ice_debug(hw, ICE_DBG_LINK, " caps = 0x%x\n", pcaps->caps); in ice_aq_get_phy_caps()
216 pcaps->low_power_ctrl_an); in ice_aq_get_phy_caps()
217 ice_debug(hw, ICE_DBG_LINK, " eee_cap = 0x%x\n", pcaps->eee_cap); in ice_aq_get_phy_caps()
219 pcaps->eeer_value); in ice_aq_get_phy_caps()
221 pcaps->link_fec_options); in ice_aq_get_phy_caps()
223 pcaps->module_compliance_enforcement); in ice_aq_get_phy_caps()
225 pcaps->extended_compliance_code); in ice_aq_get_phy_caps()
227 pcaps->module_type[0]); in ice_aq_get_phy_caps()
229 pcaps->module_type[1]); in ice_aq_get_phy_caps()
231 pcaps->module_type[2]); in ice_aq_get_phy_caps()
234 pi->phy.phy_type_low = le64_to_cpu(pcaps->phy_type_low); in ice_aq_get_phy_caps()
235 pi->phy.phy_type_high = le64_to_cpu(pcaps->phy_type_high); in ice_aq_get_phy_caps()
236 memcpy(pi->phy.link_info.module_type, &pcaps->module_type, in ice_aq_get_phy_caps()
909 struct ice_aqc_get_phy_caps_data *pcaps; in ice_init_hw() local
986 pcaps = devm_kzalloc(ice_hw_to_dev(hw), sizeof(*pcaps), GFP_KERNEL); in ice_init_hw()
987 if (!pcaps) { in ice_init_hw()
994 ICE_AQC_REPORT_TOPO_CAP_MEDIA, pcaps, in ice_init_hw()
996 devm_kfree(ice_hw_to_dev(hw), pcaps); in ice_init_hw()
2970 struct ice_aqc_get_phy_caps_data *pcaps; in ice_update_link_info() local
2974 pcaps = devm_kzalloc(ice_hw_to_dev(hw), sizeof(*pcaps), in ice_update_link_info()
2976 if (!pcaps) in ice_update_link_info()
2980 pcaps, NULL); in ice_update_link_info()
2982 devm_kfree(ice_hw_to_dev(hw), pcaps); in ice_update_link_info()
3124 struct ice_aqc_get_phy_caps_data *pcaps; in ice_set_fc() local
3134 pcaps = devm_kzalloc(ice_hw_to_dev(hw), sizeof(*pcaps), GFP_KERNEL); in ice_set_fc()
3135 if (!pcaps) in ice_set_fc()
3140 pcaps, NULL); in ice_set_fc()
3146 ice_copy_phy_caps_to_cfg(pi, pcaps, &cfg); in ice_set_fc()
3154 if (cfg.caps != pcaps->caps) { in ice_set_fc()
3186 devm_kfree(ice_hw_to_dev(hw), pcaps); in ice_set_fc()
3265 struct ice_aqc_get_phy_caps_data *pcaps; in ice_cfg_phy_fec() local
3274 pcaps = kzalloc(sizeof(*pcaps), GFP_KERNEL); in ice_cfg_phy_fec()
3275 if (!pcaps) in ice_cfg_phy_fec()
3281 ICE_AQC_REPORT_TOPO_CAP_MEDIA), pcaps, NULL); in ice_cfg_phy_fec()
3285 cfg->caps |= pcaps->caps & ICE_AQC_PHY_EN_AUTO_FEC; in ice_cfg_phy_fec()
3286 cfg->link_fec_opt = pcaps->link_fec_options; in ice_cfg_phy_fec()
3313 cfg->link_fec_opt |= pcaps->link_fec_options; in ice_cfg_phy_fec()
3333 kfree(pcaps); in ice_cfg_phy_fec()