Lines Matching refs:st_param
304 static void hns3_set_selftest_param(struct hnae3_handle *h, int (*st_param)[2]) in hns3_set_selftest_param()
306 st_param[HNAE3_LOOP_EXTERNAL][0] = HNAE3_LOOP_EXTERNAL; in hns3_set_selftest_param()
307 st_param[HNAE3_LOOP_EXTERNAL][1] = in hns3_set_selftest_param()
310 st_param[HNAE3_LOOP_APP][0] = HNAE3_LOOP_APP; in hns3_set_selftest_param()
311 st_param[HNAE3_LOOP_APP][1] = in hns3_set_selftest_param()
314 st_param[HNAE3_LOOP_SERIAL_SERDES][0] = HNAE3_LOOP_SERIAL_SERDES; in hns3_set_selftest_param()
315 st_param[HNAE3_LOOP_SERIAL_SERDES][1] = in hns3_set_selftest_param()
318 st_param[HNAE3_LOOP_PARALLEL_SERDES][0] = in hns3_set_selftest_param()
320 st_param[HNAE3_LOOP_PARALLEL_SERDES][1] = in hns3_set_selftest_param()
323 st_param[HNAE3_LOOP_PHY][0] = HNAE3_LOOP_PHY; in hns3_set_selftest_param()
324 st_param[HNAE3_LOOP_PHY][1] = in hns3_set_selftest_param()
373 static void hns3_do_selftest(struct net_device *ndev, int (*st_param)[2], in hns3_do_selftest()
380 enum hnae3_loop loop_type = (enum hnae3_loop)st_param[i][0]; in hns3_do_selftest()
382 if (!st_param[i][1]) in hns3_do_selftest()
423 int st_param[HNAE3_LOOP_NONE][2]; in hns3_self_test() local
437 hns3_set_selftest_param(h, st_param); in hns3_self_test()
449 hns3_do_selftest(ndev, st_param, eth_test, data); in hns3_self_test()