Lines Matching refs:shift

89 				int shift;  in reg_write()  local
94 shift = BMI160_PMU_STATUS_ACC_POS; in reg_write()
97 shift = BMI160_PMU_STATUS_GYR_POS; in reg_write()
101 shift = BMI160_PMU_STATUS_MAG_POS; in reg_write()
104 data->pmu_status &= 3 << shift; in reg_write()
105 data->pmu_status |= pmu_val << shift; in reg_write()
288 const q31_t *value, int8_t shift) in bmi160_emul_backend_set_channel() argument
353 if (shift < scale_shift) { in bmi160_emul_backend_set_channel()
355 intermediate >>= scale_shift - shift; in bmi160_emul_backend_set_channel()
356 } else if (shift > 0 && shift > scale_shift) { in bmi160_emul_backend_set_channel()
358 intermediate <<= shift - scale_shift; in bmi160_emul_backend_set_channel()
376 q31_t *upper, q31_t *epsilon, int8_t *shift) in bmi160_emul_backend_get_sample_range() argument
389 *shift = 5; in bmi160_emul_backend_get_sample_range()
392 *shift = 6; in bmi160_emul_backend_get_sample_range()
395 *shift = 7; in bmi160_emul_backend_get_sample_range()
398 *shift = 8; in bmi160_emul_backend_get_sample_range()
407 *epsilon = intermediate * 2 / (1 << (16 - *shift)); in bmi160_emul_backend_get_sample_range()
418 *shift = 2; in bmi160_emul_backend_get_sample_range()
421 *shift = 3; in bmi160_emul_backend_get_sample_range()
424 *shift = 4; in bmi160_emul_backend_get_sample_range()
427 *shift = 5; in bmi160_emul_backend_get_sample_range()
430 *shift = 6; in bmi160_emul_backend_get_sample_range()
440 *epsilon = intermediate * 2 / (1 << (16 - *shift)); in bmi160_emul_backend_get_sample_range()
449 const q31_t *values, int8_t shift) in bmi160_emul_backend_set_offset() argument
491 if (shift > scale_shift) { in bmi160_emul_backend_set_offset()
493 intermediate <<= (shift - scale_shift); in bmi160_emul_backend_set_offset()
494 } else if (shift < scale_shift) { in bmi160_emul_backend_set_offset()
496 scale >>= (scale_shift - shift); in bmi160_emul_backend_set_offset()
526 attribute_value->shift); in bmi160_emul_backend_set_attribute()
534 q31_t *max, q31_t *increment, int8_t *shift) in bmi160_emul_backend_get_attribute_metadata() argument
551 *shift = 3; in bmi160_emul_backend_get_attribute_metadata()
568 *shift = 0; in bmi160_emul_backend_get_attribute_metadata()