Lines Matching refs:emac_instance
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
102 if (emac_instance > 1) { 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
149 if (emac_instance > 1) { 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
193 rc = alt_eth_phy_write_register(emac_instance, MII_KSZPHY_EXTREG, in alt_eth_phy_write_register_extended()
200 rc = alt_eth_phy_write_register(emac_instance, MII_KSZPHY_EXTREG_WRITE, phy_value, 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()
216 rc = alt_eth_phy_read_register(emac_instance, MII_KSZPHY_EXTREG_READ, rdval, p); in alt_eth_phy_read_register_extended()