Lines Matching refs:head
56 static HPT_INLINE void list_add(struct list_head *_new, struct list_head *head)
58 __list_add(_new, head, head->next);
61 static HPT_INLINE void list_add_tail(struct list_head *_new, struct list_head *head)
63 __list_add(_new, head->prev, head);
83 static HPT_INLINE int list_empty(struct list_head *head)
85 HPT_ASSERT(!(head->next==head && head->prev!=head));
86 return head->next == head;
90 struct list_head *head)
94 struct list_head *at = head->next;
96 first->prev = head;
97 head->next = first;
103 static HPT_INLINE void list_splice(struct list_head *list, struct list_head *head)
106 __list_splice(list, head);
109 static HPT_INLINE void list_splice_init(struct list_head *list, struct list_head *head)
112 __list_splice(list, head);
120 #define list_for_each(pos, head) \
121 for (pos = (head)->next; pos != (head); pos = pos->next)
123 #define list_for_each_safe(pos, n, head) \
124 for (pos = (head)->next, n = pos->next; pos != (head); \