Lines Matching refs:ref
17 static void overflow_check(refcount_t *ref) in overflow_check() argument
19 switch (refcount_read(ref)) { in overflow_check()
27 pr_err("Fail: refcount wrapped to %d\n", refcount_read(ref)); in overflow_check()
92 static void check_zero(refcount_t *ref) in check_zero() argument
94 switch (refcount_read(ref)) { in check_zero()
105 pr_err("Fail: refcount went crazy: %d\n", refcount_read(ref)); in check_zero()
127 static void check_negative(refcount_t *ref, int start) in check_negative() argument
134 if (refcount_read(ref) == start) { in check_negative()
140 switch (refcount_read(ref)) { in check_negative()
148 pr_err("Fail: refcount went crazy: %d\n", refcount_read(ref)); in check_negative()
193 static void check_from_zero(refcount_t *ref) in check_from_zero() argument
195 switch (refcount_read(ref)) { in check_from_zero()
207 refcount_read(ref)); in check_from_zero()
261 static void check_saturated(refcount_t *ref) in check_saturated() argument
263 switch (refcount_read(ref)) { in check_saturated()
271 pr_err("Fail: refcount went crazy: %d\n", refcount_read(ref)); in check_saturated()