Lines Matching refs:raw_val
472 static inline void lsm6dsl_accel_convert(struct sensor_value *val, int raw_val, in lsm6dsl_accel_convert() argument
479 dval = (int64_t)raw_val * sensitivity; in lsm6dsl_accel_convert()
520 static inline void lsm6dsl_gyro_convert(struct sensor_value *val, int raw_val, in lsm6dsl_gyro_convert() argument
527 dval = (int64_t)raw_val * sensitivity / 10; in lsm6dsl_gyro_convert()
577 static inline void lsm6dsl_magn_convert(struct sensor_value *val, int raw_val, in lsm6dsl_magn_convert() argument
583 dval = (double)(raw_val * sensitivity); in lsm6dsl_magn_convert()
636 int32_t raw_val) in lps22hb_press_convert() argument
640 val->val1 = (raw_val >> 12) / 10; in lps22hb_press_convert()
641 val->val2 = (raw_val >> 12) % 10 * 100000 + in lps22hb_press_convert()
642 (((int32_t)((raw_val) & 0x0FFF) * 100000L) >> 12); in lps22hb_press_convert()
646 int16_t raw_val) in lps22hb_temp_convert() argument
649 val->val1 = raw_val / 100; in lps22hb_temp_convert()
650 val->val2 = (int32_t)raw_val % 100 * (10000); in lps22hb_temp_convert()