Lines Matching refs:head
13 * sentinel head node, "prev" links not maintained.
19 struct list_head *head, **tail = &head;
41 return head;
52 static void merge_final(void *priv, list_cmp_func_t cmp, struct list_head *head,
55 struct list_head *tail = head;
97 tail->next = head;
98 head->prev = tail;
104 * @head: the list to sort
185 void list_sort(void *priv, struct list_head *head, list_cmp_func_t cmp)
187 struct list_head *list = head->next, *pending = NULL;
190 if (list == head->prev) /* Zero or one elements */
194 head->prev->next = NULL;
251 merge_final(priv, cmp, head, pending, list);