Lines Matching refs:var1
70 int32_t var1, var2; in bme280_compensate_temp() local
72 var1 = (((adc_temp >> 3) - ((int32_t)data->dig_t1 << 1)) * in bme280_compensate_temp()
78 data->t_fine = var1 + var2; in bme280_compensate_temp()
84 int64_t var1, var2, p; in bme280_compensate_press() local
86 var1 = ((int64_t)data->t_fine) - 128000; in bme280_compensate_press()
87 var2 = var1 * var1 * (int64_t)data->dig_p6; in bme280_compensate_press()
88 var2 = var2 + ((var1 * (int64_t)data->dig_p5) << 17); in bme280_compensate_press()
90 var1 = ((var1 * var1 * (int64_t)data->dig_p3) >> 8) + in bme280_compensate_press()
91 ((var1 * (int64_t)data->dig_p2) << 12); in bme280_compensate_press()
92 var1 = (((((int64_t)1) << 47) + var1)) * ((int64_t)data->dig_p1) >> 33; in bme280_compensate_press()
95 if (var1 == 0) { in bme280_compensate_press()
100 p = (((p << 31) - var2) * 3125) / var1; in bme280_compensate_press()
101 var1 = (((int64_t)data->dig_p9) * (p >> 13) * (p >> 13)) >> 25; in bme280_compensate_press()
103 p = ((p + var1 + var2) >> 8) + (((int64_t)data->dig_p7) << 4); in bme280_compensate_press()