Lines Matching refs:temp
54 /* CPU A/B sensors, temp and adc: AD7417. */
438 unit = "temp";
466 ad7417_get_temp(device_t dev, uint32_t addr, int *temp)
482 *temp = (((int16_t)(read & 0xffc0)) >> 6) * 25 / 10;
520 int temp;
542 temp = (rawval*diode_slope + diode_offset) >> 2;
543 temp = (10*(temp >> 16)) + ((10*(temp & 0xffff)) >> 16);
545 return (temp + ZERO_C_TO_K);
553 int temp;
578 if (ad7417_get_adc(sc->sc_dev, sc->sc_addr, &temp, chan) < 0)
581 return (temp);
589 int temp;
599 if (ad7417_get_temp(sc->sc_dev, sc->sc_addr, &temp) < 0)
601 temp += ZERO_C_TO_K;
603 temp = ad7417_adc_read(sens);
605 return (temp);