Home
last modified time | relevance | path

Searched refs:phy_if (Results 1 – 15 of 15) sorted by relevance

/drivers/net/ethernet/hisilicon/hns/
Dhns_dsaf_misc.c247 phy_interface_t phy_if = PHY_INTERFACE_MODE_NA; in hns_mac_get_phy_if() local
253 phy_if = PHY_INTERFACE_MODE_SGMII; in hns_mac_get_phy_if()
255 phy_if = PHY_INTERFACE_MODE_XGMII; in hns_mac_get_phy_if()
258 phy_if = PHY_INTERFACE_MODE_SGMII; in hns_mac_get_phy_if()
260 phy_if = PHY_INTERFACE_MODE_XGMII; in hns_mac_get_phy_if()
262 phy_if = PHY_INTERFACE_MODE_SGMII; in hns_mac_get_phy_if()
267 hilink3_mode, hilink4_mode, dev_id, phy_if); in hns_mac_get_phy_if()
268 return phy_if; in hns_mac_get_phy_if()
Dhns_dsaf_mac.c60 return g_mac_mode_100[mac_cb->phy_if]; in hns_mac_dev_to_enet_if()
62 return g_mac_mode_1000[mac_cb->phy_if]; in hns_mac_dev_to_enet_if()
74 return g_mac_mode_100[mac_cb->phy_if]; in hns_get_enet_interface()
76 return g_mac_mode_1000[mac_cb->phy_if]; in hns_get_enet_interface()
579 if (mac_cb->phy_if == PHY_INTERFACE_MODE_XGMII && enable) { in hns_mac_set_autoneg()
675 mac_cb->speed = mac_phy_to_speed[mac_cb->phy_if]; in hns_mac_get_info()
678 if (mac_cb->phy_if == PHY_INTERFACE_MODE_SGMII) { in hns_mac_get_info()
681 } else if (mac_cb->phy_if == PHY_INTERFACE_MODE_XGMII) { in hns_mac_get_info()
701 static int hns_mac_get_mode(phy_interface_t phy_if) in hns_mac_get_mode() argument
703 switch (phy_if) { in hns_mac_get_mode()
[all …]
Dhns_ethtool.c164 if (h->phy_if == PHY_INTERFACE_MODE_SGMII) { in hns_nic_get_settings()
167 } else if (h->phy_if == PHY_INTERFACE_MODE_XGMII) { in hns_nic_get_settings()
209 if (h->phy_if == PHY_INTERFACE_MODE_XGMII) { in hns_nic_set_settings()
213 } else if (h->phy_if == PHY_INTERFACE_MODE_SGMII) { in hns_nic_set_settings()
323 (priv->ae_handle->phy_if != PHY_INTERFACE_MODE_XGMII)) in __lb_setup()
335 if (priv->ae_handle->phy_if != PHY_INTERFACE_MODE_XGMII) in __lb_setup()
385 if (priv->ae_handle->phy_if != PHY_INTERFACE_MODE_XGMII) in __lb_up()
611 st_param[0][1] = (priv->ae_handle->phy_if != PHY_INTERFACE_MODE_XGMII); in hns_nic_self_test()
616 (priv->ae_handle->phy_if != PHY_INTERFACE_MODE_XGMII)); in hns_nic_self_test()
913 if (priv->ae_handle->phy_if != PHY_INTERFACE_MODE_XGMII) { in hns_get_strings()
[all …]
Dhns_enet.c758 if (h->phy_if != PHY_INTERFACE_MODE_XGMII) in hns_nic_init_phy()
760 hns_nic_adjust_link, 0, h->phy_if); in hns_nic_init_phy()
762 phy_dev = of_phy_attach(ndev, h->phy_node, 0, h->phy_if); in hns_nic_init_phy()
770 if (h->phy_if == PHY_INTERFACE_MODE_XGMII) in hns_nic_init_phy()
Dhns_ae_adapt.c174 ae_handle->phy_if = vf_cb->mac_cb->phy_if; in hns_ae_get_handle()
Dhns_dsaf_mac.h330 phy_interface_t phy_if; member
Dhnae.h467 phy_interface_t phy_if; member
Dhns_dsaf_main.c1857 if (mac_cb->phy_if == PHY_INTERFACE_MODE_XGMII) in hns_dsaf_fix_mac_mode()
/drivers/net/ethernet/amd/xgbe/
Dxgbe-mdio.c1346 void xgbe_init_function_ptrs_phy(struct xgbe_phy_if *phy_if) in xgbe_init_function_ptrs_phy() argument
1348 phy_if->phy_init = xgbe_phy_init; in xgbe_init_function_ptrs_phy()
1350 phy_if->phy_reset = xgbe_phy_reset; in xgbe_init_function_ptrs_phy()
1351 phy_if->phy_start = xgbe_phy_start; in xgbe_init_function_ptrs_phy()
1352 phy_if->phy_stop = xgbe_phy_stop; in xgbe_init_function_ptrs_phy()
1354 phy_if->phy_status = xgbe_phy_status; in xgbe_init_function_ptrs_phy()
1355 phy_if->phy_config_aneg = xgbe_phy_config_aneg; in xgbe_init_function_ptrs_phy()
Dxgbe-drv.c450 pdata->phy_if.phy_status(pdata); in xgbe_service()
791 return pdata->phy_if.phy_reset(pdata); in xgbe_phy_init()
874 struct xgbe_phy_if *phy_if = &pdata->phy_if; in xgbe_start() local
884 ret = phy_if->phy_start(pdata); in xgbe_start()
909 phy_if->phy_stop(pdata); in xgbe_start()
920 struct xgbe_phy_if *phy_if = &pdata->phy_if; in xgbe_stop() local
940 phy_if->phy_stop(pdata); in xgbe_stop()
Dxgbe-ethtool.c270 ret = pdata->phy_if.phy_config_aneg(pdata); in xgbe_set_pauseparam()
359 ret = pdata->phy_if.phy_config_aneg(pdata); in xgbe_set_settings()
Dxgbe-main.c208 xgbe_init_function_ptrs_phy(&pdata->phy_if); in xgbe_init_all_fptrs()
707 pdata->phy_if.phy_init(pdata); in xgbe_probe()
Dxgbe.h789 struct xgbe_phy_if phy_if; member
/drivers/net/ethernet/ti/
Dcpsw.h23 int phy_if; member
Dcpsw.c1169 &cpsw_adjust_link, 0, slave->data->phy_if); in cpsw_slave_open()
1178 &cpsw_adjust_link, slave->data->phy_if); in cpsw_slave_open()
2109 slave_data->phy_if = of_get_phy_mode(slave_node); in cpsw_probe_dt()
2110 if (slave_data->phy_if < 0) { in cpsw_probe_dt()
2113 return slave_data->phy_if; in cpsw_probe_dt()