Lines Matching refs:temp
641 int temp, rh;
652 temp = uthum_sht1x_temp(buf[0], buf[1]);
653 rh = uthum_sht1x_rh(buf[2], buf[3], temp);
656 temp += sc->sc_sensor[UTHUM_TEMPERHUM_TEMP].cal_offset;
660 (temp * 10000) + 273150000;
671 int temp;
694 temp = uthum_ds75_temp(buf[0], buf[1]);
697 temp += sc->sc_sensor[sensor].cal_offset;
699 sc->sc_sensor[sensor].sensor.value = (temp * 10000) + 273150000;
707 int64_t temp;
726 temp = uthum_ntc_temp(val, sc->sc_sensor[sensor].cur_state);
727 if (temp == 0) {
732 temp += sc->sc_sensor[sensor].cal_offset * 10000;
733 sc->sc_sensor[sensor].sensor.value = temp;
776 uthum_sht1x_rh(uint8_t msb, uint8_t lsb, int temp)
783 return ((temp - 2500) * (1 + (nticks >> 7)) + rh_l) / 10;
790 int64_t temp = 0;
798 temp = -273150000;
801 temp = ((val * val * 2977) / 100000) - (val * 4300) + 152450000;
804 temp = ((val * val * 3887) / 100000) - (val * 5300) + 197590000;
807 temp = ((val * val * 3495) / 100000) - (val * 5000) + 210590000;
811 temp = (val * -1700) + 149630000;
813 temp = ((val * val * 3257) / 100000) - (val * 4900) +
822 return temp + 273150000;