Lines Matching refs:prev
18 struct list_head *next, *prev; member
29 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()
71 __list_add(new, head->prev, head); in list_add_tail()
81 static inline void __list_del(struct list_head *prev, struct list_head *next) in __list_del() argument
83 next->prev = prev; in __list_del()
84 prev->next = next; in __list_del()
95 __list_del(entry->prev, entry->next); in list_del()
97 entry->prev = LIST_POISON2; in list_del()
111 new->next->prev = new; in list_replace()
112 new->prev = old->prev; in list_replace()
113 new->prev->next = new; in list_replace()
129 __list_del(entry->prev, entry->next); in list_del_init()
140 __list_del(list->prev, list->next); in list_move()
152 __list_del(list->prev, list->next); in list_move_tail()
202 return (next == head) && (next == head->prev); in list_empty_careful()
211 return !list_empty(head) && (head->next == head->prev); in list_is_singular()
219 list->next->prev = list; in __list_cut_position()
220 list->prev = entry; in __list_cut_position()
223 new_first->prev = head; in __list_cut_position()
255 struct list_head *prev, in __list_splice() argument
259 struct list_head *last = list->prev; in __list_splice()
261 first->prev = prev; in __list_splice()
262 prev->next = first; in __list_splice()
265 next->prev = last; in __list_splice()
289 __list_splice(list, head->prev, head); in list_splice_tail()
320 __list_splice(list, head->prev, head); in list_splice_tail_init()
354 list_entry((ptr)->prev, type, member)
384 list_entry((pos)->member.prev, typeof(*(pos)), member)
400 for (pos = (head)->prev; !list_is_head(pos, (head)); pos = pos->prev)
419 for (pos = (head)->prev, n = pos->prev; \
421 pos = n, n = pos->prev)
560 for (pos = list_entry((head)->prev, typeof(*pos), member), \
561 n = list_entry(pos->member.prev, typeof(*pos), member); \
563 pos = n, n = list_entry(n->member.prev, typeof(*n), member))