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()
939 #define HLIST_HEAD_INIT { .first = NULL }
940 #define HLIST_HEAD(name) struct hlist_head name = { .first = NULL }
941 #define INIT_HLIST_HEAD(ptr) ((ptr)->first = NULL)
980 return !READ_ONCE(h->first); in hlist_empty()
1031 struct hlist_node *first = h->first; in hlist_add_head() local
1032 WRITE_ONCE(n->next, first); in hlist_add_head()
1033 if (first) in hlist_add_head()
1034 WRITE_ONCE(first->pprev, &n->next); in hlist_add_head()
1035 WRITE_ONCE(h->first, n); in hlist_add_head()
1036 WRITE_ONCE(n->pprev, &h->first); in hlist_add_head()
1102 return !n->next && n->pprev == &h->first; in hlist_is_singular_node()
1116 new->first = old->first; in hlist_move_list()
1117 if (new->first) in hlist_move_list()
1118 new->first->pprev = &new->first; in hlist_move_list()
1119 old->first = NULL; in hlist_move_list()
1134 if (to->first) in hlist_splice_init()
1135 to->first->pprev = &last->next; in hlist_splice_init()
1136 last->next = to->first; in hlist_splice_init()
1137 to->first = from->first; in hlist_splice_init()
1138 from->first->pprev = &to->first; in hlist_splice_init()
1139 from->first = NULL; in hlist_splice_init()
1145 for (pos = (head)->first; pos ; pos = pos->next)
1148 for (pos = (head)->first; pos && ({ n = pos->next; 1; }); \
1163 for (pos = hlist_entry_safe((head)->first, typeof(*(pos)), member);\
1194 for (pos = hlist_entry_safe((head)->first, typeof(*pos), member);\