Lines Matching refs:phy_reg
82 int alt_eth_phy_write_register(uint16_t emac_instance, uint16_t phy_reg,
84 int alt_eth_phy_read_register(uint16_t emac_instance, uint16_t phy_reg,
86 int alt_eth_phy_write_register_extended(uint16_t emac_instance, uint16_t phy_reg,
88 int alt_eth_phy_read_register_extended(uint16_t emac_instance, uint16_t phy_reg,
95 int alt_eth_phy_write_register(uint16_t emac_instance, uint16_t phy_reg, in alt_eth_phy_write_register() argument
113 tmpreg |= EMAC_GMAC_GMII_ADDR_GR_SET(phy_reg); in alt_eth_phy_write_register()
142 int alt_eth_phy_read_register(uint16_t emac_instance, uint16_t phy_reg, uint16_t *rdval, in alt_eth_phy_read_register() argument
160 tmpreg |= EMAC_GMAC_GMII_ADDR_GR_SET(phy_reg); in alt_eth_phy_read_register()
188 int alt_eth_phy_write_register_extended(uint16_t emac_instance, uint16_t phy_reg, in alt_eth_phy_write_register_extended() argument
194 KSZPHY_EXTREG_WRITE | phy_reg, p); in alt_eth_phy_write_register_extended()
204 int alt_eth_phy_read_register_extended(uint16_t emac_instance, uint16_t phy_reg, uint16_t *rdval, in alt_eth_phy_read_register_extended() argument
209 rc = alt_eth_phy_write_register(emac_instance, MII_KSZPHY_EXTREG, phy_reg, p); in alt_eth_phy_read_register_extended()