Searched refs:micro_ms2 (Results 1 – 7 of 7) sorted by relevance
43 int64_t micro_ms2; in iis3dhhc_convert() local46 micro_ms2 = ((iis3dhhc_from_lsb_to_mg(raw_val) * SENSOR_G) / 1000LL); in iis3dhhc_convert()47 val->val1 = micro_ms2 / 1000000LL; in iis3dhhc_convert()48 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()
1072 int64_t micro_ms2 = ms2->val1 * 1000000LL + ms2->val2; in sensor_ms2_to_g() local1074 if (micro_ms2 > 0) { in sensor_ms2_to_g()1075 return (micro_ms2 + SENSOR_G / 2) / SENSOR_G; in sensor_ms2_to_g()1077 return (micro_ms2 - SENSOR_G / 2) / SENSOR_G; in sensor_ms2_to_g()1103 int64_t micro_ms2 = (ms2->val1 * INT64_C(1000000)) + ms2->val2; in sensor_ms2_to_ug() local1105 return (micro_ms2 * 1000000LL) / SENSOR_G; in sensor_ms2_to_ug()
542 int64_t micro_ms2 = val->val1 * 1000000LL + val->val2; in adxl372_attr_set_thresh() local545 llvalue = llabs((micro_ms2 * 10) / SENSOR_G); in adxl372_attr_set_thresh()610 int32_t micro_ms2 = value * (SENSOR_G / (16 * 1000 / 100)); in adxl372_accel_convert() local612 val->val1 = micro_ms2 / 1000000; in adxl372_accel_convert()613 val->val2 = micro_ms2 % 1000000; in adxl372_accel_convert()
731 int64_t micro_ms2 = val->val1 * 1000000LL + val->val2; in adxl367_attr_set_thresh() local733 llvalue = llabs((micro_ms2 * 10) / SENSOR_G); in adxl367_attr_set_thresh()827 int64_t micro_ms2 = value * (SENSOR_G * 250 / 10000 * in adxl367_accel_convert() local830 val->val1 = micro_ms2 / 1000000; in adxl367_accel_convert()831 val->val2 = micro_ms2 % 1000000; in adxl367_accel_convert()
553 long micro_ms2 = accel * SENSOR_G / scale; in adxl362_accel_convert() local557 val->val1 = micro_ms2 / 1000000; in adxl362_accel_convert()558 val->val2 = micro_ms2 % 1000000; in adxl362_accel_convert()