Lines Matching refs:refs
19 atomic_t refs; member
50 atomic_set_release(&node->refs, 1); in __freelist_add()
57 if (atomic_fetch_add_release(REFS_ON_FREELIST - 1, &node->refs) == 1) in __freelist_add()
70 if (!atomic_fetch_add_release(REFS_ON_FREELIST, &node->refs)) { in freelist_add()
82 unsigned int refs; in freelist_try_get() local
86 refs = atomic_read(&head->refs); in freelist_try_get()
87 if ((refs & REFS_MASK) == 0 || in freelist_try_get()
88 !atomic_try_cmpxchg_acquire(&head->refs, &refs, refs+1)) { in freelist_try_get()
106 WARN_ON_ONCE(atomic_read(&head->refs) & REFS_ON_FREELIST); in freelist_try_get()
112 atomic_fetch_add(-2, &head->refs); in freelist_try_get()
121 refs = atomic_fetch_add(-1, &prev->refs); in freelist_try_get()
122 if (refs == REFS_ON_FREELIST + 1) in freelist_try_get()