Lines Matching refs:rc
22 int rc; in bcm_cygnus_afe_config() local
25 rc = phy_write(phydev, MII_BCM54XX_AUX_CTL, 0x0c30); in bcm_cygnus_afe_config()
26 if (rc < 0) in bcm_cygnus_afe_config()
27 return rc; in bcm_cygnus_afe_config()
30 rc = bcm_phy_write_misc(phydev, 0x39, 0x01, 0xA7C8); in bcm_cygnus_afe_config()
31 if (rc < 0) in bcm_cygnus_afe_config()
32 return rc; in bcm_cygnus_afe_config()
35 rc = bcm_phy_write_misc(phydev, 0x3A, 0x00, 0x0803); in bcm_cygnus_afe_config()
36 if (rc < 0) in bcm_cygnus_afe_config()
37 return rc; in bcm_cygnus_afe_config()
40 rc = bcm_phy_write_misc(phydev, 0x3A, 0x01, 0xA740); in bcm_cygnus_afe_config()
41 if (rc < 0) in bcm_cygnus_afe_config()
42 return rc; in bcm_cygnus_afe_config()
45 rc = bcm_phy_write_misc(phydev, 0x3A, 0x03, 0x8400); in bcm_cygnus_afe_config()
46 if (rc < 0) in bcm_cygnus_afe_config()
47 return rc; in bcm_cygnus_afe_config()
50 rc = bcm_phy_write_misc(phydev, 0x3B, 0x00, 0x0004); in bcm_cygnus_afe_config()
51 if (rc < 0) in bcm_cygnus_afe_config()
52 return rc; in bcm_cygnus_afe_config()
55 rc = phy_write(phydev, MII_BRCM_CORE_BASE1E, 0x02); in bcm_cygnus_afe_config()
56 if (rc < 0) in bcm_cygnus_afe_config()
57 return rc; in bcm_cygnus_afe_config()
60 rc = bcm_phy_write_exp_sel(phydev, MII_BRCM_CORE_EXPB1, 0x10); in bcm_cygnus_afe_config()
61 if (rc < 0) in bcm_cygnus_afe_config()
62 return rc; in bcm_cygnus_afe_config()
65 rc = bcm_phy_write_exp_sel(phydev, MII_BRCM_CORE_EXPB0, 0x10); in bcm_cygnus_afe_config()
66 if (rc < 0) in bcm_cygnus_afe_config()
67 return rc; in bcm_cygnus_afe_config()
70 rc = bcm_phy_write_exp_sel(phydev, MII_BRCM_CORE_EXPB0, 0x00); in bcm_cygnus_afe_config()
77 int reg, rc; in bcm_cygnus_config_init() local
85 rc = phy_write(phydev, MII_BCM54XX_ECR, reg); in bcm_cygnus_config_init()
86 if (rc) in bcm_cygnus_config_init()
87 return rc; in bcm_cygnus_config_init()
93 rc = phy_write(phydev, MII_BCM54XX_IMR, reg); in bcm_cygnus_config_init()
94 if (rc) in bcm_cygnus_config_init()
95 return rc; in bcm_cygnus_config_init()
98 rc = bcm_cygnus_afe_config(phydev); in bcm_cygnus_config_init()
99 if (rc) in bcm_cygnus_config_init()
100 return rc; in bcm_cygnus_config_init()
103 rc = bcm_phy_set_eee(phydev, true); in bcm_cygnus_config_init()
104 if (rc) in bcm_cygnus_config_init()
105 return rc; in bcm_cygnus_config_init()
113 int rc; in bcm_cygnus_resume() local
120 rc = bcm_cygnus_config_init(phydev); in bcm_cygnus_resume()
121 if (rc) in bcm_cygnus_resume()
122 return rc; in bcm_cygnus_resume()