| /drivers/net/ethernet/broadcom/genet/ |
| A D | bcmmii.c | 207 switch (priv->phy_interface) { in bcmgenet_mii_config() 272 dev_err(kdev, "unknown phy mode: %d\n", priv->phy_interface); in bcmgenet_mii_config() 279 (priv->phy_interface != PHY_INTERFACE_MODE_MOCA); in bcmgenet_mii_config() 310 phy_interface_t phy_iface = priv->phy_interface; in bcmgenet_mii_probe() 343 switch (priv->phy_interface) { in bcmgenet_mii_probe() 445 if (pd->phy_interface != PHY_INTERFACE_MODE_MOCA && pd->mdio_enabled) { in bcmgenet_mii_pdata_init() 547 priv->phy_interface = phy_mode; in bcmgenet_phy_interface_init() 554 if (priv->phy_interface == PHY_INTERFACE_MODE_INTERNAL) in bcmgenet_phy_interface_init() 586 if (priv->phy_interface == PHY_INTERFACE_MODE_MOCA) { in bcmgenet_mii_of_init() 615 phydev = phy_attach(priv->dev, phy_name, pd->phy_interface); in bcmgenet_mii_pd_init() [all …]
|
| /drivers/net/ethernet/stmicro/stmmac/ |
| A D | dwmac-loongson1.c | 91 switch (plat->phy_interface) { in ls1b_dwmac_syscon_init() 104 plat->phy_interface); in ls1b_dwmac_syscon_init() 114 switch (plat->phy_interface) { in ls1b_dwmac_syscon_init() 128 plat->phy_interface); in ls1b_dwmac_syscon_init() 144 switch (plat->phy_interface) { in ls1c_dwmac_syscon_init() 155 plat->phy_interface); in ls1c_dwmac_syscon_init()
|
| A D | dwmac-intel.c | 308 priv->plat->phy_interface = interface; in tgl_get_interfaces() 559 priv->plat->phy_interface = interface; in intel_mac_finish() 738 plat->phy_interface = phy_mode; in intel_mgbe_common_data() 804 plat->phy_interface = PHY_INTERFACE_MODE_SGMII; in ehl_sgmii_data() 826 plat->phy_interface = PHY_INTERFACE_MODE_RGMII; in ehl_rgmii_data() 856 plat->phy_interface = PHY_INTERFACE_MODE_RGMII_ID; in ehl_pse0_rgmii1g_data() 869 plat->phy_interface = PHY_INTERFACE_MODE_SGMII; in ehl_pse0_sgmii1g_data() 905 plat->phy_interface = PHY_INTERFACE_MODE_RGMII_ID; in ehl_pse1_rgmii1g_data() 918 plat->phy_interface = PHY_INTERFACE_MODE_SGMII; in ehl_pse1_sgmii1g_data() 1041 plat->phy_interface = PHY_INTERFACE_MODE_SGMII; in adln_sgmii_phy0_data() [all …]
|
| A D | dwmac-lpc18xx.c | 53 if (plat_dat->phy_interface == PHY_INTERFACE_MODE_MII) { in lpc18xx_dwmac_probe() 55 } else if (plat_dat->phy_interface == PHY_INTERFACE_MODE_RMII) { in lpc18xx_dwmac_probe()
|
| A D | dwmac-anarion.c | 82 if (phy_interface_mode_is_rgmii(plat_dat->phy_interface)) { in anarion_config_dt() 86 phy_modes(plat_dat->phy_interface)); in anarion_config_dt()
|
| A D | stmmac_pci.c | 59 plat->phy_interface = PHY_INTERFACE_MODE_GMII; in stmmac_default_data() 115 plat->phy_interface = PHY_INTERFACE_MODE_GMII; in snps_gmac5_default_data()
|
| A D | dwmac-visconti.c | 155 switch (plat_dat->phy_interface) { in visconti_eth_init_hw() 169 dev_err(&pdev->dev, "Unsupported phy-mode (%d)\n", plat_dat->phy_interface); in visconti_eth_init_hw()
|
| A D | dwmac-loongson.c | 155 plat->phy_interface = PHY_INTERFACE_MODE_RGMII_ID; in loongson_gmac_data() 187 plat->phy_interface = PHY_INTERFACE_MODE_GMII; in loongson_gnet_data() 483 plat->phy_interface = ret; in loongson_dwmac_dt_config()
|
| A D | dwmac-socfpga.c | 97 if ((priv->plat->phy_interface == PHY_INTERFACE_MODE_SGMII || in socfpga_dwmac_fix_mac_speed() 98 priv->plat->phy_interface == PHY_INTERFACE_MODE_1000BASEX) && in socfpga_dwmac_fix_mac_speed()
|
| A D | dwmac-sunxi.c | 119 gmac->interface = plat_dat->phy_interface; in sun7i_gmac_probe()
|
| A D | dwmac-s32.c | 145 gmac->intf_mode = &plat->phy_interface; in s32_dwmac_probe()
|
| A D | dwmac-sti.c | 203 dwmac->interface = plat_dat->phy_interface; in sti_dwmac_parse_data()
|
| A D | stmmac_platform.c | 455 plat->phy_interface = phy_mode; in stmmac_probe_config_dt() 457 plat->mac_interface = rc < 0 ? plat->phy_interface : rc; in stmmac_probe_config_dt()
|
| /drivers/phy/renesas/ |
| A D | r8a779f0-ether-serdes.c | 28 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() 312 channel->phy_interface = submode; in r8a779f0_eth_serdes_set_mode()
|
| /drivers/net/ethernet/broadcom/asp2/ |
| A D | bcmasp_intf.c | 959 switch (intf->phy_interface) { in bcmasp_configure_port() 993 phy_interface_t phy_iface = intf->phy_interface; in bcmasp_netif_init() 1234 ret = of_get_phy_mode(ndev_dn, &intf->phy_interface); in bcmasp_interface_create() 1240 if (intf->phy_interface == PHY_INTERFACE_MODE_INTERNAL) in bcmasp_interface_create() 1257 if ((!phy_interface_mode_is_rgmii(intf->phy_interface) && in bcmasp_interface_create() 1258 intf->phy_interface != PHY_INTERFACE_MODE_MII && in bcmasp_interface_create() 1259 intf->phy_interface != PHY_INTERFACE_MODE_INTERNAL) || in bcmasp_interface_create() 1262 phy_modes(intf->phy_interface), intf->port); in bcmasp_interface_create()
|
| /drivers/net/ethernet/marvell/mvpp2/ |
| A D | mvpp2_main.c | 1717 if (mvpp2_is_xlg(port->phy_interface)) in mvpp22_gop_unmask_irq() 1805 mvpp2_is_xlg(port->phy_interface)) { in mvpp2_port_enable() 1823 mvpp2_is_xlg(port->phy_interface)) { in mvpp2_port_disable() 6298 switch (port->phy_interface) { in mvpp2_gmac_pcs_get_state() 6501 if (port->phy_interface != interface || in mvpp2_mac_prepare() 6524 if (port->phy_interface != interface) { in mvpp2_mac_prepare() 6567 port->phy_interface = interface; in mvpp2_mac_finish() 6780 .interface = port->phy_interface, in mvpp2_acpi_start() 6787 port->phy_interface); in mvpp2_acpi_start() 6793 port->phy_interface); in mvpp2_acpi_start() [all …]
|
| /drivers/net/ethernet/socionext/ |
| A D | netsec.c | 297 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() 1644 priv->phy_interface)) { in netsec_netdev_open() 1652 priv->phy_interface); in netsec_netdev_open() 1853 err = of_get_phy_mode(pdev->dev.of_node, &priv->phy_interface); in netsec_of_probe() 1865 priv->phy_interface != PHY_INTERFACE_MODE_RGMII_ID) { in netsec_of_probe() 1867 priv->phy_interface = PHY_INTERFACE_MODE_RGMII_ID; in netsec_of_probe() 1901 priv->phy_interface = PHY_INTERFACE_MODE_NA; in netsec_acpi_probe()
|
| /drivers/net/ethernet/xilinx/ |
| A D | ll_temac.h | 349 phy_interface_t phy_interface; member
|
| A D | ll_temac_main.c | 1172 lp->phy_interface); in temac_open() 1602 lp->phy_interface = pdata->phy_interface; in temac_probe()
|
| /drivers/net/ethernet/smsc/ |
| A D | smsc911x.c | 1032 pdata->config.phy_interface); in smsc911x_mii_probe() 2372 int phy_interface; in smsc911x_probe_config() local 2376 phy_interface = device_get_phy_mode(dev); in smsc911x_probe_config() 2377 if (phy_interface < 0) in smsc911x_probe_config() 2378 phy_interface = PHY_INTERFACE_MODE_NA; in smsc911x_probe_config() 2379 config->phy_interface = phy_interface; in smsc911x_probe_config()
|
| /drivers/net/ethernet/renesas/ |
| A D | rswitch.c | 1138 switch (etha->phy_interface) { in rswitch_rmac_setting() 1314 err = of_get_phy_mode(rdev->np_port, &rdev->etha->phy_interface); in rswitch_etha_get_params() 1325 switch (rdev->etha->phy_interface) { in rswitch_etha_get_params() 1454 __set_bit(rdev->etha->phy_interface, phydev->host_interfaces); in rswitch_phy_device_init() 1458 rdev->etha->phy_interface); in rswitch_phy_device_init() 1489 rdev->etha->phy_interface); in rswitch_serdes_set_params()
|
| A D | ravb_main.c | 521 if (priv->phy_interface == PHY_INTERFACE_MODE_MII) { in ravb_emac_init_gbeth() 592 bool mii = priv->phy_interface == PHY_INTERFACE_MODE_MII; in ravb_emac_init_rcar_gen4() 1498 : priv->phy_interface; in ravb_phy_init() 1895 if (priv->phy_interface == PHY_INTERFACE_MODE_RGMII_ID || in ravb_parse_delay_mode() 1896 priv->phy_interface == PHY_INTERFACE_MODE_RGMII_RXID) { in ravb_parse_delay_mode() 1901 if (priv->phy_interface == PHY_INTERFACE_MODE_RGMII_ID || in ravb_parse_delay_mode() 1902 priv->phy_interface == PHY_INTERFACE_MODE_RGMII_TXID) { in ravb_parse_delay_mode() 2997 error = of_get_phy_mode(np, &priv->phy_interface); in ravb_probe()
|
| A D | sh_eth.h | 554 phy_interface_t phy_interface; member
|
| /drivers/net/ethernet/freescale/ |
| A D | ucc_geth.c | 3429 phy_interface_t phy_interface; in ucc_geth_probe() local 3481 err = of_get_phy_mode(np, &phy_interface); in ucc_geth_probe() 3487 if (phy_interface == PHY_INTERFACE_MODE_GMII || in ucc_geth_probe() 3488 phy_interface_mode_is_rgmii(phy_interface) || in ucc_geth_probe() 3489 phy_interface == PHY_INTERFACE_MODE_TBI || in ucc_geth_probe() 3490 phy_interface == PHY_INTERFACE_MODE_RTBI || in ucc_geth_probe() 3491 phy_interface == PHY_INTERFACE_MODE_SGMII) { in ucc_geth_probe() 3574 phy_interface, &ugeth_mac_ops); in ucc_geth_probe()
|
| /drivers/net/ethernet/cadence/ |
| A D | macb_main.c | 527 if (bp->phy_interface == PHY_INTERFACE_MODE_MII) in macb_set_tx_clk() 658 bp->phy_interface == PHY_INTERFACE_MODE_MII) { in macb_mac_config() 760 if (bp->phy_interface == PHY_INTERFACE_MODE_10GBASER) in macb_mac_link_up() 859 if (bp->phy_interface == PHY_INTERFACE_MODE_SGMII) { in macb_mii_probe() 894 bp->phy_interface, &macb_phylink_ops); in macb_mii_probe() 4410 if (phy_interface_mode_is_rgmii(bp->phy_interface)) in macb_init() 4412 else if (bp->phy_interface == PHY_INTERFACE_MODE_RMII && in macb_init() 4427 if (bp->phy_interface == PHY_INTERFACE_MODE_SGMII) in macb_init() 4932 if (bp->phy_interface == PHY_INTERFACE_MODE_SGMII) { in init_reset_optional() 5341 bp->phy_interface = PHY_INTERFACE_MODE_MII; in macb_probe() [all …]
|