Lines Matching refs:raw_val
627 static inline void lsm6dsv16x_accel_convert(struct sensor_value *val, int raw_val, in lsm6dsv16x_accel_convert() argument
634 dval = (int64_t)(raw_val) * sensitivity; in lsm6dsv16x_accel_convert()
674 static inline void lsm6dsv16x_gyro_convert(struct sensor_value *val, int raw_val, in lsm6dsv16x_gyro_convert() argument
681 dval = (int64_t)(raw_val) * sensitivity / 10; in lsm6dsv16x_gyro_convert()
737 static inline void lsm6dsv16x_magn_convert(struct sensor_value *val, int raw_val, in lsm6dsv16x_magn_convert() argument
743 dval = (double)(raw_val * sensitivity); in lsm6dsv16x_magn_convert()
795 int16_t raw_val; in lsm6dsv16x_hum_convert() local
805 raw_val = (int16_t)(data->ext_data[idx][0] | in lsm6dsv16x_hum_convert()
809 rh = (ht->y1 - ht->y0) * raw_val + ht->x1 * ht->y0 - ht->x0 * ht->y1; in lsm6dsv16x_hum_convert()
820 int32_t raw_val; in lsm6dsv16x_press_convert() local
829 raw_val = (int32_t)(data->ext_data[idx][0] | in lsm6dsv16x_press_convert()
835 val->val1 = (raw_val >> 12) / 10; in lsm6dsv16x_press_convert()
836 val->val2 = (raw_val >> 12) % 10 * 100000 + in lsm6dsv16x_press_convert()
837 (((int32_t)((raw_val) & 0x0FFF) * 100000L) >> 12); in lsm6dsv16x_press_convert()
843 int16_t raw_val; in lsm6dsv16x_temp_convert() local
852 raw_val = (int16_t)(data->ext_data[idx][3] | in lsm6dsv16x_temp_convert()
856 val->val1 = raw_val / 100; in lsm6dsv16x_temp_convert()
857 val->val2 = (int32_t)raw_val % 100 * (10000); in lsm6dsv16x_temp_convert()