Lines Matching refs:phy_addr
134 unsigned short phy_addr; member
520 macb_mdio_write(macb, macb->phy_addr, MII_ADVERTISE, adv); in macb_phy_reset()
522 macb_mdio_write(macb, macb->phy_addr, MII_BMCR, (BMCR_ANENABLE in macb_phy_reset()
526 status = macb_mdio_read(macb, macb->phy_addr, MII_BMSR); in macb_phy_reset()
544 phy_id = macb_mdio_read(macb, macb->phy_addr, MII_PHYSID1); in macb_phy_find()
546 printf("%s: PHY present at %d\n", name, macb->phy_addr); in macb_phy_find()
552 macb->phy_addr = i; in macb_phy_find()
553 phy_id = macb_mdio_read(macb, macb->phy_addr, MII_PHYSID1); in macb_phy_find()
688 phy_id = macb_mdio_read(macb, macb->phy_addr, MII_PHYSID1); in macb_phy_init()
696 macb->phydev = phy_connect(macb->bus, macb->phy_addr, dev, in macb_phy_init()
700 macb->phydev = phy_connect(macb->bus, macb->phy_addr, &macb->netdev, in macb_phy_init()
711 status = macb_mdio_read(macb, macb->phy_addr, MII_BMSR); in macb_phy_init()
717 status = macb_mdio_read(macb, macb->phy_addr, MII_BMSR); in macb_phy_init()
738 lpa = macb_mdio_read(macb, macb->phy_addr, MII_STAT1000); in macb_phy_init()
772 adv = macb_mdio_read(macb, macb->phy_addr, MII_ADVERTISE); in macb_phy_init()
773 lpa = macb_mdio_read(macb, macb->phy_addr, MII_LPA); in macb_phy_init()
1211 int macb_eth_initialize(int id, void *regs, unsigned int phy_addr) in macb_eth_initialize() argument
1226 macb->phy_addr = phy_addr; in macb_eth_initialize()
1383 macb->phy_addr = ofnode_read_u32_default(phandle_args.node, in macb_eth_probe()