Home
last modified time | relevance | path

Searched refs:hw_link_info (Results 1 – 5 of 5) sorted by relevance

/linux-6.12.1/drivers/net/ethernet/intel/i40e/
Di40e_ethtool.c493 struct i40e_link_status *hw_link_info = &pf->hw.phy.link_info; in i40e_phy_type_to_ethtool() local
502 if (hw_link_info->requested_speeds & I40E_LINK_SPEED_1GB) in i40e_phy_type_to_ethtool()
519 if (hw_link_info->requested_speeds & I40E_LINK_SPEED_10GB) in i40e_phy_type_to_ethtool()
526 if (hw_link_info->requested_speeds & I40E_LINK_SPEED_10GB) in i40e_phy_type_to_ethtool()
533 if (hw_link_info->requested_speeds & I40E_LINK_SPEED_2_5GB) in i40e_phy_type_to_ethtool()
540 if (hw_link_info->requested_speeds & I40E_LINK_SPEED_5GB) in i40e_phy_type_to_ethtool()
553 if (hw_link_info->requested_speeds & I40E_LINK_SPEED_40GB) in i40e_phy_type_to_ethtool()
560 if (hw_link_info->requested_speeds & I40E_LINK_SPEED_100MB) in i40e_phy_type_to_ethtool()
567 if (hw_link_info->requested_speeds & I40E_LINK_SPEED_1GB) in i40e_phy_type_to_ethtool()
592 if (hw_link_info->requested_speeds & I40E_LINK_SPEED_20GB) in i40e_phy_type_to_ethtool()
[all …]
Di40e_common.c1325 struct i40e_link_status *hw_link_info = &hw->phy.link_info; in i40e_aq_get_link_info() local
1344 hw->phy.link_info_old = *hw_link_info; in i40e_aq_get_link_info()
1347 hw_link_info->phy_type = (enum i40e_aq_phy_type)resp->phy_type; in i40e_aq_get_link_info()
1349 hw_link_info->link_speed = (enum i40e_aq_link_speed)resp->link_speed; in i40e_aq_get_link_info()
1350 hw_link_info->link_info = resp->link_info; in i40e_aq_get_link_info()
1351 hw_link_info->an_info = resp->an_info; in i40e_aq_get_link_info()
1352 hw_link_info->fec_info = resp->config & (I40E_AQ_CONFIG_FEC_KR_ENA | in i40e_aq_get_link_info()
1354 hw_link_info->ext_info = resp->ext_info; in i40e_aq_get_link_info()
1355 hw_link_info->loopback = resp->loopback & I40E_AQ_LOOPBACK_MASK; in i40e_aq_get_link_info()
1356 hw_link_info->max_frame_size = le16_to_cpu(resp->max_frame_size); in i40e_aq_get_link_info()
[all …]
Di40e_ptp.c860 struct i40e_link_status *hw_link_info; in i40e_ptp_set_increment() local
865 hw_link_info = &hw->phy.link_info; in i40e_ptp_set_increment()
869 switch (hw_link_info->link_speed) { in i40e_ptp_set_increment()
/linux-6.12.1/drivers/net/ethernet/intel/ice/
Dice_common.c610 struct ice_link_status *hw_link_info; in ice_get_media_type() local
615 hw_link_info = &pi->phy.link_info; in ice_get_media_type()
616 if (hw_link_info->phy_type_low && hw_link_info->phy_type_high) in ice_get_media_type()
620 if (hw_link_info->phy_type_low) { in ice_get_media_type()
626 if (hw_link_info->phy_type_low == ICE_PHY_TYPE_LOW_1G_SGMII && in ice_get_media_type()
627 (hw_link_info->module_type[ICE_AQC_MOD_TYPE_IDENT] == in ice_get_media_type()
629 hw_link_info->module_type[ICE_AQC_MOD_TYPE_IDENT] == in ice_get_media_type()
633 switch (hw_link_info->phy_type_low) { in ice_get_media_type()
705 switch (hw_link_info->phy_type_high) { in ice_get_media_type()
Dice_ethtool.c2335 struct ice_link_status *hw_link_info; in ice_get_link_ksettings() local
2342 hw_link_info = &vsi->port_info->phy.link_info; in ice_get_link_ksettings()
2345 if (hw_link_info->link_info & ICE_AQ_LINK_UP) in ice_get_link_ksettings()
2351 ks->base.autoneg = (hw_link_info->an_info & ICE_AQ_AN_COMPLETED) ? in ice_get_link_ksettings()
3504 struct ice_link_status *hw_link_info; in ice_set_pauseparam() local
3516 hw_link_info = &pi->phy.link_info; in ice_set_pauseparam()
3518 link_up = hw_link_info->link_info & ICE_AQ_LINK_UP; in ice_set_pauseparam()
3558 !(hw_link_info->an_info & ICE_AQ_AN_COMPLETED)) { in ice_set_pauseparam()