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()
46 int rc = phy_read(phydev, MII_LAN83C185_CTRL_STATUS); in smsc_phy_config_init() local
48 if (rc < 0) in smsc_phy_config_init()
49 return rc; in smsc_phy_config_init()
52 rc = phy_write(phydev, MII_LAN83C185_CTRL_STATUS, in smsc_phy_config_init()
53 rc | MII_LAN83C185_EDPWRDOWN); in smsc_phy_config_init()
54 if (rc < 0) in smsc_phy_config_init()
55 return rc; in smsc_phy_config_init()
62 int rc = phy_read(phydev, MII_LAN83C185_SPECIAL_MODES); in smsc_phy_reset() local
63 if (rc < 0) in smsc_phy_reset()
64 return rc; in smsc_phy_reset()
69 if ((rc & MII_LAN83C185_MODE_MASK) == MII_LAN83C185_MODE_POWERDOWN) { in smsc_phy_reset()
73 rc |= MII_LAN83C185_MODE_ALL; in smsc_phy_reset()
74 phy_write(phydev, MII_LAN83C185_SPECIAL_MODES, rc); in smsc_phy_reset()
82 rc = phy_read(phydev, MII_BMCR); in smsc_phy_reset()
83 } while (rc & BMCR_RESET); in smsc_phy_reset()
110 int rc = phy_read(phydev, MII_LAN83C185_CTRL_STATUS); in lan87xx_read_status() local
111 if (rc < 0) in lan87xx_read_status()
112 return rc; in lan87xx_read_status()
114 rc = phy_write(phydev, MII_LAN83C185_CTRL_STATUS, in lan87xx_read_status()
115 rc & ~MII_LAN83C185_EDPWRDOWN); in lan87xx_read_status()
116 if (rc < 0) in lan87xx_read_status()
117 return rc; in lan87xx_read_status()
123 rc = phy_read(phydev, MII_LAN83C185_CTRL_STATUS); in lan87xx_read_status()
124 if (rc < 0) in lan87xx_read_status()
125 return rc; in lan87xx_read_status()
127 rc = phy_write(phydev, MII_LAN83C185_CTRL_STATUS, in lan87xx_read_status()
128 rc | MII_LAN83C185_EDPWRDOWN); in lan87xx_read_status()
129 if (rc < 0) in lan87xx_read_status()
130 return rc; in lan87xx_read_status()