Lines Matching refs:prev
43 struct list_head *next, *prev; member
46 #define INIT_LIST_HEAD(ptr) do { (ptr)->next = (ptr); (ptr)->prev = (ptr); } while (0)
48 static HPT_INLINE void __list_add(struct list_head * _new, struct list_head * prev, struct list_hea… in __list_add() argument
50 next->prev = _new; in __list_add()
52 _new->prev = prev; in __list_add()
53 prev->next = _new; in __list_add()
63 __list_add(_new, head->prev, head); in list_add_tail()
66 static HPT_INLINE void __list_del(struct list_head * prev, struct list_head * next) in __list_del() argument
68 next->prev = prev; in __list_del()
69 prev->next = next; in __list_del()
74 __list_del(entry->prev, entry->next); in list_del()
79 __list_del(entry->prev, entry->next); in list_del_init()
85 HPT_ASSERT(!(head->next==head && head->prev!=head)); in list_empty()
93 struct list_head *last = list->prev; in __list_splice()
96 first->prev = head; in __list_splice()
100 at->prev = last; in __list_splice()