Lines Matching refs:first
266 list_bulk_move_tail(struct list_head *head, struct list_head *first, in list_bulk_move_tail() argument
269 first->prev->next = last->next; in list_bulk_move_tail()
270 last->next->prev = first->prev; in list_bulk_move_tail()
271 head->prev->next = first; in list_bulk_move_tail()
272 first->prev = head->prev; in list_bulk_move_tail()
281 struct list_head *first; in linux_list_splice() local
286 first = list->next; in linux_list_splice()
288 first->prev = prev; in linux_list_splice()
289 prev->next = first; in linux_list_splice()
329 struct hlist_node *first; member
338 #define INIT_HLIST_HEAD(head) (head)->first = NULL
356 return !READ_ONCE(h->first); in hlist_empty()
382 n->next = h->first; in hlist_add_head()
383 if (h->first != NULL) in hlist_add_head()
384 h->first->pprev = &n->next; in hlist_add_head()
385 WRITE_ONCE(h->first, n); in hlist_add_head()
386 n->pprev = &h->first; in hlist_add_head()
415 new->first = old->first; in hlist_move_list()
416 if (new->first) in hlist_move_list()
417 new->first->pprev = &new->first; in hlist_move_list()
418 old->first = NULL; in hlist_move_list()
461 for (p = (head)->first; p; p = (p)->next)
464 for (p = (head)->first; p && ({ n = (p)->next; 1; }); p = n)
470 for (pos = hlist_entry_safe((head)->first, typeof(*(pos)), member);\
484 for (pos = hlist_entry_safe((head)->first, typeof(*(pos)), member); \