Lines Matching refs:percpu_ref
59 struct percpu_ref;
60 typedef void (percpu_ref_func_t)(struct percpu_ref *);
102 struct percpu_ref *ref;
105 struct percpu_ref { struct
121 int __must_check percpu_ref_init(struct percpu_ref *ref,
124 void percpu_ref_exit(struct percpu_ref *ref);
125 void percpu_ref_switch_to_atomic(struct percpu_ref *ref,
127 void percpu_ref_switch_to_atomic_sync(struct percpu_ref *ref);
128 void percpu_ref_switch_to_percpu(struct percpu_ref *ref);
129 void percpu_ref_kill_and_confirm(struct percpu_ref *ref,
131 void percpu_ref_resurrect(struct percpu_ref *ref);
132 void percpu_ref_reinit(struct percpu_ref *ref);
133 bool percpu_ref_is_zero(struct percpu_ref *ref);
147 static inline void percpu_ref_kill(struct percpu_ref *ref) in percpu_ref_kill()
158 static inline bool __ref_is_percpu(struct percpu_ref *ref, in __ref_is_percpu()
198 static inline void percpu_ref_get_many(struct percpu_ref *ref, unsigned long nr) in percpu_ref_get_many()
220 static inline void percpu_ref_get(struct percpu_ref *ref) in percpu_ref_get()
235 static inline bool percpu_ref_tryget_many(struct percpu_ref *ref, in percpu_ref_tryget_many()
264 static inline bool percpu_ref_tryget(struct percpu_ref *ref) in percpu_ref_tryget()
284 static inline bool percpu_ref_tryget_live(struct percpu_ref *ref) in percpu_ref_tryget_live()
313 static inline void percpu_ref_put_many(struct percpu_ref *ref, unsigned long nr) in percpu_ref_put_many()
336 static inline void percpu_ref_put(struct percpu_ref *ref) in percpu_ref_put()
350 static inline bool percpu_ref_is_dying(struct percpu_ref *ref) in percpu_ref_is_dying()