Lines Matching refs:count
27 if (!atomic_read(&wf->count)) {
39 smp_mb__before_atomic(); /* release wf->count */
42 atomic_inc(&wf->count);
43 INTEL_WAKEREF_BUG_ON(atomic_read(&wf->count) <= 0);
57 INTEL_WAKEREF_BUG_ON(atomic_read(&wf->count) <= 0);
58 if (unlikely(!atomic_dec_and_test(&wf->count)))
92 if (atomic_add_unless(&wf->count, -1, 1))
109 atomic_set(&wf->count, 0);
142 if (!refcount_dec_and_lock_irqsave(&wf->count, &wf->lock, &flags))
156 refcount_set(&wf->count, 0);
174 if (!refcount_inc_not_zero(&wf->count)) {
176 if (!refcount_inc_not_zero(&wf->count)) {
180 refcount_set(&wf->count, 1);
188 * elided callback to keep the wf->count balanced.
205 size_t count;
211 count = ref_tracker_dir_snprint(dir, buf, buf_size);
212 if (!count)
221 if (count >= buf_size)
223 count + 1 - buf_size);