Searched refs:st_param (Results 1 - 4 of 4) sorted by relevance
/kernel/linux/linux-5.10/drivers/net/ethernet/hisilicon/hns3/ |
H A D | hns3_ethtool.c | 303 static void hns3_set_selftest_param(struct hnae3_handle *h, int (*st_param)[2]) in hns3_set_selftest_param() argument 305 st_param[HNAE3_LOOP_APP][0] = HNAE3_LOOP_APP; in hns3_set_selftest_param() 306 st_param[HNAE3_LOOP_APP][1] = in hns3_set_selftest_param() 309 st_param[HNAE3_LOOP_SERIAL_SERDES][0] = HNAE3_LOOP_SERIAL_SERDES; in hns3_set_selftest_param() 310 st_param[HNAE3_LOOP_SERIAL_SERDES][1] = in hns3_set_selftest_param() 313 st_param[HNAE3_LOOP_PARALLEL_SERDES][0] = in hns3_set_selftest_param() 315 st_param[HNAE3_LOOP_PARALLEL_SERDES][1] = in hns3_set_selftest_param() 318 st_param[HNAE3_LOOP_PHY][0] = HNAE3_LOOP_PHY; in hns3_set_selftest_param() 319 st_param[HNAE3_LOOP_PHY][1] = in hns3_set_selftest_param() 324 bool if_running, int (*st_param)[ in hns3_selftest_prepare() 323 hns3_selftest_prepare(struct net_device *ndev, bool if_running, int (*st_param)[2]) hns3_selftest_prepare() argument 377 hns3_do_selftest(struct net_device *ndev, int (*st_param)[2], struct ethtool_test *eth_test, u64 *data) hns3_do_selftest() argument 411 int st_param[HNS3_SELF_TEST_TYPE_NUM][2]; hns3_self_test() local [all...] |
/kernel/linux/linux-6.6/drivers/net/ethernet/hisilicon/hns3/ |
H A D | hns3_ethtool.c | 304 static void hns3_set_selftest_param(struct hnae3_handle *h, int (*st_param)[2]) in hns3_set_selftest_param() argument 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_PH in hns3_set_selftest_param() 373 hns3_do_selftest(struct net_device *ndev, int (*st_param)[2], struct ethtool_test *eth_test, u64 *data) hns3_do_selftest() argument 423 int st_param[HNAE3_LOOP_NONE][2]; hns3_self_test() local [all...] |
/kernel/linux/linux-5.10/drivers/net/ethernet/hisilicon/hns/ |
H A D | hns_ethtool.c | 589 int st_param[SELF_TEST_TPYE_NUM][2]; in hns_nic_self_test() local 593 st_param[0][0] = MAC_INTERNALLOOP_MAC; /* XGE not supported lb */ in hns_nic_self_test() 594 st_param[0][1] = (priv->ae_handle->phy_if != PHY_INTERFACE_MODE_XGMII); in hns_nic_self_test() 595 st_param[1][0] = MAC_INTERNALLOOP_SERDES; in hns_nic_self_test() 596 st_param[1][1] = 1; /*serdes must exist*/ in hns_nic_self_test() 597 st_param[2][0] = MAC_INTERNALLOOP_PHY; /* only supporte phy node*/ in hns_nic_self_test() 598 st_param[2][1] = ((!!(priv->ae_handle->phy_dev)) && in hns_nic_self_test() 608 if (!st_param[i][1]) in hns_nic_self_test() 612 (enum hnae_loop)st_param[i][0]); in hns_nic_self_test() 615 ndev, (enum hnae_loop)st_param[ in hns_nic_self_test() [all...] |
/kernel/linux/linux-6.6/drivers/net/ethernet/hisilicon/hns/ |
H A D | hns_ethtool.c | 588 int st_param[SELF_TEST_TPYE_NUM][2]; in hns_nic_self_test() local 592 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[ in hns_nic_self_test() [all...] |
Completed in 6 milliseconds