Lines Matching refs:lock
17 raw_spin_lock_init(&head->lock); in pcpu_freelist_init()
20 raw_spin_lock_init(&s->extralist.lock); in pcpu_freelist_init()
40 raw_spin_lock(&head->lock); in ___pcpu_freelist_push()
42 raw_spin_unlock(&head->lock); in ___pcpu_freelist_push()
48 if (!raw_spin_trylock(&s->extralist.lock)) in pcpu_freelist_try_push_extra()
52 raw_spin_unlock(&s->extralist.lock); in pcpu_freelist_try_push_extra()
67 if (raw_spin_trylock(&head->lock)) { in ___pcpu_freelist_push_nmi()
69 raw_spin_unlock(&head->lock); in ___pcpu_freelist_push_nmi()
131 raw_spin_lock(&head->lock); in ___pcpu_freelist_pop()
135 raw_spin_unlock(&head->lock); in ___pcpu_freelist_pop()
138 raw_spin_unlock(&head->lock); in ___pcpu_freelist_pop()
144 raw_spin_lock(&s->extralist.lock); in ___pcpu_freelist_pop()
148 raw_spin_unlock(&s->extralist.lock); in ___pcpu_freelist_pop()
163 if (raw_spin_trylock(&head->lock)) { in ___pcpu_freelist_pop_nmi()
167 raw_spin_unlock(&head->lock); in ___pcpu_freelist_pop_nmi()
170 raw_spin_unlock(&head->lock); in ___pcpu_freelist_pop_nmi()
175 if (!READ_ONCE(s->extralist.first) || !raw_spin_trylock(&s->extralist.lock)) in ___pcpu_freelist_pop_nmi()
180 raw_spin_unlock(&s->extralist.lock); in ___pcpu_freelist_pop_nmi()