Lines Matching refs:prev
36 list->prev = list; in INIT_LIST_HEAD()
41 struct list_head *prev,
46 struct list_head *prev, in __list_add_valid() argument
64 struct list_head *prev, in __list_add() argument
67 if (!__list_add_valid(new, prev, next)) in __list_add()
70 next->prev = new; in __list_add()
72 new->prev = prev; in __list_add()
73 WRITE_ONCE(prev->next, new); in __list_add()
100 __list_add(new, head->prev, head); in list_add_tail()
110 static inline void __list_del(struct list_head * prev, struct list_head * next) in __list_del() argument
112 next->prev = prev; in __list_del()
113 WRITE_ONCE(prev->next, next); in __list_del()
126 __list_del(entry->prev, entry->next); in __list_del_clearprev()
127 entry->prev = NULL; in __list_del_clearprev()
135 __list_del(entry->prev, entry->next); in __list_del_entry()
148 entry->prev = LIST_POISON2; in list_del()
162 new->next->prev = new; in list_replace()
163 new->prev = old->prev; in list_replace()
164 new->prev->next = new; in list_replace()
189 struct list_head *pos = entry2->prev; in list_swap()
244 first->prev->next = last->next; in list_bulk_move_tail()
245 last->next->prev = first->prev; in list_bulk_move_tail()
247 head->prev->next = first; in list_bulk_move_tail()
248 first->prev = head->prev; in list_bulk_move_tail()
251 head->prev = last; in list_bulk_move_tail()
262 return list->prev == head; in list_is_first()
299 entry->prev = entry; in list_del_init_careful()
319 return (next == head) && (next == head->prev); in list_empty_careful()
360 return !list_empty(head) && (head->next == head->prev); in list_is_singular()
368 list->next->prev = list; in __list_cut_position()
369 list->prev = entry; in __list_cut_position()
372 new_first->prev = head; in __list_cut_position()
426 list->next->prev = list; in list_cut_before()
427 list->prev = entry->prev; in list_cut_before()
428 list->prev->next = list; in list_cut_before()
430 entry->prev = head; in list_cut_before()
434 struct list_head *prev, in __list_splice() argument
438 struct list_head *last = list->prev; in __list_splice()
440 first->prev = prev; in __list_splice()
441 prev->next = first; in __list_splice()
444 next->prev = last; in __list_splice()
468 __list_splice(list, head->prev, head); in list_splice_tail()
499 __list_splice(list, head->prev, head); in list_splice_tail_init()
533 list_entry((ptr)->prev, type, member)
563 list_entry((pos)->member.prev, typeof(*(pos)), member)
589 for (pos = (head)->prev; pos != (head); pos = pos->prev)
608 for (pos = (head)->prev, n = pos->prev; \
610 pos = n, n = pos->prev)
909 struct hlist_node *prev) in hlist_add_behind() argument
911 WRITE_ONCE(n->next, prev->next); in hlist_add_behind()
912 WRITE_ONCE(prev->next, n); in hlist_add_behind()
913 WRITE_ONCE(n->pprev, &prev->next); in hlist_add_behind()