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()
30 static inline void pcpu_freelist_push_node(struct pcpu_freelist_head *head, in pcpu_freelist_push_node() argument
33 node->next = head->first; in pcpu_freelist_push_node()
34 head->first = node; in pcpu_freelist_push_node()
37 static inline void ___pcpu_freelist_push(struct pcpu_freelist_head *head, in ___pcpu_freelist_push() argument
40 raw_spin_lock(&head->lock); in ___pcpu_freelist_push()
41 pcpu_freelist_push_node(head, node); in ___pcpu_freelist_push()
42 raw_spin_unlock(&head->lock); in ___pcpu_freelist_push()
63 struct pcpu_freelist_head *head; in ___pcpu_freelist_push_nmi() local
65 head = per_cpu_ptr(s->freelist, cpu); in ___pcpu_freelist_push_nmi()
66 if (raw_spin_trylock(&head->lock)) { in ___pcpu_freelist_push_nmi()
67 pcpu_freelist_push_node(head, node); in ___pcpu_freelist_push_nmi()
68 raw_spin_unlock(&head->lock); in ___pcpu_freelist_push_nmi()
104 struct pcpu_freelist_head *head; in pcpu_freelist_populate() local
112 head = per_cpu_ptr(s->freelist, cpu); in pcpu_freelist_populate()
114 pcpu_freelist_push_node(head, buf); in pcpu_freelist_populate()
126 struct pcpu_freelist_head *head; in ___pcpu_freelist_pop() local
132 head = per_cpu_ptr(s->freelist, cpu); in ___pcpu_freelist_pop()
133 raw_spin_lock(&head->lock); in ___pcpu_freelist_pop()
134 node = head->first; in ___pcpu_freelist_pop()
136 head->first = node->next; in ___pcpu_freelist_pop()
137 raw_spin_unlock(&head->lock); in ___pcpu_freelist_pop()
140 raw_spin_unlock(&head->lock); in ___pcpu_freelist_pop()
160 struct pcpu_freelist_head *head; in ___pcpu_freelist_pop_nmi() local
166 head = per_cpu_ptr(s->freelist, cpu); in ___pcpu_freelist_pop_nmi()
167 if (raw_spin_trylock(&head->lock)) { in ___pcpu_freelist_pop_nmi()
168 node = head->first; in ___pcpu_freelist_pop_nmi()
170 head->first = node->next; in ___pcpu_freelist_pop_nmi()
171 raw_spin_unlock(&head->lock); in ___pcpu_freelist_pop_nmi()
174 raw_spin_unlock(&head->lock); in ___pcpu_freelist_pop_nmi()