Lines Matching refs:rval
101 int rval;
103 rval = cci_read(sensor->regmap, reg, &__val, NULL);
104 if (rval < 0)
105 return rval;
166 int rval;
169 rval = ccs_static_data_read_ro_reg(sensor, reg, val);
170 if (!rval)
176 rval = ccs_call_quirk(sensor, reg_access, false, ®, val);
177 if (rval == -ENOIOCTLCMD)
179 if (rval < 0)
180 return rval;
214 int rval;
216 rval = ccs_call_quirk(sensor, reg_access, true, ®, &val);
217 if (rval == -ENOIOCTLCMD)
219 if (rval < 0)
220 return rval;
222 rval = 0;
224 if (cci_write(sensor->regmap, reg, val, &rval))
226 } while (rval && --retries);
228 return rval;
248 int rval;
258 rval = regmap_bulk_write(sensor->regmap,
261 if (rval)
263 } while (rval && --retries);
265 if (rval) {
269 return rval;