Lines Matching refs:head
15 struct pcpu_freelist_head *head = per_cpu_ptr(s->freelist, cpu); in pcpu_freelist_init() local
17 raw_spin_lock_init(&head->lock); in pcpu_freelist_init()
18 head->first = NULL; in pcpu_freelist_init()
28 static inline void ___pcpu_freelist_push(struct pcpu_freelist_head *head, in ___pcpu_freelist_push() argument
31 raw_spin_lock(&head->lock); in ___pcpu_freelist_push()
32 node->next = head->first; in ___pcpu_freelist_push()
33 head->first = node; in ___pcpu_freelist_push()
34 raw_spin_unlock(&head->lock); in ___pcpu_freelist_push()
40 struct pcpu_freelist_head *head = this_cpu_ptr(s->freelist); in __pcpu_freelist_push() local
42 ___pcpu_freelist_push(head, node); in __pcpu_freelist_push()
58 struct pcpu_freelist_head *head; in pcpu_freelist_populate() local
72 head = per_cpu_ptr(s->freelist, cpu); in pcpu_freelist_populate()
73 ___pcpu_freelist_push(head, buf); in pcpu_freelist_populate()
86 struct pcpu_freelist_head *head; in __pcpu_freelist_pop() local
92 head = per_cpu_ptr(s->freelist, cpu); in __pcpu_freelist_pop()
93 raw_spin_lock(&head->lock); in __pcpu_freelist_pop()
94 node = head->first; in __pcpu_freelist_pop()
96 head->first = node->next; in __pcpu_freelist_pop()
97 raw_spin_unlock(&head->lock); in __pcpu_freelist_pop()
100 raw_spin_unlock(&head->lock); in __pcpu_freelist_pop()