Home
last modified time | relevance | path

Searched refs:phy_reg (Results 1 – 2 of 2) sorted by relevance

/Zephyr-Core-3.7.0/drivers/ethernet/
Dphy_gecko.c111 uint32_t phy_reg; in phy_soft_reset() local
132 retval = phy_read(phy, MII_BMCR, &phy_reg); in phy_soft_reset()
136 } while (phy_reg & MII_BMCR_RESET); in phy_soft_reset()
168 uint32_t phy_reg; in phy_gecko_id_get() local
173 if (phy_read(phy, MII_PHYID1R, &phy_reg) < 0) { in phy_gecko_id_get()
177 phy_id = (phy_reg & 0xFFFF) << 16; in phy_gecko_id_get()
179 if (phy_read(phy, MII_PHYID2R, &phy_reg) < 0) { in phy_gecko_id_get()
183 phy_id |= (phy_reg & 0xFFFF); in phy_gecko_id_get()
270 uint32_t phy_reg; in phy_gecko_is_linked() local
275 if (phy_read(phy, MII_BMSR, &phy_reg) < 0) { in phy_gecko_is_linked()
[all …]
Dphy_cyclonev.c82 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()
[all …]