Lines Matching defs:head
55 static HPT_INLINE void list_add(struct list_head *_new, struct list_head *head)
57 __list_add(_new, head, head->next);
60 static HPT_INLINE void list_add_tail(struct list_head *_new, struct list_head *head)
62 __list_add(_new, head->prev, head);
82 static HPT_INLINE int list_empty(struct list_head *head)
84 HPT_ASSERT(!(head->next==head && head->prev!=head));
85 return head->next == head;
89 struct list_head *head)
93 struct list_head *at = head->next;
95 first->prev = head;
96 head->next = first;
102 static HPT_INLINE void list_splice(struct list_head *list, struct list_head *head)
105 __list_splice(list, head);
108 static HPT_INLINE void list_splice_init(struct list_head *list, struct list_head *head)
111 __list_splice(list, head);
119 #define list_for_each(pos, head) \
120 for (pos = (head)->next; pos != (head); pos = pos->next)
122 #define list_for_each_safe(pos, n, head) \
123 for (pos = (head)->next, n = pos->next; pos != (head); \