Lines Matching refs:phy_adr
62 static int __mvgbe_mdio_read(struct mvgbe_device *dmvgbe, int phy_adr, in __mvgbe_mdio_read() argument
71 if (phy_adr == MV_PHY_ADR_REQUEST && in __mvgbe_mdio_read()
78 if (phy_adr > PHYADR_MASK) { in __mvgbe_mdio_read()
80 __func__, phy_adr); in __mvgbe_mdio_read()
94 smi_reg = (phy_adr << MVGBE_PHY_SMI_DEV_ADDR_OFFS) in __mvgbe_mdio_read()
120 debug("%s:(adr %d, off %d) value= %04x\n", __func__, phy_adr, reg_ofs, in __mvgbe_mdio_read()
131 static int smi_reg_read(struct mii_dev *bus, int phy_adr, int devad, in smi_reg_read() argument
141 return __mvgbe_mdio_read(dmvgbe, phy_adr, devad, reg_ofs); in smi_reg_read()
144 static int __mvgbe_mdio_write(struct mvgbe_device *dmvgbe, int phy_adr, in __mvgbe_mdio_write() argument
151 if (phy_adr == MV_PHY_ADR_REQUEST && in __mvgbe_mdio_write()
158 if (phy_adr > PHYADR_MASK) { in __mvgbe_mdio_write()
173 smi_reg |= (phy_adr << MVGBE_PHY_SMI_DEV_ADDR_OFFS) in __mvgbe_mdio_write()
188 static int smi_reg_write(struct mii_dev *bus, int phy_adr, int devad, in smi_reg_write() argument
198 return __mvgbe_mdio_write(dmvgbe, phy_adr, devad, reg_ofs, data); in smi_reg_write()