Lines Matching refs:press_comp
339 s32 var1, var2, var3, press_comp; in bme680_compensate_press() local
350 press_comp = 1048576 - adc_press; in bme680_compensate_press()
351 press_comp = ((press_comp - (var2 >> 12)) * 3125); in bme680_compensate_press()
353 if (press_comp >= BME680_MAX_OVERFLOW_VAL) in bme680_compensate_press()
354 press_comp = ((press_comp / (u32)var1) << 1); in bme680_compensate_press()
356 press_comp = ((press_comp << 1) / (u32)var1); in bme680_compensate_press()
358 var1 = (calib->par_p9 * (((press_comp >> 3) * in bme680_compensate_press()
359 (press_comp >> 3)) >> 13)) >> 12; in bme680_compensate_press()
360 var2 = ((press_comp >> 2) * calib->par_p8) >> 13; in bme680_compensate_press()
361 var3 = ((press_comp >> 8) * (press_comp >> 8) * in bme680_compensate_press()
362 (press_comp >> 8) * calib->par_p10) >> 17; in bme680_compensate_press()
364 press_comp += (var1 + var2 + var3 + ((s32)calib->par_p7 << 7)) >> 4; in bme680_compensate_press()
366 return press_comp; in bme680_compensate_press()