Lines Matching full:mii
13 #include <linux/mii.h>
27 #define SXGBE_MII_BUSY 0x00400000 /* mii busy */
49 writel(reg, sp->ioaddr + sp->hw->mii.data); in sxgbe_mdio_ctrl_data()
60 writel(reg, sp->ioaddr + sp->hw->mii.addr); in sxgbe_mdio_c45()
74 writel(reg, sp->ioaddr + sp->hw->mii.addr); in sxgbe_mdio_c22()
82 const struct mii_regs *mii = &sp->hw->mii; in sxgbe_mdio_access() local
85 rc = sxgbe_mdio_busy_wait(sp->ioaddr, mii->data); in sxgbe_mdio_access()
99 return sxgbe_mdio_busy_wait(sp->ioaddr, mii->data); in sxgbe_mdio_access()
119 return readl(priv->ioaddr + priv->hw->mii.data) & 0xffff; in sxgbe_mdio_read()
153 netdev_err(ndev, "%s: mii bus allocation failed\n", __func__); in sxgbe_mdio_register()
162 /* assign mii bus fields */ in sxgbe_mdio_register()
226 priv->mii = mdio_bus; in sxgbe_mdio_register()
242 if (!priv->mii) in sxgbe_mdio_unregister()
245 mdiobus_unregister(priv->mii); in sxgbe_mdio_unregister()
246 priv->mii->priv = NULL; in sxgbe_mdio_unregister()
247 mdiobus_free(priv->mii); in sxgbe_mdio_unregister()
248 priv->mii = NULL; in sxgbe_mdio_unregister()