Lines Matching refs:mii_write
156 int (*mii_write)(struct mtk_eth_priv *priv, u8 phy, u8 reg, u16 val); member
305 ret = priv->mii_write(priv, addr, MII_MMD_ACC_CTL_REG, in mtk_mmd_ind_read()
311 ret = priv->mii_write(priv, addr, MII_MMD_ADDR_DATA_REG, reg); in mtk_mmd_ind_read()
315 ret = priv->mii_write(priv, addr, MII_MMD_ACC_CTL_REG, in mtk_mmd_ind_read()
330 ret = priv->mii_write(priv, addr, MII_MMD_ACC_CTL_REG, in mtk_mmd_ind_write()
336 ret = priv->mii_write(priv, addr, MII_MMD_ADDR_DATA_REG, reg); in mtk_mmd_ind_write()
340 ret = priv->mii_write(priv, addr, MII_MMD_ACC_CTL_REG, in mtk_mmd_ind_write()
346 return priv->mii_write(priv, addr, MII_MMD_ADDR_DATA_REG, val); in mtk_mmd_ind_write()
365 return priv->mii_write(priv, addr, reg, val); in mtk_mdio_write()
383 priv->mii_write = mtk_mii_write; in mtk_mdio_register()
389 priv->mii_write = mtk_mii_write; in mtk_mdio_register()
579 priv->mii_write(priv, phy_addr, MII_BMCR, phy_val); in mt7530_setup()
630 priv->mii_write(priv, phy_addr, MII_BMCR, phy_val); in mt7530_setup()