Lines Matching refs:ref
9 static void overflow_check(refcount_t *ref) in overflow_check() argument
11 switch (refcount_read(ref)) { in overflow_check()
19 pr_err("Fail: refcount wrapped to %d\n", refcount_read(ref)); in overflow_check()
84 static void check_zero(refcount_t *ref) in check_zero() argument
86 switch (refcount_read(ref)) { in check_zero()
97 pr_err("Fail: refcount went crazy: %d\n", refcount_read(ref)); in check_zero()
119 static void check_negative(refcount_t *ref, int start) in check_negative() argument
126 if (refcount_read(ref) == start) { in check_negative()
132 switch (refcount_read(ref)) { in check_negative()
140 pr_err("Fail: refcount went crazy: %d\n", refcount_read(ref)); in check_negative()
200 static void check_from_zero(refcount_t *ref) in check_from_zero() argument
202 switch (refcount_read(ref)) { in check_from_zero()
214 refcount_read(ref)); in check_from_zero()
267 static void check_saturated(refcount_t *ref) in check_saturated() argument
269 switch (refcount_read(ref)) { in check_saturated()
277 pr_err("Fail: refcount went crazy: %d\n", refcount_read(ref)); in check_saturated()