/linux/drivers/net/ethernet/amd/xgbe/ |
H A D | xgbe-mdio.c | 132 if (!pdata->phy_if.phy_impl.module_eeprom) in xgbe_phy_module_eeprom() 135 return pdata->phy_if.phy_impl.module_eeprom(pdata, eeprom, data); in xgbe_phy_module_eeprom() 141 if (!pdata->phy_if.phy_impl.module_info) in xgbe_phy_module_info() 144 return pdata->phy_if.phy_impl.module_info(pdata, modinfo); in xgbe_phy_module_info() 225 pdata->phy_if.phy_impl.set_mode(pdata, XGBE_MODE_KR); in xgbe_kr_mode() 234 pdata->phy_if.phy_impl.set_mode(pdata, XGBE_MODE_KX_2500); in xgbe_kx_2500_mode() 243 pdata->phy_if.phy_impl.set_mode(pdata, XGBE_MODE_KX_1000); in xgbe_kx_1000_mode() 256 pdata->phy_if.phy_impl.set_mode(pdata, XGBE_MODE_SFI); in xgbe_sfi_mode() 265 pdata->phy_if.phy_impl.set_mode(pdata, XGBE_MODE_X); in xgbe_x_mode() 274 pdata->phy_if.phy_impl.set_mode(pdata, XGBE_MODE_SGMII_1000); in xgbe_sgmii_1000_mode() [all …]
|
H A D | xgbe-main.c | 165 xgbe_init_function_ptrs_phy(&pdata->phy_if); in xgbe_init_all_fptrs() 169 pdata->vdata->init_function_ptrs_phy_impl(&pdata->phy_if); in xgbe_init_all_fptrs() 333 ret = pdata->phy_if.phy_init(pdata); in xgbe_config_netdev() 426 pdata->phy_if.phy_exit(pdata); in xgbe_deconfig_netdev()
|
H A D | xgbe-ethtool.c | 300 ret = pdata->phy_if.phy_config_aneg(pdata); in xgbe_set_pauseparam() 356 if (!pdata->phy_if.phy_valid_speed(pdata, speed)) { in xgbe_set_link_ksettings() 395 ret = pdata->phy_if.phy_config_aneg(pdata); in xgbe_set_link_ksettings() 609 return pdata->phy_if.module_info(pdata, modinfo); in xgbe_get_module_info() 617 return pdata->phy_if.module_eeprom(pdata, eeprom, data); in xgbe_get_module_eeprom()
|
H A D | xgbe-drv.c | 581 pdata->phy_if.an_isr(pdata); in xgbe_isr_bh_work() 679 pdata->phy_if.phy_status(pdata); in xgbe_service() 1178 return pdata->phy_if.phy_reset(pdata); in xgbe_phy_reset() 1313 struct xgbe_phy_if *phy_if = &pdata->phy_if; in xgbe_start() local 1346 ret = phy_if->phy_start(pdata); in xgbe_start() 1378 struct xgbe_phy_if *phy_if = &pdata->phy_if; in xgbe_stop() local 1400 phy_if->phy_stop(pdata); in xgbe_stop()
|
H A D | xgbe-phy-v1.c | 822 void xgbe_init_function_ptrs_phy_v1(struct xgbe_phy_if *phy_if) in xgbe_init_function_ptrs_phy_v1() argument 824 struct xgbe_phy_impl_if *phy_impl = &phy_if->phy_impl; in xgbe_init_function_ptrs_phy_v1()
|
H A D | xgbe.h | 1127 struct xgbe_phy_if phy_if; member
|
H A D | xgbe-phy-v2.c | 3759 void xgbe_init_function_ptrs_phy_v2(struct xgbe_phy_if *phy_if) in xgbe_init_function_ptrs_phy_v2() argument 3761 struct xgbe_phy_impl_if *phy_impl = &phy_if->phy_impl; in xgbe_init_function_ptrs_phy_v2()
|
/linux/drivers/net/ethernet/hisilicon/hns/ |
H A D | hns_dsaf_misc.c | 518 phy_interface_t phy_if; in hns_mac_get_phy_if() local 537 phy_if = PHY_INTERFACE_MODE_XGMII; in hns_mac_get_phy_if() 539 phy_if = PHY_INTERFACE_MODE_SGMII; in hns_mac_get_phy_if() 541 return phy_if; in hns_mac_get_phy_if() 546 phy_interface_t phy_if = PHY_INTERFACE_MODE_NA; in hns_mac_get_phy_if_acpi() local 562 return phy_if; in hns_mac_get_phy_if_acpi() 564 phy_if = obj->integer.value ? in hns_mac_get_phy_if_acpi() 567 dev_dbg(mac_cb->dev, "mac_id=%d, phy_if=%d\n", mac_cb->mac_id, phy_if); in hns_mac_get_phy_if_acpi() 571 return phy_if; in hns_mac_get_phy_if_acpi()
|
H A D | hns_dsaf_mac.c | 59 return g_mac_mode_100[mac_cb->phy_if]; in hns_get_enet_interface() 61 return g_mac_mode_1000[mac_cb->phy_if]; in hns_get_enet_interface() 617 if (mac_cb->phy_if == PHY_INTERFACE_MODE_XGMII && enable) { in hns_mac_set_autoneg() 847 mac_cb->speed = mac_phy_to_speed[mac_cb->phy_if]; in hns_mac_get_info() 850 if (mac_cb->phy_if == PHY_INTERFACE_MODE_SGMII) { in hns_mac_get_info() 853 } else if (mac_cb->phy_if == PHY_INTERFACE_MODE_XGMII) { in hns_mac_get_info() 985 static int hns_mac_get_mode(phy_interface_t phy_if) in hns_mac_get_mode() argument 987 switch (phy_if) { in hns_mac_get_mode() 1038 mac_cb->phy_if = dsaf_dev->misc_op->get_phy_if(mac_cb); in hns_mac_get_cfg() 1040 ret = hns_mac_get_mode(mac_cb->phy_if); in hns_mac_get_cfg()
|
/linux/drivers/net/ethernet/ti/icssg/ |
H A D | icssg_mii_cfg.c | 59 if (emac->speed == SPEED_10 && phy_interface_mode_is_rgmii(emac->phy_if)) in icssg_update_rgmii_cfg() 72 void icssg_miig_set_interface_mode(struct regmap *miig_rt, int mii, phy_interface_t phy_if) in icssg_miig_set_interface_mode() argument 80 if (phy_if == PHY_INTERFACE_MODE_MII) in icssg_miig_set_interface_mode()
|
H A D | icssg_prueth_sr1.c | 239 emac->phy_if); in emac_phy_connect() 260 if (emac->phy_if == PHY_INTERFACE_MODE_MII) in emac_phy_connect() 807 ret = of_get_phy_mode(eth_node, &emac->phy_if); in prueth_netdev_init() 813 if (emac->phy_if != PHY_INTERFACE_MODE_MII && in prueth_netdev_init() 814 !phy_interface_mode_is_rgmii(emac->phy_if)) { in prueth_netdev_init() 815 dev_err(prueth->dev, "PHY mode unsupported %s\n", phy_modes(emac->phy_if)); in prueth_netdev_init() 825 switch (emac->phy_if) { in prueth_netdev_init() 827 emac->phy_if = PHY_INTERFACE_MODE_RGMII_RXID; in prueth_netdev_init() 830 emac->phy_if = PHY_INTERFACE_MODE_RGMII; in prueth_netdev_init()
|
H A D | icssg_config.c | 128 if (emac->phy_if == PHY_INTERFACE_MODE_MII && mii == ICSS_MII1) in icssg_config_mii_init_fw_offload() 130 else if (emac->phy_if != PHY_INTERFACE_MODE_MII && mii == ICSS_MII0) in icssg_config_mii_init_fw_offload() 156 if (emac->phy_if == PHY_INTERFACE_MODE_MII && slice == ICSS_MII0) in icssg_config_mii_init() 158 else if (emac->phy_if != PHY_INTERFACE_MODE_MII && slice == ICSS_MII1) in icssg_config_mii_init() 468 if (!phy_interface_mode_is_rgmii(emac->phy_if)) { in icssg_config() 474 icssg_miig_set_interface_mode(prueth->miig_rt, slice, emac->phy_if); in icssg_config()
|
H A D | icssg_prueth.c | 307 emac->phy_if); in emac_phy_connect() 325 if (emac->phy_if == PHY_INTERFACE_MODE_MII) in emac_phy_connect() 953 ret = of_get_phy_mode(eth_node, &emac->phy_if); in prueth_netdev_init() 959 if (emac->phy_if != PHY_INTERFACE_MODE_MII && in prueth_netdev_init() 960 !phy_interface_mode_is_rgmii(emac->phy_if)) { in prueth_netdev_init() 961 dev_err(prueth->dev, "PHY mode unsupported %s\n", phy_modes(emac->phy_if)); in prueth_netdev_init() 971 switch (emac->phy_if) { in prueth_netdev_init() 973 emac->phy_if = PHY_INTERFACE_MODE_RGMII_RXID; in prueth_netdev_init() 976 emac->phy_if = PHY_INTERFACE_MODE_RGMII; in prueth_netdev_init()
|
H A D | icssg_mii_rt.h | 149 void icssg_miig_set_interface_mode(struct regmap *miig_rt, int mii, phy_interface_t phy_if);
|
H A D | icssg_prueth.h | 156 phy_interface_t phy_if; member
|
/linux/drivers/net/ethernet/ti/ |
H A D | am65-cpsw-nuss.h | 32 phy_interface_t phy_if; member
|
H A D | am65-cpsw-nuss.c | 2702 ret = of_get_phy_mode(port_np, &port->slave.phy_if); in am65_cpsw_nuss_init_slave_ports() 2709 ret = phy_set_mode_ext(port->slave.ifphy, PHY_MODE_ETHERNET, port->slave.phy_if); in am65_cpsw_nuss_init_slave_ports() 2811 switch (port->slave.phy_if) { in am65_cpsw_nuss_init_port_ndev() 2827 if (common->pdata.extra_modes & BIT(port->slave.phy_if)) { in am65_cpsw_nuss_init_port_ndev() 2828 __set_bit(port->slave.phy_if, in am65_cpsw_nuss_init_port_ndev() 2843 port->slave.phy_if, in am65_cpsw_nuss_init_port_ndev()
|
H A D | cpsw_priv.h | 286 phy_interface_t phy_if; member
|
H A D | cpsw_new.c | 769 &cpsw_adjust_link, 0, slave->data->phy_if); in cpsw_slave_open() 787 slave->data->phy_if); in cpsw_slave_open() 1311 ret = of_get_phy_mode(port_np, &slave_data->phy_if); in cpsw_probe_dt()
|
/linux/drivers/net/ethernet/hisilicon/hns3/hns3pf/ |
H A D | hclge_main.h | 302 phy_interface_t phy_if; member
|
/linux/drivers/net/ethernet/freescale/dpaa/ |
H A D | dpaa_eth.c | 279 mac_dev->phy_if, in dpaa_netdev_init()
|