Home
last modified time | relevance | path

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

/Linux-v6.1/drivers/net/ethernet/intel/i40e/
Di40e_ethtool.c491 struct i40e_link_status *hw_link_info = &pf->hw.phy.link_info; in i40e_phy_type_to_ethtool() local
500 if (hw_link_info->requested_speeds & I40E_LINK_SPEED_1GB) in i40e_phy_type_to_ethtool()
517 if (hw_link_info->requested_speeds & I40E_LINK_SPEED_10GB) in i40e_phy_type_to_ethtool()
524 if (hw_link_info->requested_speeds & I40E_LINK_SPEED_10GB) in i40e_phy_type_to_ethtool()
531 if (hw_link_info->requested_speeds & I40E_LINK_SPEED_2_5GB) in i40e_phy_type_to_ethtool()
538 if (hw_link_info->requested_speeds & I40E_LINK_SPEED_5GB) in i40e_phy_type_to_ethtool()
551 if (hw_link_info->requested_speeds & I40E_LINK_SPEED_40GB) in i40e_phy_type_to_ethtool()
558 if (hw_link_info->requested_speeds & I40E_LINK_SPEED_100MB) in i40e_phy_type_to_ethtool()
565 if (hw_link_info->requested_speeds & I40E_LINK_SPEED_1GB) in i40e_phy_type_to_ethtool()
590 if (hw_link_info->requested_speeds & I40E_LINK_SPEED_20GB) in i40e_phy_type_to_ethtool()
[all …]
Di40e_common.c1725 struct i40e_link_status *hw_link_info = &hw->phy.link_info; in i40e_aq_get_link_info() local
1744 hw->phy.link_info_old = *hw_link_info; in i40e_aq_get_link_info()
1747 hw_link_info->phy_type = (enum i40e_aq_phy_type)resp->phy_type; in i40e_aq_get_link_info()
1749 hw_link_info->link_speed = (enum i40e_aq_link_speed)resp->link_speed; in i40e_aq_get_link_info()
1750 hw_link_info->link_info = resp->link_info; in i40e_aq_get_link_info()
1751 hw_link_info->an_info = resp->an_info; in i40e_aq_get_link_info()
1752 hw_link_info->fec_info = resp->config & (I40E_AQ_CONFIG_FEC_KR_ENA | in i40e_aq_get_link_info()
1754 hw_link_info->ext_info = resp->ext_info; in i40e_aq_get_link_info()
1755 hw_link_info->loopback = resp->loopback & I40E_AQ_LOOPBACK_MASK; in i40e_aq_get_link_info()
1756 hw_link_info->max_frame_size = le16_to_cpu(resp->max_frame_size); in i40e_aq_get_link_info()
[all …]
Di40e_ptp.c870 struct i40e_link_status *hw_link_info; in i40e_ptp_set_increment() local
875 hw_link_info = &hw->phy.link_info; in i40e_ptp_set_increment()
879 switch (hw_link_info->link_speed) { in i40e_ptp_set_increment()
/Linux-v6.1/drivers/net/ethernet/intel/ice/
Dice_common.c436 struct ice_link_status *hw_link_info; in ice_get_media_type() local
441 hw_link_info = &pi->phy.link_info; in ice_get_media_type()
442 if (hw_link_info->phy_type_low && hw_link_info->phy_type_high) in ice_get_media_type()
446 if (hw_link_info->phy_type_low) { in ice_get_media_type()
452 if (hw_link_info->phy_type_low == ICE_PHY_TYPE_LOW_1G_SGMII && in ice_get_media_type()
453 (hw_link_info->module_type[ICE_AQC_MOD_TYPE_IDENT] == in ice_get_media_type()
455 hw_link_info->module_type[ICE_AQC_MOD_TYPE_IDENT] == in ice_get_media_type()
459 switch (hw_link_info->phy_type_low) { in ice_get_media_type()
531 switch (hw_link_info->phy_type_high) { in ice_get_media_type()
Dice_ethtool.c1950 struct ice_link_status *hw_link_info; in ice_get_link_ksettings() local
1957 hw_link_info = &vsi->port_info->phy.link_info; in ice_get_link_ksettings()
1960 if (hw_link_info->link_info & ICE_AQ_LINK_UP) in ice_get_link_ksettings()
1966 ks->base.autoneg = (hw_link_info->an_info & ICE_AQ_AN_COMPLETED) ? in ice_get_link_ksettings()
3041 struct ice_link_status *hw_link_info; in ice_set_pauseparam() local
3053 hw_link_info = &pi->phy.link_info; in ice_set_pauseparam()
3055 link_up = hw_link_info->link_info & ICE_AQ_LINK_UP; in ice_set_pauseparam()
3095 !(hw_link_info->an_info & ICE_AQ_AN_COMPLETED)) { in ice_set_pauseparam()