Lines Matching refs:head

45 #define list_top(head, type, member)					  \  argument
47 struct list_head *_head = (head); \
75 static inline void list_add(struct list_head *new, struct list_head *head) in list_add() argument
77 __list_add(new, head, head->next); in list_add()
88 static inline void list_add_tail(struct list_head *new, struct list_head *head) in list_add_tail() argument
90 __list_add(new, head->prev, head); in list_add_tail()
117 static __inline__ void list_add_rcu(struct list_head *new, struct list_head *head) in list_add_rcu() argument
119 __list_add_rcu(new, head, head->next); in list_add_rcu()
130 static __inline__ void list_add_tail_rcu(struct list_head *new, struct list_head *head) in list_add_tail_rcu() argument
132 __list_add_rcu(new, head->prev, head); in list_add_tail_rcu()
193 static inline void list_move(struct list_head *list, struct list_head *head) in list_move() argument
196 list_add(list, head); in list_move()
205 struct list_head *head) in list_move_tail() argument
208 list_add_tail(list, head); in list_move_tail()
215 static inline int list_empty(struct list_head *head) in list_empty() argument
217 return head->next == head; in list_empty()
221 struct list_head *head) in __list_splice() argument
225 struct list_head *at = head->next; in __list_splice()
227 first->prev = head; in __list_splice()
228 head->next = first; in __list_splice()
239 static inline void list_splice(struct list_head *list, struct list_head *head) in list_splice() argument
242 __list_splice(list, head); in list_splice()
253 struct list_head *head) in list_splice_init() argument
256 __list_splice(list, head); in list_splice_init()
275 #define list_for_each(pos, head) \ argument
276 for (pos = (head)->next; pos != (head); pos = pos->next)
283 #define list_for_each_prev(pos, head) \ argument
284 for (pos = (head)->prev; pos != (head); pos = pos->prev)
292 #define list_for_each_safe(pos, n, head) \ argument
293 for (pos = (head)->next, n = pos->next; pos != (head); \
302 #define list_for_each_entry(pos, head, member) \ argument
303 for (pos = list_entry((head)->next, typeof(*pos), member); \
304 &pos->member != (head); \
313 #define list_for_each_entry_reverse(pos, head, member) \ argument
314 for (pos = list_entry((head)->prev, typeof(*pos), member); \
315 &pos->member != (head); \
326 #define list_for_each_entry_continue(pos, head, member) \ argument
328 &pos->member != (head); \
338 #define list_for_each_entry_safe(pos, n, head, member) \ argument
339 for (pos = list_entry((head)->next, typeof(*pos), member), \
341 &pos->member != (head); \
458 #define hlist_for_each(pos, head) \ argument
459 for (pos = (head)->first; pos; pos = pos->next)
461 #define hlist_for_each_safe(pos, n, head) \ argument
462 for (pos = (head)->first; n = pos ? pos->next : 0, pos; \
472 #define hlist_for_each_entry(tpos, pos, head, member) \ argument
473 for (pos = (head)->first; \
506 #define hlist_for_each_entry_safe(tpos, pos, n, head, member) \ argument
507 for (pos = (head)->first; \