Lines Matching refs:pcaps

1797 	struct ice_aqc_get_phy_caps_data *pcaps;  in ice_force_phys_link_state()  local
1812 pcaps = kzalloc(sizeof(*pcaps), GFP_KERNEL); in ice_force_phys_link_state()
1813 if (!pcaps) in ice_force_phys_link_state()
1816 retcode = ice_aq_get_phy_caps(pi, false, ICE_AQC_REPORT_ACTIVE_CFG, pcaps, in ice_force_phys_link_state()
1826 if (link_up == !!(pcaps->caps & ICE_AQC_PHY_EN_LINK) && in ice_force_phys_link_state()
1855 kfree(pcaps); in ice_force_phys_link_state()
1867 struct ice_aqc_get_phy_caps_data *pcaps; in ice_init_nvm_phy_type() local
1872 pcaps = kzalloc(sizeof(*pcaps), GFP_KERNEL); in ice_init_nvm_phy_type()
1873 if (!pcaps) in ice_init_nvm_phy_type()
1876 status = ice_aq_get_phy_caps(pi, false, ICE_AQC_REPORT_TOPO_CAP_NO_MEDIA, pcaps, in ice_init_nvm_phy_type()
1885 pf->nvm_phy_type_hi = pcaps->phy_type_high; in ice_init_nvm_phy_type()
1886 pf->nvm_phy_type_lo = pcaps->phy_type_low; in ice_init_nvm_phy_type()
1889 kfree(pcaps); in ice_init_nvm_phy_type()
1977 struct ice_aqc_get_phy_caps_data *pcaps; in ice_init_phy_user_cfg() local
1986 pcaps = kzalloc(sizeof(*pcaps), GFP_KERNEL); in ice_init_phy_user_cfg()
1987 if (!pcaps) in ice_init_phy_user_cfg()
1992 pcaps, NULL); in ice_init_phy_user_cfg()
1995 pcaps, NULL); in ice_init_phy_user_cfg()
2002 ice_copy_phy_caps_to_cfg(pi, pcaps, &pi->phy.curr_user_phy_cfg); in ice_init_phy_user_cfg()
2006 !(pcaps->module_compliance_enforcement & in ice_init_phy_user_cfg()
2024 phy->curr_user_fec_req = ice_caps_to_fec_mode(pcaps->caps, in ice_init_phy_user_cfg()
2025 pcaps->link_fec_options); in ice_init_phy_user_cfg()
2026 phy->curr_user_fc_req = ice_caps_to_fc_mode(pcaps->caps); in ice_init_phy_user_cfg()
2032 kfree(pcaps); in ice_init_phy_user_cfg()
2048 struct ice_aqc_get_phy_caps_data *pcaps; in ice_configure_phy() local
2068 pcaps = kzalloc(sizeof(*pcaps), GFP_KERNEL); in ice_configure_phy()
2069 if (!pcaps) in ice_configure_phy()
2073 status = ice_aq_get_phy_caps(pi, false, ICE_AQC_REPORT_ACTIVE_CFG, pcaps, in ice_configure_phy()
2085 if (pcaps->caps & ICE_AQC_PHY_EN_LINK && in ice_configure_phy()
2086 ice_phy_caps_equals_cfg(pcaps, &phy->curr_user_phy_cfg)) in ice_configure_phy()
2090 memset(pcaps, 0, sizeof(*pcaps)); in ice_configure_phy()
2093 pcaps, NULL); in ice_configure_phy()
2096 pcaps, NULL); in ice_configure_phy()
2110 ice_copy_phy_caps_to_cfg(pi, pcaps, cfg); in ice_configure_phy()
2124 cfg->phy_type_low = pcaps->phy_type_low & cpu_to_le64(phy_low); in ice_configure_phy()
2125 cfg->phy_type_high = pcaps->phy_type_high & in ice_configure_phy()
2131 cfg->phy_type_low = pcaps->phy_type_low; in ice_configure_phy()
2132 cfg->phy_type_high = pcaps->phy_type_high; in ice_configure_phy()
2140 (cfg->link_fec_opt & pcaps->link_fec_options)) { in ice_configure_phy()
2141 cfg->caps |= pcaps->caps & ICE_AQC_PHY_EN_AUTO_FEC; in ice_configure_phy()
2142 cfg->link_fec_opt = pcaps->link_fec_options; in ice_configure_phy()
2162 kfree(pcaps); in ice_configure_phy()