Home
last modified time | relevance | path

Searched refs:press_comp (Results 1 – 1 of 1) sorted by relevance

/linux-6.12.1/drivers/iio/chemical/
Dbme680_core.c339 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()
[all …]