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_c22() local
85 rc = sxgbe_mdio_busy_wait(sp->ioaddr, mii->data); in sxgbe_mdio_access_c22()
95 return sxgbe_mdio_busy_wait(sp->ioaddr, mii->data); in sxgbe_mdio_access_c22()
102 const struct mii_regs *mii = &sp->hw->mii; in sxgbe_mdio_access_c45() local
105 rc = sxgbe_mdio_busy_wait(sp->ioaddr, mii->data); in sxgbe_mdio_access_c45()
111 return sxgbe_mdio_busy_wait(sp->ioaddr, mii->data); in sxgbe_mdio_access_c45()
132 return readl(priv->ioaddr + priv->hw->mii.data) & 0xffff; in sxgbe_mdio_read_c22()
155 return readl(priv->ioaddr + priv->hw->mii.data) & 0xffff; in sxgbe_mdio_read_c45()
208 netdev_err(ndev, "%s: mii bus allocation failed\n", __func__); in sxgbe_mdio_register()
217 /* assign mii bus fields */ in sxgbe_mdio_register()
283 priv->mii = mdio_bus; in sxgbe_mdio_register()
299 if (!priv->mii) in sxgbe_mdio_unregister()
302 mdiobus_unregister(priv->mii); in sxgbe_mdio_unregister()
303 priv->mii->priv = NULL; in sxgbe_mdio_unregister()
304 mdiobus_free(priv->mii); in sxgbe_mdio_unregister()
305 priv->mii = NULL; in sxgbe_mdio_unregister()