Lines Matching defs:sample
378 * @sample: the capacity in mAh to add to the filter
383 static int ab8500_fg_add_cap_sample(struct ab8500_fg *di, int sample)
389 avg->sum += sample - avg->samples[avg->pos];
390 avg->samples[avg->pos] = sample;
401 * Check the time stamp for each sample. If too old,
402 * replace with latest sample
436 * @sample: the capacity in mAh to fill the filter with
440 static void ab8500_fg_fill_cap_sample(struct ab8500_fg *di, int sample)
449 avg->samples[i] = sample;
455 avg->sum = sample * NBR_AVG_SAMPLES;
456 avg->avg = sample;