• Home
  • Raw
  • Download

Lines Matching refs:next

28 	WRITE_ONCE(list->next, list);  in INIT_LIST_HEAD()
35 struct list_head *next);
40 struct list_head *next) in __list_add_valid() argument
58 struct list_head *next) in __list_add() argument
60 if (!__list_add_valid(new, prev, next)) in __list_add()
63 next->prev = new; in __list_add()
64 new->next = next; in __list_add()
66 WRITE_ONCE(prev->next, new); in __list_add()
79 __list_add(new, head, head->next); in list_add()
103 static inline void __list_del(struct list_head * prev, struct list_head * next) in __list_del() argument
105 next->prev = prev; in __list_del()
106 WRITE_ONCE(prev->next, next); in __list_del()
119 __list_del(entry->prev, entry->next); in __list_del_clearprev()
134 __list_del(entry->prev, entry->next); in __list_del_entry()
140 entry->next = LIST_POISON1; in list_del()
154 new->next = old->next; in list_replace()
155 new->next->prev = new; in list_replace()
157 new->prev->next = new; in list_replace()
230 first->prev->next = last->next; in list_bulk_move_tail()
231 last->next->prev = first->prev; in list_bulk_move_tail()
233 head->prev->next = first; in list_bulk_move_tail()
236 last->next = head; in list_bulk_move_tail()
259 return list->next == head; in list_is_last()
268 return READ_ONCE(head->next) == head; in list_empty()
286 smp_store_release(&entry->next, entry); in list_del_init_careful()
304 struct list_head *next = smp_load_acquire(&head->next); in list_empty_careful() local
305 return (next == head) && (next == head->prev); in list_empty_careful()
317 first = head->next; in list_rotate_left()
346 return !list_empty(head) && (head->next == head->prev); in list_is_singular()
352 struct list_head *new_first = entry->next; in __list_cut_position()
353 list->next = head->next; in __list_cut_position()
354 list->next->prev = list; in __list_cut_position()
356 entry->next = list; in __list_cut_position()
357 head->next = new_first; in __list_cut_position()
381 (head->next != entry && head != entry)) in list_cut_position()
407 if (head->next == entry) { in list_cut_before()
411 list->next = head->next; in list_cut_before()
412 list->next->prev = list; in list_cut_before()
414 list->prev->next = list; in list_cut_before()
415 head->next = entry; in list_cut_before()
421 struct list_head *next) in __list_splice() argument
423 struct list_head *first = list->next; in __list_splice()
427 prev->next = first; in __list_splice()
429 last->next = next; in __list_splice()
430 next->prev = last; in __list_splice()
442 __list_splice(list, head, head->next); in list_splice()
468 __list_splice(list, head, head->next); in list_splice_init()
508 list_entry((ptr)->next, type, member)
531 struct list_head *pos__ = READ_ONCE(head__->next); \
541 list_entry((pos)->member.next, typeof(*(pos)), member)
557 for (pos = (head)->next; pos != (head); pos = pos->next)
574 for (pos = (head)->next, n = pos->next; pos != (head); \
575 pos = n, n = pos->next)
770 h->next = NULL; in INIT_HLIST_NODE()
786 struct hlist_node *next = n->next; in __hlist_del() local
789 WRITE_ONCE(*pprev, next); in __hlist_del()
790 if (next) in __hlist_del()
791 next->pprev = pprev; in __hlist_del()
797 n->next = LIST_POISON1; in hlist_del()
812 n->next = first; in hlist_add_head()
814 first->pprev = &n->next; in hlist_add_head()
821 struct hlist_node *next) in hlist_add_before() argument
823 n->pprev = next->pprev; in hlist_add_before()
824 n->next = next; in hlist_add_before()
825 next->pprev = &n->next; in hlist_add_before()
832 n->next = prev->next; in hlist_add_behind()
833 prev->next = n; in hlist_add_behind()
834 n->pprev = &prev->next; in hlist_add_behind()
836 if (n->next) in hlist_add_behind()
837 n->next->pprev = &n->next; in hlist_add_behind()
843 n->pprev = &n->next; in hlist_add_fake()
848 return h->pprev == &h->next; in hlist_fake()
858 return !n->next && n->pprev == &h->first; in hlist_is_singular_node()
877 for (pos = (head)->first; pos ; pos = pos->next)
880 for (pos = (head)->first; pos && ({ n = pos->next; 1; }); \
897 pos = hlist_entry_safe((pos)->member.next, typeof(*(pos)), member))
905 for (pos = hlist_entry_safe((pos)->member.next, typeof(*(pos)), member);\
907 pos = hlist_entry_safe((pos)->member.next, typeof(*(pos)), member))
916 pos = hlist_entry_safe((pos)->member.next, typeof(*(pos)), member))
927 pos && ({ n = pos->member.next; 1; }); \