Lines Matching refs:head
15 struct pcpu_freelist_head *head = per_cpu_ptr(s->freelist, cpu);
17 raw_spin_lock_init(&head->lock);
18 head->first = NULL;
30 static inline void pcpu_freelist_push_node(struct pcpu_freelist_head *head,
33 node->next = head->first;
34 WRITE_ONCE(head->first, node);
37 static inline void ___pcpu_freelist_push(struct pcpu_freelist_head *head,
40 raw_spin_lock(&head->lock);
41 pcpu_freelist_push_node(head, node);
42 raw_spin_unlock(&head->lock);
64 struct pcpu_freelist_head *head;
66 head = per_cpu_ptr(s->freelist, cpu);
67 if (raw_spin_trylock(&head->lock)) {
68 pcpu_freelist_push_node(head, node);
69 raw_spin_unlock(&head->lock);
102 struct pcpu_freelist_head *head;
110 head = per_cpu_ptr(s->freelist, cpu);
114 pcpu_freelist_push_node(head, buf);
123 struct pcpu_freelist_head *head;
128 head = per_cpu_ptr(s->freelist, cpu);
129 if (!READ_ONCE(head->first))
131 raw_spin_lock(&head->lock);
132 node = head->first;
134 WRITE_ONCE(head->first, node->next);
135 raw_spin_unlock(&head->lock);
138 raw_spin_unlock(&head->lock);
155 struct pcpu_freelist_head *head;
160 head = per_cpu_ptr(s->freelist, cpu);
161 if (!READ_ONCE(head->first))
163 if (raw_spin_trylock(&head->lock)) {
164 node = head->first;
166 WRITE_ONCE(head->first, node->next);
167 raw_spin_unlock(&head->lock);
170 raw_spin_unlock(&head->lock);