Lines Matching full:intermediate

291 	int64_t intermediate = *value;  in bmi160_emul_backend_set_channel()  local
355 intermediate >>= scale_shift - shift; in bmi160_emul_backend_set_channel()
358 intermediate <<= shift - scale_shift; in bmi160_emul_backend_set_channel()
363 intermediate -= INT64_C(23) << (31 - scale_shift); in bmi160_emul_backend_set_channel()
366 intermediate = in bmi160_emul_backend_set_channel()
367 CLAMP(DIV_ROUND_CLOSEST(intermediate * INT16_MAX, scale), INT16_MIN, INT16_MAX); in bmi160_emul_backend_set_channel()
369 cfg->reg[reg_lsb] = FIELD_GET(GENMASK64(7, 0), intermediate); in bmi160_emul_backend_set_channel()
370 cfg->reg[reg_lsb + 1] = FIELD_GET(GENMASK64(15, 8), intermediate); in bmi160_emul_backend_set_channel()
403 int64_t intermediate = ((int64_t)(2 * 9.80665 * INT32_MAX)) >> 5; in bmi160_emul_backend_get_sample_range() local
405 *upper = intermediate; in bmi160_emul_backend_get_sample_range()
407 *epsilon = intermediate * 2 / (1 << (16 - *shift)); in bmi160_emul_backend_get_sample_range()
436 int64_t intermediate = (int64_t)(125 * 3.141592654 * INT32_MAX / 180) >> 2; in bmi160_emul_backend_get_sample_range() local
438 *upper = intermediate; in bmi160_emul_backend_get_sample_range()
440 *epsilon = intermediate * 2 / (1 << (16 - *shift)); in bmi160_emul_backend_get_sample_range()
489 int64_t intermediate = values[i]; in bmi160_emul_backend_set_offset() local
493 intermediate <<= (shift - scale_shift); in bmi160_emul_backend_set_offset()
499 int64_t reg_value = intermediate / scale; in bmi160_emul_backend_set_offset()