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

/linux-4.4.14/drivers/net/ethernet/hisilicon/hns/
H A Dhns_dsaf_misc.c247 phy_interface_t phy_if = PHY_INTERFACE_MODE_NA; hns_mac_get_phy_if() local
253 phy_if = PHY_INTERFACE_MODE_SGMII; hns_mac_get_phy_if()
255 phy_if = PHY_INTERFACE_MODE_XGMII; hns_mac_get_phy_if()
258 phy_if = PHY_INTERFACE_MODE_SGMII; hns_mac_get_phy_if()
260 phy_if = PHY_INTERFACE_MODE_XGMII; hns_mac_get_phy_if()
262 phy_if = PHY_INTERFACE_MODE_SGMII; hns_mac_get_phy_if()
266 "hilink3_mode=%d, hilink4_mode=%d dev_id=%d, phy_if=%d\n", hns_mac_get_phy_if()
267 hilink3_mode, hilink4_mode, dev_id, phy_if); hns_mac_get_phy_if()
268 return phy_if; hns_mac_get_phy_if()
H A Dhns_dsaf_mac.c60 return g_mac_mode_100[mac_cb->phy_if]; hns_mac_dev_to_enet_if()
62 return g_mac_mode_1000[mac_cb->phy_if]; hns_mac_dev_to_enet_if()
74 return g_mac_mode_100[mac_cb->phy_if]; hns_get_enet_interface()
76 return g_mac_mode_1000[mac_cb->phy_if]; hns_get_enet_interface()
579 if (mac_cb->phy_if == PHY_INTERFACE_MODE_XGMII && enable) { hns_mac_set_autoneg()
675 mac_cb->speed = mac_phy_to_speed[mac_cb->phy_if]; hns_mac_get_info()
678 if (mac_cb->phy_if == PHY_INTERFACE_MODE_SGMII) { hns_mac_get_info()
681 } else if (mac_cb->phy_if == PHY_INTERFACE_MODE_XGMII) { hns_mac_get_info()
698 * @phy_if: phy interface
701 static int hns_mac_get_mode(phy_interface_t phy_if) hns_mac_get_mode() argument
703 switch (phy_if) { hns_mac_get_mode()
761 mac_cb->phy_if = hns_mac_get_phy_if(mac_cb); hns_mac_get_cfg()
763 ret = hns_mac_get_mode(mac_cb->phy_if); hns_mac_get_cfg()
H A Dhns_ethtool.c164 if (h->phy_if == PHY_INTERFACE_MODE_SGMII) { hns_nic_get_settings()
167 } else if (h->phy_if == PHY_INTERFACE_MODE_XGMII) { hns_nic_get_settings()
209 if (h->phy_if == PHY_INTERFACE_MODE_XGMII) { hns_nic_set_settings()
213 } else if (h->phy_if == PHY_INTERFACE_MODE_SGMII) { hns_nic_set_settings()
323 (priv->ae_handle->phy_if != PHY_INTERFACE_MODE_XGMII)) __lb_setup()
335 if (priv->ae_handle->phy_if != PHY_INTERFACE_MODE_XGMII) __lb_setup()
384 if (priv->ae_handle->phy_if != PHY_INTERFACE_MODE_XGMII) __lb_up()
603 st_param[0][1] = (priv->ae_handle->phy_if != PHY_INTERFACE_MODE_XGMII); hns_nic_self_test()
608 (priv->ae_handle->phy_if != PHY_INTERFACE_MODE_XGMII)); hns_nic_self_test()
905 if (priv->ae_handle->phy_if != PHY_INTERFACE_MODE_XGMII) { hns_get_strings()
996 if (priv->ae_handle->phy_if == PHY_INTERFACE_MODE_XGMII) hns_get_sset_count()
H A Dhns_ae_adapt.c174 ae_handle->phy_if = vf_cb->mac_cb->phy_if; hns_ae_get_handle()
H A Dhns_enet.c761 if (h->phy_if != PHY_INTERFACE_MODE_XGMII) hns_nic_init_phy()
763 hns_nic_adjust_link, 0, h->phy_if); hns_nic_init_phy()
765 phy_dev = of_phy_attach(ndev, h->phy_node, 0, h->phy_if); hns_nic_init_phy()
773 if (h->phy_if == PHY_INTERFACE_MODE_XGMII) hns_nic_init_phy()
H A Dhns_dsaf_mac.h330 phy_interface_t phy_if; member in struct:hns_mac_cb
H A Dhnae.h467 phy_interface_t phy_if; member in struct:hnae_handle
H A Dhns_dsaf_main.c1857 if (mac_cb->phy_if == PHY_INTERFACE_MODE_XGMII) hns_dsaf_fix_mac_mode()
/linux-4.4.14/drivers/net/ethernet/ti/
H A Dcpsw.h22 int phy_if; member in struct:cpsw_slave_data
H A Dcpsw.c1153 &cpsw_adjust_link, 0, slave->data->phy_if); cpsw_slave_open()
1156 &cpsw_adjust_link, slave->data->phy_if); cpsw_slave_open()
2077 slave_data->phy_if = of_get_phy_mode(slave_node); for_each_child_of_node()
2078 if (slave_data->phy_if < 0) { for_each_child_of_node()
2081 return slave_data->phy_if; for_each_child_of_node()
/linux-4.4.14/drivers/net/ethernet/amd/xgbe/
H A Dxgbe-mdio.c1346 void xgbe_init_function_ptrs_phy(struct xgbe_phy_if *phy_if) xgbe_init_function_ptrs_phy() argument
1348 phy_if->phy_init = xgbe_phy_init; xgbe_init_function_ptrs_phy()
1350 phy_if->phy_reset = xgbe_phy_reset; xgbe_init_function_ptrs_phy()
1351 phy_if->phy_start = xgbe_phy_start; xgbe_init_function_ptrs_phy()
1352 phy_if->phy_stop = xgbe_phy_stop; xgbe_init_function_ptrs_phy()
1354 phy_if->phy_status = xgbe_phy_status; xgbe_init_function_ptrs_phy()
1355 phy_if->phy_config_aneg = xgbe_phy_config_aneg; xgbe_init_function_ptrs_phy()
H A Dxgbe-drv.c450 pdata->phy_if.phy_status(pdata); xgbe_service()
791 return pdata->phy_if.phy_reset(pdata); xgbe_phy_init()
874 struct xgbe_phy_if *phy_if = &pdata->phy_if; xgbe_start() local
882 ret = phy_if->phy_start(pdata); xgbe_start()
907 phy_if->phy_stop(pdata); xgbe_start()
918 struct xgbe_phy_if *phy_if = &pdata->phy_if; xgbe_stop() local
938 phy_if->phy_stop(pdata); xgbe_stop()
H A Dxgbe-ethtool.c270 ret = pdata->phy_if.phy_config_aneg(pdata); xgbe_set_pauseparam()
359 ret = pdata->phy_if.phy_config_aneg(pdata); xgbe_set_settings()
H A Dxgbe-main.c208 xgbe_init_function_ptrs_phy(&pdata->phy_if); xgbe_init_all_fptrs()
707 pdata->phy_if.phy_init(pdata); xgbe_probe()
H A Dxgbe.h789 struct xgbe_phy_if phy_if; member in struct:xgbe_prv_data

Completed in 380 milliseconds