Lines Matching refs:prev
23 struct list_head *next, *prev; member
34 list->prev = list; in INIT_LIST_HEAD()
44 struct list_head *prev, in __list_add() argument
47 next->prev = new; in __list_add()
49 new->prev = prev; in __list_add()
50 prev->next = new; in __list_add()
76 __list_add(new, head->prev, head); in list_add_tail()
86 static inline void __list_del(struct list_head *prev, struct list_head *next) in __list_del() argument
88 next->prev = prev; in __list_del()
89 prev->next = next; in __list_del()
100 __list_del(entry->prev, entry->next); in list_del()
102 entry->prev = LIST_POISON2; in list_del()
116 new->next->prev = new; in list_replace()
117 new->prev = old->prev; in list_replace()
118 new->prev->next = new; in list_replace()
134 __list_del(entry->prev, entry->next); in list_del_init()
145 __list_del(list->prev, list->next); in list_move()
157 __list_del(list->prev, list->next); in list_move_tail()
197 return (next == head) && (next == head->prev); in list_empty_careful()
206 return !list_empty(head) && (head->next == head->prev); in list_is_singular()
214 list->next->prev = list; in __list_cut_position()
215 list->prev = entry; in __list_cut_position()
218 new_first->prev = head; in __list_cut_position()
250 struct list_head *prev, in __list_splice() argument
254 struct list_head *last = list->prev; in __list_splice()
256 first->prev = prev; in __list_splice()
257 prev->next = first; in __list_splice()
260 next->prev = last; in __list_splice()
284 __list_splice(list, head->prev, head); in list_splice_tail()
315 __list_splice(list, head->prev, head); in list_splice_tail_init()
349 list_entry((ptr)->prev, type, member)
379 for (pos = (head)->prev; prefetch(pos->prev), pos != (head); \
380 pos = pos->prev)
399 for (pos = (head)->prev, n = pos->prev; \
400 prefetch(pos->prev), pos != (head); \
401 pos = n, n = pos->prev)
421 for (pos = list_entry((head)->prev, typeof(*pos), member); \
422 prefetch(pos->member.prev), &pos->member != (head); \
423 pos = list_entry(pos->member.prev, typeof(*pos), member))
460 for (pos = list_entry(pos->member.prev, typeof(*pos), member); \
461 prefetch(pos->member.prev), &pos->member != (head); \
462 pos = list_entry(pos->member.prev, typeof(*pos), member))
531 for (pos = list_entry((head)->prev, typeof(*pos), member), \
532 n = list_entry(pos->member.prev, typeof(*pos), member); \
534 pos = n, n = list_entry(n->member.prev, typeof(*n), member))