Lines Matching refs:adc_temp
287 s32 adc_temp) in bmp280_compensate_temp() argument
292 var1 = (((adc_temp >> 3) - ((s32)calib->T1 << 1)) * in bmp280_compensate_temp()
294 var2 = (((((adc_temp >> 4) - ((s32)calib->T1)) * in bmp280_compensate_temp()
295 ((adc_temp >> 4) - ((s32)calib->T1))) >> 12) * in bmp280_compensate_temp()
340 s32 adc_temp, comp_temp; in bmp280_read_temp() local
348 adc_temp = be32_to_cpu(tmp) >> 12; in bmp280_read_temp()
349 if (adc_temp == BMP280_TEMP_SKIPPED) { in bmp280_read_temp()
354 comp_temp = bmp280_compensate_temp(data, adc_temp); in bmp280_read_temp()
794 static s32 bmp180_compensate_temp(struct bmp280_data *data, s32 adc_temp) in bmp180_compensate_temp() argument
799 x1 = ((adc_temp - calib->AC6) * calib->AC5) >> 15; in bmp180_compensate_temp()
809 s32 adc_temp, comp_temp; in bmp180_read_temp() local
811 ret = bmp180_read_adc_temp(data, &adc_temp); in bmp180_read_temp()
815 comp_temp = bmp180_compensate_temp(data, adc_temp); in bmp180_read_temp()