Lines Matching refs:head
69 static inline void list_add(struct list_head *new, struct list_head *head) in list_add() argument
71 __list_add(new, head, head->next); in list_add()
82 static inline void list_add_tail(struct list_head *new, struct list_head *head) in list_add_tail() argument
84 __list_add(new, head->prev, head); in list_add_tail()
128 static inline void list_move(struct list_head *list, struct list_head *head) in list_move() argument
131 list_add(list, head); in list_move()
140 struct list_head *head) in list_move_tail() argument
143 list_add_tail(list, head); in list_move_tail()
150 static inline int list_empty(const struct list_head *head) in list_empty() argument
152 return head->next == head; in list_empty()
156 struct list_head *head) in __list_splice() argument
160 struct list_head *at = head->next; in __list_splice()
162 first->prev = head; in __list_splice()
163 head->next = first; in __list_splice()
174 static inline void list_splice(struct list_head *list, struct list_head *head) in list_splice() argument
177 __list_splice(list, head); in list_splice()
188 struct list_head *head) in list_splice_init() argument
191 __list_splice(list, head); in list_splice_init()
211 #define list_for_each(pos, head) \ argument
212 for (pos = (head)->next; pos != (head); \
225 #define __list_for_each(pos, head) \ argument
226 for (pos = (head)->next; pos != (head); pos = pos->next)
233 #define list_for_each_prev(pos, head) \ argument
234 for (pos = (head)->prev; prefetch(pos->prev), pos != (head); \
243 #define list_for_each_safe(pos, n, head) \ argument
244 for (pos = (head)->next, n = pos->next; pos != (head); \
253 #define list_for_each_entry(pos, head, member) \ argument
254 for (pos = list_entry((head)->next, typeof(*pos), member); \
255 &pos->member != (head); \
264 #define list_for_each_entry_reverse(pos, head, member) \ argument
265 for (pos = list_entry((head)->prev, typeof(*pos), member); \
266 &pos->member != (head); \
276 #define list_prepare_entry(pos, head, member) \ argument
277 ((pos) ? : list_entry(head, typeof(*pos), member))
286 #define list_for_each_entry_continue(pos, head, member) \ argument
288 &pos->member != (head); \
299 #define list_for_each_entry_safe(pos, n, head, member) \ argument
300 for (pos = list_entry((head)->next, typeof(*pos), member), \
302 &pos->member != (head); \
313 #define list_for_each_entry_safe_continue(pos, n, head, member) \ argument
316 &pos->member != (head); \
327 #define list_for_each_entry_safe_reverse(pos, n, head, member) \ argument
328 for (pos = list_entry((head)->prev, typeof(*pos), member), \
330 &pos->member != (head); \