Lines Matching refs:first
217 struct list_head *first; in list_rotate_left() local
220 first = head->next; in list_rotate_left()
221 list_move_tail(first, head); in list_rotate_left()
278 struct list_head *first = list->next; in __list_splice() local
281 first->prev = prev; in __list_splice()
282 prev->next = first; in __list_splice()
595 #define HLIST_HEAD_INIT { .first = NULL }
596 #define HLIST_HEAD(name) struct hlist_head name = { .first = NULL }
597 #define INIT_HLIST_HEAD(ptr) ((ptr)->first = NULL)
611 return !h->first; in hlist_empty()
640 struct hlist_node *first = h->first; in hlist_add_head() local
641 n->next = first; in hlist_add_head()
642 if (first) in hlist_add_head()
643 first->pprev = &n->next; in hlist_add_head()
644 h->first = n; in hlist_add_head()
645 n->pprev = &h->first; in hlist_add_head()
682 new->first = old->first; in hlist_move_list()
683 if (new->first) in hlist_move_list()
684 new->first->pprev = &new->first; in hlist_move_list()
685 old->first = NULL; in hlist_move_list()
691 for (pos = (head)->first; pos ; pos = pos->next)
694 for (pos = (head)->first; pos && ({ n = pos->next; 1; }); \
709 for (pos = hlist_entry_safe((head)->first, typeof(*(pos)), member);\
740 for (pos = hlist_entry_safe((head)->first, typeof(*pos), member);\