Lines Matching refs:prev
28 list->prev = list; in INIT_LIST_HEAD()
39 struct list_head *prev, in __list_add() argument
42 next->prev = new; in __list_add()
44 new->prev = prev; in __list_add()
45 prev->next = new; in __list_add()
49 struct list_head *prev,
77 __list_add(new, head->prev, head); in list_add_tail()
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()
109 entry->prev = LIST_POISON2; in list_del()
127 new->next->prev = new; in list_replace()
128 new->prev = old->prev; in list_replace()
129 new->prev->next = new; in list_replace()
208 return (next == head) && (next == head->prev); in list_empty_careful()
231 return !list_empty(head) && (head->next == head->prev); in list_is_singular()
239 list->next->prev = list; in __list_cut_position()
240 list->prev = entry; in __list_cut_position()
243 new_first->prev = head; in __list_cut_position()
275 struct list_head *prev, in __list_splice() argument
279 struct list_head *last = list->prev; in __list_splice()
281 first->prev = prev; in __list_splice()
282 prev->next = first; in __list_splice()
285 next->prev = last; in __list_splice()
309 __list_splice(list, head->prev, head); in list_splice_tail()
340 __list_splice(list, head->prev, head); in list_splice_tail_init()
374 list_entry((ptr)->prev, type, member)
412 list_entry((pos)->member.prev, typeof(*(pos)), member)
428 for (pos = (head)->prev; pos != (head); pos = pos->prev)
447 for (pos = (head)->prev, n = pos->prev; \
449 pos = n, n = pos->prev)
671 struct hlist_node *prev) in hlist_add_behind() argument
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()
771 begin->prev->next = end->next; in list_del_range()
772 end->next->prev = begin->prev; in list_del_range()