• Home
  • Raw
  • Download

Lines Matching refs:rv

174 	int rv;  in lm80_update_device()  local
186 rv = lm80_read_value(client, LM80_REG_IN(i)); in lm80_update_device()
187 if (rv < 0) in lm80_update_device()
189 data->in[i_input][i] = rv; in lm80_update_device()
191 rv = lm80_read_value(client, LM80_REG_IN_MIN(i)); in lm80_update_device()
192 if (rv < 0) in lm80_update_device()
194 data->in[i_min][i] = rv; in lm80_update_device()
196 rv = lm80_read_value(client, LM80_REG_IN_MAX(i)); in lm80_update_device()
197 if (rv < 0) in lm80_update_device()
199 data->in[i_max][i] = rv; in lm80_update_device()
202 rv = lm80_read_value(client, LM80_REG_FAN1); in lm80_update_device()
203 if (rv < 0) in lm80_update_device()
205 data->fan[f_input][0] = rv; in lm80_update_device()
207 rv = lm80_read_value(client, LM80_REG_FAN_MIN(1)); in lm80_update_device()
208 if (rv < 0) in lm80_update_device()
210 data->fan[f_min][0] = rv; in lm80_update_device()
212 rv = lm80_read_value(client, LM80_REG_FAN2); in lm80_update_device()
213 if (rv < 0) in lm80_update_device()
215 data->fan[f_input][1] = rv; in lm80_update_device()
217 rv = lm80_read_value(client, LM80_REG_FAN_MIN(2)); in lm80_update_device()
218 if (rv < 0) in lm80_update_device()
220 data->fan[f_min][1] = rv; in lm80_update_device()
222 prev_rv = rv = lm80_read_value(client, LM80_REG_TEMP); in lm80_update_device()
223 if (rv < 0) in lm80_update_device()
225 rv = lm80_read_value(client, LM80_REG_RES); in lm80_update_device()
226 if (rv < 0) in lm80_update_device()
228 data->temp[t_input] = (prev_rv << 8) | (rv & 0xf0); in lm80_update_device()
231 rv = lm80_read_value(client, temp_regs[i]); in lm80_update_device()
232 if (rv < 0) in lm80_update_device()
234 data->temp[i] = rv << 8; in lm80_update_device()
237 rv = lm80_read_value(client, LM80_REG_FANDIV); in lm80_update_device()
238 if (rv < 0) in lm80_update_device()
240 data->fan_div[0] = (rv >> 2) & 0x03; in lm80_update_device()
241 data->fan_div[1] = (rv >> 4) & 0x03; in lm80_update_device()
243 prev_rv = rv = lm80_read_value(client, LM80_REG_ALARM1); in lm80_update_device()
244 if (rv < 0) in lm80_update_device()
246 rv = lm80_read_value(client, LM80_REG_ALARM2); in lm80_update_device()
247 if (rv < 0) in lm80_update_device()
249 data->alarms = prev_rv + (rv << 8); in lm80_update_device()
258 ret = ERR_PTR(rv); in lm80_update_device()