Lines Matching refs:retval
57 int retval; in mdio_bus_send() local
71 retval = mdio_bus_wait(eth); in mdio_bus_send()
72 if (retval < 0) { in mdio_bus_send()
73 return retval; in mdio_bus_send()
85 int retval; in phy_read() local
87 retval = mdio_bus_send(eth, phy_addr, reg_addr, 1, 0); in phy_read()
88 if (retval < 0) { in phy_read()
89 return retval; in phy_read()
113 int retval; in phy_soft_reset() local
116 retval = phy_write(phy, MII_BMCR, MII_BMCR_RESET); in phy_soft_reset()
117 if (retval < 0) { in phy_soft_reset()
118 return retval; in phy_soft_reset()
132 retval = phy_read(phy, MII_BMCR, &phy_reg); in phy_soft_reset()
133 if (retval < 0) { in phy_soft_reset()
134 return retval; in phy_soft_reset()
198 int retval; in phy_gecko_auto_negotiate() local
205 retval = phy_read(phy, MII_ANAR, &ability_adv); in phy_gecko_auto_negotiate()
206 if (retval < 0) { in phy_gecko_auto_negotiate()
211 retval = phy_read(phy, MII_BMCR, &val); in phy_gecko_auto_negotiate()
212 if (retval < 0) { in phy_gecko_auto_negotiate()
219 retval = phy_write(phy, MII_BMCR, val); in phy_gecko_auto_negotiate()
220 if (retval < 0) { in phy_gecko_auto_negotiate()
227 retval = -ETIMEDOUT; in phy_gecko_auto_negotiate()
233 retval = phy_read(phy, MII_BMSR, &val); in phy_gecko_auto_negotiate()
234 if (retval < 0) { in phy_gecko_auto_negotiate()
242 retval = phy_read(phy, MII_ANLPAR, &ability_rcvd); in phy_gecko_auto_negotiate()
243 if (retval < 0) { in phy_gecko_auto_negotiate()
264 return retval; in phy_gecko_auto_negotiate()