Lines Matching refs:prev
33 struct list_head *next, *prev; member
42 (ptr)->next = (ptr); (ptr)->prev = (ptr); \
52 struct list_head *prev, in __list_add() argument
55 next->prev = new; in __list_add()
57 new->prev = prev; in __list_add()
58 prev->next = new; in __list_add()
84 __list_add(new, head->prev, head); in list_add_tail()
95 static inline void __list_del(struct list_head *prev, struct list_head *next) in __list_del() argument
97 next->prev = prev; in __list_del()
98 prev->next = next; in __list_del()
109 __list_del(entry->prev, entry->next); in list_del()
111 entry->prev = LIST_POISON2; in list_del()
122 __list_del(entry->prev, entry->next); in list_del_init()
133 __list_del(list->prev, list->next); in list_move()
145 __list_del(list->prev, list->next); in list_move_tail()
162 struct list_head *last = list->prev; in __list_splice()
165 first->prev = head; in __list_splice()
169 at->prev = last; in __list_splice()
237 for (pos = (head)->prev; prefetch(pos->prev), pos != (head); \
238 pos = pos->prev)
268 for (pos = list_entry((head)->prev, typeof(*pos), member); \
270 pos = list_entry(pos->member.prev, typeof(*pos), member))
331 for (pos = list_entry((head)->prev, typeof(*pos), member), \
332 n = list_entry(pos->member.prev, typeof(*pos), member); \
334 pos = n, n = list_entry(n->member.prev, typeof(*n), member))