Lines Matching refs:next

27 	list->next = list;  in INIT_LIST_HEAD()
40 struct list_head *next) in __list_add() argument
42 next->prev = new; in __list_add()
43 new->next = next; in __list_add()
45 prev->next = new; in __list_add()
50 struct list_head *next);
63 __list_add(new, head, head->next); in list_add()
87 static inline void __list_del(struct list_head * prev, struct list_head * next) in __list_del() argument
89 next->prev = prev; in __list_del()
90 WRITE_ONCE(prev->next, next); in __list_del()
102 __list_del(entry->prev, entry->next); in __list_del_entry()
107 __list_del(entry->prev, entry->next); in list_del()
108 entry->next = LIST_POISON1; in list_del()
126 new->next = old->next; in list_replace()
127 new->next->prev = new; in list_replace()
129 new->prev->next = new; in list_replace()
180 return list->next == head; in list_is_last()
189 return head->next == head; in list_empty()
207 struct list_head *next = head->next; in list_empty_careful() local
208 return (next == head) && (next == head->prev); in list_empty_careful()
220 first = head->next; in list_rotate_left()
231 return !list_empty(head) && (head->next == head->prev); in list_is_singular()
237 struct list_head *new_first = entry->next; in __list_cut_position()
238 list->next = head->next; in __list_cut_position()
239 list->next->prev = list; in __list_cut_position()
241 entry->next = list; in __list_cut_position()
242 head->next = new_first; in __list_cut_position()
266 (head->next != entry && head != entry)) in list_cut_position()
276 struct list_head *next) in __list_splice() argument
278 struct list_head *first = list->next; in __list_splice()
282 prev->next = first; in __list_splice()
284 last->next = next; in __list_splice()
285 next->prev = last; in __list_splice()
297 __list_splice(list, head, head->next); in list_splice()
323 __list_splice(list, head, head->next); in list_splice_init()
363 list_entry((ptr)->next, type, member)
404 list_entry((pos)->member.next, typeof(*(pos)), member)
420 for (pos = (head)->next; pos != (head); pos = pos->next)
437 for (pos = (head)->next, n = pos->next; pos != (head); \
438 pos = n, n = pos->next)
611 h->next = NULL; in INIT_HLIST_NODE()
627 struct hlist_node *next = n->next; in __hlist_del() local
630 WRITE_ONCE(*pprev, next); in __hlist_del()
631 if (next) in __hlist_del()
632 next->pprev = pprev; in __hlist_del()
638 n->next = LIST_POISON1; in hlist_del()
653 n->next = first; in hlist_add_head()
655 first->pprev = &n->next; in hlist_add_head()
662 struct hlist_node *next) in hlist_add_before() argument
664 n->pprev = next->pprev; in hlist_add_before()
665 n->next = next; in hlist_add_before()
666 next->pprev = &n->next; in hlist_add_before()
673 n->next = prev->next; in hlist_add_behind()
674 prev->next = n; in hlist_add_behind()
675 n->pprev = &prev->next; in hlist_add_behind()
677 if (n->next) in hlist_add_behind()
678 n->next->pprev = &n->next; in hlist_add_behind()
684 n->pprev = &n->next; in hlist_add_fake()
689 return h->pprev == &h->next; in hlist_fake()
708 for (pos = (head)->first; pos ; pos = pos->next)
711 for (pos = (head)->first; pos && ({ n = pos->next; 1; }); \
728 pos = hlist_entry_safe((pos)->member.next, typeof(*(pos)), member))
736 for (pos = hlist_entry_safe((pos)->member.next, typeof(*(pos)), member);\
738 pos = hlist_entry_safe((pos)->member.next, typeof(*(pos)), member))
747 pos = hlist_entry_safe((pos)->member.next, typeof(*(pos)), member))
758 pos && ({ n = pos->member.next; 1; }); \
771 begin->prev->next = end->next; in list_del_range()
772 end->next->prev = begin->prev; in list_del_range()
781 for (; pos != (head); pos = pos->next)