Lines Matching refs:var1
14 int64_t var1, var2, var3; in calculate_temperature() local
16 var1 = ((int32_t)adc_temp >> 3) - ((int32_t)cal_coeffs->par_t1 << 1); in calculate_temperature()
17 var2 = (var1 * (int32_t)cal_coeffs->par_t2) >> 11; in calculate_temperature()
18 var3 = ((var1 >> 1) * (var1 >> 1)) >> 12; in calculate_temperature()
32 int32_t var1; in calculate_pressure() local
38 var1 = (((int32_t)t_fine) >> 1) - 64000; in calculate_pressure()
39 var2 = ((((var1 >> 2) * (var1 >> 2)) >> 11) * (int32_t)cal_coeffs->par_p6) >> 2; in calculate_pressure()
40 var2 = var2 + ((var1 * (int32_t)cal_coeffs->par_p5) << 1); in calculate_pressure()
42 var1 = (((((var1 >> 2) * (var1 >> 2)) >> 13) * ((int32_t)cal_coeffs->par_p3 << 5)) >> 3) + in calculate_pressure()
43 (((int32_t)cal_coeffs->par_p2 * var1) >> 1); in calculate_pressure()
44 var1 = var1 >> 18; in calculate_pressure()
45 var1 = ((32768 + var1) * (int32_t)cal_coeffs->par_p1) >> 15; in calculate_pressure()
49 pressure_comp = ((pressure_comp / var1) << 1); in calculate_pressure()
51 pressure_comp = ((pressure_comp << 1) / var1); in calculate_pressure()
54 var1 = ((int32_t)cal_coeffs->par_p9 * in calculate_pressure()
62 ((var1 + var2 + var3 + ((int32_t)cal_coeffs->par_p7 << 7)) >> 4); in calculate_pressure()
73 int32_t var1; in calculate_humidity() local
83 var1 = (int32_t)(hum_adc - ((int32_t)((int32_t)cal_coeffs->par_h1 * 16))) - in calculate_humidity()
92 var3 = var1 * var2; in calculate_humidity()