Lines Matching refs:refcount
159 WARN_ON(refcount_read(&wl->refcount));
176 * Bail out if refcount became non-zero while waiting for the spinlock,
179 if (refcount_read(&wl->refcount))
338 refcount_set(&wl->refcount,
381 if (refcount_read(&wl->refcount))
450 if (!refcount_inc_not_zero(&wl->refcount))
451 refcount_set(&wl->refcount, 1);
457 if (refcount_inc_not_zero(&wl->refcount))
460 refcount_set(&wl->refcount, 1);
482 if (WARN_RATELIMIT(!refcount_read(&wl->refcount),
483 "Tried to put wakelock with refcount zero\n"))
486 if (refcount_dec_and_test(&wl->refcount)) {