Lines Matching refs:temp
3014 if ((sc->temp = (int)WPI_READ(sc, WPI_TEMPERATURE)) != 0)
3024 DPRINTFN(WPI_DEBUG_TEMP,("temperature %d\n", sc->temp));
3137 if ((sc->temp = (int)WPI_READ(sc, WPI_TEMPERATURE)) != 0)
3147 DPRINTFN(WPI_DEBUG_TEMP,("temperature %d\n", sc->temp));
3235 int temp;
3241 temp = (int)WPI_READ(sc, WPI_TEMPERATURE);
3242 DPRINTFN(WPI_DEBUG_TEMP,("Temp in calibration is: %d\n", temp));
3244 wpi_power_calibration(sc, temp);
3254 wpi_power_calibration(struct wpi_softc *sc, int temp)
3261 if (temp < -260 || temp > 25) {
3264 ("out-of-range temperature reported: %d\n", temp));
3268 DPRINTFN(WPI_DEBUG_TEMP,("temperature %d->%d\n", sc->temp, temp));
3271 if (abs(temp - sc->temp) <= 6)
3274 sc->temp = temp;
3377 group->temp = (int16_t)le16toh(rgroup.temp);
3379 DPRINTF(("power group %d: chan=%d maxpwr=%d temp=%d\n", n,
3380 group->chan, group->maxpwr, group->temp));
3499 idx -= (sc->temp - group->temp) * 11 / 100;