Lines Matching refs:refcount_read
11 switch (refcount_read(ref)) { in overflow_check()
19 pr_err("Fail: refcount wrapped to %d\n", refcount_read(ref)); in overflow_check()
86 switch (refcount_read(ref)) { in check_zero()
97 pr_err("Fail: refcount went crazy: %d\n", refcount_read(ref)); in check_zero()
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()
187 switch (refcount_read(ref)) { in check_from_zero()
199 refcount_read(ref)); in check_from_zero()
213 if (refcount_read(&zero) == 0) in lkdtm_REFCOUNT_INC_ZERO()
238 if (refcount_read(&zero) == 0) in lkdtm_REFCOUNT_ADD_ZERO()
254 switch (refcount_read(ref)) { in check_saturated()
262 pr_err("Fail: refcount went crazy: %d\n", refcount_read(ref)); in check_saturated()