Home
last modified time | relevance | path

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

/linux/drivers/net/ethernet/intel/i40e/
H A Di40e_ethtool.c496 struct i40e_link_status *hw_link_info = &pf->hw.phy.link_info; in i40e_phy_type_to_ethtool() local
505 if (hw_link_info->requested_speeds & I40E_LINK_SPEED_1GB) in i40e_phy_type_to_ethtool()
522 if (hw_link_info->requested_speeds & I40E_LINK_SPEED_10GB) in i40e_phy_type_to_ethtool()
529 if (hw_link_info->requested_speeds & I40E_LINK_SPEED_10GB) in i40e_phy_type_to_ethtool()
536 if (hw_link_info->requested_speeds & I40E_LINK_SPEED_2_5GB) in i40e_phy_type_to_ethtool()
543 if (hw_link_info->requested_speeds & I40E_LINK_SPEED_5GB) in i40e_phy_type_to_ethtool()
556 if (hw_link_info->requested_speeds & I40E_LINK_SPEED_40GB) in i40e_phy_type_to_ethtool()
563 if (hw_link_info->requested_speeds & I40E_LINK_SPEED_100MB) in i40e_phy_type_to_ethtool()
570 if (hw_link_info->requested_speeds & I40E_LINK_SPEED_1GB) in i40e_phy_type_to_ethtool()
595 if (hw_link_info->requested_speeds & I40E_LINK_SPEED_20GB) in i40e_phy_type_to_ethtool()
[all …]
H A Di40e_common.c1297 struct i40e_link_status *hw_link_info = &hw->phy.link_info; in i40e_aq_get_link_info() local
1319 hw->phy.link_info_old = *hw_link_info; in i40e_aq_get_link_info()
1322 hw_link_info->phy_type = (enum i40e_aq_phy_type)resp->phy_type; in i40e_aq_get_link_info()
1324 hw_link_info->link_speed = (enum i40e_aq_link_speed)resp->link_speed; in i40e_aq_get_link_info()
1325 hw_link_info->link_info = resp->link_info; in i40e_aq_get_link_info()
1326 hw_link_info->an_info = resp->an_info; in i40e_aq_get_link_info()
1327 hw_link_info->fec_info = resp->config & (I40E_AQ_CONFIG_FEC_KR_ENA | in i40e_aq_get_link_info()
1329 hw_link_info->ext_info = resp->ext_info; in i40e_aq_get_link_info()
1330 hw_link_info->loopback = resp->loopback & I40E_AQ_LOOPBACK_MASK; in i40e_aq_get_link_info()
1331 hw_link_info->max_frame_size = le16_to_cpu(resp->max_frame_size); in i40e_aq_get_link_info()
[all …]
H A 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/drivers/net/ethernet/intel/ixgbe/
H A Dixgbe_e610.c1192 struct ixgbe_link_status *hw_link_info; in ixgbe_get_media_type_from_phy_type() local
1197 hw_link_info = &hw->link.link_info; in ixgbe_get_media_type_from_phy_type()
1198 if (hw_link_info->phy_type_low && hw_link_info->phy_type_high) in ixgbe_get_media_type_from_phy_type()
1202 if (hw_link_info->phy_type_low) { in ixgbe_get_media_type_from_phy_type()
1208 if (hw_link_info->phy_type_low == IXGBE_PHY_TYPE_LOW_1G_SGMII && in ixgbe_get_media_type_from_phy_type()
1209 (hw_link_info->module_type[IXGBE_ACI_MOD_TYPE_IDENT] == in ixgbe_get_media_type_from_phy_type()
1211 hw_link_info->module_type[IXGBE_ACI_MOD_TYPE_IDENT] == in ixgbe_get_media_type_from_phy_type()
1215 switch (hw_link_info->phy_type_low) { in ixgbe_get_media_type_from_phy_type()
1254 switch (hw_link_info->phy_type_high) { in ixgbe_get_media_type_from_phy_type()
/linux/drivers/net/ethernet/intel/ice/
H A Dice_common.c546 struct ice_link_status *hw_link_info; in ice_get_media_type() local
551 hw_link_info = &pi->phy.link_info; in ice_get_media_type()
552 if (hw_link_info->phy_type_low && hw_link_info->phy_type_high) in ice_get_media_type()
556 if (hw_link_info->phy_type_low) { in ice_get_media_type()
562 if (hw_link_info->phy_type_low == ICE_PHY_TYPE_LOW_1G_SGMII && in ice_get_media_type()
563 (hw_link_info->module_type[ICE_AQC_MOD_TYPE_IDENT] == in ice_get_media_type()
565 hw_link_info->module_type[ICE_AQC_MOD_TYPE_IDENT] == in ice_get_media_type()
569 switch (hw_link_info->phy_type_low) { in ice_get_media_type()
641 switch (hw_link_info->phy_type_high) { in ice_get_media_type()
H A Dice_ethtool.c2308 struct ice_link_status *hw_link_info; in ice_get_link_ksettings() local
2315 hw_link_info = &vsi->port_info->phy.link_info; in ice_get_link_ksettings()
2318 if (hw_link_info->link_info & ICE_AQ_LINK_UP) in ice_get_link_ksettings()
2324 ks->base.autoneg = (hw_link_info->an_info & ICE_AQ_AN_COMPLETED) ? in ice_get_link_ksettings()
3475 struct ice_link_status *hw_link_info; in ice_set_pauseparam() local
3487 hw_link_info = &pi->phy.link_info; in ice_set_pauseparam()
3489 link_up = hw_link_info->link_info & ICE_AQ_LINK_UP; in ice_set_pauseparam()
3529 !(hw_link_info->an_info & ICE_AQ_AN_COMPLETED)) { in ice_set_pauseparam()