Home
last modified time | relevance | path

Searched refs:st_param (Results 1 – 2 of 2) sorted by relevance

/Linux-v4.19/drivers/net/ethernet/hisilicon/hns/
Dhns_ethtool.c585 int st_param[SELF_TEST_TPYE_NUM][2]; in hns_nic_self_test() local
589 st_param[0][0] = MAC_INTERNALLOOP_MAC; /* XGE not supported lb */ in hns_nic_self_test()
590 st_param[0][1] = (priv->ae_handle->phy_if != PHY_INTERFACE_MODE_XGMII); in hns_nic_self_test()
591 st_param[1][0] = MAC_INTERNALLOOP_SERDES; in hns_nic_self_test()
592 st_param[1][1] = 1; /*serdes must exist*/ in hns_nic_self_test()
593 st_param[2][0] = MAC_INTERNALLOOP_PHY; /* only supporte phy node*/ in hns_nic_self_test()
594 st_param[2][1] = ((!!(priv->ae_handle->phy_dev)) && in hns_nic_self_test()
604 if (!st_param[i][1]) in hns_nic_self_test()
608 (enum hnae_loop)st_param[i][0]); in hns_nic_self_test()
611 ndev, (enum hnae_loop)st_param[i][0]); in hns_nic_self_test()
[all …]
/Linux-v4.19/drivers/net/ethernet/hisilicon/hns3/
Dhns3_ethtool.c291 int st_param[HNS3_SELF_TEST_TYPE_NUM][2]; in hns3_self_test() local
303 st_param[HNAE3_MAC_INTER_LOOP_MAC][0] = HNAE3_MAC_INTER_LOOP_MAC; in hns3_self_test()
304 st_param[HNAE3_MAC_INTER_LOOP_MAC][1] = in hns3_self_test()
307 st_param[HNAE3_MAC_INTER_LOOP_SERDES][0] = HNAE3_MAC_INTER_LOOP_SERDES; in hns3_self_test()
308 st_param[HNAE3_MAC_INTER_LOOP_SERDES][1] = in hns3_self_test()
325 enum hnae3_loop loop_type = (enum hnae3_loop)st_param[i][0]; in hns3_self_test()
327 if (!st_param[i][1]) in hns3_self_test()