Lines Matching refs:res_counter
24 struct res_counter { struct
53 struct res_counter *parent; argument
71 u64 res_counter_read_u64(struct res_counter *counter, int member);
73 ssize_t res_counter_read(struct res_counter *counter, int member,
82 int res_counter_write(struct res_counter *counter, int member,
101 void res_counter_init(struct res_counter *counter, struct res_counter *parent);
118 int __must_check res_counter_charge_locked(struct res_counter *counter,
120 int __must_check res_counter_charge(struct res_counter *counter,
121 unsigned long val, struct res_counter **limit_fail_at);
122 int __must_check res_counter_charge_nofail(struct res_counter *counter,
123 unsigned long val, struct res_counter **limit_fail_at);
135 void res_counter_uncharge_locked(struct res_counter *counter, unsigned long val);
136 void res_counter_uncharge(struct res_counter *counter, unsigned long val);
145 static inline unsigned long long res_counter_margin(struct res_counter *cnt) in res_counter_margin()
167 res_counter_soft_limit_excess(struct res_counter *cnt) in res_counter_soft_limit_excess()
181 static inline void res_counter_reset_max(struct res_counter *cnt) in res_counter_reset_max()
190 static inline void res_counter_reset_failcnt(struct res_counter *cnt) in res_counter_reset_failcnt()
199 static inline int res_counter_set_limit(struct res_counter *cnt, in res_counter_set_limit()
215 res_counter_set_soft_limit(struct res_counter *cnt, in res_counter_set_soft_limit()