Lines Matching refs:pcaps

1961 	struct ice_aqc_get_phy_caps_data *pcaps;  in ice_force_phys_link_state()  local
1976 pcaps = kzalloc(sizeof(*pcaps), GFP_KERNEL); in ice_force_phys_link_state()
1977 if (!pcaps) in ice_force_phys_link_state()
1980 retcode = ice_aq_get_phy_caps(pi, false, ICE_AQC_REPORT_ACTIVE_CFG, pcaps, in ice_force_phys_link_state()
1990 if (link_up == !!(pcaps->caps & ICE_AQC_PHY_EN_LINK) && in ice_force_phys_link_state()
2019 kfree(pcaps); in ice_force_phys_link_state()
2031 struct ice_aqc_get_phy_caps_data *pcaps; in ice_init_nvm_phy_type() local
2035 pcaps = kzalloc(sizeof(*pcaps), GFP_KERNEL); in ice_init_nvm_phy_type()
2036 if (!pcaps) in ice_init_nvm_phy_type()
2040 pcaps, NULL); in ice_init_nvm_phy_type()
2047 pf->nvm_phy_type_hi = pcaps->phy_type_high; in ice_init_nvm_phy_type()
2048 pf->nvm_phy_type_lo = pcaps->phy_type_low; in ice_init_nvm_phy_type()
2051 kfree(pcaps); in ice_init_nvm_phy_type()
2139 struct ice_aqc_get_phy_caps_data *pcaps; in ice_init_phy_user_cfg() local
2147 pcaps = kzalloc(sizeof(*pcaps), GFP_KERNEL); in ice_init_phy_user_cfg()
2148 if (!pcaps) in ice_init_phy_user_cfg()
2153 pcaps, NULL); in ice_init_phy_user_cfg()
2156 pcaps, NULL); in ice_init_phy_user_cfg()
2162 ice_copy_phy_caps_to_cfg(pi, pcaps, &pi->phy.curr_user_phy_cfg); in ice_init_phy_user_cfg()
2166 !(pcaps->module_compliance_enforcement & in ice_init_phy_user_cfg()
2184 phy->curr_user_fec_req = ice_caps_to_fec_mode(pcaps->caps, in ice_init_phy_user_cfg()
2185 pcaps->link_fec_options); in ice_init_phy_user_cfg()
2186 phy->curr_user_fc_req = ice_caps_to_fc_mode(pcaps->caps); in ice_init_phy_user_cfg()
2192 kfree(pcaps); in ice_init_phy_user_cfg()
2208 struct ice_aqc_get_phy_caps_data *pcaps; in ice_configure_phy() local
2227 pcaps = kzalloc(sizeof(*pcaps), GFP_KERNEL); in ice_configure_phy()
2228 if (!pcaps) in ice_configure_phy()
2232 err = ice_aq_get_phy_caps(pi, false, ICE_AQC_REPORT_ACTIVE_CFG, pcaps, in ice_configure_phy()
2243 if (pcaps->caps & ICE_AQC_PHY_EN_LINK && in ice_configure_phy()
2244 ice_phy_caps_equals_cfg(pcaps, &phy->curr_user_phy_cfg)) in ice_configure_phy()
2248 memset(pcaps, 0, sizeof(*pcaps)); in ice_configure_phy()
2251 pcaps, NULL); in ice_configure_phy()
2254 pcaps, NULL); in ice_configure_phy()
2267 ice_copy_phy_caps_to_cfg(pi, pcaps, cfg); in ice_configure_phy()
2281 cfg->phy_type_low = pcaps->phy_type_low & cpu_to_le64(phy_low); in ice_configure_phy()
2282 cfg->phy_type_high = pcaps->phy_type_high & in ice_configure_phy()
2288 cfg->phy_type_low = pcaps->phy_type_low; in ice_configure_phy()
2289 cfg->phy_type_high = pcaps->phy_type_high; in ice_configure_phy()
2297 (cfg->link_fec_opt & pcaps->link_fec_options)) { in ice_configure_phy()
2298 cfg->caps |= pcaps->caps & ICE_AQC_PHY_EN_AUTO_FEC; in ice_configure_phy()
2299 cfg->link_fec_opt = pcaps->link_fec_options; in ice_configure_phy()
2317 kfree(pcaps); in ice_configure_phy()