Lines Matching full:amount

33 int __percpu_counter_init_many(struct percpu_counter *fbc, s64 amount,
55 void percpu_counter_set(struct percpu_counter *fbc, s64 amount);
56 void percpu_counter_add_batch(struct percpu_counter *fbc, s64 amount,
61 s64 amount, s32 batch);
69 static inline void percpu_counter_add(struct percpu_counter *fbc, s64 amount) in percpu_counter_add() argument
71 percpu_counter_add_batch(fbc, amount, percpu_counter_batch); in percpu_counter_add()
75 percpu_counter_limited_add(struct percpu_counter *fbc, s64 limit, s64 amount) in percpu_counter_limited_add() argument
77 return __percpu_counter_limited_add(fbc, limit, amount, in percpu_counter_limited_add()
92 percpu_counter_add_local(struct percpu_counter *fbc, s64 amount) in percpu_counter_add_local() argument
94 percpu_counter_add_batch(fbc, amount, PERCPU_COUNTER_LOCAL_BATCH); in percpu_counter_add_local()
140 s64 amount, gfp_t gfp, in percpu_counter_init_many() argument
146 fbc[i].count = amount; in percpu_counter_init_many()
151 static inline int percpu_counter_init(struct percpu_counter *fbc, s64 amount, in percpu_counter_init() argument
154 return percpu_counter_init_many(fbc, amount, gfp, 1); in percpu_counter_init()
166 static inline void percpu_counter_set(struct percpu_counter *fbc, s64 amount) in percpu_counter_set() argument
168 fbc->count = amount; in percpu_counter_set()
188 percpu_counter_add(struct percpu_counter *fbc, s64 amount) in percpu_counter_add() argument
193 fbc->count += amount; in percpu_counter_add()
198 percpu_counter_limited_add(struct percpu_counter *fbc, s64 limit, s64 amount) in percpu_counter_limited_add() argument
204 if (amount == 0) in percpu_counter_limited_add()
208 count = fbc->count + amount; in percpu_counter_limited_add()
209 if ((amount > 0 && count <= limit) || in percpu_counter_limited_add()
210 (amount < 0 && count >= limit)) { in percpu_counter_limited_add()
220 percpu_counter_add_local(struct percpu_counter *fbc, s64 amount) in percpu_counter_add_local() argument
222 percpu_counter_add(fbc, amount); in percpu_counter_add_local()
226 percpu_counter_add_batch(struct percpu_counter *fbc, s64 amount, s32 batch) in percpu_counter_add_batch() argument
228 percpu_counter_add(fbc, amount); in percpu_counter_add_batch()
275 static inline void percpu_counter_sub(struct percpu_counter *fbc, s64 amount) in percpu_counter_sub() argument
277 percpu_counter_add(fbc, -amount); in percpu_counter_sub()
281 percpu_counter_sub_local(struct percpu_counter *fbc, s64 amount) in percpu_counter_sub_local() argument
283 percpu_counter_add_local(fbc, -amount); in percpu_counter_sub_local()