Lines Matching refs:next
40 struct list_head *next, *prev;
43 #define INIT_LIST_HEAD(ptr) do { (ptr)->next = (ptr); (ptr)->prev = (ptr); } while (0)
45 static HPT_INLINE void __list_add(struct list_head * _new, struct list_head * prev, struct list_head * next)
47 next->prev = _new;
48 _new->next = next;
50 prev->next = _new;
55 __list_add(_new, head, head->next);
63 static HPT_INLINE void __list_del(struct list_head * prev, struct list_head * next)
65 next->prev = prev;
66 prev->next = next;
71 __list_del(entry->prev, entry->next);
76 __list_del(entry->prev, entry->next);
82 HPT_ASSERT(!(head->next==head && head->prev!=head));
83 return head->next == head;
89 struct list_head *first = list->next;
91 struct list_head *at = head->next;
94 head->next = first;
96 last->next = at;
118 for (pos = (head)->next; pos != (head); pos = pos->next)
121 for (pos = (head)->next, n = pos->next; pos != (head); \
122 pos = n, n = pos->next)
125 ((type *)((char *)((attached)->next)-(HPT_UPTR)(&((type *)0)->member)))