Searched refs:hw_link_info (Results 1 – 5 of 5) sorted by relevance
340 struct ice_link_status *hw_link_info; in ice_get_link_ksettings() local344 hw_link_info = &vsi->port_info->phy.link_info; in ice_get_link_ksettings()345 link_up = hw_link_info->link_info & ICE_AQ_LINK_UP; in ice_get_link_ksettings()354 switch (hw_link_info->link_speed) { in ice_get_link_ksettings()385 ks->base.autoneg = ((hw_link_info->an_info & ICE_AQ_AN_COMPLETED) ? in ice_get_link_ksettings()664 struct ice_link_status *hw_link_info; in ice_nway_reset() local671 hw_link_info = &pi->phy.link_info; in ice_nway_reset()672 link_up = hw_link_info->link_info & ICE_AQ_LINK_UP; in ice_nway_reset()719 struct ice_link_status *hw_link_info; in ice_set_pauseparam() local730 hw_link_info = &pi->phy.link_info; in ice_set_pauseparam()[all …]
163 struct ice_link_status *hw_link_info; in ice_get_media_type() local168 hw_link_info = &pi->phy.link_info; in ice_get_media_type()170 if (hw_link_info->phy_type_low) { in ice_get_media_type()171 switch (hw_link_info->phy_type_low) { in ice_get_media_type()225 struct ice_link_status *hw_link_info_old, *hw_link_info; in ice_aq_get_link_info() local239 hw_link_info = &pi->phy.link_info; in ice_aq_get_link_info()255 *hw_link_info_old = *hw_link_info; in ice_aq_get_link_info()258 hw_link_info->link_speed = le16_to_cpu(link_data.link_speed); in ice_aq_get_link_info()259 hw_link_info->phy_type_low = le64_to_cpu(link_data.phy_type_low); in ice_aq_get_link_info()261 hw_link_info->link_info = link_data.link_info; in ice_aq_get_link_info()[all …]
273 struct i40e_link_status *hw_link_info = &pf->hw.phy.link_info; in i40e_phy_type_to_ethtool() local282 if (hw_link_info->requested_speeds & I40E_LINK_SPEED_1GB) in i40e_phy_type_to_ethtool()299 if (hw_link_info->requested_speeds & I40E_LINK_SPEED_10GB) in i40e_phy_type_to_ethtool()306 if (hw_link_info->requested_speeds & I40E_LINK_SPEED_10GB) in i40e_phy_type_to_ethtool()319 if (hw_link_info->requested_speeds & I40E_LINK_SPEED_40GB) in i40e_phy_type_to_ethtool()326 if (hw_link_info->requested_speeds & I40E_LINK_SPEED_100MB) in i40e_phy_type_to_ethtool()333 if (hw_link_info->requested_speeds & I40E_LINK_SPEED_1GB) in i40e_phy_type_to_ethtool()352 if (hw_link_info->requested_speeds & I40E_LINK_SPEED_20GB) in i40e_phy_type_to_ethtool()359 if (hw_link_info->requested_speeds & I40E_LINK_SPEED_10GB) in i40e_phy_type_to_ethtool()367 if (hw_link_info->requested_speeds & I40E_LINK_SPEED_10GB) in i40e_phy_type_to_ethtool()[all …]
450 struct i40e_link_status *hw_link_info; in i40e_ptp_set_increment() local455 hw_link_info = &hw->phy.link_info; in i40e_ptp_set_increment()459 switch (hw_link_info->link_speed) { in i40e_ptp_set_increment()
1828 struct i40e_link_status *hw_link_info = &hw->phy.link_info; in i40e_aq_get_link_info() local1847 hw->phy.link_info_old = *hw_link_info; in i40e_aq_get_link_info()1850 hw_link_info->phy_type = (enum i40e_aq_phy_type)resp->phy_type; in i40e_aq_get_link_info()1852 hw_link_info->link_speed = (enum i40e_aq_link_speed)resp->link_speed; in i40e_aq_get_link_info()1853 hw_link_info->link_info = resp->link_info; in i40e_aq_get_link_info()1854 hw_link_info->an_info = resp->an_info; in i40e_aq_get_link_info()1855 hw_link_info->fec_info = resp->config & (I40E_AQ_CONFIG_FEC_KR_ENA | in i40e_aq_get_link_info()1857 hw_link_info->ext_info = resp->ext_info; in i40e_aq_get_link_info()1858 hw_link_info->loopback = resp->loopback & I40E_AQ_LOOPBACK_MASK; in i40e_aq_get_link_info()1859 hw_link_info->max_frame_size = le16_to_cpu(resp->max_frame_size); in i40e_aq_get_link_info()[all …]