Lines Matching refs:temp
330 lm75_temp_read(struct lm75_softc *sc, uint8_t reg, int *temp)
352 *temp = ((int16_t)buf >> 8) * 10;
363 *temp += t;
365 *temp = -(*temp);
366 *temp += TZ_ZEROC;
372 lm75_temp_write(struct lm75_softc *sc, uint8_t reg, int temp)
377 temp = (temp - TZ_ZEROC) / 10;
378 if (temp > LM75_MAX_TEMP)
379 temp = LM75_MAX_TEMP;
380 if (temp < LM75_MIN_TEMP)
381 temp = LM75_MIN_TEMP;
383 buf = (uint16_t)temp;
433 int error, temp;
441 if (lm75_temp_read(sc, reg, &temp) != 0)
444 error = sysctl_handle_int(oidp, &temp, 0, req);
448 if (lm75_temp_write(sc, reg, temp) != 0)