Lines Matching refs:shift

128 					     int8_t *shift)  in icm42688_emul_get_accel_settings()  argument
171 if (shift) { in icm42688_emul_get_accel_settings()
172 *shift = shift_out; in icm42688_emul_get_accel_settings()
181 q31_t *epsilon, int8_t *shift) in icm42688_emul_get_accel_ranges() argument
186 icm42688_emul_get_accel_settings(target, &fs_g, &sensitivity, shift); in icm42688_emul_get_accel_ranges()
189 *epsilon = (3 * SENSOR_G * Q31_SCALE / sensitivity / 1000000LL / 2) >> *shift; in icm42688_emul_get_accel_ranges()
190 *upper = (fs_g * SENSOR_G * Q31_SCALE / 1000000LL) >> *shift; in icm42688_emul_get_accel_ranges()
199 int *sensitivity, int8_t *shift) in icm42688_emul_get_gyro_settings() argument
262 if (shift) { in icm42688_emul_get_gyro_settings()
263 *shift = shift_out; in icm42688_emul_get_gyro_settings()
272 q31_t *epsilon, int8_t *shift) in icm42688_emul_get_gyro_ranges() argument
279 icm42688_emul_get_gyro_settings(target, &fs_mdps, &sensitivity, shift); in icm42688_emul_get_gyro_ranges()
293 *shift; in icm42688_emul_get_gyro_ranges()
294 *upper = (((fs_mdps * SENSOR_PI / 1000000LL) * Q31_SCALE) / 1000LL / 180LL) >> *shift; in icm42688_emul_get_gyro_ranges()
300 q31_t *upper, q31_t *epsilon, int8_t *shift) in icm42688_emul_backend_get_sample_range() argument
302 if (!lower || !upper || !epsilon || !shift) { in icm42688_emul_backend_get_sample_range()
309 *shift = 9; in icm42688_emul_backend_get_sample_range()
310 *lower = (int64_t)(-222.342995169 * Q31_SCALE) >> *shift; in icm42688_emul_backend_get_sample_range()
311 *upper = (int64_t)(272.33544686 * Q31_SCALE) >> *shift; in icm42688_emul_backend_get_sample_range()
312 *epsilon = (int64_t)(0.0076 * Q31_SCALE) >> *shift; in icm42688_emul_backend_get_sample_range()
317 icm42688_emul_get_accel_ranges(target, lower, upper, epsilon, shift); in icm42688_emul_backend_get_sample_range()
322 icm42688_emul_get_gyro_ranges(target, lower, upper, epsilon, shift); in icm42688_emul_backend_get_sample_range()
332 const q31_t *value, int8_t shift) in icm42688_emul_backend_set_channel() argument
344 shift < 0 ? ((int64_t)*value >> -shift) : ((int64_t)*value << shift); in icm42688_emul_backend_set_channel()