Lines Matching refs:var1
69 int64_t var1, var2, var3; in bme680_calc_temp() local
71 var1 = ((int32_t)adc_temp >> 3) - ((int32_t)data->par_t1 << 1); in bme680_calc_temp()
72 var2 = (var1 * (int32_t)data->par_t2) >> 11; in bme680_calc_temp()
73 var3 = ((var1 >> 1) * (var1 >> 1)) >> 12; in bme680_calc_temp()
81 int32_t var1, var2, var3, calc_press; in bme680_calc_press() local
83 var1 = (((int32_t)data->t_fine) >> 1) - 64000; in bme680_calc_press()
84 var2 = ((((var1 >> 2) * (var1 >> 2)) >> 11) * in bme680_calc_press()
86 var2 = var2 + ((var1 * (int32_t)data->par_p5) << 1); in bme680_calc_press()
88 var1 = (((((var1 >> 2) * (var1 >> 2)) >> 13) * in bme680_calc_press()
90 + (((int32_t)data->par_p2 * var1) >> 1); in bme680_calc_press()
91 var1 = var1 >> 18; in bme680_calc_press()
92 var1 = ((32768 + var1) * (int32_t)data->par_p1) >> 15; in bme680_calc_press()
101 calc_press = ((calc_press / var1) << 1); in bme680_calc_press()
103 calc_press = ((calc_press << 1) / var1); in bme680_calc_press()
105 var1 = ((int32_t)data->par_p9 * in bme680_calc_press()
114 + ((var1 + var2 + var3 in bme680_calc_press()
120 int32_t var1, var2_1, var2_2, var2, var3, var4, var5, var6; in bme680_calc_humidity() local
124 var1 = (int32_t)(adc_humidity - ((int32_t)((int32_t)data->par_h1 * 16))) - in bme680_calc_humidity()
133 var3 = var1 * var2; in bme680_calc_humidity()
153 int64_t var1, var3; in bme680_calc_gas_resistance() local
167 var1 = (int64_t)((1340 + (5 * (int64_t)data->range_sw_err)) * in bme680_calc_gas_resistance()
169 var2 = (((int64_t)((int64_t)adc_gas_res << 15) - (int64_t)(16777216)) + var1); in bme680_calc_gas_resistance()
170 var3 = (((int64_t)look_up2[gas_range] * (int64_t)var1) >> 9); in bme680_calc_gas_resistance()
178 int32_t var1, var2, var3, var4, var5; in bme680_calc_res_heat() local
186 var1 = ((amb_temp * data->par_gh3) / 1000) * 256; in bme680_calc_res_heat()
190 var3 = var1 + (var2 / 2); in bme680_calc_res_heat()