Lines Matching refs:phyreg
53 int phyreg, u16 phydata) in sxgbe_mdio_c45() argument
58 reg = ((phyreg >> 16) & 0x1f) << 21; in sxgbe_mdio_c45()
59 reg |= (phyaddr << 16) | (phyreg & 0xffff); in sxgbe_mdio_c45()
66 int phyreg, u16 phydata) in sxgbe_mdio_c22() argument
73 reg = (phyaddr << 16) | (phyreg & 0x1f); in sxgbe_mdio_c22()
80 int phyreg, u16 phydata) in sxgbe_mdio_access() argument
89 if (phyreg & MII_ADDR_C45) { in sxgbe_mdio_access()
90 sxgbe_mdio_c45(sp, cmd, phyaddr, phyreg, phydata); in sxgbe_mdio_access()
96 sxgbe_mdio_c22(sp, cmd, phyaddr, phyreg, phydata); in sxgbe_mdio_access()
109 static int sxgbe_mdio_read(struct mii_bus *bus, int phyaddr, int phyreg) in sxgbe_mdio_read() argument
115 rc = sxgbe_mdio_access(priv, SXGBE_SMA_READ_CMD, phyaddr, phyreg, 0); in sxgbe_mdio_read()
130 static int sxgbe_mdio_write(struct mii_bus *bus, int phyaddr, int phyreg, in sxgbe_mdio_write() argument
136 return sxgbe_mdio_access(priv, SXGBE_SMA_WRITE_CMD, phyaddr, phyreg, in sxgbe_mdio_write()