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()
128 * @amount: Amount to charge.
130 * Charge @amount to the misc cgroup. Caller must use the same cgroup during
140 int misc_cg_try_charge(enum misc_res_type type, struct misc_cg *cg, u64 amount) in misc_cg_try_charge() argument
150 if (!amount) in misc_cg_try_charge()
156 new_usage = atomic64_add_return(amount, &res->usage); in misc_cg_try_charge()
172 misc_cg_cancel_charge(type, j, amount); in misc_cg_try_charge()
173 misc_cg_cancel_charge(type, i, amount); in misc_cg_try_charge()
182 * @amount: Charged amount.
186 void misc_cg_uncharge(enum misc_res_type type, struct misc_cg *cg, u64 amount) in misc_cg_uncharge() argument
190 if (!(amount && valid_type(type) && cg)) in misc_cg_uncharge()
194 misc_cg_cancel_charge(type, i, amount); in misc_cg_uncharge()