Lines Matching refs:rc
29 int rc = phy_write (phydev, MII_LAN83C185_IM, in smsc_phy_config_intr() local
34 return rc < 0 ? rc : 0; in smsc_phy_config_intr()
39 int rc = phy_read (phydev, MII_LAN83C185_ISF); in smsc_phy_ack_interrupt() local
41 return rc < 0 ? rc : 0; in smsc_phy_ack_interrupt()
49 int rc = phy_read(phydev, MII_LAN83C185_CTRL_STATUS); in smsc_phy_config_init() local
52 if (rc < 0) in smsc_phy_config_init()
53 return rc; in smsc_phy_config_init()
60 rc = phy_write(phydev, MII_LAN83C185_CTRL_STATUS, in smsc_phy_config_init()
61 rc | MII_LAN83C185_EDPWRDOWN); in smsc_phy_config_init()
62 if (rc < 0) in smsc_phy_config_init()
63 return rc; in smsc_phy_config_init()
71 int rc = phy_read(phydev, MII_LAN83C185_SPECIAL_MODES); in smsc_phy_reset() local
72 if (rc < 0) in smsc_phy_reset()
73 return rc; in smsc_phy_reset()
78 if ((rc & MII_LAN83C185_MODE_MASK) == MII_LAN83C185_MODE_POWERDOWN) { in smsc_phy_reset()
82 rc |= MII_LAN83C185_MODE_ALL; in smsc_phy_reset()
83 phy_write(phydev, MII_LAN83C185_SPECIAL_MODES, rc); in smsc_phy_reset()
91 rc = phy_read(phydev, MII_BMCR); in smsc_phy_reset()
92 } while (rc & BMCR_RESET); in smsc_phy_reset()
118 int rc = phy_read(phydev, MII_LAN83C185_CTRL_STATUS); in lan87xx_read_status() local
119 if (rc < 0) in lan87xx_read_status()
120 return rc; in lan87xx_read_status()
122 rc = phy_write(phydev, MII_LAN83C185_CTRL_STATUS, in lan87xx_read_status()
123 rc & ~MII_LAN83C185_EDPWRDOWN); in lan87xx_read_status()
124 if (rc < 0) in lan87xx_read_status()
125 return rc; in lan87xx_read_status()
131 rc = phy_read(phydev, MII_LAN83C185_CTRL_STATUS); in lan87xx_read_status()
132 if (rc < 0) in lan87xx_read_status()
133 return rc; in lan87xx_read_status()
134 if (rc & MII_LAN83C185_ENERGYON) in lan87xx_read_status()
139 rc = phy_read(phydev, MII_LAN83C185_CTRL_STATUS); in lan87xx_read_status()
140 if (rc < 0) in lan87xx_read_status()
141 return rc; in lan87xx_read_status()
143 rc = phy_write(phydev, MII_LAN83C185_CTRL_STATUS, in lan87xx_read_status()
144 rc | MII_LAN83C185_EDPWRDOWN); in lan87xx_read_status()
145 if (rc < 0) in lan87xx_read_status()
146 return rc; in lan87xx_read_status()