Lines Matching refs:rval
129 int rval; in phy_adin2111_c45_setup_dev_reg() local
131 rval = mdio_write(cfg->mdio, cfg->phy_addr, ADIN1100_MMD_ACCESS_CNTRL, devad); in phy_adin2111_c45_setup_dev_reg()
132 if (rval < 0) { in phy_adin2111_c45_setup_dev_reg()
133 return rval; in phy_adin2111_c45_setup_dev_reg()
135 rval = mdio_write(cfg->mdio, cfg->phy_addr, ADIN1100_MMD_ACCESS, reg); in phy_adin2111_c45_setup_dev_reg()
136 if (rval < 0) { in phy_adin2111_c45_setup_dev_reg()
137 return rval; in phy_adin2111_c45_setup_dev_reg()
147 int rval; in phy_adin2111_c45_read() local
151 rval = phy_adin2111_c45_setup_dev_reg(dev, devad, reg); in phy_adin2111_c45_read()
152 if (rval < 0) { in phy_adin2111_c45_read()
153 return rval; in phy_adin2111_c45_read()
166 int rval; in phy_adin2111_c45_write() local
170 rval = phy_adin2111_c45_setup_dev_reg(dev, devad, reg); in phy_adin2111_c45_write()
171 if (rval < 0) { in phy_adin2111_c45_write()
172 return rval; in phy_adin2111_c45_write()