Lines Matching full:amount
112 * @amount: Amount to cancel.
117 u64 amount) in misc_cg_cancel_charge() argument
119 WARN_ONCE(atomic64_add_negative(-amount, &cg->res[type].usage), in misc_cg_cancel_charge()
152 * @amount: Amount to charge.
154 * Charge @amount to the misc cgroup. Caller must use the same cgroup during
164 int misc_cg_try_charge(enum misc_res_type type, struct misc_cg *cg, u64 amount) in misc_cg_try_charge() argument
174 if (!amount) in misc_cg_try_charge()
180 new_usage = atomic64_add_return(amount, &res->usage); in misc_cg_try_charge()
194 misc_cg_cancel_charge(type, j, amount); in misc_cg_try_charge()
195 misc_cg_cancel_charge(type, i, amount); in misc_cg_try_charge()
204 * @amount: Charged amount.
208 void misc_cg_uncharge(enum misc_res_type type, struct misc_cg *cg, u64 amount) in misc_cg_uncharge() argument
212 if (!(amount && valid_type(type) && cg)) in misc_cg_uncharge()
216 misc_cg_cancel_charge(type, i, amount); in misc_cg_uncharge()