Lines Matching refs:devad
78 core_read_mmd_indirect(struct mt7530_priv *priv, int prtad, int devad) in core_read_mmd_indirect() argument
84 ret = bus->write(bus, 0, MII_MMD_CTRL, devad); in core_read_mmd_indirect()
94 ret = bus->write(bus, 0, MII_MMD_CTRL, (devad | MII_MMD_CTRL_NOINCR)); in core_read_mmd_indirect()
110 int devad, u32 data) in core_write_mmd_indirect() argument
116 ret = bus->write(bus, 0, MII_MMD_CTRL, devad); in core_write_mmd_indirect()
126 ret = bus->write(bus, 0, MII_MMD_CTRL, (devad | MII_MMD_CTRL_NOINCR)); in core_write_mmd_indirect()
617 mt7531_ind_c45_phy_read(struct mt7530_priv *priv, int port, int devad, in mt7531_ind_c45_phy_read() argument
637 MT7531_MDIO_DEV_ADDR(devad) | regnum; in mt7531_ind_c45_phy_read()
648 MT7531_MDIO_DEV_ADDR(devad); in mt7531_ind_c45_phy_read()
666 mt7531_ind_c45_phy_write(struct mt7530_priv *priv, int port, int devad, in mt7531_ind_c45_phy_write() argument
686 MT7531_MDIO_DEV_ADDR(devad) | regnum; in mt7531_ind_c45_phy_write()
697 MT7531_MDIO_DEV_ADDR(devad) | data; in mt7531_ind_c45_phy_write()
792 int devad; in mt7531_ind_phy_read() local
796 devad = (regnum >> MII_DEVADDR_C45_SHIFT) & 0x1f; in mt7531_ind_phy_read()
797 ret = mt7531_ind_c45_phy_read(priv, port, devad, in mt7531_ind_phy_read()
810 int devad; in mt7531_ind_phy_write() local
814 devad = (regnum >> MII_DEVADDR_C45_SHIFT) & 0x1f; in mt7531_ind_phy_write()
815 ret = mt7531_ind_c45_phy_write(priv, port, devad, in mt7531_ind_phy_write()