Lines Matching refs:acc
22 static void inv_update_acc(struct inv_sensors_timestamp_acc *acc, uint32_t val)
27 acc->values[acc->idx++] = val;
28 if (acc->idx >= ARRAY_SIZE(acc->values))
29 acc->idx = 0;
32 for (i = 0; i < ARRAY_SIZE(acc->values); ++i) {
33 if (acc->values[i] == 0)
35 sum += acc->values[i];
38 acc->val = div_u64(sum, i);