Lines Matching refs:next
43 struct list_head *next, *prev;
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_head * next)
50 next->prev = _new;
51 _new->next = next;
53 prev->next = _new;
58 __list_add(_new, head, head->next);
66 static HPT_INLINE void __list_del(struct list_head * prev, struct list_head * next)
68 next->prev = prev;
69 prev->next = next;
74 __list_del(entry->prev, entry->next);
79 __list_del(entry->prev, entry->next);
85 HPT_ASSERT(!(head->next==head && head->prev!=head));
86 return head->next == head;
92 struct list_head *first = list->next;
94 struct list_head *at = head->next;
97 head->next = first;
99 last->next = at;
121 for (pos = (head)->next; pos != (head); pos = pos->next)
124 for (pos = (head)->next, n = pos->next; pos != (head); \
125 pos = n, n = pos->next)
128 ((type *)((char *)((attached)->next)-(HPT_UPTR)(&((type *)0)->member)))