Lines Matching refs:head

81 static inline void list_add(struct list_head *new, struct list_head *head)  in list_add()  argument
83 __list_add(new, head, head->next); in list_add()
94 static inline void list_add_tail(struct list_head *new, struct list_head *head) in list_add_tail() argument
96 __list_add(new, head->prev, head); in list_add_tail()
165 static inline void list_move(struct list_head *list, struct list_head *head) in list_move() argument
168 list_add(list, head); in list_move()
177 struct list_head *head) in list_move_tail() argument
180 list_add_tail(list, head); in list_move_tail()
188 static inline int list_is_first(const struct list_head *list, const struct list_head *head) in list_is_first() argument
190 return list->prev == head; in list_is_first()
198 static inline int list_is_last(const struct list_head *list, const struct list_head *head) in list_is_last() argument
200 return list->next == head; in list_is_last()
208 static inline int list_is_head(const struct list_head *list, const struct list_head *head) in list_is_head() argument
210 return list == head; in list_is_head()
217 static inline int list_empty(const struct list_head *head) in list_empty() argument
219 return head->next == head; in list_empty()
275 #define list_entry_is_head(pos, head, member) \ argument
276 (&pos->member == (head))
284 #define list_for_each_entry(pos, head, member) \ argument
285 for (pos = list_first_entry(head, typeof(*pos), member); \
286 !list_entry_is_head(pos, head, member); \
295 #define list_for_each_entry_reverse(pos, head, member) \ argument
296 for (pos = list_last_entry(head, typeof(*pos), member); \
297 !list_entry_is_head(pos, head, member); \
307 #define list_for_each_entry_safe(pos, n, head, member) \ argument
308 for (pos = list_first_entry(head, typeof(*pos), member), \
310 !list_entry_is_head(pos, head, member); \
411 #define hlist_for_each_entry(pos, head, member) \ argument
412 for (pos = hlist_entry_safe((head)->first, typeof(*(pos)), member);\
423 #define hlist_for_each_entry_safe(pos, n, head, member) \ argument
424 for (pos = hlist_entry_safe((head)->first, typeof(*pos), member);\