Lines Matching refs:devad

515 static void mmd_phy_indirect(struct mii_bus *bus, int phy_addr, int devad,  in mmd_phy_indirect()  argument
519 __mdiobus_write(bus, phy_addr, MII_MMD_CTRL, devad); in mmd_phy_indirect()
526 devad | MII_MMD_CTRL_NOINCR); in mmd_phy_indirect()
538 int __phy_read_mmd(struct phy_device *phydev, int devad, u32 regnum) in __phy_read_mmd() argument
542 if (regnum > (u16)~0 || devad > 32) in __phy_read_mmd()
546 val = phydev->drv->read_mmd(phydev, devad, regnum); in __phy_read_mmd()
549 devad, regnum); in __phy_read_mmd()
554 mmd_phy_indirect(bus, phy_addr, devad, regnum); in __phy_read_mmd()
572 int phy_read_mmd(struct phy_device *phydev, int devad, u32 regnum) in phy_read_mmd() argument
577 ret = __phy_read_mmd(phydev, devad, regnum); in phy_read_mmd()
594 int __phy_write_mmd(struct phy_device *phydev, int devad, u32 regnum, u16 val) in __phy_write_mmd() argument
598 if (regnum > (u16)~0 || devad > 32) in __phy_write_mmd()
602 ret = phydev->drv->write_mmd(phydev, devad, regnum, val); in __phy_write_mmd()
605 devad, regnum, val); in __phy_write_mmd()
610 mmd_phy_indirect(bus, phy_addr, devad, regnum); in __phy_write_mmd()
631 int phy_write_mmd(struct phy_device *phydev, int devad, u32 regnum, u16 val) in phy_write_mmd() argument
636 ret = __phy_write_mmd(phydev, devad, regnum, val); in phy_write_mmd()
725 int __phy_modify_mmd_changed(struct phy_device *phydev, int devad, u32 regnum, in __phy_modify_mmd_changed() argument
730 ret = __phy_read_mmd(phydev, devad, regnum); in __phy_modify_mmd_changed()
738 ret = __phy_write_mmd(phydev, devad, regnum, new); in __phy_modify_mmd_changed()
758 int phy_modify_mmd_changed(struct phy_device *phydev, int devad, u32 regnum, in phy_modify_mmd_changed() argument
764 ret = __phy_modify_mmd_changed(phydev, devad, regnum, mask, set); in phy_modify_mmd_changed()
783 int __phy_modify_mmd(struct phy_device *phydev, int devad, u32 regnum, in __phy_modify_mmd() argument
788 ret = __phy_modify_mmd_changed(phydev, devad, regnum, mask, set); in __phy_modify_mmd()
806 int phy_modify_mmd(struct phy_device *phydev, int devad, u32 regnum, in phy_modify_mmd() argument
812 ret = __phy_modify_mmd(phydev, devad, regnum, mask, set); in phy_modify_mmd()