Lines Matching refs:phy_addr
233 int phy_addr; member
563 if (priv->port_cfg[0].phy_addr > 0) in mt7620_gsw_ephy_init()
564 mt7620_phy_restart_an(priv, priv->port_cfg[0].phy_addr); in mt7620_gsw_ephy_init()
566 if (priv->port_cfg[1].phy_addr > 0) in mt7620_gsw_ephy_init()
567 mt7620_phy_restart_an(priv, priv->port_cfg[1].phy_addr); in mt7620_gsw_ephy_init()
674 if (priv->port_cfg[0].phy_addr < 0 && priv->port_cfg[1].phy_addr < 0) in mt7620_gsw_setup_phy_polling()
677 if (priv->port_cfg[0].phy_addr > 0 && priv->port_cfg[1].phy_addr > 0) { in mt7620_gsw_setup_phy_polling()
678 phy_addr_st = priv->port_cfg[0].phy_addr; in mt7620_gsw_setup_phy_polling()
679 phy_addr_end = priv->port_cfg[1].phy_addr; in mt7620_gsw_setup_phy_polling()
680 } else if (priv->port_cfg[0].phy_addr > 0) { in mt7620_gsw_setup_phy_polling()
681 phy_addr_st = priv->port_cfg[0].phy_addr; in mt7620_gsw_setup_phy_polling()
682 phy_addr_end = priv->port_cfg[0].phy_addr + 1; in mt7620_gsw_setup_phy_polling()
685 phy_addr_end = priv->port_cfg[1].phy_addr; in mt7620_gsw_setup_phy_polling()
1053 u32 phy_addr; in mt7620_eth_parse_gsw_port() local
1116 ret = ofnode_read_u32(node, "phy-addr", &phy_addr); in mt7620_eth_parse_gsw_port()
1118 if (phy_addr > 31 || (idx == 0 && phy_addr < 3) || in mt7620_eth_parse_gsw_port()
1119 (idx == 1 && phy_addr < 4)) { in mt7620_eth_parse_gsw_port()
1124 priv->port_cfg[idx].phy_addr = phy_addr; in mt7620_eth_parse_gsw_port()
1126 priv->port_cfg[idx].phy_addr = -1; in mt7620_eth_parse_gsw_port()