Home | History | Annotate | Download | only in onewire

Lines Matching refs:temp

94 static bool	owtemp_update(struct owtemp_softc *sc, uint32_t *temp);
212 owtemp_update(struct owtemp_softc *sc, uint32_t *temp)
249 *temp = sc->sc_owtemp_decode(data);
278 int temp;
284 temp = (int8_t)buf[1];
285 temp = (temp << 8) | buf[0];
290 return (temp * 62500 + 273150000);
296 int temp;
302 temp = (int8_t)buf[1];
303 temp = (temp << 8) | buf[0];
312 * T = TEMP - 0.25 + (COUNT_PER_C - COUNT_REMAIN) / COUNT_PER_C
314 temp &= ~1;
315 temp += 500000 * temp + (500000 * (buf[7] - buf[6])) / buf[7] - 250000;
317 temp *= 500000;
321 return (temp + 273150000);