Searched refs:refcount (Results 1 – 14 of 14) sorted by relevance
50 struct refcount { struct55 bool refcount_inc(struct refcount *r);57 bool refcount_dec(struct refcount *r);59 static inline void refcount_set(struct refcount *r, unsigned int val) in refcount_set()64 static inline unsigned int refcount_val(struct refcount *r) in refcount_val()
24 struct refcount lock_depth;
62 if (!regulator->refcount) { in regulator_refcnt_enable()80 regulator->refcount++; in regulator_refcnt_enable()81 if (!regulator->refcount) in regulator_refcnt_enable()84 FMSG("%s refcount: %u", regulator_name(regulator), regulator->refcount); in regulator_refcnt_enable()108 if (regulator->refcount == 1) { in regulator_refcnt_disable()119 if (!regulator->refcount) { in regulator_refcnt_disable()124 regulator->refcount--; in regulator_refcnt_disable()126 FMSG("%s refcount: %u", regulator_name(regulator), regulator->refcount); in regulator_refcnt_disable()321 if (!regulator->refcount) { in regulator_core_cleanup()448 regulator->refcount, regulator->flags, in print_regulator()
10 bool refcount_inc(struct refcount *r) in refcount_inc()31 bool refcount_dec(struct refcount *r) in refcount_dec()
24 srcs-y += refcount.c
25 struct refcount refc;
30 struct refcount refc;
43 struct refcount enabled_count;
113 unsigned int refcount; member
37 struct refcount refc;
38 struct refcount mapcount;
64 struct refcount refc;
180 struct refcount refc;
91 struct refcount mapcount;