Lines Matching defs:zero

4  * underflow, reaching zero untested, etc).
67 pr_warn("Weird: refcount_inc_not_zero() reported zero\n");
79 pr_warn("Weird: refcount_add_not_zero() reported zero\n");
94 pr_warn("Still at zero: refcount_inc/add() must not inc-from-0\n");
103 * zero it should either saturate (when inc-from-zero isn't protected)
104 * or stay at zero (when inc-from-zero is protected) and should WARN for both.
108 refcount_t zero = REFCOUNT_INIT(2);
111 refcount_dec(&zero);
113 pr_info("attempting bad refcount_dec() to zero\n");
114 refcount_dec(&zero);
116 check_zero(&zero);
124 * looking only at zero-pinning.
149 pr_info("attempting bad refcount_dec() below zero\n");
163 pr_info("attempting bad refcount_dec_and_test() below zero\n");
165 pr_warn("Weird: refcount_dec_and_test() reported zero\n");
178 pr_info("attempting bad refcount_sub_and_test() below zero\n");
180 pr_warn("Weird: refcount_sub_and_test() reported zero\n");
189 pr_info("Zero detected: stayed at zero\n");
198 pr_info("Fail: zero not detected, incremented to %d\n",
204 * A refcount_inc() from zero should pin to zero or saturate and may WARN.
208 refcount_t zero = REFCOUNT_INIT(0);
210 pr_info("attempting safe refcount_inc_not_zero() from zero\n");
211 if (!refcount_inc_not_zero(&zero)) {
212 pr_info("Good: zero detected\n");
213 if (refcount_read(&zero) == 0)
214 pr_info("Correctly stayed at zero\n");
216 pr_err("Fail: refcount went past zero!\n");
221 pr_info("attempting bad refcount_inc() from zero\n");
222 refcount_inc(&zero);
224 check_from_zero(&zero);
229 * at zero.
233 refcount_t zero = REFCOUNT_INIT(0);
235 pr_info("attempting safe refcount_add_not_zero() from zero\n");
236 if (!refcount_add_not_zero(3, &zero)) {
237 pr_info("Good: zero detected\n");
238 if (refcount_read(&zero) == 0)
239 pr_info("Correctly stayed at zero\n");
241 pr_err("Fail: refcount went past zero\n");
246 pr_info("attempting bad refcount_add() from zero\n");
247 refcount_add(3, &zero);
249 check_from_zero(&zero);
309 pr_warn("Weird: refcount_inc_not_zero() reported zero\n");
321 pr_warn("Weird: refcount_add_not_zero() reported zero\n");
333 pr_warn("Weird: refcount_dec_and_test() reported zero\n");
345 pr_warn("Weird: refcount_sub_and_test() reported zero\n");