Lines Matching refs:pcaps

146 		    struct ice_aqc_get_phy_caps_data *pcaps,  in ice_aq_get_phy_caps()  argument
150 u16 pcaps_size = sizeof(*pcaps); in ice_aq_get_phy_caps()
157 if (!pcaps || (report_mode & ~ICE_AQC_REPORT_MODE_M) || !pi) in ice_aq_get_phy_caps()
167 status = ice_aq_send_cmd(hw, &desc, pcaps, pcaps_size, cd); in ice_aq_get_phy_caps()
172 (unsigned long long)le64_to_cpu(pcaps->phy_type_low)); in ice_aq_get_phy_caps()
174 (unsigned long long)le64_to_cpu(pcaps->phy_type_high)); in ice_aq_get_phy_caps()
175 ice_debug(hw, ICE_DBG_LINK, " caps = 0x%x\n", pcaps->caps); in ice_aq_get_phy_caps()
177 pcaps->low_power_ctrl_an); in ice_aq_get_phy_caps()
178 ice_debug(hw, ICE_DBG_LINK, " eee_cap = 0x%x\n", pcaps->eee_cap); in ice_aq_get_phy_caps()
180 pcaps->eeer_value); in ice_aq_get_phy_caps()
182 pcaps->link_fec_options); in ice_aq_get_phy_caps()
184 pcaps->module_compliance_enforcement); in ice_aq_get_phy_caps()
186 pcaps->extended_compliance_code); in ice_aq_get_phy_caps()
188 pcaps->module_type[0]); in ice_aq_get_phy_caps()
190 pcaps->module_type[1]); in ice_aq_get_phy_caps()
192 pcaps->module_type[2]); in ice_aq_get_phy_caps()
195 pi->phy.phy_type_low = le64_to_cpu(pcaps->phy_type_low); in ice_aq_get_phy_caps()
196 pi->phy.phy_type_high = le64_to_cpu(pcaps->phy_type_high); in ice_aq_get_phy_caps()
197 memcpy(pi->phy.link_info.module_type, &pcaps->module_type, in ice_aq_get_phy_caps()
840 struct ice_aqc_get_phy_caps_data *pcaps; in ice_init_hw() local
917 pcaps = devm_kzalloc(ice_hw_to_dev(hw), sizeof(*pcaps), GFP_KERNEL); in ice_init_hw()
918 if (!pcaps) { in ice_init_hw()
925 ICE_AQC_REPORT_TOPO_CAP, pcaps, NULL); in ice_init_hw()
926 devm_kfree(ice_hw_to_dev(hw), pcaps); in ice_init_hw()
2674 struct ice_aqc_get_phy_caps_data *pcaps; in ice_update_link_info() local
2678 pcaps = devm_kzalloc(ice_hw_to_dev(hw), sizeof(*pcaps), in ice_update_link_info()
2680 if (!pcaps) in ice_update_link_info()
2684 pcaps, NULL); in ice_update_link_info()
2686 devm_kfree(ice_hw_to_dev(hw), pcaps); in ice_update_link_info()
2828 struct ice_aqc_get_phy_caps_data *pcaps; in ice_set_fc() local
2838 pcaps = devm_kzalloc(ice_hw_to_dev(hw), sizeof(*pcaps), GFP_KERNEL); in ice_set_fc()
2839 if (!pcaps) in ice_set_fc()
2843 status = ice_aq_get_phy_caps(pi, false, ICE_AQC_REPORT_SW_CFG, pcaps, in ice_set_fc()
2850 ice_copy_phy_caps_to_cfg(pi, pcaps, &cfg); in ice_set_fc()
2858 if (cfg.caps != pcaps->caps) { in ice_set_fc()
2890 devm_kfree(ice_hw_to_dev(hw), pcaps); in ice_set_fc()
2980 struct ice_aqc_get_phy_caps_data *pcaps; in ice_cfg_phy_fec() local
2986 pcaps = kzalloc(sizeof(*pcaps), GFP_KERNEL); in ice_cfg_phy_fec()
2987 if (!pcaps) in ice_cfg_phy_fec()
2990 status = ice_aq_get_phy_caps(pi, false, ICE_AQC_REPORT_TOPO_CAP, pcaps, in ice_cfg_phy_fec()
2995 cfg->caps |= pcaps->caps & ICE_AQC_PHY_EN_AUTO_FEC; in ice_cfg_phy_fec()
2996 cfg->link_fec_opt = pcaps->link_fec_options; in ice_cfg_phy_fec()
3023 cfg->link_fec_opt |= pcaps->link_fec_options; in ice_cfg_phy_fec()
3042 kfree(pcaps); in ice_cfg_phy_fec()