Lines Matching refs:first

324 				       struct list_head *first,  in list_bulk_move_tail()  argument
327 first->prev->next = last->next; in list_bulk_move_tail()
328 last->next->prev = first->prev; in list_bulk_move_tail()
330 head->prev->next = first; in list_bulk_move_tail()
331 first->prev = head->prev; in list_bulk_move_tail()
419 struct list_head *first; in list_rotate_left() local
422 first = head->next; in list_rotate_left()
423 list_move_tail(first, head); in list_rotate_left()
527 struct list_head *first = list->next; in __list_splice() local
530 first->prev = prev; in __list_splice()
531 prev->next = first; in __list_splice()
931 #define HLIST_HEAD_INIT { .first = NULL }
932 #define HLIST_HEAD(name) struct hlist_head name = { .first = NULL }
933 #define INIT_HLIST_HEAD(ptr) ((ptr)->first = NULL)
972 return !READ_ONCE(h->first); in hlist_empty()
1023 struct hlist_node *first = h->first; in hlist_add_head() local
1024 WRITE_ONCE(n->next, first); in hlist_add_head()
1025 if (first) in hlist_add_head()
1026 WRITE_ONCE(first->pprev, &n->next); in hlist_add_head()
1027 WRITE_ONCE(h->first, n); in hlist_add_head()
1028 WRITE_ONCE(n->pprev, &h->first); in hlist_add_head()
1094 return !n->next && n->pprev == &h->first; in hlist_is_singular_node()
1108 new->first = old->first; in hlist_move_list()
1109 if (new->first) in hlist_move_list()
1110 new->first->pprev = &new->first; in hlist_move_list()
1111 old->first = NULL; in hlist_move_list()
1117 for (pos = (head)->first; pos ; pos = pos->next)
1120 for (pos = (head)->first; pos && ({ n = pos->next; 1; }); \
1135 for (pos = hlist_entry_safe((head)->first, typeof(*(pos)), member);\
1166 for (pos = hlist_entry_safe((head)->first, typeof(*pos), member);\