Lines Matching refs:cal

286 	struct bmp388_cal_data *cal = &data->cal;  in bmp388_compensate_temp()  local
288 partial_data1 = ((int64_t)data->sample.raw_temp - (256 * cal->t1)); in bmp388_compensate_temp()
289 partial_data2 = cal->t2 * partial_data1; in bmp388_compensate_temp()
291 partial_data4 = (int64_t)partial_data3 * cal->t3; in bmp388_compensate_temp()
331 struct bmp388_cal_data *cal = &data->cal; in bmp388_compensate_press() local
339 partial_data4 = (cal->p8 * partial_data3) / 32; in bmp388_compensate_press()
340 partial_data5 = (cal->p7 * partial_data1) * 16; in bmp388_compensate_press()
341 partial_data6 = (cal->p6 * t_lin) * 4194304; in bmp388_compensate_press()
342 offset = (cal->p5 * 140737488355328) + partial_data4 + partial_data5 + in bmp388_compensate_press()
344 partial_data2 = (cal->p4 * partial_data3) / 32; in bmp388_compensate_press()
345 partial_data4 = (cal->p3 * partial_data1) * 4; in bmp388_compensate_press()
346 partial_data5 = (cal->p2 - 16384) * t_lin * 2097152; in bmp388_compensate_press()
347 sensitivity = ((cal->p1 - 16384) * 70368744177664) + partial_data2 + in bmp388_compensate_press()
350 partial_data2 = cal->p10 * t_lin; in bmp388_compensate_press()
351 partial_data3 = partial_data2 + (65536 * cal->p9); in bmp388_compensate_press()
359 partial_data2 = (cal->p11 * partial_data6) / 65536; in bmp388_compensate_press()
415 struct bmp388_cal_data *cal = &data->cal; in bmp388_get_calibration_data() local
417 if (bmp388_reg_read(dev, BMP388_REG_CALIB0, (uint8_t *)cal, sizeof(*cal)) < 0) { in bmp388_get_calibration_data()
421 cal->t1 = sys_le16_to_cpu(cal->t1); in bmp388_get_calibration_data()
422 cal->t2 = sys_le16_to_cpu(cal->t2); in bmp388_get_calibration_data()
423 cal->p1 = (int16_t)sys_le16_to_cpu(cal->p1); in bmp388_get_calibration_data()
424 cal->p2 = (int16_t)sys_le16_to_cpu(cal->p2); in bmp388_get_calibration_data()
425 cal->p5 = sys_le16_to_cpu(cal->p5); in bmp388_get_calibration_data()
426 cal->p6 = sys_le16_to_cpu(cal->p6); in bmp388_get_calibration_data()
427 cal->p9 = (int16_t)sys_le16_to_cpu(cal->p9); in bmp388_get_calibration_data()