Lines Matching refs:st_param
301 static void hns3_set_selftest_param(struct hnae3_handle *h, int (*st_param)[2]) in hns3_set_selftest_param()
303 st_param[HNAE3_LOOP_APP][0] = HNAE3_LOOP_APP; in hns3_set_selftest_param()
304 st_param[HNAE3_LOOP_APP][1] = in hns3_set_selftest_param()
307 st_param[HNAE3_LOOP_SERIAL_SERDES][0] = HNAE3_LOOP_SERIAL_SERDES; in hns3_set_selftest_param()
308 st_param[HNAE3_LOOP_SERIAL_SERDES][1] = in hns3_set_selftest_param()
311 st_param[HNAE3_LOOP_PARALLEL_SERDES][0] = in hns3_set_selftest_param()
313 st_param[HNAE3_LOOP_PARALLEL_SERDES][1] = in hns3_set_selftest_param()
316 st_param[HNAE3_LOOP_PHY][0] = HNAE3_LOOP_PHY; in hns3_set_selftest_param()
317 st_param[HNAE3_LOOP_PHY][1] = in hns3_set_selftest_param()
322 bool if_running, int (*st_param)[2]) in hns3_selftest_prepare()
330 hns3_set_selftest_param(h, st_param); in hns3_selftest_prepare()
375 static void hns3_do_selftest(struct net_device *ndev, int (*st_param)[2], in hns3_do_selftest()
382 enum hnae3_loop loop_type = (enum hnae3_loop)st_param[i][0]; in hns3_do_selftest()
384 if (!st_param[i][1]) in hns3_do_selftest()
409 int st_param[HNS3_SELF_TEST_TYPE_NUM][2]; in hns3_self_test() local
421 hns3_selftest_prepare(ndev, if_running, st_param); in hns3_self_test()
422 hns3_do_selftest(ndev, st_param, eth_test, data); in hns3_self_test()