Lines Matching refs:prev
29 list->prev = list; in INIT_LIST_HEAD()
34 struct list_head *prev,
39 struct list_head *prev, in __list_add_valid() argument
57 struct list_head *prev, in __list_add() argument
60 if (!__list_add_valid(new, prev, next)) in __list_add()
63 next->prev = new; in __list_add()
65 new->prev = prev; in __list_add()
66 WRITE_ONCE(prev->next, new); in __list_add()
93 __list_add(new, head->prev, head); in list_add_tail()
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()
120 entry->prev = NULL; in __list_del_clearprev()
134 __list_del(entry->prev, entry->next); in __list_del_entry()
141 entry->prev = LIST_POISON2; in list_del()
155 new->next->prev = new; in list_replace()
156 new->prev = old->prev; in list_replace()
157 new->prev->next = new; in list_replace()
175 struct list_head *pos = entry2->prev; in list_swap()
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()
234 first->prev = head->prev; in list_bulk_move_tail()
237 head->prev = last; in list_bulk_move_tail()
248 return list->prev == head; in list_is_first()
287 return (next == head) && (next == head->prev); in list_empty_careful()
328 return !list_empty(head) && (head->next == head->prev); in list_is_singular()
336 list->next->prev = list; in __list_cut_position()
337 list->prev = entry; in __list_cut_position()
340 new_first->prev = head; in __list_cut_position()
394 list->next->prev = list; in list_cut_before()
395 list->prev = entry->prev; in list_cut_before()
396 list->prev->next = list; in list_cut_before()
398 entry->prev = head; in list_cut_before()
402 struct list_head *prev, in __list_splice() argument
406 struct list_head *last = list->prev; in __list_splice()
408 first->prev = prev; in __list_splice()
409 prev->next = first; in __list_splice()
412 next->prev = last; in __list_splice()
436 __list_splice(list, head->prev, head); in list_splice_tail()
467 __list_splice(list, head->prev, head); in list_splice_tail_init()
501 list_entry((ptr)->prev, type, member)
531 list_entry((pos)->member.prev, typeof(*(pos)), member)
547 for (pos = (head)->prev; pos != (head); pos = pos->prev)
566 for (pos = (head)->prev, n = pos->prev; \
568 pos = n, n = pos->prev)
803 struct hlist_node *prev) in hlist_add_behind() argument
805 n->next = prev->next; in hlist_add_behind()
806 prev->next = n; in hlist_add_behind()
807 n->pprev = &prev->next; in hlist_add_behind()