Lines Matching refs:regnum
131 static int xgmac_mdio_write(struct mii_bus *bus, int phy_id, int regnum, u16 value) in xgmac_mdio_write() argument
141 if (regnum & MII_ADDR_C45) { in xgmac_mdio_write()
143 dev_addr = (regnum >> 16) & 0x1f; in xgmac_mdio_write()
147 dev_addr = regnum & 0x1f; in xgmac_mdio_write()
162 if (regnum & MII_ADDR_C45) { in xgmac_mdio_write()
163 xgmac_write32(regnum & 0xffff, ®s->mdio_addr, endian); in xgmac_mdio_write()
185 static int xgmac_mdio_read(struct mii_bus *bus, int phy_id, int regnum) in xgmac_mdio_read() argument
197 if (regnum & MII_ADDR_C45) { in xgmac_mdio_read()
198 dev_addr = (regnum >> 16) & 0x1f; in xgmac_mdio_read()
201 dev_addr = regnum & 0x1f; in xgmac_mdio_read()
216 if (regnum & MII_ADDR_C45) { in xgmac_mdio_read()
217 xgmac_write32(regnum & 0xffff, ®s->mdio_addr, endian); in xgmac_mdio_read()
236 phy_id, dev_addr, regnum); in xgmac_mdio_read()