Lines Matching refs:head
50 static inline void list_add(struct list_head *new, struct list_head *head) in list_add() argument
52 __list_add(new, head, head->next); in list_add()
55 static inline void list_add_tail(struct list_head *new, struct list_head *head) in list_add_tail() argument
57 __list_add(new, head->prev, head); in list_add_tail()
79 static inline int list_empty(const struct list_head *head) in list_empty() argument
81 return head->next == head; in list_empty()
85 const struct list_head *head) in list_is_last() argument
87 return list->next == head; in list_is_last()
105 struct list_head *head) in list_splice() argument
108 __list_splice(list, head, head->next); in list_splice()
114 #define list_for_each_entry(pos, head, member) \ argument
115 for (pos = list_entry((head)->next, typeof(*pos), member); \
116 &pos->member != (head); \
119 #define list_for_each_entry_safe(pos, n, head, member) \ argument
120 for (pos = list_entry((head)->next, typeof(*pos), member), \
122 &pos->member != (head); \