Lines Matching refs:x1
205 long x1, x2; in bmp085_get_temperature() local
212 x1 = ((data->raw_temperature - cali->AC6) * cali->AC5) >> 15; in bmp085_get_temperature()
213 x2 = (cali->MC << 11) / (x1 + cali->MD); in bmp085_get_temperature()
214 data->b6 = x1 + x2 - 4000; in bmp085_get_temperature()
217 *temperature = (x1+x2+8) >> 4; in bmp085_get_temperature()
234 s32 x1, x2, x3, b3; in bmp085_get_pressure() local
251 x1 = (data->b6 * data->b6) >> 12; in bmp085_get_pressure()
252 x1 *= cali->B2; in bmp085_get_pressure()
253 x1 >>= 11; in bmp085_get_pressure()
258 x3 = x1 + x2; in bmp085_get_pressure()
263 x1 = (cali->AC3 * data->b6) >> 13; in bmp085_get_pressure()
265 x3 = (x1 + x2 + 2) >> 2; in bmp085_get_pressure()
272 x1 = p >> 8; in bmp085_get_pressure()
273 x1 *= x1; in bmp085_get_pressure()
274 x1 = (x1 * 3038) >> 16; in bmp085_get_pressure()
276 p += (x1 + x2 + 3791) >> 4; in bmp085_get_pressure()