Lines Matching refs:rval
138 int rval; in ____smiapp_read_8only() local
145 rval = ____smiapp_read(sensor, reg + i, 1, &val8); in ____smiapp_read_8only()
146 if (rval < 0) in ____smiapp_read_8only()
147 return rval; in ____smiapp_read_8only()
163 int rval; in __smiapp_read() local
170 rval = ____smiapp_read(sensor, SMIAPP_REG_ADDR(reg), len, val); in __smiapp_read()
172 rval = ____smiapp_read_8only(sensor, SMIAPP_REG_ADDR(reg), len, in __smiapp_read()
174 if (rval < 0) in __smiapp_read()
175 return rval; in __smiapp_read()
194 int rval; in smiapp_read_quirk() local
197 rval = smiapp_call_quirk(sensor, reg_access, false, ®, val); in smiapp_read_quirk()
198 if (rval == -ENOIOCTLCMD) in smiapp_read_quirk()
200 if (rval < 0) in smiapp_read_quirk()
201 return rval; in smiapp_read_quirk()
291 int rval; in smiapp_write() local
293 rval = smiapp_call_quirk(sensor, reg_access, true, ®, &val); in smiapp_write()
294 if (rval == -ENOIOCTLCMD) in smiapp_write()
296 if (rval < 0) in smiapp_write()
297 return rval; in smiapp_write()