Lines Matching refs:temp

2271 			printf("chain %d, sample %d: temp=%d gain=%d "
2273 chans[0].samples[c][j].temp,
2282 printf("chain %d, sample %d: temp=%d gain=%d "
2284 chans[1].samples[c][j].temp,
2343 DPRINTF(sc, IWN_DEBUG_CALIBRATE, "temp=%d volt=%d offset=%dK\n",
3391 int temp;
3424 if (lstats->general.temp != sc->rawtemp) {
3426 sc->rawtemp = stats->general.temp;
3427 temp = ops->get_temperature(sc);
3429 __func__, temp);
3433 iwn4965_power_calibration(sc, temp);
5441 int32_t temp;
5448 temp = (IWN_CTOK(110) - sc->temp_off) * -5;
5450 temp = IWN_CTOK(110);
5452 temp = 110;
5454 crit.tempR = htole32(temp);
5455 DPRINTF(sc, IWN_DEBUG_RESET, "setting critical temp to %d\n", temp);
5484 iwn4965_power_calibration(struct iwn_softc *sc, int temp)
5492 __func__, sc->temp, temp);
5493 if (abs(temp - sc->temp) >= 3) {
5495 sc->temp = temp;
5581 uint8_t power, gain, temp;
5590 temp = interpolate(chan,
5591 chans[0].num, chans[0].samples[c][1].temp,
5592 chans[1].num, chans[1].samples[c][1].temp, 1);
5594 "%s: Tx chain %d: power=%d gain=%d temp=%d\n",
5595 __func__, c, power, gain, temp);
5598 tdiff = ((sc->temp - temp) * 2) / tdiv[grp];
5601 __func__, tdiff, sc->temp, temp);
5762 int32_t r1, r2, r3, r4, temp;
5766 r1 = le32toh(uc->temp[0].chan20MHz);
5767 r2 = le32toh(uc->temp[1].chan20MHz);
5768 r3 = le32toh(uc->temp[2].chan20MHz);
5777 temp = (259 * (r4 - r2)) / (r3 - r1);
5778 temp = (temp * 97) / 100 + 8;
5780 DPRINTF(sc, IWN_DEBUG_ANY, "temperature %dK/%dC\n", temp,
5781 IWN_KTOC(temp));
5782 return IWN_KTOC(temp);
5788 int32_t temp;
5796 temp = le32toh(sc->rawtemp);
5798 temp = (temp / -5) + sc->temp_off;
5799 temp = IWN_KTOC(temp);
5801 return temp;
7944 sc->rawtemp = sc->ucode_info.temp[3].chan20MHz;
7945 sc->temp = iwn4965_get_temperature(sc);