Searched refs:micro_ms2 (Results 1 – 9 of 9) sorted by relevance
42 int64_t micro_ms2; in iis3dhhc_convert() local45 micro_ms2 = ((iis3dhhc_from_lsb_to_mg(raw_val) * SENSOR_G) / 1000LL); in iis3dhhc_convert()46 val->val1 = micro_ms2 / 1000000LL; in iis3dhhc_convert()47 val->val2 = micro_ms2 % 1000000LL; in iis3dhhc_convert()
53 int64_t micro_ms2 = sensor_value_to_micro(val); in accel_sensor_value_to_q31() local54 int64_t micro_g = micro_ms2 * 1000000LL / SENSOR_G; in accel_sensor_value_to_q31()64 int64_t micro_ms2 = micro_g * SENSOR_G / 1000000LL; in accel_q31_to_sensor_value() local66 sensor_value_from_micro(val, micro_ms2); in accel_q31_to_sensor_value()
225 uint64_t micro_ms2 = abs(val->val1 * 1000000LL + val->val2); in fxos8700_set_mt_ths() local226 uint64_t ths = micro_ms2 / FXOS8700_FF_MT_THS_SCALE; in fxos8700_set_mt_ths()327 int64_t micro_ms2; in fxos8700_accel_convert() local340 micro_ms2 = (raw * SENSOR_G) >> frac_bits; in fxos8700_accel_convert()346 val->val1 = (int32_t) micro_ms2 / 1000000; in fxos8700_accel_convert()347 val->val2 = (int32_t) micro_ms2 % 1000000; in fxos8700_accel_convert()
1187 int64_t micro_ms2 = ms2->val1 * 1000000LL + ms2->val2; in sensor_ms2_to_g() local1189 if (micro_ms2 > 0) { in sensor_ms2_to_g()1190 return (micro_ms2 + SENSOR_G / 2) / SENSOR_G; in sensor_ms2_to_g()1192 return (micro_ms2 - SENSOR_G / 2) / SENSOR_G; in sensor_ms2_to_g()1218 int64_t micro_ms2 = (ms2->val1 * INT64_C(1000000)) + ms2->val2; in sensor_ms2_to_ug() local1220 return (micro_ms2 * 1000000LL) / SENSOR_G; in sensor_ms2_to_ug()
593 int64_t micro_ms2 = val->val1 * 1000000LL + val->val2; in adxl372_attr_set_thresh() local596 llvalue = llabs((micro_ms2 * 10) / SENSOR_G); in adxl372_attr_set_thresh()661 int32_t micro_ms2 = value * (SENSOR_G / (16 * 1000 / 100)); in adxl372_accel_convert() local663 val->val1 = micro_ms2 / 1000000; in adxl372_accel_convert()664 val->val2 = micro_ms2 % 1000000; in adxl372_accel_convert()
286 int64_t micro_ms2; in fxls8974_accel_convert() local289 micro_ms2 = (raw * SENSOR_G) >> fsr; in fxls8974_accel_convert()295 val->val1 = (int32_t) micro_ms2 / 1000000; in fxls8974_accel_convert()296 val->val2 = (int32_t) micro_ms2 % 1000000; in fxls8974_accel_convert()
795 int64_t micro_ms2 = val->val1 * 1000000LL + val->val2; in adxl367_attr_set_thresh() local797 llvalue = llabs((micro_ms2 * 10) / SENSOR_G); in adxl367_attr_set_thresh()893 int64_t micro_ms2 = value * (SENSOR_G * 250 / 1000 * in adxl367_accel_convert() local896 val->val1 = micro_ms2 / 1000000; in adxl367_accel_convert()897 val->val2 = micro_ms2 % 1000000; in adxl367_accel_convert()
177 int64_t micro_ms2 = (val->val1 * INT64_C(1000000)) + val->val2; in iis328dq_set_threshold() local181 int16_t val_raw = (micro_ms2 * 1000LL) / SENSOR_G / mg_per_digit; in iis328dq_set_threshold()
604 long micro_ms2 = accel * SENSOR_G / scale; in adxl362_accel_convert() local608 val->val1 = micro_ms2 / 1000000; in adxl362_accel_convert()609 val->val2 = micro_ms2 % 1000000; in adxl362_accel_convert()