Lines Matching defs:temp
239 /* init default values for temp compensation */
257 int temp, db_diff;
262 temp = mt76_get_field(dev, MT_TEMP_SENSOR, MT_TEMP_SENSOR_VAL);
263 temp -= t.temp_25_ref;
264 temp = (temp * 1789) / 1000 + 25;
265 dev->cal.temp = temp;
267 if (temp > 25)
268 db_diff = (temp - 25) / t.high_slope;
270 db_diff = (25 - temp) / t.low_slope;