Lines Matching refs:val1
53 int32_t val1; member
1187 int64_t micro_ms2 = ms2->val1 * 1000000LL + ms2->val2; in sensor_ms2_to_g()
1204 ms2->val1 = ((int64_t)g * SENSOR_G) / 1000000LL; in sensor_g_to_ms2()
1218 int64_t micro_ms2 = (ms2->val1 * INT64_C(1000000)) + ms2->val2; in sensor_ms2_to_ug()
1231 ms2->val1 = ((int64_t)ug * SENSOR_G / 1000000LL) / 1000000LL; in sensor_ug_to_ms2()
1244 int64_t micro_rad_s = rad->val1 * 1000000LL + rad->val2; in sensor_rad_to_degrees()
1261 rad->val1 = ((int64_t)d * SENSOR_PI / 180LL) / 1000000LL; in sensor_degrees_to_rad()
1278 int64_t micro_rad_s = rad->val1 * 1000000LL + rad->val2; in sensor_rad_to_10udegrees()
1291 rad->val1 = ((int64_t)d * SENSOR_PI / 180LL / 100000LL) / 1000000LL; in sensor_10udegrees_to_rad()
1303 return (double)val->val1 + (double)val->val2 / 1000000; in sensor_value_to_double()
1314 return (float)val->val1 + (float)val->val2 / 1000000; in sensor_value_to_float()
1336 val->val1 = (int32_t)inp; in sensor_value_from_double()
1357 val->val1 = (int32_t)inp; in sensor_value_from_float()
1457 return ((int64_t)val->val1 * 1000) + val->val2 / 1000; in sensor_value_to_milli()
1468 return ((int64_t)val->val1 * 1000000) + val->val2; in sensor_value_to_micro()
1485 val->val1 = (int32_t)(milli / 1000); in sensor_value_from_milli()
1505 val->val1 = (int32_t)(micro / 1000000LL); in sensor_value_from_micro()