Lines Matching refs:pcsphy
352 struct phy_device *pcsphy; member
515 if (WARN_ON(!memac->pcsphy)) in setup_sgmii_internal_phy()
539 phy_write(memac->pcsphy, MDIO_SGMII_IF_MODE, tmp_reg16); in setup_sgmii_internal_phy()
543 phy_write(memac->pcsphy, MDIO_SGMII_DEV_ABIL_SGMII, tmp_reg16); in setup_sgmii_internal_phy()
557 phy_write(memac->pcsphy, MDIO_SGMII_LINK_TMR_H, LINK_TMR_H); in setup_sgmii_internal_phy()
558 phy_write(memac->pcsphy, MDIO_SGMII_LINK_TMR_L, LINK_TMR_L); in setup_sgmii_internal_phy()
566 phy_write(memac->pcsphy, 0x0, tmp_reg16); in setup_sgmii_internal_phy()
575 phy_write(memac->pcsphy, MDIO_SGMII_DEV_ABIL_SGMII, tmp_reg16); in setup_sgmii_internal_phy_base_x()
589 phy_write(memac->pcsphy, MDIO_SGMII_LINK_TMR_H, LINK_TMR_H_BASEX); in setup_sgmii_internal_phy_base_x()
590 phy_write(memac->pcsphy, MDIO_SGMII_LINK_TMR_L, LINK_TMR_L_BASEX); in setup_sgmii_internal_phy_base_x()
594 phy_write(memac->pcsphy, 0x0, tmp_reg16); in setup_sgmii_internal_phy_base_x()
1097 phy_addr = memac->pcsphy->mdio.addr; in memac_init()
1099 memac->pcsphy->mdio.addr = qsmgii_phy_addr; in memac_init()
1105 memac->pcsphy->mdio.addr = phy_addr; in memac_init()
1147 if (memac->pcsphy) in memac_free()
1148 put_device(&memac->pcsphy->mdio.dev); in memac_free()
1205 memac->pcsphy = of_phy_find_device(params->internal_phy_node); in memac_config()
1206 if (!memac->pcsphy) { in memac_config()