Searched refs:adc_press (Results 1 – 2 of 2) sorted by relevance
450 s32 adc_press) in bmp280_compensate_press() argument466 p = ((((s64)1048576 - adc_press) << 31) - var2) * 3125; in bmp280_compensate_press()512 s32 adc_press; in bmp280_read_press() local527 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() argument1077 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 …]
363 u32 adc_press) in bme680_compensate_press() argument377 press_comp = 1048576 - adc_press; in bme680_compensate_press()659 s32 adc_press; in bme680_read_press() local673 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()