Lines Matching refs:pcaps

1874 	struct ice_aqc_get_phy_caps_data *pcaps;  in ice_force_phys_link_state()  local
1889 pcaps = kzalloc(sizeof(*pcaps), GFP_KERNEL); in ice_force_phys_link_state()
1890 if (!pcaps) in ice_force_phys_link_state()
1893 retcode = ice_aq_get_phy_caps(pi, false, ICE_AQC_REPORT_ACTIVE_CFG, pcaps, in ice_force_phys_link_state()
1903 if (link_up == !!(pcaps->caps & ICE_AQC_PHY_EN_LINK) && in ice_force_phys_link_state()
1932 kfree(pcaps); in ice_force_phys_link_state()
1944 struct ice_aqc_get_phy_caps_data *pcaps; in ice_init_nvm_phy_type() local
1948 pcaps = kzalloc(sizeof(*pcaps), GFP_KERNEL); in ice_init_nvm_phy_type()
1949 if (!pcaps) in ice_init_nvm_phy_type()
1953 pcaps, NULL); in ice_init_nvm_phy_type()
1960 pf->nvm_phy_type_hi = pcaps->phy_type_high; in ice_init_nvm_phy_type()
1961 pf->nvm_phy_type_lo = pcaps->phy_type_low; in ice_init_nvm_phy_type()
1964 kfree(pcaps); in ice_init_nvm_phy_type()
2052 struct ice_aqc_get_phy_caps_data *pcaps; in ice_init_phy_user_cfg() local
2060 pcaps = kzalloc(sizeof(*pcaps), GFP_KERNEL); in ice_init_phy_user_cfg()
2061 if (!pcaps) in ice_init_phy_user_cfg()
2066 pcaps, NULL); in ice_init_phy_user_cfg()
2069 pcaps, NULL); in ice_init_phy_user_cfg()
2075 ice_copy_phy_caps_to_cfg(pi, pcaps, &pi->phy.curr_user_phy_cfg); in ice_init_phy_user_cfg()
2079 !(pcaps->module_compliance_enforcement & in ice_init_phy_user_cfg()
2097 phy->curr_user_fec_req = ice_caps_to_fec_mode(pcaps->caps, in ice_init_phy_user_cfg()
2098 pcaps->link_fec_options); in ice_init_phy_user_cfg()
2099 phy->curr_user_fc_req = ice_caps_to_fc_mode(pcaps->caps); in ice_init_phy_user_cfg()
2105 kfree(pcaps); in ice_init_phy_user_cfg()
2121 struct ice_aqc_get_phy_caps_data *pcaps; in ice_configure_phy() local
2140 pcaps = kzalloc(sizeof(*pcaps), GFP_KERNEL); in ice_configure_phy()
2141 if (!pcaps) in ice_configure_phy()
2145 err = ice_aq_get_phy_caps(pi, false, ICE_AQC_REPORT_ACTIVE_CFG, pcaps, in ice_configure_phy()
2156 if (pcaps->caps & ICE_AQC_PHY_EN_LINK && in ice_configure_phy()
2157 ice_phy_caps_equals_cfg(pcaps, &phy->curr_user_phy_cfg)) in ice_configure_phy()
2161 memset(pcaps, 0, sizeof(*pcaps)); in ice_configure_phy()
2164 pcaps, NULL); in ice_configure_phy()
2167 pcaps, NULL); in ice_configure_phy()
2180 ice_copy_phy_caps_to_cfg(pi, pcaps, cfg); in ice_configure_phy()
2194 cfg->phy_type_low = pcaps->phy_type_low & cpu_to_le64(phy_low); in ice_configure_phy()
2195 cfg->phy_type_high = pcaps->phy_type_high & in ice_configure_phy()
2201 cfg->phy_type_low = pcaps->phy_type_low; in ice_configure_phy()
2202 cfg->phy_type_high = pcaps->phy_type_high; in ice_configure_phy()
2210 (cfg->link_fec_opt & pcaps->link_fec_options)) { in ice_configure_phy()
2211 cfg->caps |= pcaps->caps & ICE_AQC_PHY_EN_AUTO_FEC; in ice_configure_phy()
2212 cfg->link_fec_opt = pcaps->link_fec_options; in ice_configure_phy()
2230 kfree(pcaps); in ice_configure_phy()