Searched refs:st_param (Results 1 – 2 of 2) sorted by relevance
588 int st_param[SELF_TEST_TPYE_NUM][2]; in hns_nic_self_test() local592 st_param[0][0] = MAC_INTERNALLOOP_MAC; /* XGE not supported lb */ in hns_nic_self_test()593 st_param[0][1] = (priv->ae_handle->phy_if != PHY_INTERFACE_MODE_XGMII); in hns_nic_self_test()594 st_param[1][0] = MAC_INTERNALLOOP_SERDES; in hns_nic_self_test()595 st_param[1][1] = 1; /*serdes must exist*/ in hns_nic_self_test()596 st_param[2][0] = MAC_INTERNALLOOP_PHY; /* only supporte phy node*/ in hns_nic_self_test()597 st_param[2][1] = ((!!(priv->ae_handle->phy_dev)) && in hns_nic_self_test()607 if (!st_param[i][1]) in hns_nic_self_test()611 (enum hnae_loop)st_param[i][0]); in hns_nic_self_test()614 ndev, (enum hnae_loop)st_param[i][0]); in hns_nic_self_test()[all …]
307 static void hns3_set_selftest_param(struct hnae3_handle *h, int (*st_param)[2]) in hns3_set_selftest_param()309 st_param[HNAE3_LOOP_EXTERNAL][0] = HNAE3_LOOP_EXTERNAL; in hns3_set_selftest_param()310 st_param[HNAE3_LOOP_EXTERNAL][1] = in hns3_set_selftest_param()313 st_param[HNAE3_LOOP_APP][0] = HNAE3_LOOP_APP; in hns3_set_selftest_param()314 st_param[HNAE3_LOOP_APP][1] = in hns3_set_selftest_param()317 st_param[HNAE3_LOOP_SERIAL_SERDES][0] = HNAE3_LOOP_SERIAL_SERDES; in hns3_set_selftest_param()318 st_param[HNAE3_LOOP_SERIAL_SERDES][1] = in hns3_set_selftest_param()321 st_param[HNAE3_LOOP_PARALLEL_SERDES][0] = in hns3_set_selftest_param()323 st_param[HNAE3_LOOP_PARALLEL_SERDES][1] = in hns3_set_selftest_param()326 st_param[HNAE3_LOOP_PHY][0] = HNAE3_LOOP_PHY; in hns3_set_selftest_param()[all …]