Lines Matching refs:pcaps

321 		    struct ice_aqc_get_phy_caps_data *pcaps,  in ice_aq_get_phy_caps()  argument
325 u16 pcaps_size = sizeof(*pcaps); in ice_aq_get_phy_caps()
333 if (!pcaps || (report_mode & ~ICE_AQC_REPORT_MODE_M) || !pi) in ice_aq_get_phy_caps()
347 status = ice_aq_send_cmd(hw, &desc, pcaps, pcaps_size, cd); in ice_aq_get_phy_caps()
368 ice_dump_phy_type(hw, le64_to_cpu(pcaps->phy_type_low), in ice_aq_get_phy_caps()
369 le64_to_cpu(pcaps->phy_type_high), prefix); in ice_aq_get_phy_caps()
373 ice_debug(hw, ICE_DBG_LINK, "%s: caps = 0x%x\n", prefix, pcaps->caps); in ice_aq_get_phy_caps()
375 pcaps->low_power_ctrl_an); in ice_aq_get_phy_caps()
377 pcaps->eee_cap); in ice_aq_get_phy_caps()
379 pcaps->eeer_value); in ice_aq_get_phy_caps()
381 pcaps->link_fec_options); in ice_aq_get_phy_caps()
383 prefix, pcaps->module_compliance_enforcement); in ice_aq_get_phy_caps()
385 prefix, pcaps->extended_compliance_code); in ice_aq_get_phy_caps()
387 pcaps->module_type[0]); in ice_aq_get_phy_caps()
389 pcaps->module_type[1]); in ice_aq_get_phy_caps()
391 pcaps->module_type[2]); in ice_aq_get_phy_caps()
394 pi->phy.phy_type_low = le64_to_cpu(pcaps->phy_type_low); in ice_aq_get_phy_caps()
395 pi->phy.phy_type_high = le64_to_cpu(pcaps->phy_type_high); in ice_aq_get_phy_caps()
396 memcpy(pi->phy.link_info.module_type, &pcaps->module_type, in ice_aq_get_phy_caps()
1069 struct ice_aqc_get_phy_caps_data *pcaps; in ice_init_hw() local
1151 pcaps = devm_kzalloc(ice_hw_to_dev(hw), sizeof(*pcaps), GFP_KERNEL); in ice_init_hw()
1152 if (!pcaps) { in ice_init_hw()
1159 ICE_AQC_REPORT_TOPO_CAP_MEDIA, pcaps, in ice_init_hw()
1161 devm_kfree(ice_hw_to_dev(hw), pcaps); in ice_init_hw()
3215 struct ice_aqc_get_phy_caps_data *pcaps; in ice_update_link_info() local
3219 pcaps = devm_kzalloc(ice_hw_to_dev(hw), sizeof(*pcaps), in ice_update_link_info()
3221 if (!pcaps) in ice_update_link_info()
3225 pcaps, NULL); in ice_update_link_info()
3227 devm_kfree(ice_hw_to_dev(hw), pcaps); in ice_update_link_info()
3369 struct ice_aqc_get_phy_caps_data *pcaps; in ice_set_fc() local
3379 pcaps = devm_kzalloc(ice_hw_to_dev(hw), sizeof(*pcaps), GFP_KERNEL); in ice_set_fc()
3380 if (!pcaps) in ice_set_fc()
3385 pcaps, NULL); in ice_set_fc()
3391 ice_copy_phy_caps_to_cfg(pi, pcaps, &cfg); in ice_set_fc()
3399 if (cfg.caps != pcaps->caps) { in ice_set_fc()
3431 devm_kfree(ice_hw_to_dev(hw), pcaps); in ice_set_fc()
3510 struct ice_aqc_get_phy_caps_data *pcaps; in ice_cfg_phy_fec() local
3519 pcaps = kzalloc(sizeof(*pcaps), GFP_KERNEL); in ice_cfg_phy_fec()
3520 if (!pcaps) in ice_cfg_phy_fec()
3526 ICE_AQC_REPORT_TOPO_CAP_MEDIA), pcaps, NULL); in ice_cfg_phy_fec()
3530 cfg->caps |= pcaps->caps & ICE_AQC_PHY_EN_AUTO_FEC; in ice_cfg_phy_fec()
3531 cfg->link_fec_opt = pcaps->link_fec_options; in ice_cfg_phy_fec()
3558 cfg->link_fec_opt |= pcaps->link_fec_options; in ice_cfg_phy_fec()
3579 kfree(pcaps); in ice_cfg_phy_fec()