Lines Matching defs:sample
375 * @sample: the capacity in mAh to add to the filter
380 static int ab8500_fg_add_cap_sample(struct ab8500_fg *di, int sample)
386 avg->sum += sample - avg->samples[avg->pos];
387 avg->samples[avg->pos] = sample;
398 * Check the time stamp for each sample. If too old,
399 * replace with latest sample
433 * @sample: the capacity in mAh to fill the filter with
437 static void ab8500_fg_fill_cap_sample(struct ab8500_fg *di, int sample)
446 avg->samples[i] = sample;
452 avg->sum = sample * NBR_AVG_SAMPLES;
453 avg->avg = sample;