Lines Matching refs:phy_reg
111 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()
279 phy_linked = (phy_reg & MII_BMSR_LINK_STATUS); in phy_gecko_is_linked()