Lines Matching refs:pcaps
1704 struct ice_aqc_get_phy_caps_data *pcaps; in ice_force_phys_link_state() local
1719 pcaps = kzalloc(sizeof(*pcaps), GFP_KERNEL); in ice_force_phys_link_state()
1720 if (!pcaps) in ice_force_phys_link_state()
1723 retcode = ice_aq_get_phy_caps(pi, false, ICE_AQC_REPORT_ACTIVE_CFG, pcaps, in ice_force_phys_link_state()
1733 if (link_up == !!(pcaps->caps & ICE_AQC_PHY_EN_LINK) && in ice_force_phys_link_state()
1762 kfree(pcaps); in ice_force_phys_link_state()
1774 struct ice_aqc_get_phy_caps_data *pcaps; in ice_init_nvm_phy_type() local
1779 pcaps = kzalloc(sizeof(*pcaps), GFP_KERNEL); in ice_init_nvm_phy_type()
1780 if (!pcaps) in ice_init_nvm_phy_type()
1783 status = ice_aq_get_phy_caps(pi, false, ICE_AQC_REPORT_TOPO_CAP_NO_MEDIA, pcaps, in ice_init_nvm_phy_type()
1792 pf->nvm_phy_type_hi = pcaps->phy_type_high; in ice_init_nvm_phy_type()
1793 pf->nvm_phy_type_lo = pcaps->phy_type_low; in ice_init_nvm_phy_type()
1796 kfree(pcaps); in ice_init_nvm_phy_type()
1884 struct ice_aqc_get_phy_caps_data *pcaps; in ice_init_phy_user_cfg() local
1893 pcaps = kzalloc(sizeof(*pcaps), GFP_KERNEL); in ice_init_phy_user_cfg()
1894 if (!pcaps) in ice_init_phy_user_cfg()
1899 pcaps, NULL); in ice_init_phy_user_cfg()
1902 pcaps, NULL); in ice_init_phy_user_cfg()
1909 ice_copy_phy_caps_to_cfg(pi, pcaps, &pi->phy.curr_user_phy_cfg); in ice_init_phy_user_cfg()
1913 !(pcaps->module_compliance_enforcement & in ice_init_phy_user_cfg()
1931 phy->curr_user_fec_req = ice_caps_to_fec_mode(pcaps->caps, in ice_init_phy_user_cfg()
1932 pcaps->link_fec_options); in ice_init_phy_user_cfg()
1933 phy->curr_user_fc_req = ice_caps_to_fc_mode(pcaps->caps); in ice_init_phy_user_cfg()
1939 kfree(pcaps); in ice_init_phy_user_cfg()
1955 struct ice_aqc_get_phy_caps_data *pcaps; in ice_configure_phy() local
1974 pcaps = kzalloc(sizeof(*pcaps), GFP_KERNEL); in ice_configure_phy()
1975 if (!pcaps) in ice_configure_phy()
1979 status = ice_aq_get_phy_caps(pi, false, ICE_AQC_REPORT_ACTIVE_CFG, pcaps, in ice_configure_phy()
1991 if (pcaps->caps & ICE_AQC_PHY_EN_LINK && in ice_configure_phy()
1992 ice_phy_caps_equals_cfg(pcaps, &phy->curr_user_phy_cfg)) in ice_configure_phy()
1996 memset(pcaps, 0, sizeof(*pcaps)); in ice_configure_phy()
1999 pcaps, NULL); in ice_configure_phy()
2002 pcaps, NULL); in ice_configure_phy()
2016 ice_copy_phy_caps_to_cfg(pi, pcaps, cfg); in ice_configure_phy()
2030 cfg->phy_type_low = pcaps->phy_type_low & cpu_to_le64(phy_low); in ice_configure_phy()
2031 cfg->phy_type_high = pcaps->phy_type_high & in ice_configure_phy()
2037 cfg->phy_type_low = pcaps->phy_type_low; in ice_configure_phy()
2038 cfg->phy_type_high = pcaps->phy_type_high; in ice_configure_phy()
2046 (cfg->link_fec_opt & pcaps->link_fec_options)) { in ice_configure_phy()
2047 cfg->caps |= pcaps->caps & ICE_AQC_PHY_EN_AUTO_FEC; in ice_configure_phy()
2048 cfg->link_fec_opt = pcaps->link_fec_options; in ice_configure_phy()
2068 kfree(pcaps); in ice_configure_phy()