Lines Matching refs:head
54 static HPT_INLINE void list_add(struct list_head *_new, struct list_head *head)
56 __list_add(_new, head, head->next);
59 static HPT_INLINE void list_add_tail(struct list_head *_new, struct list_head *head)
61 __list_add(_new, head->prev, head);
81 static HPT_INLINE int list_empty(struct list_head *head)
83 HPT_ASSERT(!(head->next==head && head->prev!=head));
84 return head->next == head;
88 struct list_head *head)
92 struct list_head *at = head->next;
94 first->prev = head;
95 head->next = first;
101 static HPT_INLINE void list_splice(struct list_head *list, struct list_head *head)
104 __list_splice(list, head);
107 static HPT_INLINE void list_splice_init(struct list_head *list, struct list_head *head)
110 __list_splice(list, head);
118 #define list_for_each(pos, head) \
119 for (pos = (head)->next; pos != (head); pos = pos->next)
121 #define list_for_each_safe(pos, n, head) \
122 for (pos = (head)->next, n = pos->next; pos != (head); \