Lines Matching refs:first

241 				       struct list_head *first,  in list_bulk_move_tail()  argument
244 first->prev->next = last->next; in list_bulk_move_tail()
245 last->next->prev = first->prev; in list_bulk_move_tail()
247 head->prev->next = first; in list_bulk_move_tail()
248 first->prev = head->prev; in list_bulk_move_tail()
328 struct list_head *first; in list_rotate_left() local
331 first = head->next; in list_rotate_left()
332 list_move_tail(first, head); in list_rotate_left()
437 struct list_head *first = list->next; in __list_splice() local
440 first->prev = prev; in __list_splice()
441 prev->next = first; in __list_splice()
789 #define HLIST_HEAD_INIT { .first = NULL }
790 #define HLIST_HEAD(name) struct hlist_head name = { .first = NULL }
791 #define INIT_HLIST_HEAD(ptr) ((ptr)->first = NULL)
830 return !READ_ONCE(h->first); in hlist_empty()
881 struct hlist_node *first = h->first; in hlist_add_head() local
882 WRITE_ONCE(n->next, first); in hlist_add_head()
883 if (first) in hlist_add_head()
884 WRITE_ONCE(first->pprev, &n->next); in hlist_add_head()
885 WRITE_ONCE(h->first, n); in hlist_add_head()
886 WRITE_ONCE(n->pprev, &h->first); in hlist_add_head()
952 return !n->next && n->pprev == &h->first; in hlist_is_singular_node()
966 new->first = old->first; in hlist_move_list()
967 if (new->first) in hlist_move_list()
968 new->first->pprev = &new->first; in hlist_move_list()
969 old->first = NULL; in hlist_move_list()
975 for (pos = (head)->first; pos ; pos = pos->next)
978 for (pos = (head)->first; pos && ({ n = pos->next; 1; }); \
993 for (pos = hlist_entry_safe((head)->first, typeof(*(pos)), member);\
1024 for (pos = hlist_entry_safe((head)->first, typeof(*pos), member);\