Lines Matching refs:pcaps

1619 	struct ice_aqc_get_phy_caps_data *pcaps;  in ice_force_phys_link_state()  local
1634 pcaps = kzalloc(sizeof(*pcaps), GFP_KERNEL); in ice_force_phys_link_state()
1635 if (!pcaps) in ice_force_phys_link_state()
1638 retcode = ice_aq_get_phy_caps(pi, false, ICE_AQC_REPORT_SW_CFG, pcaps, in ice_force_phys_link_state()
1648 if (link_up == !!(pcaps->caps & ICE_AQC_PHY_EN_LINK) && in ice_force_phys_link_state()
1677 kfree(pcaps); in ice_force_phys_link_state()
1689 struct ice_aqc_get_phy_caps_data *pcaps; in ice_init_nvm_phy_type() local
1694 pcaps = kzalloc(sizeof(*pcaps), GFP_KERNEL); in ice_init_nvm_phy_type()
1695 if (!pcaps) in ice_init_nvm_phy_type()
1698 status = ice_aq_get_phy_caps(pi, false, ICE_AQC_REPORT_NVM_CAP, pcaps, in ice_init_nvm_phy_type()
1707 pf->nvm_phy_type_hi = pcaps->phy_type_high; in ice_init_nvm_phy_type()
1708 pf->nvm_phy_type_lo = pcaps->phy_type_low; in ice_init_nvm_phy_type()
1711 kfree(pcaps); in ice_init_nvm_phy_type()
1796 struct ice_aqc_get_phy_caps_data *pcaps; in ice_init_phy_user_cfg() local
1810 pcaps = kzalloc(sizeof(*pcaps), GFP_KERNEL); in ice_init_phy_user_cfg()
1811 if (!pcaps) in ice_init_phy_user_cfg()
1814 status = ice_aq_get_phy_caps(pi, false, ICE_AQC_REPORT_TOPO_CAP, pcaps, in ice_init_phy_user_cfg()
1822 ice_copy_phy_caps_to_cfg(pi, pcaps, &pi->phy.curr_user_phy_cfg); in ice_init_phy_user_cfg()
1826 !(pcaps->module_compliance_enforcement & in ice_init_phy_user_cfg()
1842 phy->curr_user_fec_req = ice_caps_to_fec_mode(pcaps->caps, in ice_init_phy_user_cfg()
1843 pcaps->link_fec_options); in ice_init_phy_user_cfg()
1844 phy->curr_user_fc_req = ice_caps_to_fc_mode(pcaps->caps); in ice_init_phy_user_cfg()
1850 kfree(pcaps); in ice_init_phy_user_cfg()
1865 struct ice_aqc_get_phy_caps_data *pcaps; in ice_configure_phy() local
1888 pcaps = kzalloc(sizeof(*pcaps), GFP_KERNEL); in ice_configure_phy()
1889 if (!pcaps) in ice_configure_phy()
1893 status = ice_aq_get_phy_caps(pi, false, ICE_AQC_REPORT_SW_CFG, pcaps, in ice_configure_phy()
1905 if (pcaps->caps & ICE_AQC_PHY_EN_LINK && in ice_configure_phy()
1906 ice_phy_caps_equals_cfg(pcaps, &pi->phy.curr_user_phy_cfg)) in ice_configure_phy()
1910 memset(pcaps, 0, sizeof(*pcaps)); in ice_configure_phy()
1911 status = ice_aq_get_phy_caps(pi, false, ICE_AQC_REPORT_TOPO_CAP, pcaps, in ice_configure_phy()
1926 ice_copy_phy_caps_to_cfg(pi, pcaps, cfg); in ice_configure_phy()
1940 cfg->phy_type_low = pcaps->phy_type_low & cpu_to_le64(phy_low); in ice_configure_phy()
1941 cfg->phy_type_high = pcaps->phy_type_high & in ice_configure_phy()
1947 cfg->phy_type_low = pcaps->phy_type_low; in ice_configure_phy()
1948 cfg->phy_type_high = pcaps->phy_type_high; in ice_configure_phy()
1956 (cfg->link_fec_opt & pcaps->link_fec_options)) { in ice_configure_phy()
1957 cfg->caps |= pcaps->caps & ICE_AQC_PHY_EN_AUTO_FEC; in ice_configure_phy()
1958 cfg->link_fec_opt = pcaps->link_fec_options; in ice_configure_phy()
1978 kfree(pcaps); in ice_configure_phy()