Lines Matching refs:imdio
134 return !!(priv->imdio.priv); in enetc_has_imdio()
158 enetc_mdio_write(&priv->imdio, ENETC_PCS_PHY_ADDR, MDIO_DEVAD_NONE, in enetc_init_sgmii()
162 enetc_mdio_write(&priv->imdio, ENETC_PCS_PHY_ADDR, MDIO_DEVAD_NONE, in enetc_init_sgmii()
166 enetc_mdio_write(&priv->imdio, ENETC_PCS_PHY_ADDR, MDIO_DEVAD_NONE, in enetc_init_sgmii()
168 enetc_mdio_write(&priv->imdio, ENETC_PCS_PHY_ADDR, MDIO_DEVAD_NONE, in enetc_init_sgmii()
174 enetc_mdio_write(&priv->imdio, ENETC_PCS_PHY_ADDR, MDIO_DEVAD_NONE, in enetc_init_sgmii()
227 enetc_mdio_write(&priv->imdio, ENETC_PCS_PHY_ADDR, ENETC_PCS_DEVAD_REPL, in enetc_init_sxgmii()
231 enetc_mdio_write(&priv->imdio, ENETC_PCS_PHY_ADDR, ENETC_PCS_DEVAD_REPL, in enetc_init_sxgmii()
248 priv->imdio.read = enetc_mdio_read; in enetc_start_pcs()
249 priv->imdio.write = enetc_mdio_write; in enetc_start_pcs()
250 priv->imdio.priv = priv->port_regs + ENETC_PM_IMDIO_BASE; in enetc_start_pcs()
251 strncpy(priv->imdio.name, dev->name, MDIO_NAME_LEN); in enetc_start_pcs()
252 if (!miiphy_get_dev_by_name(priv->imdio.name)) in enetc_start_pcs()
253 mdio_register(&priv->imdio); in enetc_start_pcs()