Lines Matching refs:st_param
305 static void hns3_set_selftest_param(struct hnae3_handle *h, int (*st_param)[2]) in hns3_set_selftest_param()
307 st_param[HNAE3_LOOP_EXTERNAL][0] = HNAE3_LOOP_EXTERNAL; in hns3_set_selftest_param()
308 st_param[HNAE3_LOOP_EXTERNAL][1] = in hns3_set_selftest_param()
311 st_param[HNAE3_LOOP_APP][0] = HNAE3_LOOP_APP; in hns3_set_selftest_param()
312 st_param[HNAE3_LOOP_APP][1] = in hns3_set_selftest_param()
315 st_param[HNAE3_LOOP_SERIAL_SERDES][0] = HNAE3_LOOP_SERIAL_SERDES; in hns3_set_selftest_param()
316 st_param[HNAE3_LOOP_SERIAL_SERDES][1] = in hns3_set_selftest_param()
319 st_param[HNAE3_LOOP_PARALLEL_SERDES][0] = in hns3_set_selftest_param()
321 st_param[HNAE3_LOOP_PARALLEL_SERDES][1] = in hns3_set_selftest_param()
324 st_param[HNAE3_LOOP_PHY][0] = HNAE3_LOOP_PHY; in hns3_set_selftest_param()
325 st_param[HNAE3_LOOP_PHY][1] = in hns3_set_selftest_param()
374 static void hns3_do_selftest(struct net_device *ndev, int (*st_param)[2], in hns3_do_selftest()
381 enum hnae3_loop loop_type = (enum hnae3_loop)st_param[i][0]; in hns3_do_selftest()
383 if (!st_param[i][1]) in hns3_do_selftest()
424 int st_param[HNAE3_LOOP_NONE][2]; in hns3_self_test() local
438 hns3_set_selftest_param(h, st_param); in hns3_self_test()
450 hns3_do_selftest(ndev, st_param, eth_test, data); in hns3_self_test()