Lines Matching refs:head
53 static HPT_INLINE void list_add(struct list_head *_new, struct list_head *head)
55 __list_add(_new, head, head->next);
58 static HPT_INLINE void list_add_tail(struct list_head *_new, struct list_head *head)
60 __list_add(_new, head->prev, head);
80 static HPT_INLINE int list_empty(struct list_head *head)
82 HPT_ASSERT(!(head->next==head && head->prev!=head));
83 return head->next == head;
87 struct list_head *head)
91 struct list_head *at = head->next;
93 first->prev = head;
94 head->next = first;
100 static HPT_INLINE void list_splice(struct list_head *list, struct list_head *head)
103 __list_splice(list, head);
106 static HPT_INLINE void list_splice_init(struct list_head *list, struct list_head *head)
109 __list_splice(list, head);
117 #define list_for_each(pos, head) \
118 for (pos = (head)->next; pos != (head); pos = pos->next)
120 #define list_for_each_safe(pos, n, head) \
121 for (pos = (head)->next, n = pos->next; pos != (head); \