Lines Matching defs:count
70 fbc->count = amount;
89 s64 count;
93 count = __this_cpu_read(*fbc->counters) + amount;
94 if (abs(count) >= batch) {
96 fbc->count += count;
97 __this_cpu_sub(*fbc->counters, count - amount);
107 * For percpu_counter with a big batch, the devication of its count could
115 s64 count;
118 count = __this_cpu_read(*fbc->counters);
119 fbc->count += count;
120 __this_cpu_sub(*fbc->counters, count);
132 * notifier called to fold the percpu count back into the global counter sum.
144 ret = fbc->count;
177 fbc[i].count = amount;
245 fbc->count += *pcount;
260 s64 count;
262 count = percpu_counter_read(fbc);
263 /* Check to see if rough count will be sufficient for comparison */
264 if (abs(count - rhs) > (batch * num_online_cpus())) {
265 if (count > rhs)
270 /* Need to use precise count */
271 count = percpu_counter_sum(fbc);
272 if (count > rhs)
274 else if (count < rhs)