Lines Matching refs:ret
68 int ret;
76 ret = phy_read(phydev, MII_BMSR);
77 if (ret < 0)
78 return ret;
79 else if (ret & NCN26000_BMSR_LINK_STATUS_BIT)
83 ret = phy_read(phydev, MII_BMSR);
84 if (ret < 0)
85 return ret;
89 if (ret & NCN26000_BMSR_LINK_STATUS_BIT) {
105 int ret;
108 ret = phy_read(phydev, NCN26000_REG_IRQ_STATUS);
111 if (ret < 0 || (ret & NCN26000_REG_IRQ_STATUS) == 0)
120 int ret;
125 ret = phy_read(phydev, NCN26000_REG_IRQ_STATUS);
126 if (ret < 0)
127 return ret;
136 ret = phy_write(phydev, NCN26000_REG_IRQ_CTL, irqe);
137 if (ret != 0)
138 return ret;