• Home
  • Raw
  • Download

Lines Matching refs:phy_addr

307 	u32 phy_addr;  member
465 static int netsec_phy_read(struct mii_bus *bus, int phy_addr, int reg_addr);
468 int phy_addr, int reg, u16 val) in netsec_phy_write() argument
476 phy_addr << NETSEC_GMAC_GAR_REG_SHIFT_PA | in netsec_phy_write()
493 netsec_phy_read(bus, phy_addr, MII_PHYSID1); in netsec_phy_write()
498 static int netsec_phy_read(struct mii_bus *bus, int phy_addr, int reg_addr) in netsec_phy_read() argument
505 phy_addr << NETSEC_GMAC_GAR_REG_SHIFT_PA | in netsec_phy_read()
1696 data = netsec_phy_read(priv->mii_bus, priv->phy_addr, MII_BMCR) | in netsec_netdev_init()
1698 netsec_phy_write(priv->mii_bus, priv->phy_addr, MII_BMCR, data); in netsec_netdev_init()
1829 struct netsec_priv *priv, u32 *phy_addr) in netsec_of_probe() argument
1837 *phy_addr = of_mdio_parse_addr(&pdev->dev, priv->phy_np); in netsec_of_probe()
1850 struct netsec_priv *priv, u32 *phy_addr) in netsec_acpi_probe() argument
1857 ret = device_property_read_u32(&pdev->dev, "phy-channel", phy_addr); in netsec_acpi_probe()
1885 static int netsec_register_mdio(struct netsec_priv *priv, u32 phy_addr) in netsec_register_mdio() argument
1931 priv->phydev = get_phy_device(bus, phy_addr, false); in netsec_register_mdio()
1955 u32 hw_ver, phy_addr = 0; in netsec_probe() local
2039 ret = netsec_of_probe(pdev, priv, &phy_addr); in netsec_probe()
2041 ret = netsec_acpi_probe(pdev, priv, &phy_addr); in netsec_probe()
2045 priv->phy_addr = phy_addr; in netsec_probe()
2090 ret = netsec_register_mdio(priv, phy_addr); in netsec_probe()