Searched refs:press_comp (Results 1 – 1 of 1) sorted by relevance
366 s32 var1, var2, var3, press_comp; in bme680_compensate_press() local377 press_comp = 1048576 - adc_press; in bme680_compensate_press()378 press_comp = ((press_comp - (var2 >> 12)) * 3125); in bme680_compensate_press()380 if (press_comp >= BME680_MAX_OVERFLOW_VAL) in bme680_compensate_press()381 press_comp = ((press_comp / (u32)var1) << 1); in bme680_compensate_press()383 press_comp = ((press_comp << 1) / (u32)var1); in bme680_compensate_press()385 var1 = (calib->par_p9 * (((press_comp >> 3) * in bme680_compensate_press()386 (press_comp >> 3)) >> 13)) >> 12; in bme680_compensate_press()387 var2 = ((press_comp >> 2) * calib->par_p8) >> 13; in bme680_compensate_press()388 var3 = ((press_comp >> 8) * (press_comp >> 8) * in bme680_compensate_press()[all …]