Lines Matching refs:pcaps

160 		    struct ice_aqc_get_phy_caps_data *pcaps,  in ice_aq_get_phy_caps()  argument
164 u16 pcaps_size = sizeof(*pcaps); in ice_aq_get_phy_caps()
171 if (!pcaps || (report_mode & ~ICE_AQC_REPORT_MODE_M) || !pi) in ice_aq_get_phy_caps()
185 status = ice_aq_send_cmd(hw, &desc, pcaps, pcaps_size, cd); in ice_aq_get_phy_caps()
190 (unsigned long long)le64_to_cpu(pcaps->phy_type_low)); in ice_aq_get_phy_caps()
192 (unsigned long long)le64_to_cpu(pcaps->phy_type_high)); in ice_aq_get_phy_caps()
193 ice_debug(hw, ICE_DBG_LINK, " caps = 0x%x\n", pcaps->caps); in ice_aq_get_phy_caps()
195 pcaps->low_power_ctrl_an); in ice_aq_get_phy_caps()
196 ice_debug(hw, ICE_DBG_LINK, " eee_cap = 0x%x\n", pcaps->eee_cap); in ice_aq_get_phy_caps()
198 pcaps->eeer_value); in ice_aq_get_phy_caps()
200 pcaps->link_fec_options); in ice_aq_get_phy_caps()
202 pcaps->module_compliance_enforcement); in ice_aq_get_phy_caps()
204 pcaps->extended_compliance_code); in ice_aq_get_phy_caps()
206 pcaps->module_type[0]); in ice_aq_get_phy_caps()
208 pcaps->module_type[1]); in ice_aq_get_phy_caps()
210 pcaps->module_type[2]); in ice_aq_get_phy_caps()
213 pi->phy.phy_type_low = le64_to_cpu(pcaps->phy_type_low); in ice_aq_get_phy_caps()
214 pi->phy.phy_type_high = le64_to_cpu(pcaps->phy_type_high); in ice_aq_get_phy_caps()
215 memcpy(pi->phy.link_info.module_type, &pcaps->module_type, in ice_aq_get_phy_caps()
860 struct ice_aqc_get_phy_caps_data *pcaps; in ice_init_hw() local
937 pcaps = devm_kzalloc(ice_hw_to_dev(hw), sizeof(*pcaps), GFP_KERNEL); in ice_init_hw()
938 if (!pcaps) { in ice_init_hw()
945 ICE_AQC_REPORT_TOPO_CAP_MEDIA, pcaps, in ice_init_hw()
947 devm_kfree(ice_hw_to_dev(hw), pcaps); in ice_init_hw()
2921 struct ice_aqc_get_phy_caps_data *pcaps; in ice_update_link_info() local
2925 pcaps = devm_kzalloc(ice_hw_to_dev(hw), sizeof(*pcaps), in ice_update_link_info()
2927 if (!pcaps) in ice_update_link_info()
2931 pcaps, NULL); in ice_update_link_info()
2933 devm_kfree(ice_hw_to_dev(hw), pcaps); in ice_update_link_info()
3075 struct ice_aqc_get_phy_caps_data *pcaps; in ice_set_fc() local
3085 pcaps = devm_kzalloc(ice_hw_to_dev(hw), sizeof(*pcaps), GFP_KERNEL); in ice_set_fc()
3086 if (!pcaps) in ice_set_fc()
3091 pcaps, NULL); in ice_set_fc()
3097 ice_copy_phy_caps_to_cfg(pi, pcaps, &cfg); in ice_set_fc()
3105 if (cfg.caps != pcaps->caps) { in ice_set_fc()
3137 devm_kfree(ice_hw_to_dev(hw), pcaps); in ice_set_fc()
3216 struct ice_aqc_get_phy_caps_data *pcaps; in ice_cfg_phy_fec() local
3225 pcaps = kzalloc(sizeof(*pcaps), GFP_KERNEL); in ice_cfg_phy_fec()
3226 if (!pcaps) in ice_cfg_phy_fec()
3232 ICE_AQC_REPORT_TOPO_CAP_MEDIA), pcaps, NULL); in ice_cfg_phy_fec()
3236 cfg->caps |= pcaps->caps & ICE_AQC_PHY_EN_AUTO_FEC; in ice_cfg_phy_fec()
3237 cfg->link_fec_opt = pcaps->link_fec_options; in ice_cfg_phy_fec()
3264 cfg->link_fec_opt |= pcaps->link_fec_options; in ice_cfg_phy_fec()
3284 kfree(pcaps); in ice_cfg_phy_fec()