Home
last modified time | relevance | path

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

/Linux-v6.1/drivers/iio/pressure/
Dbmp280-core.c450 s32 adc_press) in bmp280_compensate_press() argument
466 p = ((((s64)1048576 - adc_press) << 31) - var2) * 3125; in bmp280_compensate_press()
512 s32 adc_press; in bmp280_read_press() local
527 adc_press = FIELD_GET(BMP280_MEAS_TRIM_MASK, get_unaligned_be24(data->buf)); in bmp280_read_press()
528 if (adc_press == BMP280_PRESS_SKIPPED) { in bmp280_read_press()
533 comp_press = bmp280_compensate_press(data, adc_press); in bmp280_read_press()
1058 static u32 bmp380_compensate_press(struct bmp280_data *data, u32 adc_press) in bmp380_compensate_press() argument
1077 var1 = (sensitivity >> 24) * (s64)adc_press; in bmp380_compensate_press()
1080 var4 = (var3 * (s64)adc_press) >> 13; in bmp380_compensate_press()
1086 var5 = ((s64)adc_press * div_s64(var4, 10)) >> 9; in bmp380_compensate_press()
[all …]
/Linux-v6.1/drivers/iio/chemical/
Dbme680_core.c363 u32 adc_press) in bme680_compensate_press() argument
377 press_comp = 1048576 - adc_press; in bme680_compensate_press()
659 s32 adc_press; in bme680_read_press() local
673 adc_press = be32_to_cpu(tmp) >> 12; in bme680_read_press()
674 if (adc_press == BME680_MEAS_SKIPPED) { in bme680_read_press()
680 *val = bme680_compensate_press(data, adc_press); in bme680_read_press()