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()
606 #define HLIST_HEAD_INIT { .first = NULL }
607 #define HLIST_HEAD(name) struct hlist_head name = { .first = NULL }
608 #define INIT_HLIST_HEAD(ptr) ((ptr)->first = NULL)
622 return !h->first; in hlist_empty()
652 struct hlist_node *first = h->first; in hlist_add_head() local
653 n->next = first; in hlist_add_head()
654 if (first) in hlist_add_head()
655 first->pprev = &n->next; in hlist_add_head()
656 h->first = n; in hlist_add_head()
657 n->pprev = &h->first; in hlist_add_head()
699 new->first = old->first; in hlist_move_list()
700 if (new->first) in hlist_move_list()
701 new->first->pprev = &new->first; in hlist_move_list()
702 old->first = NULL; in hlist_move_list()
708 for (pos = (head)->first; pos ; pos = pos->next)
711 for (pos = (head)->first; pos && ({ n = pos->next; 1; }); \
726 for (pos = hlist_entry_safe((head)->first, typeof(*(pos)), member);\
757 for (pos = hlist_entry_safe((head)->first, typeof(*pos), member);\