Home
last modified time | relevance | path

Searched refs:phy_interface (Results 1 – 25 of 40) sorted by relevance

12

/drivers/net/ethernet/broadcom/genet/
Dbcmmii.c201 switch (priv->phy_interface) { in bcmgenet_mii_config()
266 dev_err(kdev, "unknown phy mode: %d\n", priv->phy_interface); in bcmgenet_mii_config()
273 (priv->phy_interface != PHY_INTERFACE_MODE_MOCA); in bcmgenet_mii_config()
304 phy_interface_t phy_iface = priv->phy_interface; in bcmgenet_mii_probe()
337 switch (priv->phy_interface) { in bcmgenet_mii_probe()
439 if (pd->phy_interface != PHY_INTERFACE_MODE_MOCA && pd->mdio_enabled) { in bcmgenet_mii_pdata_init()
537 priv->phy_interface = phy_mode; in bcmgenet_phy_interface_init()
544 if (priv->phy_interface == PHY_INTERFACE_MODE_INTERNAL) in bcmgenet_phy_interface_init()
576 if (priv->phy_interface == PHY_INTERFACE_MODE_MOCA) { in bcmgenet_mii_of_init()
598 if (pd->phy_interface != PHY_INTERFACE_MODE_MOCA && pd->mdio_enabled) { in bcmgenet_mii_pd_init()
[all …]
Dbcmgenet.h615 phy_interface_t phy_interface; member
/drivers/net/ethernet/stmicro/stmmac/
Ddwmac-intel.c250 priv->plat->phy_interface = PHY_INTERFACE_MODE_2500BASEX; in intel_speed_mode_2500()
579 plat->phy_interface = phy_mode; in intel_mgbe_common_data()
586 if (plat->phy_interface == PHY_INTERFACE_MODE_SGMII || in intel_mgbe_common_data()
587 plat->phy_interface == PHY_INTERFACE_MODE_1000BASEX) { in intel_mgbe_common_data()
649 plat->phy_interface = PHY_INTERFACE_MODE_SGMII; in ehl_sgmii_data()
667 plat->phy_interface = PHY_INTERFACE_MODE_RGMII; in ehl_rgmii_data()
697 plat->phy_interface = PHY_INTERFACE_MODE_RGMII_ID; in ehl_pse0_rgmii1g_data()
708 plat->phy_interface = PHY_INTERFACE_MODE_SGMII; in ehl_pse0_sgmii1g_data()
738 plat->phy_interface = PHY_INTERFACE_MODE_RGMII_ID; in ehl_pse1_rgmii1g_data()
749 plat->phy_interface = PHY_INTERFACE_MODE_SGMII; in ehl_pse1_sgmii1g_data()
[all …]
Dstmmac_pci.c59 plat->phy_interface = PHY_INTERFACE_MODE_GMII; in stmmac_default_data()
115 plat->phy_interface = PHY_INTERFACE_MODE_GMII; in snps_gmac5_default_data()
Ddwmac-visconti.c147 switch (plat_dat->phy_interface) { in visconti_eth_init_hw()
161 dev_err(&pdev->dev, "Unsupported phy-mode (%d)\n", plat_dat->phy_interface); in visconti_eth_init_hw()
Ddwmac-loongson.c112 plat->phy_interface = phy_mode; in loongson_dwmac_probe()
Dstmmac_platform.c424 plat->phy_interface = phy_mode; in stmmac_probe_config_dt()
426 plat->mac_interface = rc < 0 ? plat->phy_interface : rc; in stmmac_probe_config_dt()
/drivers/phy/renesas/
Dr8a779f0-ether-serdes.c28 phy_interface_t phy_interface; member
95 switch (channel->phy_interface) { in r8a779f0_eth_serdes_common_setting()
113 switch (channel->phy_interface) { in r8a779f0_eth_serdes_chan_setting()
170 switch (channel->phy_interface) { in r8a779f0_eth_serdes_chan_speed()
299 channel->phy_interface = submode; in r8a779f0_eth_serdes_set_mode()
/drivers/net/ethernet/freescale/
Ducc_geth.c1320 if ((ugeth->phy_interface == PHY_INTERFACE_MODE_RMII) || in adjust_enet_interface()
1321 (ugeth->phy_interface == PHY_INTERFACE_MODE_RGMII) || in adjust_enet_interface()
1322 (ugeth->phy_interface == PHY_INTERFACE_MODE_RGMII_ID) || in adjust_enet_interface()
1323 (ugeth->phy_interface == PHY_INTERFACE_MODE_RGMII_RXID) || in adjust_enet_interface()
1324 (ugeth->phy_interface == PHY_INTERFACE_MODE_RGMII_TXID) || in adjust_enet_interface()
1325 (ugeth->phy_interface == PHY_INTERFACE_MODE_RTBI)) { in adjust_enet_interface()
1326 if (ugeth->phy_interface != PHY_INTERFACE_MODE_RMII) in adjust_enet_interface()
1333 if (ugeth->phy_interface != PHY_INTERFACE_MODE_RTBI) in adjust_enet_interface()
1337 if ((ugeth->phy_interface == PHY_INTERFACE_MODE_TBI) || in adjust_enet_interface()
1338 (ugeth->phy_interface == PHY_INTERFACE_MODE_RTBI)) { in adjust_enet_interface()
[all …]
Dfec_main.c1128 if (fep->phy_interface == PHY_INTERFACE_MODE_RGMII || in fec_restart()
1129 fep->phy_interface == PHY_INTERFACE_MODE_RGMII_ID || in fec_restart()
1130 fep->phy_interface == PHY_INTERFACE_MODE_RGMII_RXID || in fec_restart()
1131 fep->phy_interface == PHY_INTERFACE_MODE_RGMII_TXID) in fec_restart()
1133 else if (fep->phy_interface == PHY_INTERFACE_MODE_RMII) in fec_restart()
1161 cfgr = (fep->phy_interface == PHY_INTERFACE_MODE_RMII) in fec_restart()
2356 fep->phy_interface); in fec_enet_mii_probe()
2381 fep->phy_interface); in fec_enet_mii_probe()
4386 fep->phy_interface = pdata->phy; in fec_probe()
4388 fep->phy_interface = PHY_INTERFACE_MODE_MII; in fec_probe()
[all …]
Dfec.h631 phy_interface_t phy_interface; member
/drivers/net/ethernet/broadcom/asp2/
Dbcmasp_intf.c971 switch (intf->phy_interface) { in bcmasp_configure_port()
1005 phy_interface_t phy_iface = intf->phy_interface; in bcmasp_netif_init()
1244 ret = of_get_phy_mode(ndev_dn, &intf->phy_interface); in bcmasp_interface_create()
1250 if (intf->phy_interface == PHY_INTERFACE_MODE_INTERNAL) in bcmasp_interface_create()
1267 if ((!phy_interface_mode_is_rgmii(intf->phy_interface) && in bcmasp_interface_create()
1268 intf->phy_interface != PHY_INTERFACE_MODE_MII && in bcmasp_interface_create()
1269 intf->phy_interface != PHY_INTERFACE_MODE_INTERNAL) || in bcmasp_interface_create()
1272 phy_modes(intf->phy_interface), intf->port); in bcmasp_interface_create()
/drivers/net/ethernet/marvell/mvpp2/
Dmvpp2_main.c1693 if (phy_interface_mode_is_rgmii(port->phy_interface) || in mvpp22_gop_unmask_irq()
1694 phy_interface_mode_is_8023z(port->phy_interface) || in mvpp22_gop_unmask_irq()
1695 port->phy_interface == PHY_INTERFACE_MODE_SGMII) { in mvpp22_gop_unmask_irq()
1705 if (mvpp2_is_xlg(port->phy_interface)) in mvpp22_gop_unmask_irq()
1724 if (phy_interface_mode_is_rgmii(port->phy_interface) || in mvpp22_gop_mask_irq()
1725 phy_interface_mode_is_8023z(port->phy_interface) || in mvpp22_gop_mask_irq()
1726 port->phy_interface == PHY_INTERFACE_MODE_SGMII) { in mvpp22_gop_mask_irq()
1742 phy_interface_mode_is_rgmii(port->phy_interface) || in mvpp22_gop_setup_irq()
1743 phy_interface_mode_is_8023z(port->phy_interface) || in mvpp22_gop_setup_irq()
1744 port->phy_interface == PHY_INTERFACE_MODE_SGMII) { in mvpp22_gop_setup_irq()
[all …]
/drivers/net/ethernet/socionext/
Dnetsec.c297 phy_interface_t phy_interface; member
451 if (priv->phy_interface != PHY_INTERFACE_MODE_GMII && in netsec_mac_update_to_phy_state()
457 if (phy_interface_mode_is_rgmii(priv->phy_interface)) in netsec_mac_update_to_phy_state()
1639 priv->phy_interface)) { in netsec_netdev_open()
1647 priv->phy_interface); in netsec_netdev_open()
1848 err = of_get_phy_mode(pdev->dev.of_node, &priv->phy_interface); in netsec_of_probe()
1860 priv->phy_interface != PHY_INTERFACE_MODE_RGMII_ID) { in netsec_of_probe()
1862 priv->phy_interface = PHY_INTERFACE_MODE_RGMII_ID; in netsec_of_probe()
1896 priv->phy_interface = PHY_INTERFACE_MODE_NA; in netsec_acpi_probe()
/drivers/net/ethernet/xilinx/
Dll_temac.h349 phy_interface_t phy_interface; member
Dll_temac_main.c1172 lp->phy_interface); in temac_open()
1602 lp->phy_interface = pdata->phy_interface; in temac_probe()
/drivers/net/ethernet/smsc/
Dsmsc911x.c1032 pdata->config.phy_interface); in smsc911x_mii_probe()
2374 int phy_interface; in smsc911x_probe_config() local
2378 phy_interface = device_get_phy_mode(dev); in smsc911x_probe_config()
2379 if (phy_interface < 0) in smsc911x_probe_config()
2380 phy_interface = PHY_INTERFACE_MODE_NA; in smsc911x_probe_config()
2381 config->phy_interface = phy_interface; in smsc911x_probe_config()
/drivers/net/ethernet/renesas/
Dravb_main.c529 if (priv->phy_interface == PHY_INTERFACE_MODE_MII) { in ravb_emac_init_gbeth()
1426 : priv->phy_interface; in ravb_phy_init()
2610 if (priv->phy_interface == PHY_INTERFACE_MODE_RGMII_ID || in ravb_parse_delay_mode()
2611 priv->phy_interface == PHY_INTERFACE_MODE_RGMII_RXID) { in ravb_parse_delay_mode()
2616 if (priv->phy_interface == PHY_INTERFACE_MODE_RGMII_ID || in ravb_parse_delay_mode()
2617 priv->phy_interface == PHY_INTERFACE_MODE_RGMII_TXID) { in ravb_parse_delay_mode()
2716 error = of_get_phy_mode(np, &priv->phy_interface); in ravb_probe()
Dsh_eth.h554 phy_interface_t phy_interface; member
Drswitch.c1179 err = of_get_phy_mode(rdev->np_port, &rdev->etha->phy_interface); in rswitch_etha_get_params()
1190 switch (rdev->etha->phy_interface) { in rswitch_etha_get_params()
1317 __set_bit(rdev->etha->phy_interface, phydev->host_interfaces); in rswitch_phy_device_init()
1320 rdev->etha->phy_interface); in rswitch_phy_device_init()
1351 rdev->etha->phy_interface); in rswitch_serdes_set_params()
Dsh_eth.c418 switch (mdp->phy_interface) { in sh_eth_select_mii()
2006 mdp->phy_interface); in sh_eth_phy_init()
2018 mdp->phy_interface); in sh_eth_phy_init()
3216 pdata->phy_interface = interface; in sh_eth_parse_dt()
3300 mdp->phy_interface = pd->phy_interface; in sh_eth_drv_probe()
/drivers/net/ethernet/cadence/
Dmacb_main.c530 if (bp->phy_interface == PHY_INTERFACE_MODE_MII) in macb_set_tx_clk()
670 bp->phy_interface == PHY_INTERFACE_MODE_MII) { in macb_mac_config()
772 if (bp->phy_interface == PHY_INTERFACE_MODE_10GBASER) in macb_mac_link_up()
873 if (bp->phy_interface == PHY_INTERFACE_MODE_SGMII) { in macb_mii_probe()
908 bp->phy_interface, &macb_phylink_ops); in macb_mii_probe()
4184 if (phy_interface_mode_is_rgmii(bp->phy_interface)) in macb_init()
4186 else if (bp->phy_interface == PHY_INTERFACE_MODE_RMII && in macb_init()
4201 if (bp->phy_interface == PHY_INTERFACE_MODE_SGMII) in macb_init()
4704 if (bp->phy_interface == PHY_INTERFACE_MODE_SGMII) { in init_reset_optional()
5108 bp->phy_interface = PHY_INTERFACE_MODE_MII; in macb_probe()
[all …]
/drivers/net/ethernet/allwinner/
Dsun4i-emac.c89 phy_interface_t phy_interface; member
177 db->phy_interface); in emac_mdio_probe()
/drivers/net/ethernet/marvell/
Dmvneta.c531 phy_interface_t phy_interface; member
3740 pp->phy_interface = interface; in mvneta_config_interface()
3749 WARN_ON(mvneta_config_interface(pp, pp->phy_interface)); in mvneta_start_dev()
4095 if (pp->phy_interface != interface || in mvneta_mac_prepare()
4108 if (pp->phy_interface != interface) in mvneta_mac_prepare()
4192 if (pp->phy_interface != interface) in mvneta_mac_finish()
5491 pp->phy_interface = phy_mode; in mvneta_probe()
5666 err = mvneta_port_power_up(pp, pp->phy_interface); in mvneta_probe()
5829 err = mvneta_port_power_up(pp, pp->phy_interface); in mvneta_resume()
/drivers/net/ethernet/broadcom/
Dbcmsysport.h741 phy_interface_t phy_interface; member

12