Lines Matching refs:raw_val
421 static inline void lsm6dso16is_accel_convert(struct sensor_value *val, int raw_val, in lsm6dso16is_accel_convert() argument
428 dval = (int64_t)(raw_val) * sensitivity; in lsm6dso16is_accel_convert()
469 static inline void lsm6dso16is_gyro_convert(struct sensor_value *val, int raw_val, in lsm6dso16is_gyro_convert() argument
476 dval = (int64_t)(raw_val) * sensitivity / 10; in lsm6dso16is_gyro_convert()
533 static inline void lsm6dso16is_magn_convert(struct sensor_value *val, int raw_val, in lsm6dso16is_magn_convert() argument
539 dval = (double)(raw_val * sensitivity); in lsm6dso16is_magn_convert()
591 int16_t raw_val; in lsm6dso16is_hum_convert() local
601 raw_val = (int16_t)(data->ext_data[idx][0] | in lsm6dso16is_hum_convert()
605 rh = (ht->y1 - ht->y0) * raw_val + ht->x1 * ht->y0 - ht->x0 * ht->y1; in lsm6dso16is_hum_convert()
616 int32_t raw_val; in lsm6dso16is_press_convert() local
625 raw_val = (int32_t)(data->ext_data[idx][0] | in lsm6dso16is_press_convert()
631 val->val1 = (raw_val >> 12) / 10; in lsm6dso16is_press_convert()
632 val->val2 = (raw_val >> 12) % 10 * 100000 + in lsm6dso16is_press_convert()
633 (((int32_t)((raw_val) & 0x0FFF) * 100000L) >> 12); in lsm6dso16is_press_convert()
639 int16_t raw_val; in lsm6dso16is_temp_convert() local
648 raw_val = (int16_t)(data->ext_data[idx][3] | in lsm6dso16is_temp_convert()
652 val->val1 = raw_val / 100; in lsm6dso16is_temp_convert()
653 val->val2 = (int32_t)raw_val % 100 * (10000); in lsm6dso16is_temp_convert()