Lines Matching refs:next
45 struct list_head *next, *prev; member
48 #define INIT_LIST_HEAD(ptr) do { (ptr)->next = (ptr); (ptr)->prev = (ptr); } while (0)
50 …T_INLINE void __list_add(struct list_head * _new, struct list_head * prev, struct list_head * next) in __list_add() argument
52 next->prev = _new; in __list_add()
53 _new->next = next; in __list_add()
55 prev->next = _new; in __list_add()
60 __list_add(_new, head, head->next); in list_add()
68 static HPT_INLINE void __list_del(struct list_head * prev, struct list_head * next) in __list_del() argument
70 next->prev = prev; in __list_del()
71 prev->next = next; in __list_del()
76 __list_del(entry->prev, entry->next); in list_del()
81 __list_del(entry->prev, entry->next); in list_del_init()
87 HPT_ASSERT(!(head->next==head && head->prev!=head)); in list_empty()
88 return head->next == head; in list_empty()
94 struct list_head *first = list->next; in __list_splice()
96 struct list_head *at = head->next; in __list_splice()
99 head->next = first; in __list_splice()
101 last->next = at; in __list_splice()
123 for (pos = (head)->next; pos != (head); pos = pos->next)
126 for (pos = (head)->next, n = pos->next; pos != (head); \
127 pos = n, n = pos->next)
130 ((type *)((char *)((attached)->next)-(HPT_UPTR)(&((type *)0)->member)))