Lines Matching refs:pcaps

322 		    struct ice_aqc_get_phy_caps_data *pcaps,  in ice_aq_get_phy_caps()  argument
326 u16 pcaps_size = sizeof(*pcaps); in ice_aq_get_phy_caps()
334 if (!pcaps || (report_mode & ~ICE_AQC_REPORT_MODE_M) || !pi) in ice_aq_get_phy_caps()
348 status = ice_aq_send_cmd(hw, &desc, pcaps, pcaps_size, cd); in ice_aq_get_phy_caps()
369 ice_dump_phy_type(hw, le64_to_cpu(pcaps->phy_type_low), in ice_aq_get_phy_caps()
370 le64_to_cpu(pcaps->phy_type_high), prefix); in ice_aq_get_phy_caps()
374 ice_debug(hw, ICE_DBG_LINK, "%s: caps = 0x%x\n", prefix, pcaps->caps); in ice_aq_get_phy_caps()
376 pcaps->low_power_ctrl_an); in ice_aq_get_phy_caps()
378 pcaps->eee_cap); in ice_aq_get_phy_caps()
380 pcaps->eeer_value); in ice_aq_get_phy_caps()
382 pcaps->link_fec_options); in ice_aq_get_phy_caps()
384 prefix, pcaps->module_compliance_enforcement); in ice_aq_get_phy_caps()
386 prefix, pcaps->extended_compliance_code); in ice_aq_get_phy_caps()
388 pcaps->module_type[0]); in ice_aq_get_phy_caps()
390 pcaps->module_type[1]); in ice_aq_get_phy_caps()
392 pcaps->module_type[2]); in ice_aq_get_phy_caps()
395 pi->phy.phy_type_low = le64_to_cpu(pcaps->phy_type_low); in ice_aq_get_phy_caps()
396 pi->phy.phy_type_high = le64_to_cpu(pcaps->phy_type_high); in ice_aq_get_phy_caps()
397 memcpy(pi->phy.link_info.module_type, &pcaps->module_type, in ice_aq_get_phy_caps()
1068 struct ice_aqc_get_phy_caps_data *pcaps; in ice_init_hw() local
1150 pcaps = devm_kzalloc(ice_hw_to_dev(hw), sizeof(*pcaps), GFP_KERNEL); in ice_init_hw()
1151 if (!pcaps) { in ice_init_hw()
1158 ICE_AQC_REPORT_TOPO_CAP_MEDIA, pcaps, in ice_init_hw()
1160 devm_kfree(ice_hw_to_dev(hw), pcaps); in ice_init_hw()
3266 struct ice_aqc_get_phy_caps_data *pcaps; in ice_update_link_info() local
3270 pcaps = devm_kzalloc(ice_hw_to_dev(hw), sizeof(*pcaps), in ice_update_link_info()
3272 if (!pcaps) in ice_update_link_info()
3276 pcaps, NULL); in ice_update_link_info()
3278 devm_kfree(ice_hw_to_dev(hw), pcaps); in ice_update_link_info()
3420 struct ice_aqc_get_phy_caps_data *pcaps; in ice_set_fc() local
3430 pcaps = devm_kzalloc(ice_hw_to_dev(hw), sizeof(*pcaps), GFP_KERNEL); in ice_set_fc()
3431 if (!pcaps) in ice_set_fc()
3436 pcaps, NULL); in ice_set_fc()
3442 ice_copy_phy_caps_to_cfg(pi, pcaps, &cfg); in ice_set_fc()
3450 if (cfg.caps != pcaps->caps) { in ice_set_fc()
3482 devm_kfree(ice_hw_to_dev(hw), pcaps); in ice_set_fc()
3561 struct ice_aqc_get_phy_caps_data *pcaps; in ice_cfg_phy_fec() local
3570 pcaps = kzalloc(sizeof(*pcaps), GFP_KERNEL); in ice_cfg_phy_fec()
3571 if (!pcaps) in ice_cfg_phy_fec()
3577 ICE_AQC_REPORT_TOPO_CAP_MEDIA), pcaps, NULL); in ice_cfg_phy_fec()
3581 cfg->caps |= pcaps->caps & ICE_AQC_PHY_EN_AUTO_FEC; in ice_cfg_phy_fec()
3582 cfg->link_fec_opt = pcaps->link_fec_options; in ice_cfg_phy_fec()
3609 cfg->link_fec_opt |= pcaps->link_fec_options; in ice_cfg_phy_fec()
3630 kfree(pcaps); in ice_cfg_phy_fec()