Lines Matching refs:phy_addr
531 static void mmd_phy_indirect(struct mii_bus *bus, int phy_addr, int devad, in mmd_phy_indirect() argument
535 __mdiobus_write(bus, phy_addr, MII_MMD_CTRL, devad); in mmd_phy_indirect()
538 __mdiobus_write(bus, phy_addr, MII_MMD_DATA, regnum); in mmd_phy_indirect()
541 __mdiobus_write(bus, phy_addr, MII_MMD_CTRL, in mmd_phy_indirect()
545 static int mmd_phy_read(struct mii_bus *bus, int phy_addr, bool is_c45, in mmd_phy_read() argument
549 return __mdiobus_c45_read(bus, phy_addr, devad, regnum); in mmd_phy_read()
551 mmd_phy_indirect(bus, phy_addr, devad, regnum); in mmd_phy_read()
553 return __mdiobus_read(bus, phy_addr, MII_MMD_DATA); in mmd_phy_read()
556 static int mmd_phy_write(struct mii_bus *bus, int phy_addr, bool is_c45, in mmd_phy_write() argument
560 return __mdiobus_c45_write(bus, phy_addr, devad, regnum, val); in mmd_phy_write()
562 mmd_phy_indirect(bus, phy_addr, devad, regnum); in mmd_phy_write()
564 return __mdiobus_write(bus, phy_addr, MII_MMD_DATA, val); in mmd_phy_write()