Lines Matching refs:imdio

114 	struct mii_dev imdio;  member
136 static void felix_init_sgmii(struct mii_dev *imdio, int pidx, bool an) in felix_init_sgmii() argument
152 felix_mdio_write(imdio, pidx, MDIO_DEVAD_NONE, in felix_init_sgmii()
156 felix_mdio_write(imdio, pidx, MDIO_DEVAD_NONE, in felix_init_sgmii()
160 felix_mdio_write(imdio, pidx, MDIO_DEVAD_NONE, in felix_init_sgmii()
162 felix_mdio_write(imdio, pidx, MDIO_DEVAD_NONE, in felix_init_sgmii()
168 felix_mdio_write(imdio, pidx, MDIO_DEVAD_NONE, in felix_init_sgmii()
173 static int felix_init_sxgmii(struct mii_dev *imdio, int pidx) in felix_init_sxgmii() argument
181 felix_mdio_write(imdio, pidx, MDIO_MMD_PCS, FELIX_PCS_CTRL, in felix_init_sxgmii()
183 while (felix_mdio_read(imdio, pidx, MDIO_MMD_PCS, in felix_init_sxgmii()
188 if (felix_mdio_read(imdio, pidx, MDIO_MMD_PCS, in felix_init_sxgmii()
193 felix_mdio_write(imdio, pidx, ENETC_PCS_DEVAD_REPL, in felix_init_sxgmii()
197 felix_mdio_write(imdio, pidx, ENETC_PCS_DEVAD_REPL, ENETC_PCS_CR, in felix_init_sxgmii()
199 felix_mdio_write(imdio, pidx, ENETC_PCS_DEVAD_REPL, in felix_init_sxgmii()
202 felix_mdio_write(imdio, pidx, ENETC_PCS_DEVAD_REPL, in felix_init_sxgmii()
211 struct phy_device *phy, struct mii_dev *imdio) in felix_start_pcs() argument
223 felix_init_sgmii(imdio, port, autoneg); in felix_start_pcs()
228 if (felix_init_sxgmii(imdio, port)) in felix_start_pcs()
258 priv->imdio.read = felix_mdio_read; in felix_init()
259 priv->imdio.write = felix_mdio_write; in felix_init()
260 priv->imdio.priv = priv->imdio_base + FELIX_PM_IMDIO_BASE; in felix_init()
261 strncpy(priv->imdio.name, dev->name, MDIO_NAME_LEN); in felix_init()
342 felix_start_pcs(dev, port, phy, &priv->imdio); in felix_port_enable()