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()
202 switch (refcount_read(ref)) { in check_from_zero()
214 refcount_read(ref)); in check_from_zero()
228 if (refcount_read(&zero) == 0) in lkdtm_REFCOUNT_INC_ZERO()
253 if (refcount_read(&zero) == 0) in lkdtm_REFCOUNT_ADD_ZERO()
269 switch (refcount_read(ref)) { in check_saturated()
277 pr_err("Fail: refcount went crazy: %d\n", refcount_read(ref)); in check_saturated()