Lines Matching refs:head
18 struct pcpu_freelist_head *head = per_cpu_ptr(s->freelist, cpu); in pcpu_freelist_init() local
20 raw_spin_lock_init(&head->lock); in pcpu_freelist_init()
21 head->first = NULL; in pcpu_freelist_init()
31 static inline void __pcpu_freelist_push(struct pcpu_freelist_head *head, in __pcpu_freelist_push() argument
34 raw_spin_lock(&head->lock); in __pcpu_freelist_push()
35 node->next = head->first; in __pcpu_freelist_push()
36 head->first = node; in __pcpu_freelist_push()
37 raw_spin_unlock(&head->lock); in __pcpu_freelist_push()
43 struct pcpu_freelist_head *head = this_cpu_ptr(s->freelist); in pcpu_freelist_push() local
45 __pcpu_freelist_push(head, node); in pcpu_freelist_push()
51 struct pcpu_freelist_head *head; in pcpu_freelist_populate() local
65 head = per_cpu_ptr(s->freelist, cpu); in pcpu_freelist_populate()
66 __pcpu_freelist_push(head, buf); in pcpu_freelist_populate()
79 struct pcpu_freelist_head *head; in pcpu_freelist_pop() local
87 head = per_cpu_ptr(s->freelist, cpu); in pcpu_freelist_pop()
88 raw_spin_lock(&head->lock); in pcpu_freelist_pop()
89 node = head->first; in pcpu_freelist_pop()
91 head->first = node->next; in pcpu_freelist_pop()
92 raw_spin_unlock_irqrestore(&head->lock, flags); in pcpu_freelist_pop()
95 raw_spin_unlock(&head->lock); in pcpu_freelist_pop()