Lines Matching full:whole
83 int32_t whole; in icm42688_convert_raw_to_q31() local
99 icm42688_accel_ms(cfg, reading, &whole, &fraction); in icm42688_convert_raw_to_q31()
105 icm42688_gyro_rads(cfg, reading, &whole, &fraction); in icm42688_convert_raw_to_q31()
108 icm42688_temp_c(reading, &whole, &fraction); in icm42688_convert_raw_to_q31()
113 intermediate = ((int64_t)whole * INT64_C(1000000) + fraction); in icm42688_convert_raw_to_q31()
207 int32_t whole; in icm42688_read_temperature_from_packet() local
214 icm42688_temp_c(temperature, &whole, &fraction); in icm42688_read_temperature_from_packet()
226 whole = temperature100 / sensitivity; in icm42688_read_temperature_from_packet()
228 ((temperature100 - whole * sensitivity) * INT64_C(1000000)) / sensitivity; in icm42688_read_temperature_from_packet()
230 __ASSERT_NO_MSG(whole >= -512 && whole <= 511); in icm42688_read_temperature_from_packet()
231 return FIELD_PREP(GENMASK(31, 22), whole) | (fraction * GENMASK64(21, 0) / 1000000); in icm42688_read_temperature_from_packet()